File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -376,6 +376,7 @@ type ReviveSettings struct {
376376 IgnoreGeneratedHeader bool `mapstructure:"ignore-generated-header"`
377377 Confidence float64
378378 Severity string
379+ EnableAllRules bool `mapstructure:"enable-all-rules"`
379380 Rules []struct {
380381 Name string
381382 Arguments []interface {}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const reviveName = "revive"
2727
2828var reviveDebugf = logutils .Debug ("revive" )
2929
30- // jsonObject defines a JSON object of an failure
30+ // jsonObject defines a JSON object of a failure
3131type jsonObject struct {
3232 Severity lint.Severity
3333 lint.Failure `json:",inline"`
@@ -182,6 +182,7 @@ func createConfigMap(cfg *config.ReviveSettings) map[string]interface{} {
182182 "severity" : cfg .Severity ,
183183 "errorCode" : cfg .ErrorCode ,
184184 "warningCode" : cfg .WarningCode ,
185+ "enableAllRules" : cfg .EnableAllRules ,
185186 }
186187
187188 rawDirectives := map [string ]map [string ]interface {}{}
You can’t perform that action at this time.
0 commit comments