diff options
author | stanislavh <stanislav.honcharov@sonarsource.com> | 2023-08-16 18:39:13 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-18 20:02:50 +0000 |
commit | ae7c667d06263be4bf89a8060b9d8808ef1bf66b (patch) | |
tree | 9969ceda4a574594e7a0ade6f8faf332c41007ad /plugins/sonar-xoo-plugin | |
parent | 57dce5287c6126094a2325dcbd19f9d866700cf8 (diff) | |
download | sonarqube-ae7c667d06263be4bf89a8060b9d8808ef1bf66b.tar.gz sonarqube-ae7c667d06263be4bf89a8060b9d8808ef1bf66b.zip |
SONAR-20023 Add BBT to validate new facets
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java index 49bc7e82f0c..c7315d4d991 100644 --- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java +++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java @@ -176,7 +176,7 @@ public class XooRulesDefinition implements RulesDefinition { NewRule oneIssuePerDirectory = repo.createRule(OneIssuePerDirectorySensor.RULE_KEY) .setName("One Issue Per Directory") .setCleanCodeAttribute(CleanCodeAttribute.CLEAR) - .addDefaultImpact(SoftwareQuality.MAINTAINABILITY, Severity.MEDIUM); + .addDefaultImpact(SoftwareQuality.MAINTAINABILITY, Severity.HIGH); oneIssuePerDirectory.setDebtRemediationFunction(oneIssuePerDirectory.debtRemediationFunctions().linear(TEN_MIN)); addAllDescriptionSections(oneIssuePerDirectory, "Generate an issue on each non-empty directory"); @@ -236,6 +236,7 @@ public class XooRulesDefinition implements RulesDefinition { NewRule oneVulnerabilityIssuePerModule = repo.createRule(OneVulnerabilityIssuePerModuleSensor.RULE_KEY).setName("One Vulnerability Issue Per Module") .addDefaultImpact(SoftwareQuality.SECURITY, Severity.MEDIUM) .addDefaultImpact(SoftwareQuality.MAINTAINABILITY, Severity.HIGH) + .setCleanCodeAttribute(CleanCodeAttribute.TRUSTWORTHY) .setType(RuleType.VULNERABILITY); addAllDescriptionSections(oneVulnerabilityIssuePerModule, "Generate an issue on each module"); |