Skip to content

Commit

Permalink
SONARJAVA-5102 Deprecate Java SE rules implemented by DBD (#4177)
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-beleites-sonarsource authored Aug 29, 2024
1 parent 9d18621 commit 952c1ca
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 38 deletions.
13 changes: 8 additions & 5 deletions rules/S2259/java/metadata.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"tags": [
"cwe",
"cert",
"symbolic-execution"
],
"status": "deprecated",
"tags": [],
"securityStandards": {
"CERT": [
"EXP34-C.",
Expand All @@ -12,5 +9,11 @@
"CWE": [
476
]
},
"defaultQualityProfiles": [],
"extra": {
"replacementRules": [
"RSPEC-6555"
]
}
}
16 changes: 8 additions & 8 deletions rules/S2583/java/metadata.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"tags": [
"cwe",
"cert",
"unused",
"suspicious",
"pitfall",
"symbolic-execution"
],
"status": "deprecated",
"tags": [],
"securityStandards": {
"CERT": [
"MSC12-C."
Expand All @@ -16,5 +10,11 @@
571,
570
]
},
"defaultQualityProfiles": [],
"extra": {
"replacementRules": [
"RSPEC-6651"
]
}
}
14 changes: 8 additions & 6 deletions rules/S2589/java/metadata.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"tags": [
"cwe",
"suspicious",
"redundant",
"symbolic-execution"
]
"status": "deprecated",
"tags": [],
"defaultQualityProfiles": [],
"extra": {
"replacementRules": [
"RSPEC-6646"
]
}
}
14 changes: 8 additions & 6 deletions rules/S3518/java/metadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"tags": [
"cwe",
"denial-of-service",
"cert",
"symbolic-execution"
],
"status": "deprecated",
"tags": [],
"securityStandards": {
"CERT": [
"NUM02-J.",
Expand All @@ -16,5 +12,11 @@
"STIG ASD_V5R3": [
"V-222612"
]
},
"defaultQualityProfiles": [],
"extra": {
"replacementRules": [
"RSPEC-6649"
]
}
}
12 changes: 8 additions & 4 deletions rules/S3655/java/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"title": "Optional value should only be accessed after calling isPresent()",
"tags": [
"cwe",
"symbolic-execution"
]
"status": "deprecated",
"tags": [],
"defaultQualityProfiles": [],
"extra": {
"replacementRules": [
"RSPEC-6707"
]
}
}
13 changes: 4 additions & 9 deletions rules/S3959/java/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@
},
"attribute": "LOGICAL"
},
"status": "ready",
"status": "deprecated",
"remediation": {
"func": "Constant\/Issue",
"constantCost": "10min"
},
"tags": [
"java8",
"symbolic-execution"
],
"tags": [],
"extra": {
"replacementRules": [

"RSPEC-6976"
],
"legacyKeys": [

Expand All @@ -28,8 +25,6 @@
"ruleSpecification": "RSPEC-3959",
"sqKey": "S3959",
"scope": "All",
"defaultQualityProfiles": [
"Sonar way"
],
"defaultQualityProfiles": [],
"quickfix": "unknown"
}

0 comments on commit 952c1ca

Please sign in to comment.