Skip to content

Commit 1e08ad4

Browse files
Calixteromani
authored andcommitted
Issue #216: update to Checkstyle 8.30
1 parent fbaf532 commit 1e08ad4

File tree

8 files changed

+14
-4
lines changed

8 files changed

+14
-4
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.29-all.jar" sourcepath="checkstyle-checkstyle-8.29.zip"/>
3+
<classpathentry exported="true" kind="lib" path="checkstyle-8.30-all.jar" sourcepath="checkstyle-checkstyle-8.30.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.29.0"
4848
Bundle-ClassPath: .,
49-
checkstyle-8.29-all.jar
49+
checkstyle-8.30-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.29-all.jar
4+
checkstyle-8.30-all.jar
55
jars.compile.order = .
66
source.. = metadata/

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
</property-metadata>
8787
<message-key key="noNewlineAtEOF"/>
8888
<message-key key="unable.open"/>
89+
<message-key key="wrong.line.end"/>
8990
</rule-metadata>
9091

9192
<rule-metadata name="%OrderedProperties.name" internal-name="OrderedProperties" parent="Checker">

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
21
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.
32
ArrayTrailingComma.name = Trailing Array Comma
43

4+
AvoidDoubleBraceInitialization.desc = Detects double brace initialization.
5+
AvoidDoubleBraceInitialization.name = Avoid Double Brace Initialization
6+
57
AvoidInlineConditionals.desc = Detects inline conditionals. An example inline conditional is this:\r\n<pre>\r\nString a = getParameter("a");\r\nString b = (a==null || a.length<1) ? null : a.substring(1);\r\n</pre>\r\nRationale: Some developers find inline conditionals hard to read, so their company's coding standards forbids them.
68
AvoidInlineConditionals.name = Avoid Inline Conditionals
79

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
<checkstyle-metadata>
66
<rule-group-metadata name="%Coding.group" priority="900">
77

8+
<rule-metadata name="%AvoidDoubleBraceInitialization.name" internal-name="AvoidDoubleBraceInitialization"
9+
parent="TreeWalker">
10+
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.coding.AvoidDoubleBraceInitializationCheck" />
11+
<description>%AvoidDoubleBraceInitialization.desc</description>
12+
<message-key key="avoid.double.brace.init" />
13+
</rule-metadata>
14+
815
<rule-metadata name="%AvoidInlineConditionals.name" internal-name="AvoidInlineConditionals"
916
parent="TreeWalker">
1017
<alternative-name internal-name="com.puppycrawl.tools.checkstyle.checks.coding.AvoidInlineConditionalsCheck" />

0 commit comments

Comments
 (0)