diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2022-07-06 17:26:32 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-08 20:02:47 +0000 |
commit | e3fc4647925f88c6c5504350e39d4f60786682b9 (patch) | |
tree | 3b54ddb1b34245fb86a066c8d873b72890fa71d6 /plugins | |
parent | d2673b56781ac7d1f359a291f6294c015131fb6d (diff) | |
download | sonarqube-e3fc4647925f88c6c5504350e39d4f60786682b9.tar.gz sonarqube-e3fc4647925f88c6c5504350e39d4f60786682b9.zip |
SONAR-16598 Populate Generic concepts from sonar-plugin api
Diffstat (limited to 'plugins')
-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 38ed2bad0bf..51ad8f121e1 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 @@ -118,7 +118,8 @@ public class XooRulesDefinition implements RulesDefinition { addHowToFixSectionsWithContexts(oneIssuePerLine); oneIssuePerLine .setDebtRemediationFunction(oneIssuePerLine.debtRemediationFunctions().linear("1min")) - .setGapDescription("It takes about 1 minute to an experienced software craftsman to remove a line of code"); + .setGapDescription("It takes about 1 minute to an experienced software craftsman to remove a line of code") + .addGenericConceptKeys("defense_in_depth", "least_trust_principle"); NewRule oneQuickFixPerLine = repo.createRule(OneQuickFixPerLineSensor.RULE_KEY).setName("One Quick Fix Per Line") .setTags("line"); |