SonarCloud remove candidate rule: java:S135 Loops should not contain more than a single "break" or "continue" statement #9930
CDellaGiusta
started this conversation in
Polls
Replies: 1 comment
-
It usually is described as a bad coding practice to abuse "goto"-like instructions. But I fear keeping this rule would require risky and long refactorings |
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:S135
Number of issues with this rule in Uyuni: 17
Rule: Loops should not contain more than a single "break" or "continue" statement
Software qualities impacted: MAINTAINABILITY
Why is this an issue:
Should it be removed?:
There may be more than one break or continue statement if early loop quitting is necessary.
All rule issues in Uyuni: https://sonarcloud.io/project/issues?languages=java&issueStatuses=OPEN%2CCONFIRMED&id=uyuni-project_uyuni&rules=java%3AS135
Examples in our code:
6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions