Skip to content

Commit a382b86

Browse files
committed
review: update linter
1 parent 9d18d96 commit a382b86

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/Antonboom/testifylint v1.5.0
1313
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
1414
github.com/Crocmagnon/fatcontext v0.5.2
15-
github.com/DanilXO/filen v0.2.0
15+
github.com/DanilXO/filen v0.3.0
1616
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
1717
github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0
1818
github.com/OpenPeeDeeP/depguard/v2 v2.2.0

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/filen/filen.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010

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

pkg/golinters/filen/testdata/filen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//golangcitest:args -Efilen
2-
package testdata // want "The number of lines in the file filen.go exceeds the allowed value! maxLinesNum = 500, fileLines = 502"
2+
package testdata // want `The number of lines exceeds the allowed value. \(maxLinesNum = 500, fileLines = 502\)`
33

44
import "fmt"
55

pkg/golinters/filen/testdata/filen_max_lines.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//golangcitest:args -Efilen
22
//golangcitest:config_path testdata/filen_max_lines.yml
3-
package testdata // want "The number of lines in the file filen_max_lines.go exceeds the allowed value! maxLinesNum = 100, fileLines = 107"
3+
package testdata // want `The number of lines exceeds the allowed value. \(maxLinesNum = 100, fileLines = 107\)`
44

55
import "fmt"
66

pkg/golinters/filen/testdata/filen_min_lines.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//golangcitest:args -Efilen
22
//golangcitest:config_path testdata/filen_min_lines.yml
3-
package testdata // want "The number of lines in the file filen_min_lines.go less the allowed value! minLinesNum = 100, fileLines = 17"
3+
package testdata // want `The number of lines in less the allowed value. \(minLinesNum = 100, fileLines = 17\)`
44

55
import "fmt"
66

0 commit comments

Comments
 (0)