Skip to content

Commit 5a30757

Browse files
ldezDanilXO
authored andcommitted
review: fix settings struct order
1 parent 0df4ff0 commit 5a30757

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pkg/config/linters_settings.go

Lines changed: 12 additions & 12 deletions
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
@@ -287,7 +288,6 @@ type LintersSettings struct {
287288
Whitespace WhitespaceSettings
288289
Wrapcheck WrapcheckSettings
289290
WSL WSLSettings
290-
Filen FilenSettings
291291

292292
Custom map[string]CustomLinterSettings
293293
}
@@ -424,6 +424,12 @@ type ExhaustructSettings struct {
424424
Exclude []string `mapstructure:"exclude"`
425425
}
426426

427+
type FilenSettings struct {
428+
IgnoreComments bool `mapstructure:"ignore-comments"`
429+
MaxLines int `mapstructure:"max-lines"`
430+
MinLines int `mapstructure:"min-lines"`
431+
}
432+
427433
type ForbidigoSettings struct {
428434
Forbid []ForbidigoPattern `mapstructure:"forbid"`
429435
ExcludeGodocExamples bool `mapstructure:"exclude-godoc-examples"`
@@ -1019,12 +1025,6 @@ type WSLSettings struct {
10191025
ForceExclusiveShortDeclarations bool `mapstructure:"force-short-decl-cuddling"`
10201026
}
10211027

1022-
type FilenSettings struct {
1023-
IgnoreComments bool `mapstructure:"ignore-comments"`
1024-
MaxLines int `mapstructure:"max-lines"`
1025-
MinLines int `mapstructure:"min-lines"`
1026-
}
1027-
10281028
// CustomLinterSettings encapsulates the meta-data of a private linter.
10291029
type CustomLinterSettings struct {
10301030
// Type plugin type.

0 commit comments

Comments
 (0)