SonarCloud remove candidate rule: java:S2589 Boolean expressions should not be gratuitous #9932
CDellaGiusta
started this conversation in
Polls
Replies: 0 comments
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:S2589
Number of issues with this rule in Uyuni: 13
Rule: Boolean expressions should not be gratuitous
Software qualities impacted: MAINTAINABILITY
Why is this an issue:
Should it be removed?:
Re-checking a condition could express intention, and sometimes a condition is always true or false following an instruction that can be many lines above
All rule issues in Uyuni: https://sonarcloud.io/project/issues?languages=java&issueStatuses=OPEN%2CCONFIRMED&id=uyuni-project_uyuni&rules=java%3AS2589
Examples in our code:
8 votes ·
Beta Was this translation helpful? Give feedback.
All reactions