Skip to content

Commit 1f3d5b2

Browse files
Will Dixonjirfag
Will Dixon
authored andcommitted
Update depguard with Glob matching support
1 parent bc945a1 commit 1f3d5b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3029
-20
lines changed

Gopkg.lock

+20-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@
9090
[[constraint]]
9191
branch = "master"
9292
name = "honnef.co/go/tools"
93-
source = "github.com/golangci/go-tools"
93+
source = "github.com/golangci/go-tools"

test/testdata/depguard.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// args: -Edepguard --depguard.include-go-root --depguard.packages='log'
1+
// args: -Edepguard --depguard.include-go-root --depguard.packages='compress/*,log'
22
package testdata
33

44
import (
5-
"log" // ERROR "`log` is in the blacklist"
5+
"compress/gzip" // ERROR "`compress/gzip` is in the blacklist"
6+
"log" // ERROR "`log` is in the blacklist"
67
)
78

89
func SpewDebugInfo() {
9-
log.Println("Debug info")
10+
log.Println(gzip.BestCompression)
1011
}

vendor/github.com/OpenPeeDeeP/depguard/Gopkg.lock

+16-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/OpenPeeDeeP/depguard/Gopkg.toml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/OpenPeeDeeP/depguard/README.md

+8-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/OpenPeeDeeP/depguard/depguard.go

+37-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gobwas/glob/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gobwas/glob/.travis.yml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gobwas/glob/LICENSE

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gobwas/glob/bench.sh

+26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)