Modify rule S3541: Deprecate the rule (CPP-5904) (#4559)
Also improve documentation of the deprecation process.
This commit is contained in:
parent
62c1e322df
commit
5675385d6b
@ -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.
|
||||
|
||||
|
@ -7,15 +7,12 @@
|
||||
},
|
||||
"attribute": "CLEAR"
|
||||
},
|
||||
"status": "ready",
|
||||
"status": "deprecated",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "2min"
|
||||
},
|
||||
"tags": [
|
||||
"redundant",
|
||||
"clumsy"
|
||||
],
|
||||
"tags": [],
|
||||
"extra": {
|
||||
"replacementRules": [
|
||||
|
||||
@ -28,8 +25,6 @@
|
||||
"ruleSpecification": "RSPEC-3541",
|
||||
"sqKey": "S3541",
|
||||
"scope": "Main",
|
||||
"defaultQualityProfiles": [
|
||||
"Sonar way"
|
||||
],
|
||||
"defaultQualityProfiles": [],
|
||||
"quickfix": "unknown"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user