SonarCloud remove candidate rule: java:S1066 Mergeable "if" statements should be combined #9924
CDellaGiusta
started this conversation in
Polls
Replies: 2 comments
-
I don't we should enforce it, since it can make sense to make the code easier to read. Another option could be to reduce the severity for this rule from medium to low. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If IntelliJ has a auto refactoring code that does this reliably for us I'm OK to keep the rule and fix them all as it makes code a bit easier to read. But if fixing it is a pain, then let's remove it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This poll closes Friday, April 18th 2025.
Candidate rule for removal: java:S1066
Number of issues with this rule in Uyuni: 66
Rule: Mergeable "if" statements should be combined
Software qualities impacted: MAINTAINABILITY
Why is this an issue:
Should it be removed?:
There could be times when some "if" statements could be nested for readability reasons, or to explicitly mark the programmer's intention.
All rule issues in Uyuni: https://sonarcloud.io/project/issues?languages=java&issueStatuses=OPEN%2CCONFIRMED&id=uyuni-project_uyuni&rules=java%3AS1066
Examples in our code:
8 votes ·
Beta Was this translation helpful? Give feedback.
All reactions