mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
Update README with some instructions to enable the tests and vendor folder scanning
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
parent
b49c9532a8
commit
6e5135f6eb
1 changed files with 5 additions and 2 deletions
|
@ -114,8 +114,11 @@ $ gosec -conf config.json .
|
|||
|
||||
### Excluding files
|
||||
|
||||
gosec will ignore dependencies in your vendor directory any files
|
||||
that are not considered build artifacts by the compiler (so test files).
|
||||
gosec will ignore tests files and any dependencies in your vendor directory. The scanning of these artifacts can be enabled with the following flags:
|
||||
|
||||
```bash
|
||||
gosec -tests -vendor ./...
|
||||
```
|
||||
|
||||
### Annotating code
|
||||
|
||||
|
|
Loading…
Reference in a new issue