We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
indent-error-flow gives false positive for:
indent-error-flow
func h(f func() bool, x int) string { if err == author.ErrCourseNotFound { return } else if err == author.ErrCourseAccess { // side effect } else if err == author.AnotherError { return "okay" } else { // side effect } }
To Reproduce Steps to reproduce the behavior:
go get -u github.com/mgechev/revive
if block ends with a return statement, so drop this else and outdent its block
Expected behavior
Should not get a warning in the case above because of the else if statements.
else if
The text was updated successfully, but these errors were encountered:
@chavacava let me know if you want to take this one.
Sorry, something went wrong.
Hi, please take a look to the corresponding pull request.
No branches or pull requests
Describe the bug
indent-error-flow
gives false positive for:To Reproduce
Steps to reproduce the behavior:
go get -u github.com/mgechev/revive
indent-error-flow
if block ends with a return statement, so drop this else and outdent its block
Expected behavior
Should not get a warning in the case above because of the
else if
statements.The text was updated successfully, but these errors were encountered: