File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -376,6 +376,7 @@ type ReviveSettings struct {
376
376
IgnoreGeneratedHeader bool `mapstructure:"ignore-generated-header"`
377
377
Confidence float64
378
378
Severity string
379
+ EnableAllRules bool `mapstructure:"enable-all-rules"`
379
380
Rules []struct {
380
381
Name string
381
382
Arguments []interface {}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const reviveName = "revive"
27
27
28
28
var reviveDebugf = logutils .Debug ("revive" )
29
29
30
- // jsonObject defines a JSON object of an failure
30
+ // jsonObject defines a JSON object of a failure
31
31
type jsonObject struct {
32
32
Severity lint.Severity
33
33
lint.Failure `json:",inline"`
@@ -182,6 +182,7 @@ func createConfigMap(cfg *config.ReviveSettings) map[string]interface{} {
182
182
"severity" : cfg .Severity ,
183
183
"errorCode" : cfg .ErrorCode ,
184
184
"warningCode" : cfg .WarningCode ,
185
+ "enableAllRules" : cfg .EnableAllRules ,
185
186
}
186
187
187
188
rawDirectives := map [string ]map [string ]interface {}{}
You can’t perform that action at this time.
0 commit comments