]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16078 Be a little more explicit when an issue is removed due to an old rule
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Tue, 29 Mar 2022 13:22:55 +0000 (15:22 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 31 Mar 2022 20:02:58 +0000 (20:02 +0000)
server/sonar-web/src/main/js/components/issue/components/IssueMessage.tsx
server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueMessage-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index dde2b2817897e78fa2145efebabb96344c91d278..2d2cb80c06831810990829b0b16d23bf3b1c6b25 100644 (file)
@@ -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>
         )}
index dae61ae1c468fabb63b2644677de93ecf15f2258..178a1810306a7a89c2acd6d4e69e7fef053c280f 100644 (file)
@@ -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>
index 813e85e41ab6c8355e02cf2bbb2fe07d2e0c6e9b..fbd4e5f4e7508b55c5fa3c97872b380510ac6df5 100644 (file)
@@ -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: