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

implement explanation for cognitive complexity checks (FIX) #1551

Merged

Conversation

ivangalkin
Copy link
Contributor

@ivangalkin ivangalkin commented Sep 5, 2018

  • CxxGrammarImpl.selectionStatement was wrongly identified as
    "if statement" only
  • in fact CxxGrammarImpl.selectionStatement might be a "switch" too
  • in order to distinct between these two constructs we have to take the
    token type into consideration

This change is Reviewable

* `CxxGrammarImpl.selectionStatement` was wrongly identified as
  "if statement" only
* in fact `CxxGrammarImpl.selectionStatement` might be a "switch" too
* in order to distinct between these two constructs we have to take the
  token type into consideration
@ivangalkin ivangalkin self-assigned this Sep 5, 2018
@ivangalkin ivangalkin added this to the 1.2 milestone Sep 5, 2018
@guwirth guwirth added the bug label Sep 5, 2018
@guwirth guwirth merged commit 4668ce8 into SonarOpenCommunity:master Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants