File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ require (
1616 github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.1
1717 github.com/OpenPeeDeeP/depguard/v2 v2.2.1
1818 github.com/alecthomas/go-check-sumtype v0.3.1
19- github.com/alexkohler/nakedret/v2 v2.0.5
19+ github.com/alexkohler/nakedret/v2 v2.0.6
2020 github.com/alexkohler/prealloc v1.0.0
2121 github.com/alingse/asasalint v0.0.11
2222 github.com/alingse/nilnesserr v0.1.2
Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ import (
99)
1010
1111func New (settings * config.NakedretSettings ) * goanalysis.Linter {
12- var maxLines uint
12+ cfg := & nakedret.NakedReturnRunner {}
13+
1314 if settings != nil {
14- maxLines = settings .MaxFuncLines
15+ // SkipTestFiles is intentionally ignored => should be managed with `linters.exclusions.rules`.
16+ cfg .MaxLength = settings .MaxFuncLines
1517 }
1618
17- a := nakedret .NakedReturnAnalyzer (maxLines , false )
19+ a := nakedret .NakedReturnAnalyzer (cfg )
1820
1921 return goanalysis .NewLinter (
2022 a .Name ,
You can’t perform that action at this time.
0 commit comments