Skip to content

Commit b15f743

Browse files
SONARJAVA-4869 Update Rules Metadata (#4663)
1 parent f3234d8 commit b15f743

125 files changed

Lines changed: 508 additions & 505 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S106.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ <h3>Documentation</h3>
3838
<ul>
3939
<li> <a href="https://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html">Java SE 7 API Specification: java.util.logging.Logger</a>
4040
</li>
41-
<li> <a href="https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/">OWASP Top 10 2021 Category A9</a> - Security Logging and
42-
Monitoring Failures </li>
43-
<li> <a href="https://www.owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure">OWASP Top 10 2017 Category A3</a> - Sensitive Data
44-
Exposure </li>
41+
<li> OWASP - <a href="https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/">Top 10 2021 Category A9 - Security Logging and
42+
Monitoring Failures</a> </li>
43+
<li> OWASP - <a href="https://owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure">Top 10 2017 Category A3 - Sensitive Data
44+
Exposure</a> </li>
4545
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/nzdGBQ">CERT, ERR02-J.</a> - Prevent exceptions while logging data </li>
4646
</ul>
4747

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1068.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h3>Exceptions</h3>
3030
}
3131
</pre>
3232
<ul>
33-
<li> Annotated fields </li>
33+
<li> Annotated fields and classes annotated with Lombok annotations </li>
3434
</ul>
3535
<p>The unused field in this class will not be reported by the rule as it is annotated.</p>
3636
<pre>

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S107.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h2>Why is this an issue?</h2>
2-
<p>Methods with a long parameter list are difficult to use, as maintainers must figure out the role of each parameter and keep track of their
2+
<p>Methods with a long parameter list are difficult to use because maintainers must figure out the role of each parameter and keep track of their
33
position.</p>
44
<pre>
55
void setCoordinates(int x1, int y1, int z1, int x2, int y2, int z2) { // Noncompliant

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1104.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ <h3>How does this work?</h3>
6262
value.</p>
6363
<h2>Resources</h2>
6464
<ul>
65-
<li> <a href="https://cwe.mitre.org/data/definitions/493">MITRE, CWE-493</a> - Critical Public Variable Without Final Modifier </li>
65+
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/493">CWE-493 - Critical Public Variable Without Final Modifier</a> </li>
6666
</ul>
6767

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1111.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>Noncompliant code example</h3>
1717
<h2>Resources</h2>
1818
<ul>
1919
<li> <a href="https://docs.oracle.com/javase/specs/jls/se17/html/jls-12.html#jls-12.6">docs.oracle.com</a> - Finalization of Class Instances </li>
20-
<li> <a href="https://cwe.mitre.org/data/definitions/586">MITRE, CWE-586</a> - Explicit Call to Finalize() </li>
20+
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/586">CWE-586 - Explicit Call to Finalize()</a> </li>
2121
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/4jZGBQ">CERT, MET12-J.</a> - Do not use finalizers </li>
2222
</ul>
2323

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1114.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h3>Compliant solution</h3>
2323
</pre>
2424
<h2>Resources</h2>
2525
<ul>
26-
<li> <a href="https://cwe.mitre.org/data/definitions/568">MITRE, CWE-568</a> - finalize() Method Without super.finalize() </li>
26+
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/568">CWE-568 - finalize() Method Without super.finalize()</a> </li>
2727
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/4jZGBQ">CERT, MET12-J.</a> - Do not use finalizers </li>
2828
</ul>
2929

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S112.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h4>Compliant solution</h4>
5353
<h2>Resources</h2>
5454
<h3>Standards</h3>
5555
<ul>
56-
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/397">397 Declaration of Throws for Generic Exception</a> </li>
56+
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/397">CWE-397 Declaration of Throws for Generic Exception</a> </li>
5757
<li> CERT - <a href="https://wiki.sei.cmu.edu/confluence/x/_DdGBQ">ERR07-J. Do not throw RuntimeException, Exception, or Throwable</a> </li>
5858
</ul>
5959
<h3>Related rules</h3>

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1121.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h4>Compliant solution</h4>
4747
</pre>
4848
<h2>Resources</h2>
4949
<ul>
50-
<li> <a href="https://cwe.mitre.org/data/definitions/481">MITRE, CWE-481</a> - Assigning instead of Comparing </li>
50+
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/481">CWE-481 - Assigning instead of Comparing</a> </li>
5151
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/ITZGBQ">CERT, EXP51-J.</a> - Do not perform assignments in conditional expressions </li>
5252
</ul>
5353

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1125.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h2>Why is this an issue?</h2>
44
variable or expression that evaluates to a boolean value is unnecessary and can make the code harder to read and understand. The more complex a
55
boolean expression is, the harder it will be for developers to understand its meaning and expected behavior, and it will favour the introduction of
66
new bugs.</p>
7-
<h2>How to tix it</h2>
7+
<h2>How to fix it</h2>
88
<p>Remove redundant boolean literals from expressions to improve readability and make the code more maintainable.</p>
99
<h3>Code examples</h3>
1010
<h4>Noncompliant code example</h4>

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1134.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ <h2>Why is this an issue?</h2>
1010
<h2>Resources</h2>
1111
<h3>Documentation</h3>
1212
<ul>
13-
<li> <a href="https://cwe.mitre.org/data/definitions/546">MITRE, CWE-546 - Suspicious Comment</a> </li>
13+
<li> CWE - <a href="https://cwe.mitre.org/data/definitions/546">CWE-546 - Suspicious Comment</a> </li>
1414
</ul>
1515

0 commit comments

Comments
 (0)