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

empty case statements should not increase complexity #840 #2611

Closed
wants to merge 1 commit into from

Conversation

paul-wade
Copy link
Contributor

case only increases complexity if the next statement is not immediately another case.

@paul-wade paul-wade force-pushed the master branch 2 times, most recently from df0bddc to 184476b Compare August 8, 2015 03:09
@lukeapage
Copy link
Member

see #840 (comment)
i don't think this is wanted.
please feel free to disagree

@paul-wade
Copy link
Contributor Author

I'm not sure I agree. In visual studio and intellij in C# and java respectively, complexity is NOT increased by an empty case statement. I also wonder outside of consistency with other operators within jshint how increasing complexity of an empty case makes sense?

@jugglinmike
Copy link
Member

Superseded by gh-2597

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

Successfully merging this pull request may close these issues.

None yet

3 participants