File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,6 @@ type LintersSettings struct {
138
138
Gocyclo struct {
139
139
MinComplexity int `mapstructure:"min-complexity"`
140
140
}
141
- Gocognit struct {
142
- MinComplexity int `mapstructure:"min-complexity"`
143
- }
144
141
Varcheck struct {
145
142
CheckExportedFields bool `mapstructure:"exported-fields"`
146
143
}
@@ -187,6 +184,7 @@ type LintersSettings struct {
187
184
Gocritic GocriticSettings
188
185
Godox GodoxSettings
189
186
Dogsled DogsledSettings
187
+ Gocognit GocognitSettings
190
188
}
191
189
192
190
type GovetSettings struct {
@@ -247,6 +245,10 @@ type DogsledSettings struct {
247
245
MaxBlankIdentifiers int `mapstructure:"max-blank-identifiers"`
248
246
}
249
247
248
+ type GocognitSettings struct {
249
+ MinComplexity int `mapstructure:"min-complexity"`
250
+ }
251
+
250
252
var defaultLintersSettings = LintersSettings {
251
253
Lll : LllSettings {
252
254
LineLength : 120 ,
@@ -272,6 +274,9 @@ var defaultLintersSettings = LintersSettings{
272
274
Dogsled : DogsledSettings {
273
275
MaxBlankIdentifiers : 2 ,
274
276
},
277
+ Gocognit : GocognitSettings {
278
+ MinComplexity : 30 ,
279
+ },
275
280
}
276
281
277
282
type Linters struct {
You can’t perform that action at this time.
0 commit comments