Skip to content

Commit

Permalink
Issue #93: upgrade to checkstyle 7.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
romani committed Apr 8, 2017
1 parent 7bccf25 commit 313982f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This plugin provides coding rules from [Checkstyle](http://checkstyle.sourceforg

Checkstyle Plugin|Sonar|Checkstyle|Jdk
-----------------|-----|----------|---
3.6.1|5.6.6|7.6.1|1.8
3.6|5.6.4|7.6|1.8
3.5.1|5.6.4|7.5.1|1.8
3.5|5.6.4|7.5|1.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.naming.AbstractClassNameC
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.naming.AbstractClassNameCheck.param.format=Regular expression
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.MissingCtorCheck.name=Missing Constructor
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.PackageDeclarationCheck.name=Package Declaration
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.PackageDeclarationCheck.param.matchDirectoryStructure=Whether to check for directory and package name match.
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck.name=JavaNCSS
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck.param.classMaximum=the maximum allowed number of non commenting lines in a class. Default is 1500.
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck.param.methodMaximum=the maximum allowed number of non commenting lines in a method. Default is 50.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,10 @@
<name><![CDATA[Package Declaration]]></name>
<configKey><![CDATA[Checker/TreeWalker/PackageDeclaration]]></configKey>
<status>READY</status>
<cardinality>MULTIPLE</cardinality>
<param key="matchDirectoryStructure" type="BOOLEAN">
<defaultValue>true</defaultValue>
</param>
</rule>

<rule key="com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck">
Expand Down Expand Up @@ -1309,8 +1313,8 @@
<param key="option" type="s[nospace,space]">
<defaultValue>nospace</defaultValue>
</param>
<param key="tokens" type="s[ANNOTATION,ANNOTATION_FIELD_DEF,CTOR_CALL,CTOR_DEF,ENUM_CONSTANT_DEF,EXPR,LITERAL_CATCH,LITERAL_DO,LITERAL_FOR,LITERAL_IF,LITERAL_NEW,LITERAL_SWITCH,LITERAL_SYNCHRONIZED,LITERAL_WHILE,METHOD_CALL,METHOD_DEF,QUESTION,RESOURCE_SPECIFICATION,SUPER_CTOR_CALL]">
<defaultValue>ANNOTATION,ANNOTATION_FIELD_DEF,CTOR_CALL,CTOR_DEF,ENUM_CONSTANT_DEF,EXPR,LITERAL_CATCH,LITERAL_DO,LITERAL_FOR,LITERAL_IF,LITERAL_NEW,LITERAL_SWITCH,LITERAL_SYNCHRONIZED,LITERAL_WHILE,METHOD_CALL,METHOD_DEF,QUESTION,RESOURCE_SPECIFICATION,SUPER_CTOR_CALL</defaultValue>
<param key="tokens" type="s[ANNOTATION,ANNOTATION_FIELD_DEF,CTOR_CALL,CTOR_DEF,ENUM_CONSTANT_DEF,EXPR,LITERAL_CATCH,LITERAL_DO,LITERAL_FOR,LITERAL_IF,LITERAL_NEW,LITERAL_SWITCH,LITERAL_SYNCHRONIZED,LITERAL_WHILE,METHOD_CALL,METHOD_DEF,QUESTION,RESOURCE_SPECIFICATION,SUPER_CTOR_CALL,LAMBDA]">
<defaultValue>ANNOTATION,ANNOTATION_FIELD_DEF,CTOR_CALL,CTOR_DEF,ENUM_CONSTANT_DEF,EXPR,LITERAL_CATCH,LITERAL_DO,LITERAL_FOR,LITERAL_IF,LITERAL_NEW,LITERAL_SWITCH,LITERAL_SYNCHRONIZED,LITERAL_WHILE,METHOD_CALL,METHOD_DEF,QUESTION,RESOURCE_SPECIFICATION,SUPER_CTOR_CALL,LAMBDA</defaultValue>
</param>
</rule>

Expand Down Expand Up @@ -1845,8 +1849,8 @@
<priority>MAJOR</priority>
<configKey><![CDATA[Checker/TreeWalker/NoLineWrap]]></configKey>
<cardinality>MULTIPLE</cardinality>
<param key="tokens" type="s[IMPORT,PACKAGE_DEF,CLASS_DEF,METHOD_DEF,CTOR_DEF,ENUM_DEF,INTERFACE_DEF]">
<defaultValue>PACKAGE_DEF,IMPORT</defaultValue>
<param key="tokens" type="s[IMPORT,STATIC_IMPORT,PACKAGE_DEF,CLASS_DEF,METHOD_DEF,CTOR_DEF,ENUM_DEF,INTERFACE_DEF]">
<defaultValue>PACKAGE_DEF,IMPORT,STATIC_IMPORT</defaultValue>
</param>
</rule>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</ciManagement>

<properties>
<checkstyle.version>7.6</checkstyle.version>
<checkstyle.version>7.6.1</checkstyle.version>
<sonar.version>5.6.6</sonar.version>
<sonar-java.version>3.7</sonar-java.version>
<java.version>1.8</java.version>
Expand Down

0 comments on commit 313982f

Please sign in to comment.