Skip to content

Commit 843aa58

Browse files
Calixteromani
authored andcommitted
Issue #163: update to Checkstyle 8.22
1 parent 6704320 commit 843aa58

File tree

11 files changed

+48
-3
lines changed

11 files changed

+48
-3
lines changed

net.sf.eclipsecs.checkstyle/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry exported="true" kind="lib" path="checkstyle-8.21-all.jar" sourcepath="checkstyle-checkstyle-8.21.zip"/>
3+
<classpathentry exported="true" kind="lib" path="checkstyle-8.22-all.jar" sourcepath="checkstyle-checkstyle-8.22.zip"/>
44
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
55
<attributes>
66
<attribute name="maven.pomderived" value="true"/>

net.sf.eclipsecs.checkstyle/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ Export-Package: .,
4646
com.puppycrawl.tools.checkstyle.utils,
4747
org.apache.commons.beanutils;version="8.21.0"
4848
Bundle-ClassPath: .,
49-
checkstyle-8.21-all.jar
49+
checkstyle-8.22-all.jar
5050
Automatic-Module-Name: net.sf.eclipsecs.checkstyle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
bin.includes = META-INF/,\
22
.,\
33
license/,\
4-
checkstyle-8.21-all.jar
4+
checkstyle-8.22-all.jar
55
jars.compile.order = .
66
source.. = metadata/

net.sf.eclipsecs.checkstyle/metadata/com/puppycrawl/tools/checkstyle/checks/checkstyle-metadata.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ NewlineAtEndOfFile.fileExtensions = file type extension of the files to check.
2626
NewlineAtEndOfFile.lineSeparator = type of line separator
2727
NewlineAtEndOfFile.name = New Line At End Of File
2828

29+
OrderedProperties.name = Ordered Properties
30+
OrderedProperties.desc = Detects if keys in properties files are in correct order.
31+
OrderedProperties.fileExtensions = Specify file type extension of the files to check.
32+
2933
TodoComment.desc = A check for TODO: comments. Actually it is a generic regular expression matcher on Java comments. To check for other patterns in Java comments, set property format.
3034
TodoComment.format = Regular expression definging pattern to look for.
3135
TodoComment.name = Todo Comment

net.sf.eclipsecs.checkstyle/metadata/com/puppycrawl/tools/checkstyle/checks/checkstyle-metadata.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@
8888
<message-key key="unable.open"/>
8989
</rule-metadata>
9090

91+
<rule-metadata name="%OrderedProperties.name" internal-name="OrderedProperties" parent="Checker">
92+
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.OrderedPropertiesCheck"/>
93+
<description>%OrderedProperties.desc</description>
94+
<property-metadata name="fileExtensions" datatype="String" default-value="properties">
95+
<description>%OrderedProperties.fileExtensions</description>
96+
</property-metadata>
97+
<message-key key="properties.notSorted.property"/>
98+
<message-key key="unable.open.cause"/>
99+
</rule-metadata>
100+
91101
<rule-metadata name="%TodoComment.name" internal-name="TodoComment" parent="TreeWalker">
92102
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.TodoCommentCheck"/>
93103
<description>%TodoComment.desc</description>

net.sf.eclipsecs.checkstyle/metadata/com/puppycrawl/tools/checkstyle/checks/coding/checkstyle-metadata.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,13 @@ UnnecessaryParentheses.desc = Checks for the use of unnecessary parentheses.
176176
UnnecessaryParentheses.name = Unnecessary Parentheses
177177
UnnecessaryParentheses.tokens = tokens to check
178178
179+
UnnecessarySemicolonInEnumeration.desc = Checks if unnecessary semicolon is in enum definitions.
180+
UnnecessarySemicolonInEnumeration.name = Unnecessary semicolon in enumeration
181+
182+
UnnecessarySemicolonInTryWithResources.desc = Checks for the use of unnecessary semicolon in try with resource.
183+
UnnecessarySemicolonInTryWithResources.name = Unnecessary semicolon in try with resource
184+
UnnecessarySemicolonInTryWithResources.allowWhenNoBraceAfterSemicolon = Allow unnecessary semicolon if closing paren is not on the same line.
185+
179186
OneStatementPerLine.name = One Statement Per Line
180187
OneStatementPerLine.desc = Checks there is only one statement per line. The following line will be flagged as an error:<br/><code>x = 1; y = 2; // Two statements on a single line.</code>
181188

net.sf.eclipsecs.checkstyle/metadata/com/puppycrawl/tools/checkstyle/checks/coding/checkstyle-metadata.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,21 @@
533533
<message-key key="unnecessary.paren.lambda" />
534534
</rule-metadata>
535535

536+
<rule-metadata name="%UnnecessarySemicolonInEnumeration.name" internal-name="UnnecessarySemicolonInEnumeration" parent="TreeWalker">
537+
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.coding.UnnecessarySemicolonInEnumerationCheck" />
538+
<description>%UnnecessarySemicolonInEnumeration.desc</description>
539+
<message-key key="unnecessary.semicolon" />
540+
</rule-metadata>
541+
542+
<rule-metadata name="%UnnecessarySemicolonInTryWithResources.name" internal-name="UnnecessarySemicolonInTryWithResources" parent="TreeWalker">
543+
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.coding.UnnecessarySemicolonInTryWithResourcesCheck" />
544+
<description>%UnnecessarySemicolonInTryWithResources.desc</description>
545+
<property-metadata name="allowWhenNoBraceAfterSemicolon" datatype="Boolean" default-value="true">
546+
<description>%UnnecessarySemicolonInTryWithResources.allowWhenNoBraceAfterSemicolon</description>
547+
</property-metadata>
548+
<message-key key="unnecessary.semicolon" />
549+
</rule-metadata>
550+
536551
<rule-metadata name="%OneStatementPerLine.name" internal-name="OneStatementPerLine" parent="TreeWalker">
537552
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.coding.OneStatementPerLineCheck" />
538553
<description>%OneStatementPerLine.desc</description>

net.sf.eclipsecs.checkstyle/metadata/com/puppycrawl/tools/checkstyle/checks/javadoc/checkstyle-metadata.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ MissingJavadocMethod.allowMissingPropertyJavadoc = Control whether to allow miss
6363
MissingJavadocMethod.ignoreMethodNamesRegex = ignore method whose names are matching specified regex.
6464
MissingJavadocMethod.tokens = tokens to check
6565
66+
MissingJavadocPackage.name = Missing Javadoc Package
67+
MissingJavadocPackage.desc = Checks for missing Javadoc comments in package-info.java files.
68+
6669
MissingJavadocType.name = Missing Javadoc Type
6770
MissingJavadocType.desc = Checks for missing Javadoc comments for class, enum, interface, and annotation interface definitions. The scope to verify is specified using the Scope class and defaults to Scope.PUBLIC. To verify another scope, set property scope to one of the Scope constants.
6871
MissingJavadocType.scope = specify the visibility scope where Javadoc comments are checked.

0 commit comments

Comments
 (0)