@@ -40,6 +40,11 @@ var defaultLintersSettings = LintersSettings{
40
40
ExplicitExhaustiveMap : false ,
41
41
ExplicitExhaustiveSwitch : false ,
42
42
},
43
+ Filen : FilenSettings {
44
+ MinLines : 5 ,
45
+ MaxLines : 500 ,
46
+ IgnoreComments : false ,
47
+ },
43
48
Forbidigo : ForbidigoSettings {
44
49
ExcludeGodocExamples : true ,
45
50
},
@@ -197,11 +202,6 @@ var defaultLintersSettings = LintersSettings{
197
202
ErrorVariableNames : []string {"err" },
198
203
ForceExclusiveShortDeclarations : false ,
199
204
},
200
- Filen : FilenSettings {
201
- MinLines : 5 ,
202
- MaxLines : 500 ,
203
- IgnoreComments : false ,
204
- },
205
205
}
206
206
207
207
type LintersSettings struct {
@@ -219,6 +219,7 @@ type LintersSettings struct {
219
219
ErrorLint ErrorLintSettings
220
220
Exhaustive ExhaustiveSettings
221
221
Exhaustruct ExhaustructSettings
222
+ Filen FilenSettings
222
223
Forbidigo ForbidigoSettings
223
224
Funlen FunlenSettings
224
225
Gci GciSettings
@@ -287,7 +288,6 @@ type LintersSettings struct {
287
288
Whitespace WhitespaceSettings
288
289
Wrapcheck WrapcheckSettings
289
290
WSL WSLSettings
290
- Filen FilenSettings
291
291
292
292
Custom map [string ]CustomLinterSettings
293
293
}
@@ -424,6 +424,12 @@ type ExhaustructSettings struct {
424
424
Exclude []string `mapstructure:"exclude"`
425
425
}
426
426
427
+ type FilenSettings struct {
428
+ IgnoreComments bool `mapstructure:"ignore-comments"`
429
+ MaxLines int `mapstructure:"max-lines"`
430
+ MinLines int `mapstructure:"min-lines"`
431
+ }
432
+
427
433
type ForbidigoSettings struct {
428
434
Forbid []ForbidigoPattern `mapstructure:"forbid"`
429
435
ExcludeGodocExamples bool `mapstructure:"exclude-godoc-examples"`
@@ -1019,12 +1025,6 @@ type WSLSettings struct {
1019
1025
ForceExclusiveShortDeclarations bool `mapstructure:"force-short-decl-cuddling"`
1020
1026
}
1021
1027
1022
- type FilenSettings struct {
1023
- IgnoreComments bool `mapstructure:"ignore-comments"`
1024
- MaxLines int `mapstructure:"max-lines"`
1025
- MinLines int `mapstructure:"min-lines"`
1026
- }
1027
-
1028
1028
// CustomLinterSettings encapsulates the meta-data of a private linter.
1029
1029
type CustomLinterSettings struct {
1030
1030
// Type plugin type.
0 commit comments