@@ -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
@@ -286,7 +287,6 @@ type LintersSettings struct {
286
287
Whitespace WhitespaceSettings
287
288
Wrapcheck WrapcheckSettings
288
289
WSL WSLSettings
289
- Filen FilenSettings
290
290
291
291
Custom map [string ]CustomLinterSettings
292
292
}
@@ -423,6 +423,12 @@ type ExhaustructSettings struct {
423
423
Exclude []string `mapstructure:"exclude"`
424
424
}
425
425
426
+ type FilenSettings struct {
427
+ IgnoreComments bool `mapstructure:"ignore-comments"`
428
+ MaxLines int `mapstructure:"max-lines"`
429
+ MinLines int `mapstructure:"min-lines"`
430
+ }
431
+
426
432
type ForbidigoSettings struct {
427
433
Forbid []ForbidigoPattern `mapstructure:"forbid"`
428
434
ExcludeGodocExamples bool `mapstructure:"exclude-godoc-examples"`
@@ -1013,12 +1019,6 @@ type WSLSettings struct {
1013
1019
ForceExclusiveShortDeclarations bool `mapstructure:"force-short-decl-cuddling"`
1014
1020
}
1015
1021
1016
- type FilenSettings struct {
1017
- IgnoreComments bool `mapstructure:"ignore-comments"`
1018
- MaxLines int `mapstructure:"max-lines"`
1019
- MinLines int `mapstructure:"min-lines"`
1020
- }
1021
-
1022
1022
// CustomLinterSettings encapsulates the meta-data of a private linter.
1023
1023
type CustomLinterSettings struct {
1024
1024
// Type plugin type.
0 commit comments