We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60b0be9 commit 50ff7d0Copy full SHA for 50ff7d0
1 file changed
sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S122.html
@@ -1,12 +1,17 @@
1
<h2>Why is this an issue?</h2>
2
<p>Putting multiple statements on a single line lowers the code readability and makes debugging the code more complex.</p>
3
<pre>
4
-if (someCondition) doSomething(); // Noncompliant
+if (someCondition) { doSomething(); } // Noncompliant
5
+
6
+doSomething(); doSomethingElse(); // Noncompliant
7
</pre>
8
<p>Write one statement per line to improve readability.</p>
9
10
if (someCondition) {
11
doSomething();
12
}
13
14
+doSomething();
15
+doSomethingElse();
16
17
0 commit comments