mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
Updating docs for new CLI "skip" option
This commit is contained in:
parent
235308f853
commit
6d831c0923
1 changed files with 3 additions and 4 deletions
|
@ -52,12 +52,11 @@ $ gas -rule=rsa -rule=tls -rule=crypto ./...
|
|||
|
||||
#### Excluding files:
|
||||
|
||||
Gas will ignore paths that match a supplied pattern via
|
||||
[filepath.Match](https://golang.org/pkg/path/filepath/#Match).
|
||||
Multiple patterns can be specified as follows:
|
||||
Gas can be told to \ignore paths that match a supplied pattern using the 'skip' command line option. This accomplished via
|
||||
[filepath.Match](https://golang.org/pkg/path/filepath/#Match). Multiple patterns can be specified as follows:
|
||||
|
||||
```
|
||||
$ gas -exclude=tests* -exclude=*_example.go ./...
|
||||
$ gas -skip=tests* -skip=*_example.go ./...
|
||||
```
|
||||
|
||||
#### Annotating code
|
||||
|
|
Loading…
Reference in a new issue