We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a269af commit eed344fCopy full SHA for eed344f
pkg/config/linters_settings.go
@@ -380,6 +380,7 @@ type ReviveSettings struct {
380
Name string
381
Arguments []interface{}
382
Severity string
383
+ Disabled bool
384
}
385
ErrorCode int `mapstructure:"error-code"`
386
WarningCode int `mapstructure:"warning-code"`
pkg/golinters/revive.go
@@ -200,6 +200,7 @@ func createConfigMap(cfg *config.ReviveSettings) map[string]interface{} {
200
rawRules[s.Name] = map[string]interface{}{
201
"severity": s.Severity,
202
"arguments": safeTomlSlice(s.Arguments),
203
+ "disabled": s.Disabled,
204
205
206
0 commit comments