Skip to content

Commit dea0726

Browse files
Wohopsquentin-jaquier-sonarsource
authored andcommitted
SONARJAVA-3644 Fix formatting of links to from one rule to others
1 parent 3f4f2b9 commit dea0726

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S2129_java.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ <h2>Compliant Solution</h2>
2525
</pre>
2626
<h2>Exceptions</h2>
2727
<p><code>BigDecimal</code> constructor with <code>double</code> argument is ignored as using <code>valueOf</code> instead might change resulting
28-
value. See {rule:java:S2111} .</p>
28+
value. See {rule:java:S2111}.</p>
2929

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S3064_java.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ <h2>See</h2>
4848
</ul>
4949
<h3>See Also</h3>
5050
<ul>
51-
<li> {rule:java:S2168} Double-checked locking should not be used </li>
51+
<li> {rule:java:S2168} - Double-checked locking should not be used </li>
5252
</ul>
5353

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S3366_java.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2>Noncompliant Code Example</h2>
2323
</pre>
2424
<h2>Exceptions</h2>
2525
<p>This rule ignores instances of assigning <code>this</code> directly to a <code>static</code> field of the same class because that case is covered
26-
by {rule:java:S3010} .</p>
26+
by {rule:java:S3010}.</p>
2727
<h2>See</h2>
2828
<ul>
2929
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/iDdGBQ">CERT, TSM01-J.</a> - Do not let the this reference escape during object construction

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5261_java.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
be misleading.</p>
44
<p>This rules reports <code>else</code> statements that are difficult to understand, because they are inside nested <code>if</code> statements without
55
curly braces.</p>
6-
<p>Adding curly braces can generally make the code clearer (see rule {rule:java:S121} ), and in this situation of dangling <code>else</code>, it
6+
<p>Adding curly braces can generally make the code clearer (see rule {rule:java:S121}), and in this situation of dangling <code>else</code>, it
77
really clarifies the intention of the code.</p>
88
<h2>Noncompliant Code Example</h2>
99
<pre>

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5786_java.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2>Compliant Solution</h2>
2525
</pre>
2626
<h2>Exceptions</h2>
2727
<p>This rule does not raise an issue about <code>private</code> visibility, because <code>private</code> test methods and classes are systematically
28-
ignored by JUnit5, without a proper warning. It's not a <code>Code Smell</code> but a <code>Bug</code> handled by the rule {rule:java:S5810} .</p>
28+
ignored by JUnit5, without a proper warning. It's not a <code>Code Smell</code> but a <code>Bug</code> handled by the rule {rule:java:S5810}.</p>
2929
<h2>See</h2>
3030
<ul>
3131
<li> <a href="https://junit.org/junit5/docs/current/user-guide/#writing-tests-classes-and-methods">JUnit 5 Test Classes and Methods</a> </li>

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5845_java.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ <h2>Noncompliant Code Example</h2>
4545
</pre>
4646
<h2>See</h2>
4747
<ul>
48-
<li> {rule:java:S2159} Silly equality checks should not be made </li>
48+
<li> {rule:java:S2159} - Silly equality checks should not be made </li>
4949
</ul>
5050

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6035_java.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p>When an alternation contains multiple alternatives that consist of a single character, it can be rewritten as a character class. This should be
2-
preferred because it is more efficient and can even help prevent stack overflows when used inside a repetition (see rule {rule:java:S5998} ).</p>
2+
preferred because it is more efficient and can even help prevent stack overflows when used inside a repetition (see rule {rule:java:S5998}).</p>
33
<h2>Noncompliant Code Example</h2>
44
<pre>
55
Pattern.compile("a|b|c"); // Noncompliant

0 commit comments

Comments
 (0)