We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b74bc commit 9550432Copy full SHA for 9550432
pkg/config/linters_settings.go
@@ -717,7 +717,7 @@ type MustTagSettings struct {
717
}
718
719
type NakedretSettings struct {
720
- MaxFuncLines int `mapstructure:"max-func-lines"`
+ MaxFuncLines uint `mapstructure:"max-func-lines"`
721
722
723
type NestifSettings struct {
pkg/golinters/nakedret/nakedret.go
@@ -9,12 +9,12 @@ import (
9
)
10
11
func New(settings *config.NakedretSettings) *goanalysis.Linter {
12
- var maxLines int
+ var maxLines uint
13
if settings != nil {
14
maxLines = settings.MaxFuncLines
15
16
17
- a := nakedret.NakedReturnAnalyzer(uint(maxLines))
+ a := nakedret.NakedReturnAnalyzer(maxLines)
18
19
return goanalysis.NewLinter(
20
a.Name,
0 commit comments