diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-16 17:54:06 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-16 17:54:06 +0200 |
commit | 6ec644e6592181d7e857b2c562aa823e42aa8103 (patch) | |
tree | cdd86721f87a6c2d0f466d719451f6d757e00914 /plugins | |
parent | ecb83f2ff5c395cb0ec7d335e536e75328efd792 (diff) | |
download | sonarqube-6ec644e6592181d7e857b2c562aa823e42aa8103.tar.gz sonarqube-6ec644e6592181d7e857b2c562aa823e42aa8103.zip |
SONAR-5001 Show use of Markdown in "private" Xoo plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java | 4 | ||||
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java | 2 |
2 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 c58e3961afd..1b7ff74e0e7 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 @@ -40,7 +40,7 @@ public class XooRulesDefinition implements RulesDefinition { // can be loaded from JSON or XML files too. NewRule x1Rule = repository.createRule("x1") .setName("No empty line") - .setHtmlDescription("Generate an issue on empty lines of Xoo source files") + .setMarkdownDescription("Generate an issue on *empty* lines of Xoo source files") // optional tags .setTags("style", "security") @@ -60,7 +60,7 @@ public class XooRulesDefinition implements RulesDefinition { x1Rule.createParam("acceptWhitespace") .setDefaultValue("false") .setType(RuleParamType.BOOLEAN) - .setDescription("Accept whitespaces on the line"); + .setDescription("Accept whitespaces (``\\s|\\t``) on the line"); // don't forget to call done() to finalize the definition repository.done(); diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java index cf96e6bf211..184e8d47074 100644 --- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java +++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java @@ -42,7 +42,7 @@ public class XooRulesDefinitionTest { RulesDefinition.Rule x1 = repo.rule("x1"); assertThat(x1.key()).isEqualTo("x1"); assertThat(x1.tags()).containsOnly("style", "security"); - assertThat(x1.htmlDescription()).isNotEmpty(); + assertThat(x1.markdownDescription()).isNotEmpty(); assertThat(x1.debtSubCharacteristic()).isEqualTo(RulesDefinition.SubCharacteristics.INTEGRATION_TESTABILITY); assertThat(x1.debtRemediationFunction().type()).isEqualTo(DebtRemediationFunction.Type.LINEAR_OFFSET); |