aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2022-03-29 15:22:55 +0200
committersonartech <sonartech@sonarsource.com>2022-03-31 20:02:58 +0000
commit854d67f9cab559fbd9744f597aea344246871249 (patch)
tree8cbf5bfb51c23b002486b99f301f6c0503dcbc38
parent2ae7ab90b7c60746e5118c71b771c3d1bf26e3f4 (diff)
downloadsonarqube-854d67f9cab559fbd9744f597aea344246871249.tar.gz
sonarqube-854d67f9cab559fbd9744f597aea344246871249.zip
SONAR-16078 Be a little more explicit when an issue is removed due to an old rule
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx4
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap2
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties1
3 files changed, 5 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx b/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx
index dde2b281789..2d2cb80c068 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx
@@ -87,7 +87,9 @@ export default function IssueMessage(props: IssueMessageProps) {
}
]}>
<span className="spacer-right badge badge-error">
- {translate('rules.status', ruleStatus)}
+ {ruleStatus === RuleStatus.Deprecated
+ ? translate('rules.status.DEPRECATED')
+ : translate('issue.resolution.REMOVED.rule_removed')}
</span>
</DocumentationTooltip>
)}
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap
index dae61ae1c46..178a1810306 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap
@@ -115,7 +115,7 @@ exports[`should render correctly: is removed rule 1`] = `
<span
className="spacer-right badge badge-error"
>
- rules.status.REMOVED
+ issue.resolution.REMOVED.rule_removed
</span>
</DocumentationTooltip>
</div>
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index 813e85e41ab..fbd4e5f4e75 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -886,6 +886,7 @@ issue.resolution.WONTFIX=Won't Fix
issue.resolution.WONTFIX.description=Issues that are accepted in this context. They and their effort will be ignored.
issue.resolution.REMOVED=Removed
issue.resolution.REMOVED.description=Either the rule or the resource was changed (removed, relocated, parameters changed, etc.) so that analysis no longer finds these issues.
+issue.resolution.REMOVED.rule_removed=Rule removed
issue.unresolved.description=Unresolved issues have not been addressed in any way.
issue.effort=Effort: