Skip to content

Commit

Permalink
Update nakedret.go
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkohler authored Oct 16, 2024
1 parent 33aa20a commit 99a1c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nakedret.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NakedReturnAnalyzer(defaultLines uint, skipTestFiles bool) *analysis.Analyz
nakedRet := &NakedReturnRunner{}
flags := flag.NewFlagSet("nakedret", flag.ExitOnError)
flags.UintVar(&nakedRet.MaxLength, "l", defaultLines, "maximum number of lines for a naked return function")
flags.BoolVar(&nakedRet.SkipTestFiles, "skip-test-files", skipTestFiles, "skipping test files")
flags.BoolVar(&nakedRet.SkipTestFiles, "skip-test-files", skipTestFiles, "set to true to skip test files")
var analyzer = &analysis.Analyzer{
Name: "nakedret",
Doc: "Checks that functions with naked returns are not longer than a maximum size (can be zero).",
Expand Down

0 comments on commit 99a1c6e

Please sign in to comment.