Skip to content

Commit f4903c1

Browse files
SONARJAVA-5102 Update SE rule metadata (#4852)
1 parent f2841ec commit f4903c1

19 files changed

Lines changed: 36 additions & 52 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<p>This rule is deprecated; use {rule:java:S6555} instead.</p>
12
<h2>Why is this an issue?</h2>
23
<p>A reference to <code>null</code> should never be dereferenced/accessed. Doing so will cause a <code>NullPointerException</code> to be thrown. At
34
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/S2259.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@
77
},
88
"attribute": "LOGICAL"
99
},
10-
"status": "ready",
10+
"status": "deprecated",
1111
"remediation": {
1212
"func": "Constant\/Issue",
1313
"constantCost": "10min"
1414
},
15-
"tags": [
16-
"cwe",
17-
"cert",
18-
"symbolic-execution"
19-
],
15+
"tags": [],
2016
"defaultSeverity": "Major",
2117
"ruleSpecification": "RSPEC-2259",
2218
"sqKey": "S2259",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<p>This rule is deprecated; use {rule:java:S6651} instead.</p>
12
<h2>Why is this an issue?</h2>
23
<p>Conditional expressions which are always <code>true</code> or <code>false</code> can lead to <a
34
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/S2583.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,12 @@
77
},
88
"attribute": "LOGICAL"
99
},
10-
"status": "ready",
10+
"status": "deprecated",
1111
"remediation": {
1212
"func": "Constant\/Issue",
1313
"constantCost": "15min"
1414
},
15-
"tags": [
16-
"cwe",
17-
"cert",
18-
"unused",
19-
"suspicious",
20-
"pitfall",
21-
"symbolic-execution"
22-
],
15+
"tags": [],
2316
"defaultSeverity": "Major",
2417
"ruleSpecification": "RSPEC-2583",
2518
"sqKey": "S2583",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<p>This rule is deprecated; use {rule:java:S6646} instead.</p>
12
<p>Gratuitous boolean expressions are conditions that do not change the evaluation of a program. This issue can indicate logical errors and affect the
23
correctness of an application, as well as its maintainability.</p>
34
<h2>Why is this an issue?</h2>

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,12 @@
77
},
88
"attribute": "LOGICAL"
99
},
10-
"status": "ready",
10+
"status": "deprecated",
1111
"remediation": {
1212
"func": "Constant\/Issue",
1313
"constantCost": "10min"
1414
},
15-
"tags": [
16-
"cwe",
17-
"suspicious",
18-
"redundant",
19-
"symbolic-execution"
20-
],
15+
"tags": [],
2116
"defaultSeverity": "Major",
2217
"ruleSpecification": "RSPEC-2589",
2318
"sqKey": "S2589",

java-symbolic-execution/java-symbolic-execution-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/S2755.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"ASVS 4.0": [
4141
"5.5.2"
4242
],
43-
"STIG ASD 2023-06-08": [
43+
"STIG ASD_V5R3": [
4444
"V-222608"
4545
]
4646
},

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<p>This rule is deprecated; use {rule:java:S6649} instead.</p>
12
<p>If the denominator to an integer division or remainder operation is zero, a <code>ArithmeticException</code> is thrown.</p>
23
<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
34
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/S3518.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,12 @@
77
},
88
"attribute": "LOGICAL"
99
},
10-
"status": "ready",
10+
"status": "deprecated",
1111
"remediation": {
1212
"func": "Constant\/Issue",
1313
"constantCost": "5 min"
1414
},
15-
"tags": [
16-
"cwe",
17-
"denial-of-service",
18-
"cert",
19-
"symbolic-execution"
20-
],
15+
"tags": [],
2116
"defaultSeverity": "Critical",
2217
"ruleSpecification": "RSPEC-3518",
2318
"sqKey": "S3518",
@@ -30,7 +25,7 @@
3025
"CWE": [
3126
369
3227
],
33-
"STIG ASD 2023-06-08": [
28+
"STIG ASD_V5R3": [
3429
"V-222612"
3530
]
3631
},

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<p>This rule is deprecated; use {rule:java:S6707} instead.</p>
12
<h2>Why is this an issue?</h2>
23
<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
34
<code>get()</code> method, but it will throw a</p>

0 commit comments

Comments
 (0)