@@ -40,6 +40,11 @@ var defaultLintersSettings = LintersSettings{
4040 ExplicitExhaustiveMap : false ,
4141 ExplicitExhaustiveSwitch : false ,
4242 },
43+ Filen : FilenSettings {
44+ MinLines : 5 ,
45+ MaxLines : 500 ,
46+ IgnoreComments : false ,
47+ },
4348 Forbidigo : ForbidigoSettings {
4449 ExcludeGodocExamples : true ,
4550 },
@@ -197,11 +202,6 @@ var defaultLintersSettings = LintersSettings{
197202 ErrorVariableNames : []string {"err" },
198203 ForceExclusiveShortDeclarations : false ,
199204 },
200- Filen : FilenSettings {
201- MinLines : 5 ,
202- MaxLines : 500 ,
203- IgnoreComments : false ,
204- },
205205}
206206
207207type LintersSettings struct {
@@ -423,6 +423,12 @@ type ExhaustructSettings struct {
423423 Exclude []string `mapstructure:"exclude"`
424424}
425425
426+ type FilenSettings struct {
427+ IgnoreComments bool `mapstructure:"ignore-comments"`
428+ MaxLines int `mapstructure:"max-lines"`
429+ MinLines int `mapstructure:"min-lines"`
430+ }
431+
426432type ForbidigoSettings struct {
427433 Forbid []ForbidigoPattern `mapstructure:"forbid"`
428434 ExcludeGodocExamples bool `mapstructure:"exclude-godoc-examples"`
@@ -1013,12 +1019,6 @@ type WSLSettings struct {
10131019 ForceExclusiveShortDeclarations bool `mapstructure:"force-short-decl-cuddling"`
10141020}
10151021
1016- type FilenSettings struct {
1017- IgnoreComments bool `mapstructure:"ignore-comments"`
1018- MaxLines int `mapstructure:"max-lines"`
1019- MinLines int `mapstructure:"min-lines"`
1020- }
1021-
10221022// CustomLinterSettings encapsulates the meta-data of a private linter.
10231023type CustomLinterSettings struct {
10241024 // Type plugin type.
0 commit comments