File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ module github.com/golangci/golangci-lint/v2
2
2
3
3
go 1.23.0
4
4
5
- toolchain go1.24.1
6
-
7
5
require (
8
6
4d63.com/gocheckcompilerdirectives v1.3.0
9
7
4d63.com/gochecknoglobals v0.2.2
Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ import (
9
9
)
10
10
11
11
func New (settings * config.NakedretSettings ) * goanalysis.Linter {
12
- var maxLines uint
12
+ cfg := & nakedret.NakedReturnRunner {}
13
+
13
14
if settings != nil {
14
- maxLines = settings .MaxFuncLines
15
+ // SkipTestFiles is intentionally ignored => should be managed with `linters.exclusions.rules`.
16
+ cfg .MaxLength = settings .MaxFuncLines
15
17
}
16
18
17
- a := nakedret .NakedReturnAnalyzer (maxLines , false )
19
+ a := nakedret .NakedReturnAnalyzer (cfg )
18
20
19
21
return goanalysis .NewLinter (
20
22
a .Name ,
You can’t perform that action at this time.
0 commit comments