Modify rule S6945: Upgrade severity and impact to Critical and HIGH

Following the documentation, MAINTAINABILITY issues should have at least HIGH
impact, and Critical severity, if they can lead to the introduction of bugs.

RELIABILITY issues should have at least HIGH impact, and Critical severity,
if they can for example cause corrupted data.

Both applies here. Hence, we upgrade the `defaultSeverity` and impact
levels.

These are the documentation link:
https://docs.sonarsource.com/sonarqube-server/2025.1/extension-guide/adding-coding-rules/#setting-severities-in-mqr-mode
https://docs.sonarsource.com/sonarqube-server/2025.1/extension-guide/adding-coding-rules/#setting-severities-in-se-mode
This commit is contained in:
Anton Haubner 2025-02-25 11:24:54 +01:00
parent 8bc9204b58
commit a33a6bbd7c

View File

@ -8,7 +8,7 @@
}, },
"tags": [ "tags": [
], ],
"defaultSeverity": "Major", "defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6945", "ruleSpecification": "RSPEC-6945",
"sqKey": "S6945", "sqKey": "S6945",
"scope": "All", "scope": "All",
@ -16,8 +16,8 @@
"quickfix": "unknown", "quickfix": "unknown",
"code": { "code": {
"impacts": { "impacts": {
"RELIABILITY": "MEDIUM", "RELIABILITY": "HIGH",
"MAINTAINABILITY": "MEDIUM" "MAINTAINABILITY": "HIGH"
}, },
"attribute": "LOGICAL" "attribute": "LOGICAL"
} }