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:
Cosmin Cojocar 2019-04-28 19:39:43 +02:00 committed by Cosmin Cojocar
parent b49c9532a8
commit 6e5135f6eb

View file

@ -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