Skip to content

Commit d4f9b88

Browse files
authored
Merge pull request #104 from endophage/help_fix
updating skip cli help and readme description
2 parents c68ed64 + 5f1c2df commit d4f9b88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ $ gas -exclude=G303 ./...
6363

6464
#### Excluding files:
6565

66-
Gas can be told to \ignore paths that match a supplied pattern using the 'skip' command line option. This accomplished via
67-
[filepath.Match](https://golang.org/pkg/path/filepath/#Match). Multiple patterns can be specified as follows:
66+
Gas can be told to \ignore paths that match a supplied pattern using the 'skip' command line option. This is
67+
accomplished via [go-glob](github.com/ryanuber/go-glob). Multiple patterns can be specified as follows:
6868

6969
```
7070
$ gas -skip=tests* -skip=*_example.go ./...

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func main() {
155155

156156
// Exclude files
157157
excluded := newFileList("*_test.go")
158-
flag.Var(excluded, "skip", "File pattern to exclude from scan")
158+
flag.Var(excluded, "skip", "File pattern to exclude from scan. Uses simple * globs and requires full match")
159159

160160
incRules := ""
161161
flag.StringVar(&incRules, "include", "", "Comma separated list of rules IDs to include. (see rule list)")

0 commit comments

Comments
 (0)