revive: add exclude option (#4365)

This commit is contained in:
Ludovic Fernandez 2024-02-15 19:52:39 +01:00 committed by GitHub
parent 468b8ff886
commit d7a461a045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 88 additions and 1 deletions

View file

@ -751,6 +751,7 @@ type ReviveSettings struct {
Arguments []any
Severity string
Disabled bool
Exclude []string
}
ErrorCode int `mapstructure:"error-code"`
WarningCode int `mapstructure:"warning-code"`