diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2022-07-06 17:26:32 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-12 14:30:04 +0000 |
commit | 72f42f71246601936ee5cea352f587b0e8da6640 (patch) | |
tree | 4d9706a35ca6efd003d173e4109cf04595b748f8 /plugins/sonar-xoo-plugin/src | |
parent | 18569e66e3e903aa63d2293def45a7c92b102de9 (diff) | |
download | sonarqube-72f42f71246601936ee5cea352f587b0e8da6640.tar.gz sonarqube-72f42f71246601936ee5cea352f587b0e8da6640.zip |
SONAR-16598 Populate Generic concepts from sonar-plugin api
(cherry picked from commit 1d1feb6ab5dcf0d89f63ec0e1c67778f22da0978)
Diffstat (limited to 'plugins/sonar-xoo-plugin/src')
-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 6656e760034..17860487d38 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 @@ -119,7 +119,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"); |