Skip to content

Commit 5ba7a65

Browse files
BananeweizenCalixte
authored andcommitted
Issue #232: update to Checkstyle 8.33
1 parent 9d473b4 commit 5ba7a65

File tree

9 files changed

+19
-5
lines changed

9 files changed

+19
-5
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.32-all.jar" sourcepath="checkstyle-checkstyle-8.32.zip"/>
3+
<classpathentry exported="true" kind="lib" path="checkstyle-8.33-all.jar" sourcepath="checkstyle-checkstyle-8.33.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.32.0"
4848
Bundle-ClassPath: .,
49-
checkstyle-8.32-all.jar
49+
checkstyle-8.33-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.32-all.jar
4+
checkstyle-8.33-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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,7 @@ UniqueProperties.fileExtensions = file type extension of the files to check.
6868

6969
SuppressWarningsHolder.name = SuppressWarningsHolder
7070
SuppressWarningsHolder.desc = Maintains a set of check suppressions from {@link SuppressWarnings} annotations.
71-
SuppressWarningsHolder.aliasList = the list of comma-separated alias assignments
71+
SuppressWarningsHolder.aliasList = the list of comma-separated alias assignments
72+
73+
NoCodeInFile.name = No Code In File
74+
NoCodeInFile.desc = Checks whether file contains code.<br/><br/>Files which are considered to have no code: <ul><li>Files with no text</li><li>Files with only single line or multi-line comment(s)</li></ul>

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,12 @@
196196
<alternative-name
197197
internal-name="com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder"/>
198198
</rule-metadata>
199+
200+
<rule-metadata name="%NoCodeInFile.name" internal-name="NoCodeInFile" parent="TreeWalker">
201+
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.NoCodeInFileCheck"/>
202+
<description>%NoCodeInFile.desc</description>
203+
<message-key key="nocode.in.file"/>
204+
</rule-metadata>
205+
199206
</rule-group-metadata>
200207
</checkstyle-metadata>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ArrayTrailingComma.desc = Checks that array initialization contains a trailing comma.\r\n<pre>\r\nint[] a = new int[]\r\n{\r\n 1,\r\n 2,\r\n 3,\r\n};\r\n</pre>\r\nThe check allows to not add a comma if both left and right curlys are on the same line.\r\n<pre>\r\nreturn new int[] { 0 };\r\n</pre>\r\nRationale: Putting this comma in makes it easier to change the order of the elements or add new elements on the end.
22
ArrayTrailingComma.name = Trailing Array Comma
3+
ArrayTrailingComma.alwaysDemandTrailingComma = Control whether to always check for a trailing comma, even when an array is inline.
34

45
AvoidDoubleBraceInitialization.desc = Detects double brace initialization.
56
AvoidDoubleBraceInitialization.name = Avoid Double Brace Initialization
@@ -215,4 +216,4 @@ VariableDeclarationUsageDistance.validateBetweenScopes = Allows to calculate the
215216
VariableDeclarationUsageDistance.ignoreFinal = Allows to ignore variables with a 'final' modifier.
216217
217218
OverloadMethodsDeclarationOrder.name = Overload Methods Declaration Order
218-
OverloadMethodsDeclarationOrder.desc = Checks that overload methods are grouped together.
219+
OverloadMethodsDeclarationOrder.desc = Checks that overload methods are grouped together.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,9 @@
518518
<rule-metadata name="%ArrayTrailingComma.name" internal-name="ArrayTrailingComma" parent="TreeWalker">
519519
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.coding.ArrayTrailingCommaCheck" />
520520
<description>%ArrayTrailingComma.desc</description>
521+
<property-metadata name="alwaysDemandTrailingComma" datatype="Boolean" default-value="false">
522+
<description>%ArrayTrailingComma.alwaysDemandTrailingComma</description>
523+
</property-metadata>
521524
<message-key key="array.trailing.comma" />
522525
</rule-metadata>
523526

0 commit comments

Comments
 (0)