Skip to content

Commit 88cb1df

Browse files
SONARJAVA-5102 Update SE rules metadata (#4853)
1 parent f4903c1 commit 88cb1df

8 files changed

Lines changed: 19 additions & 8 deletions

File tree

java-symbolic-execution/java-symbolic-execution-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/S2259.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<p>This rule is deprecated; use {rule:java:S6555} instead.</p>
1+
<p>This rule is deprecated, and will eventually be removed.</p>
2+
<p><em>We are deprecating our legacy symbolic execution engine in favor of our more advanced commercial engine. The legacy engine will remain Open
3+
Source for the community as a separate plugin and will receive no further updates by SonarSource.</em></p>
24
<h2>Why is this an issue?</h2>
35
<p>A reference to <code>null</code> should never be dereferenced/accessed. Doing so will cause a <code>NullPointerException</code> to be thrown. At
46
best, such an exception will cause abrupt program termination. At worst, it could expose debugging information that would be useful to an attacker, or

java-symbolic-execution/java-symbolic-execution-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/S2583.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<p>This rule is deprecated; use {rule:java:S6651} instead.</p>
1+
<p>This rule is deprecated, and will eventually be removed.</p>
2+
<p><em>We are deprecating our legacy symbolic execution engine in favor of our more advanced commercial engine. The legacy engine will remain Open
3+
Source for the community as a separate plugin and will receive no further updates by SonarSource.</em></p>
24
<h2>Why is this an issue?</h2>
35
<p>Conditional expressions which are always <code>true</code> or <code>false</code> can lead to <a
46
href="https://en.wikipedia.org/wiki/Unreachable_code">unreachable code</a>.</p>

java-symbolic-execution/java-symbolic-execution-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/S2589.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<p>This rule is deprecated; use {rule:java:S6646} instead.</p>
1+
<p>This rule is deprecated, and will eventually be removed.</p>
2+
<p><em>We are deprecating our legacy symbolic execution engine in favor of our more advanced commercial engine. The legacy engine will remain Open
3+
Source for the community as a separate plugin and will receive no further updates by SonarSource.</em></p>
24
<p>Gratuitous boolean expressions are conditions that do not change the evaluation of a program. This issue can indicate logical errors and affect the
35
correctness of an application, as well as its maintainability.</p>
46
<h2>Why is this an issue?</h2>

java-symbolic-execution/java-symbolic-execution-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/S3518.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<p>This rule is deprecated; use {rule:java:S6649} instead.</p>
1+
<p>This rule is deprecated, and will eventually be removed.</p>
2+
<p><em>We are deprecating our legacy symbolic execution engine in favor of our more advanced commercial engine. The legacy engine will remain Open
3+
Source for the community as a separate plugin and will receive no further updates by SonarSource.</em></p>
24
<p>If the denominator to an integer division or remainder operation is zero, a <code>ArithmeticException</code> is thrown.</p>
35
<p>This error will crash your program in most cases. To fix it, you need to ensure that the denominator value in all division operations is always
46
non-zero, or check the value against zero before performing the division.</p>

java-symbolic-execution/java-symbolic-execution-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/S3655.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<p>This rule is deprecated; use {rule:java:S6707} instead.</p>
1+
<p>This rule is deprecated, and will eventually be removed.</p>
2+
<p><em>We are deprecating our legacy symbolic execution engine in favor of our more advanced commercial engine. The legacy engine will remain Open
3+
Source for the community as a separate plugin and will receive no further updates by SonarSource.</em></p>
24
<h2>Why is this an issue?</h2>
35
<p><code>Optional</code> value can hold either a value or not. The value held in the <code>Optional</code> can be accessed using the
46
<code>get()</code> method, but it will throw a</p>

java-symbolic-execution/java-symbolic-execution-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/S3959.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<p>This rule is deprecated; use {rule:java:S6976} instead.</p>
1+
<p><em>We are deprecating our legacy symbolic execution engine in favor of our more advanced commercial engine. The legacy engine will remain Open
2+
Source for the community as a separate plugin and will receive no further updates by SonarSource.</em></p>
23
<h2>Why is this an issue?</h2>
34
<p>Stream operations are divided into intermediate and terminal operations, and are combined to form stream pipelines. After the terminal operation is
45
performed, the stream pipeline is considered consumed, and cannot be used again. Such a reuse will yield unexpected results.</p>

java-symbolic-execution/java-symbolic-execution-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/S6376.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h3>Documentation</h3>
7575
<li> Java Documentation - <a href="https://docs.oracle.com/en/java/javase/21/security/java-api-xml-processing-jaxp-security-guide.html">Java API for
7676
XML Processing (JAXP) Security Guide</a> </li>
7777
<li> Dom4j Documentation - <a href="https://dom4j.github.io/javadoc/2.1.4/org/dom4j/io/SAXReader.html">SAXReader Class</a> </li>
78-
<li> Jdom2 Documentation - <a href="http://www.jdom.org/docs/apidocs/org/jdom2/input/SAXBuilder.html">SAXBuilder class</a> </li>
78+
<li> Jdom2 Documentation - <a href="https://javadoc.io/static/org.jdom/jdom2/2.0.6.1/org/jdom2/input/SAXBuilder.html">SAXBuilder class</a> </li>
7979
<li> OWASP - <a href="https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#java">XXE Prevention Cheat
8080
Sheet</a> </li>
8181
</ul>

java-symbolic-execution/sonarpedia.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"languages": [
44
"JAVA"
55
],
6-
"latest-update": "2024-08-29T10:04:42.887568058Z",
6+
"latest-update": "2024-08-30T06:58:12.220861855Z",
77
"options": {
88
"no-language-in-filenames": true,
99
"preserve-filenames": false

0 commit comments

Comments
 (0)