1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-23 22:15:04 +02:00

Add possibility to list waived (nosec) marked issues but not count them as such

This commit is contained in:
Marc Brugger
2021-08-18 13:00:38 +02:00
committed by GitHub
parent 5a131be2ec
commit ba23b5e49a
8 changed files with 76 additions and 18 deletions

View File

@@ -20,6 +20,8 @@ type GlobalOption string
const (
// Nosec global option for #nosec directive
Nosec GlobalOption = "nosec"
// ShowIgnored defines whether nosec issues are counted as finding or not
ShowIgnored GlobalOption = "show-ignored"
// Audit global option which indicates that gosec runs in audit mode
Audit GlobalOption = "audit"
// NoSecAlternative global option alternative for #nosec directive