Skip to content

Commit abb0adb

Browse files
committed
review: fix settings struct order
1 parent aa67f9e commit abb0adb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pkg/config/linters_settings.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -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

207207
type LintersSettings struct {
@@ -219,6 +219,7 @@ type LintersSettings struct {
219219
ErrorLint ErrorLintSettings
220220
Exhaustive ExhaustiveSettings
221221
Exhaustruct ExhaustructSettings
222+
Filen FilenSettings
222223
Forbidigo ForbidigoSettings
223224
Funlen FunlenSettings
224225
Gci GciSettings
@@ -286,7 +287,6 @@ type LintersSettings struct {
286287
Whitespace WhitespaceSettings
287288
Wrapcheck WrapcheckSettings
288289
WSL WSLSettings
289-
Filen FilenSettings
290290

291291
Custom map[string]CustomLinterSettings
292292
}
@@ -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+
426432
type 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.
10231023
type CustomLinterSettings struct {
10241024
// Type plugin type.

0 commit comments

Comments
 (0)