Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add some documentation for G104 whitelist configuration
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
  • Loading branch information
ccojocar committed Jun 25, 2019
1 parent f344524 commit 1412357
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -121,6 +121,16 @@ A number of global settings can be provided in a configuration file as follows:
# Run with a global configuration file
$ gosec -conf config.json .
```
Also some rules accept configuration. For instance on rule `G104`, it is possible to define packages along with a list
of functions which will be skipped when auditing the not checked errors:

```JSON
{
"G104": {
"io/ioutil": ["WriteFile"]
}
}
```

### Excluding files

Expand Down

0 comments on commit 1412357

Please sign in to comment.