aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-03-17 09:06:56 -0500
committersonartech <sonartech@sonarsource.com>2021-03-17 20:08:34 +0000
commitda368da20e07d3073497c3a279a01d0c0bfdfac8 (patch)
tree681962134ec462c6bf79d90d2c95ec065b03f0df /sonar-scanner-engine/src/main
parent9316c3016fdca65613e1af37c630c04d393ae706 (diff)
downloadsonarqube-da368da20e07d3073497c3a279a01d0c0bfdfac8.tar.gz
sonarqube-da368da20e07d3073497c3a279a01d0c0bfdfac8.zip
SONAR-14192 Deprecating rule keys may break users' exclusion settings
Diffstat (limited to 'sonar-scanner-engine/src/main')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilter.java2
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilter.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilter.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilter.java
index d29a993985b..9dbc75a0e58 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilter.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilter.java
@@ -95,7 +95,7 @@ public class EnforceIssuesFilter implements IssueFilter {
private boolean ruleMatches(IssuePattern pattern, RuleKey ruleKey) {
if (activeRules.matchesDeprecatedKeys(ruleKey, pattern.getRulePattern())) {
- String msg = String.format("The issue multicriteria pattern '%s' matches a rule key that has been changed. The pattern should be updated to '%s'",
+ String msg = String.format("A multicriteria issue enforce uses the rule key '%s' that has been changed. The pattern should be updated to '%s'",
pattern.getRulePattern(), ruleKey);
analysisWarnings.addUnique(msg);
if (warnedDeprecatedRuleKeys.add(ruleKey)) {
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilter.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilter.java
index 23aeea36e18..0b13833df8b 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilter.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilter.java
@@ -91,7 +91,7 @@ public class IgnoreIssuesFilter implements IssueFilter {
RuleKey ruleKey = issue.ruleKey();
if (activeRules.matchesDeprecatedKeys(ruleKey, pattern)) {
- String msg = String.format("The issue multicriteria pattern '%s' matches a rule key that has been changed. The pattern should be updated to '%s'", pattern, ruleKey);
+ String msg = String.format("A multicriteria issue exclusion uses the rule key '%s' that has been changed. The pattern should be updated to '%s'", pattern, ruleKey);
analysisWarnings.addUnique(msg);
if (warnedDeprecatedRuleKeys.add(ruleKey)) {
LOG.warn(msg);