mirror of
https://github.com/securego/gosec.git
synced 2025-03-19 21:08:30 +02: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
@ -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…
x
Reference in New Issue
Block a user