mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 11:35:52 +00:00
updating skip cli help and readme description
This commit is contained in:
parent
c68ed64f6c
commit
5f1c2df44a
2 changed files with 3 additions and 3 deletions
|
@ -63,8 +63,8 @@ $ gas -exclude=G303 ./...
|
||||||
|
|
||||||
#### Excluding files:
|
#### Excluding files:
|
||||||
|
|
||||||
Gas can be told to \ignore paths that match a supplied pattern using the 'skip' command line option. This accomplished via
|
Gas can be told to \ignore paths that match a supplied pattern using the 'skip' command line option. This is
|
||||||
[filepath.Match](https://golang.org/pkg/path/filepath/#Match). Multiple patterns can be specified as follows:
|
accomplished via [go-glob](github.com/ryanuber/go-glob). Multiple patterns can be specified as follows:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ gas -skip=tests* -skip=*_example.go ./...
|
$ gas -skip=tests* -skip=*_example.go ./...
|
||||||
|
|
2
main.go
2
main.go
|
@ -155,7 +155,7 @@ func main() {
|
||||||
|
|
||||||
// Exclude files
|
// Exclude files
|
||||||
excluded := newFileList("*_test.go")
|
excluded := newFileList("*_test.go")
|
||||||
flag.Var(excluded, "skip", "File pattern to exclude from scan")
|
flag.Var(excluded, "skip", "File pattern to exclude from scan. Uses simple * globs and requires full match")
|
||||||
|
|
||||||
incRules := ""
|
incRules := ""
|
||||||
flag.StringVar(&incRules, "include", "", "Comma separated list of rules IDs to include. (see rule list)")
|
flag.StringVar(&incRules, "include", "", "Comma separated list of rules IDs to include. (see rule list)")
|
||||||
|
|
Loading…
Reference in a new issue