aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-checkstyle-plugin
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-23 10:33:38 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-23 10:33:38 +0100
commit8772a07e5a27f5858ed438d32f717c36d2307e3f (patch)
treeff1ad4ab77d3592578c2c7b99a4a409ce1b4f0ac /plugins/sonar-checkstyle-plugin
parent1d13e3d54fc40b7f45f61adb22bdebd1ac978f90 (diff)
downloadsonarqube-8772a07e5a27f5858ed438d32f717c36d2307e3f.tar.gz
sonarqube-8772a07e5a27f5858ed438d32f717c36d2307e3f.zip
Improve description of the Checkstyle rule "Trailing Comment"
Diffstat (limited to 'plugins/sonar-checkstyle-plugin')
-rw-r--r--plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml
index 37c17e03d5f..35c03296e42 100644
--- a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml
+++ b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml
@@ -1427,13 +1427,14 @@
<priority>MINOR</priority>
<name><![CDATA[Trailing Comment]]></name>
<configKey><![CDATA[Checker/TreeWalker/TrailingComment]]></configKey>
-
-
- <param key="format" type="r">
-
+ <param>
+ <key>format</key>
+ <type>r</type>
+ <defaultValue>^[\\s\\}\\);]*$</defaultValue>
</param>
- <param key="legalComment" type="r">
-
+ <param>
+ <key>legalComment</key>
+ <type>r</type>
</param>
</rule>