Skip to content

Commit 93a310c

Browse files
ldezDanilXO
authored andcommitted
review: rename settings
1 parent 3df03fb commit 93a310c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/config/linters_settings.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ var defaultLintersSettings = LintersSettings{
198198
ForceExclusiveShortDeclarations: false,
199199
},
200200
Filen: FilenSettings{
201-
MinLinesNum: 5,
202-
MaxLinesNum: 500,
201+
MinLines: 5,
202+
MaxLines: 500,
203203
IgnoreComments: false,
204204
},
205205
}
@@ -1021,8 +1021,8 @@ type WSLSettings struct {
10211021

10221022
type FilenSettings struct {
10231023
IgnoreComments bool `mapstructure:"ignore-comments"`
1024-
MaxLinesNum int `mapstructure:"min-lines-num"`
1025-
MinLinesNum int `mapstructure:"max-lines-num"`
1024+
MaxLines int `mapstructure:"min-lines"`
1025+
MinLines int `mapstructure:"max-lines"`
10261026
}
10271027

10281028
// CustomLinterSettings encapsulates the meta-data of a private linter.

pkg/golinters/filen/filen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
func New(settings *config.FilenSettings) *goanalysis.Linter {
1111
a := filen.NewAnalyzer(&filen.Runner{
12-
MaxLinesNum: settings.MaxLinesNum,
13-
MinLinesNum: settings.MinLinesNum,
12+
MaxLinesNum: settings.MaxLines,
13+
MinLinesNum: settings.MinLines,
1414
IgnoreComments: settings.IgnoreComments,
1515
})
1616

0 commit comments

Comments
 (0)