Skip to content

Commit 7e46152

Browse files
committed
review: rename settings
1 parent bc9ac0b commit 7e46152

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
}
@@ -1015,8 +1015,8 @@ type WSLSettings struct {
10151015

10161016
type FilenSettings struct {
10171017
IgnoreComments bool `mapstructure:"ignore-comments"`
1018-
MaxLinesNum int `mapstructure:"min-lines-num"`
1019-
MinLinesNum int `mapstructure:"max-lines-num"`
1018+
MaxLines int `mapstructure:"min-lines"`
1019+
MinLines int `mapstructure:"max-lines"`
10201020
}
10211021

10221022
// 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)