Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to checkstyle 8.18 #197

Merged
merged 2 commits into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Compatibility matrix from checkstyle team:

Checkstyle Plugin|Sonar|Checkstyle|Jdk
-----------------|-----|----------|---
4.18|6.7 |8.18|1.8
4.17|6.7 |8.17|1.8
4.16|5.6.6|8.16|1.8
4.15|5.6.6|8.15|1.8
Expand Down
2 changes: 1 addition & 1 deletion checkstyle-sonar-plugin/config/import-control-test.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE import-control PUBLIC
"-//Puppy Crawl//DTD Import Control 1.3//EN"
"http://checkstyle.sourceforge.net/dtds/import_control_1_3.dtd">
"https://checkstyle.org/dtds/import_control_1_3.dtd">

<import-control pkg="org.sonar.plugins.checkstyle">

Expand Down
2 changes: 1 addition & 1 deletion checkstyle-sonar-plugin/config/import-control.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE import-control PUBLIC
"-//Puppy Crawl//DTD Import Control 1.2//EN"
"http://checkstyle.sourceforge.net/dtds/import_control_1_2.dtd">
"https://checkstyle.org/dtds/import_control_1_2.dtd">

<import-control pkg="com.github.sevntu.checkstyle">

Expand Down
2 changes: 1 addition & 1 deletion checkstyle-sonar-plugin/config/sevntu_suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
"https://checkstyle.org/dtds/suppressions_1_1.dtd">

<suppressions>
<!-- START of legacy code, all violations will be resolved during transition to main project -->
Expand Down
2 changes: 1 addition & 1 deletion checkstyle-sonar-plugin/config/suppressions-xpath.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions Xpath Experimental 1.2//EN"
"http://checkstyle.sourceforge.net/dtds/suppressions_1_2_xpath_experimental.dtd">
"https://checkstyle.org/dtds/suppressions_1_2_xpath_experimental.dtd">

<suppressions>

Expand Down
2 changes: 1 addition & 1 deletion checkstyle-sonar-plugin/config/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
"https://checkstyle.org/dtds/suppressions_1_1.dtd">

<suppressions>
<!-- START of legacy code, all violations will be resolved during transition to main project -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class CheckstyleProfileExporter extends ProfileExporter {

public static final String DOCTYPE_DECLARATION =
"<!DOCTYPE module PUBLIC \"-//Puppy Crawl//DTD Check Configuration 1.2//EN\" "
+ "\"http://www.puppycrawl.com/dtds/configuration_1_2.dtd\">";
+ "\"https://checkstyle.org/dtds/configuration_1_2.dtd\">";
private static final String CLOSE_MODULE = "</module>";

private final Configuration configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class CheckstyleProfileImporter extends ProfileImporter {
"SuppressWarningsFilter",
"SuppressionCommentFilter",
"SuppressWithNearbyCommentFilter",
"SuppressionXpathSingleFilter",
};
private final RuleFinder ruleFinder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.n
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.param.ignoredMethodNames=methods that should not be checked
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.param.illegalClassNames=classes that should not be used as types in variable declarations, return values or parameters.
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.param.legalAbstractClassNames=abstract classes that may be used as types.
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.param.format=pattern for illegal class name
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.param.illegalAbstractClassNameFormat=pattern for illegal class name
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.param.memberModifiers=Methods and fields with only corresponding modifiers (comma separated). Available options are: LITERAL_PUBLIC, LITERAL_PROTECTED, LITERAL_PRIVATE, ABSTRACT, LITERAL_STATIC, FINAL, LITERAL_TRANSIENT, LITERAL_VOLATILE, LITERAL_SYNCHRONIZED, LITERAL_NATIVE, STRICTFP, ANNOTATION, LITERAL_DEFAULT
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.param.tokens=tokens to check
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck.param.validateAbstractClassNames=Whether to validate abstract class names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@
<param key="ignoredMethodNames" type="s{}">
<defaultValue>"getInitialContext,getEnvironment"</defaultValue>
</param>
<param key="format" type="REGULAR_EXPRESSION">
<param key="illegalAbstractClassNameFormat" type="REGULAR_EXPRESSION">
<defaultValue>^(.*[\\.])?Abstract.*$</defaultValue>
</param>
<!--
Expand Down Expand Up @@ -1938,7 +1938,7 @@
<param key="allowSamelineParameterizedAnnotation" type="BOOLEAN">
<defaultValue>false</defaultValue>
</param>
<param key="tokens" type="s[CLASS_DEF,INTERFACE_DEF,ENUM_DEF,METHOD_DEF,CTOR_DEF,VARIABLE_DEF,PARAMETER_DEF,ANNOTATION_DEF,TYPECAST,LITERAL_THROWS,IMPLEMENTS_CLAUSE,TYPE_ARGUMENT,LITERAL_NEW,DOT,ANNOTATION_FIELD_DEF]">
<param key="tokens" type="s[CLASS_DEF,INTERFACE_DEF,ENUM_DEF,METHOD_DEF,CTOR_DEF,VARIABLE_DEF,PARAMETER_DEF,ANNOTATION_DEF,ANNOTATION_FIELD_DEF]">
<defaultValue>CLASS_DEF,INTERFACE_DEF,ENUM_DEF,METHOD_DEF,CTOR_DEF,VARIABLE_DEF</defaultValue>
</param>
</rule>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd">
<!-- Generated by Sonar -->
<module name="Checker">
<module name="JavadocPackage">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd">
<!-- Generated by Sonar -->
<module name="Checker">
<module name="JavadocPackage">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd">
<!-- Generated by Sonar -->
<module name="Checker">
<module name="JavadocPackage">
Expand Down
2 changes: 1 addition & 1 deletion checkstyle-sonar-plugin/test-resources/checkstyle-conf.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd">
<!-- Generated by Sonar -->
<module name="Checker">
<module name="JavadocPackage">
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</ciManagement>

<properties>
<checkstyle.version>8.17</checkstyle.version>
<checkstyle.version>8.18</checkstyle.version>
<sonar.version>6.7</sonar.version>
<sonar-java.version>5.9.1.16423</sonar-java.version>
<java.version>1.8</java.version>
Expand Down