Skip to content

Commit 746090b

Browse files
committed
Issue #118: reference filefilters in filters sonar preferences
1 parent 9bb7c76 commit 746090b

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

checkstyle-sonar-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstylePlugin.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ public final class CheckstylePlugin extends SonarPlugin {
3232

3333
private static final String CHECKSTYLE_SUB_CATEGORY_NAME = "Checkstyle";
3434

35+
private static final String CHECKER_FILTERS_DESCRIPTION = "Checkstyle supports"
36+
+ " <a href=\"http://checkstyle.sourceforge.net/config_filefilters.html\">file filter"
37+
+ "</a> and several "
38+
+ "<a href=\"http://checkstyle.sourceforge.net/config_filters.html\">"
39+
+ "violation filtering mechanisms</a>: "
40+
+ "This property allows the configuration of those filters with a "
41+
+ "native XML format. See the "
42+
+ "<a href='http://checkstyle.sourceforge.net/config.html'>"
43+
+ "Checkstyle</a> "
44+
+ "configuration for more information.";
45+
3546
@SuppressWarnings("rawtypes")
3647
@Override
3748
public List getExtensions() {
@@ -42,17 +53,7 @@ public List getExtensions() {
4253
.category(CoreProperties.CATEGORY_JAVA)
4354
.subCategory(CHECKSTYLE_SUB_CATEGORY_NAME)
4455
.name("Filters")
45-
.description(
46-
"Checkstyle supports four error filtering mechanisms: "
47-
+ "<code>SuppressionCommentFilter</code>, "
48-
+ "<code>SuppressWithNearbyCommentFilter</code>, "
49-
+ "<code>SuppressionFilter</code>,"
50-
+ " and <code>SuppressWarningsFilter</code>."
51-
+ "This property allows the configuration of those filters with a "
52-
+ "native XML format. See the "
53-
+ "<a href='http://checkstyle.sourceforge.net/config.html'>"
54-
+ "Checkstyle</a> "
55-
+ "configuration for more information.")
56+
.description(CHECKER_FILTERS_DESCRIPTION)
5657
.type(PropertyType.TEXT)
5758
.onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE).build(),
5859
PropertyDefinition.builder(CheckstyleConfiguration.PROPERTY_GENERATE_XML)

0 commit comments

Comments
 (0)