mirror of
https://github.com/securego/gosec.git
synced 2024-11-06 03:55:50 +00:00
Merge pull request #225 from jvmatl/jvmatl-patch-1
Document #nosec use with a list of rules
This commit is contained in:
commit
90a1c1d625
1 changed files with 4 additions and 2 deletions
|
@ -96,6 +96,8 @@ func main(){
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
When a specific false positive has been identified and verified as safe, you may wish to suppress only that single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the `#nosec` annotation, e.g: `/* #nosec G401 */` or `// #nosec G201 G202 G203 `
|
||||||
|
|
||||||
In some cases you may also want to revisit places where #nosec annotations
|
In some cases you may also want to revisit places where #nosec annotations
|
||||||
have been used. To run the scanner and ignore any #nosec annotations you
|
have been used. To run the scanner and ignore any #nosec annotations you
|
||||||
can do the following:
|
can do the following:
|
||||||
|
|
Loading…
Reference in a new issue