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
Improve S3776: Exclude complexity of JSX short-circuits #377
Improve S3776: Exclude complexity of JSX short-circuits #377
Conversation
c234a0c
to
29bd2b1
Compare
As discussed, the rule checks that the short-circuit logical expression doesn't have a ternary operator at its right-hand side before deciding to exclude it from the cognitive complexity computation. |
… JSXExpressionContainer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 comments, otherwise LGTM!
Kudos, SonarCloud Quality Gate passed! |
Fixes SonarSource/SonarJS#3289