Skip to content

Commit

Permalink
Modify rule S3541: Deprecate the rule (CPP-5904) (#4559)
Browse files Browse the repository at this point in the history
Also improve documentation of the deprecation process.
  • Loading branch information
loic-joly-sonarsource authored Dec 11, 2024
1 parent 62c1e32 commit 5675385
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/deprecation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

== In the RSPEC

The rule status (`/status` in the metadata) should be set to `deprecated`.
The rule status (`/status` in the metadata) should be set to `deprecated`, and its tags should be removed. If the rule is in `SonarWay`, it should be removed from this profile.

Optionally, `/extra/replacementRules` can list the rules that replace this rule.

Expand Down
11 changes: 3 additions & 8 deletions rules/S3541/cfamily/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
},
"attribute": "CLEAR"
},
"status": "ready",
"status": "deprecated",
"remediation": {
"func": "Constant\/Issue",
"constantCost": "2min"
},
"tags": [
"redundant",
"clumsy"
],
"tags": [],
"extra": {
"replacementRules": [

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

0 comments on commit 5675385

Please sign in to comment.