Skip to content
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

"else is not generally useful after a break or return" detection #12

Open
Mattrack opened this issue Sep 19, 2016 · 1 comment
Open
Assignees
Labels
Milestone

Comments

@Mattrack
Copy link
Member

"else is not generally useful after a break or return" is not raised when there is no braces after the "else":

if (1)
    return (1);
else if (2)
    return (2);
else
    return (0);
@Mattrack Mattrack added the bug label Sep 19, 2016
@Mattrack Mattrack added this to the v1.2.0 milestone Sep 19, 2016
@Mattrack Mattrack self-assigned this Sep 19, 2016
@JohnnyOhms
Copy link

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants