Skip to content

Commit 2f98fec

Browse files
Calixteromani
authored andcommitted
Issue #164: update to Checkstyle 8.23
1 parent 6907a2f commit 2f98fec

File tree

11 files changed

+53
-3
lines changed

11 files changed

+53
-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.22-all.jar" sourcepath="checkstyle-checkstyle-8.22.zip"/>
3+
<classpathentry exported="true" kind="lib" path="checkstyle-8.23-all.jar" sourcepath="checkstyle-checkstyle-8.23.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.22.0"
4848
Bundle-ClassPath: .,
49-
checkstyle-8.22-all.jar
49+
checkstyle-8.23-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.22-all.jar
4+
checkstyle-8.23-all.jar
55
jars.compile.order = .
66
source.. = metadata/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ MagicNumber.name = Magic Number
9797
MagicNumber.tokens = Tokens to check.
9898
MagicNumber.ignoreHashCodeMethod = Ignore magic numbers in hashCode methods.
9999
MagicNumber.ignoreAnnotation = Ignore magic numbers in annotation declarations.
100+
MagicNumber.ignoreAnnotationElementDefaults = Ignore magic numbers in annotation elements defaults.
100101
MagicNumber.ignoreFieldDeclaration = Ignore magic numbers in field declarations.
101102
MagicNumber.constantWaiverParentToken = Token that are allowed in the AST path from the number literal to the enclosing constant definition.
102103
@@ -185,6 +186,7 @@ UnnecessarySemicolonInTryWithResources.allowWhenNoBraceAfterSemicolon = Allow un
185186
186187
OneStatementPerLine.name = One Statement Per Line
187188
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>
189+
OneStatementPerLine.treatTryResourcesAsStatement = Enable resources processing.
188190
189191
VariableDeclarationUsageDistance.name = Variable Declaration Usage Distance
190192
VariableDeclarationUsageDistance.desc = Checks the distance between declaration of variable and its first usage.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@
298298
<property-metadata name="ignoreAnnotation" datatype="Boolean" default-value="false">
299299
<description>%MagicNumber.ignoreAnnotation</description>
300300
</property-metadata>
301+
<property-metadata name="ignoreAnnotationElementDefaults" datatype="Boolean" default-value="true">
302+
<description>%MagicNumber.ignoreAnnotationElementDefaults</description>
303+
</property-metadata>
301304
<property-metadata name="ignoreFieldDeclaration" datatype="Boolean" default-value="false">
302305
<description>%MagicNumber.ignoreFieldDeclaration</description>
303306
</property-metadata>
@@ -551,6 +554,9 @@
551554
<rule-metadata name="%OneStatementPerLine.name" internal-name="OneStatementPerLine" parent="TreeWalker">
552555
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.coding.OneStatementPerLineCheck" />
553556
<description>%OneStatementPerLine.desc</description>
557+
<property-metadata name="treatTryResourcesAsStatement" datatype="Boolean" default-value="false">
558+
<description>%OneStatementPerLine.treatTryResourcesAsStatement</description>
559+
</property-metadata>
554560
<message-key key="multiple.statements.line" />
555561
</rule-metadata>
556562

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
@@ -102,6 +102,9 @@ AtclauseOrder.target = allows to specify targets to check @-clauses.
102102
AtclauseOrder.tagOrder = allows to specify the order by tags.
103103
AtclauseOrder.violateExecutionOnNonTightHtml = This property determines if a check should log a violation upon encountering javadoc with non-tight html
104104
105+
InvalidJavadocPosition.name = Invalid Javadoc Position
106+
InvalidJavadocPosition.desc = Checks that Javadocs are located at the correct position.
107+
105108
JavadocParagraph.name = Javadoc Paragraph
106109
JavadocParagraph.desc=Checks that:<ul><li>There is one blank line between each of two paragraphs and one blank line before the at-clauses block if it is present.</li><li>Each paragraph but the first has &lt;p&gt; immediately before the first word, with no space after.</li></ul>
107110
JavadocParagraph.allowNewlineParagraph= whether the <p> tag should be placed immediately before the first word

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@
392392
<message-key key="javadoc.wrong.singleton.html.tag" />
393393
</rule-metadata>
394394

395+
<rule-metadata name="%InvalidJavadocPosition.name" internal-name="InvalidJavadocPosition" parent="TreeWalker">
396+
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.javadoc.InvalidJavadocPositionCheck" />
397+
<description>%InvalidJavadocPosition.desc</description>
398+
<message-key key="invalid.position" />
399+
</rule-metadata>
400+
395401
<rule-metadata name="%JavadocParagraph.name" internal-name="JavadocParagraph" parent="TreeWalker">
396402
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocParagraphCheck" />
397403
<description>%JavadocParagraph.desc</description>

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ SuppressWithPlainTextCommentFilter.onCommentFormat = comment pattern to trigger
3939
SuppressWithPlainTextCommentFilter.checkFormat = check pattern to suppress.
4040
SuppressWithPlainTextCommentFilter.messageFormat = message pattern to suppress.
4141

42+
SuppressionSingleFilter.name = Suppression Single Filter
43+
SuppressionSingleFilter.desc = Filter <code>SuppressionSingleFilter</code> suppresses audit events for Checks violations in the specified file, class, checks, message, module id, lines, and columns.
44+
SuppressionSingleFilter.files = Define the RegExp for matching against the file name associated with an audit event.
45+
SuppressionSingleFilter.checks = Define the RegExp for matching against the name of the check associated with an audit event.
46+
SuppressionSingleFilter.message = Define the RegExp for matching against the message of the check associated with an audit event.
47+
SuppressionSingleFilter.id = Specify a string matched against the ID of the check associated with an audit event.
48+
SuppressionSingleFilter.lines = Specify a comma-separated list of values, where each value is an integer or a range of integers denoted by integer-integer.
49+
SuppressionSingleFilter.columns = Specify a comma-separated list of values, where each value is an integer or a range of integers denoted by integer-integer.
50+
4251
SuppressionXpathFilter.name = Suppression Xpath Filter
4352
SuppressionXpathFilter.desc = Filter SuppressionXpathFilter works as SuppressionFilter. Additionally, filter processes suppress-xpath elements, which contains xpath-expressions. Xpath-expressions are queries for suppressed nodes inside the AST tree.
4453
SuppressionXpathFilter.file = the location of the suppressions XML document file. The order the location is checked is:<ol><li>as a filesystem location</li><li>if no file found, and the location starts with either http:// or https://, then it is interpreted as a URL</li><li>if no file found, then passed to the ClassLoader.getResource() method.</li></ol>

0 commit comments

Comments
 (0)