diff options
author | Zipeng WU <zipeng.wu@sonarsource.com> | 2022-08-23 12:00:38 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-08-23 20:03:04 +0000 |
commit | 903624e1b3eb08402ad803ab15963dc10fbf4367 (patch) | |
tree | 25dcf50bc404623efdfc6e6c3139ee4e82662227 /plugins/sonar-xoo-plugin | |
parent | c9fb60ec6c7c7b1625e6da53268c7eaa21526d70 (diff) | |
download | sonarqube-903624e1b3eb08402ad803ab15963dc10fbf4367.tar.gz sonarqube-903624e1b3eb08402ad803ab15963dc10fbf4367.zip |
Comply key validation of sonar-plugin-api
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java | 6 |
1 files changed, 3 insertions, 3 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 964aceba411..399e70c9d70 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 @@ -48,7 +48,7 @@ import static org.sonar.api.server.rule.RulesDefinition.OwaspTop10Version.Y2021; */ public class XooRulesDefinition implements RulesDefinition { - public static final String[] AVAILABLE_CONTEXTS = {"JavaScript", "JQuery", "Express.js", "React", "Axios"}; + public static final String[] AVAILABLE_CONTEXTS = {"javascript", "jquery", "express_js", "react", "axios"}; public static final String XOO_REPOSITORY = "xoo"; public static final String XOO2_REPOSITORY = "xoo2"; @@ -95,7 +95,7 @@ public class XooRulesDefinition implements RulesDefinition { NewRule hasTag = repo.createRule(HasTagSensor.RULE_KEY).setName("Has Tag") .setActivatedByDefault(true) - .addDescriptionSection(howToFixSectionWithContext("singleContext")); + .addDescriptionSection(howToFixSectionWithContext("single_context")); addDescriptionSectionsWithoutContexts(hasTag, "Search for a given tag in Xoo files"); hasTag @@ -262,7 +262,7 @@ public class XooRulesDefinition implements RulesDefinition { .setName("Find security hotspots, how_to_fix with single context") .setType(RuleType.SECURITY_HOTSPOT) .setActivatedByDefault(false) - .addDescriptionSection(howToFixSectionWithContext("singleContext")); + .addDescriptionSection(howToFixSectionWithContext("single_context")); addDescriptionSectionsWithoutContexts(hotspotWithSingleContext, "Search for Security Hotspots with single context in Xoo files"); repo.done(); |