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
|
== 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.
|
Optionally, `/extra/replacementRules` can list the rules that replace this rule.
|
||||||
|
|
||||||
|
@ -7,15 +7,12 @@
|
|||||||
},
|
},
|
||||||
"attribute": "CLEAR"
|
"attribute": "CLEAR"
|
||||||
},
|
},
|
||||||
"status": "ready",
|
"status": "deprecated",
|
||||||
"remediation": {
|
"remediation": {
|
||||||
"func": "Constant\/Issue",
|
"func": "Constant\/Issue",
|
||||||
"constantCost": "2min"
|
"constantCost": "2min"
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [],
|
||||||
"redundant",
|
|
||||||
"clumsy"
|
|
||||||
],
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"replacementRules": [
|
"replacementRules": [
|
||||||
|
|
||||||
@ -28,8 +25,6 @@
|
|||||||
"ruleSpecification": "RSPEC-3541",
|
"ruleSpecification": "RSPEC-3541",
|
||||||
"sqKey": "S3541",
|
"sqKey": "S3541",
|
||||||
"scope": "Main",
|
"scope": "Main",
|
||||||
"defaultQualityProfiles": [
|
"defaultQualityProfiles": [],
|
||||||
"Sonar way"
|
|
||||||
],
|
|
||||||
"quickfix": "unknown"
|
"quickfix": "unknown"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user