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
I had something like this in my code and it failed to detect /* falls through */.
/* falls through */
case 1: case 2: doStuff(); /* falls through */ // greater than 3 case 3: case 4: doMoreStuff();
If I switch the order of the two comments it works:
case 1: case 2: doStuff(); // greater than 3 /* falls through */ case 3: case 4: doMoreStuff();
But that's pretty ugly, IMHO :) So it would be really nice if /* falls through */ is detected after the last expression, not before the next case
case
The text was updated successfully, but these errors were encountered:
You can put // greater than 3 after case 3: on the same line?
// greater than 3
case 3:
Sorry, something went wrong.
You're right. But I still think it reads better on top. Should I attempt a PR?
Sure.
[[FIX]] Allow comments and new lines after /* falls through */
f0b6908
Fixes jshintgh-2652, fixes jshintgh-1660
3b1c925
dda485d
No branches or pull requests
I had something like this in my code and it failed to detect
/* falls through */
.If I switch the order of the two comments it works:
But that's pretty ugly, IMHO :) So it would be really nice if
/* falls through */
is detected after the last expression, not before the nextcase
The text was updated successfully, but these errors were encountered: