-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
build(deps): bump github.com/alexkohler/nakedret to 2.0.1 #3760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey, thank you for opening your first Pull Request ! |
Hello, the way that we handle this linter is not right, we have to change that. Instead of "duplicating" the code inside golangci-lint I think it's better to a create PR on nakedret to be able to use it as a dependency. |
Handling of naked returns inside conditionals as well as from nested functions has been added upstream, in alexkohler/nakedret#12 and more commits. This should resolve #1317.
This was updated in alexkohler/nakedret#25 and now this PR uses that analyzer directly! |
@ldez linter is updated, and should not be blocked any more! 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
return // want "naked return in func `NakedretIssue` with 33 lines of code" | ||
} | ||
|
||
fmt.Println("nakedret") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ldez were these fmt.Println()
updates intentional?
should it still test the edge case of 31 lines, by removing two // ...
lines below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the println is intentional, because I wanted to have at least one std import.
Handling of naked returns inside conditionals as well as from nested functions has been added upstream, in alexkohler/nakedret#12 and more commits.
This should resolve #1317.