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

Add in the config file settings for exclude and include options

Co-authored-by: kaiili <kaii@openingsource.org>
This commit is contained in:
kaiili
2021-12-21 06:43:50 +08:00
committed by GitHub
parent bf0dd2fdd3
commit 3038a30e3c
2 changed files with 22 additions and 1 deletions

View File

@@ -26,6 +26,10 @@ const (
Audit GlobalOption = "audit"
// NoSecAlternative global option alternative for #nosec directive
NoSecAlternative GlobalOption = "#nosec"
// ExcludeRules global option for some rules should not be load
ExcludeRules GlobalOption = "exclude"
// IncludeRules global option for should be load
IncludeRules GlobalOption = "include"
)
// Config is used to provide configuration and customization to each of the rules.