• R/O
  • SSH

JinArchiver: Commit

JinArchiverは、人狼BBSの過去ログを独自のXML形式でローカルディスクに保存するためのツールです。


Commit MetaInfo

Revisiond8e527c1335317cf9aa7b6b67e8ba925ef78646f (tree)
Time2017-04-10 23:01:20
Author <olyutorskii@user...>

Log Message

modify checkstyle rules

Change Summary

Incremental Difference

diff -r 03a8f8d6bafb -r d8e527c13353 checkstyle.xml
--- a/checkstyle.xml Mon Apr 10 22:32:29 2017 +0900
+++ b/checkstyle.xml Mon Apr 10 23:01:20 2017 +0900
@@ -5,9 +5,8 @@
55 "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
66
77 <!--
8- Checkstyle用チェック項目定義。
9-
10- Checkstyle 6.1 以降向けに記述。
8+ Checkstyle modules
9+ for Checkstyle 6.19(7.4) or later
1110
1211 [ http://checkstyle.sourceforge.net/ ]
1312
@@ -19,7 +18,9 @@
1918
2019 <property name="charset" value="UTF-8" />
2120 <property name="localeCountry" value="JP" />
22- <property name="localeLanguage" value="ja" />
21+ <property name="localeLanguage" value="en" />
22+ <!--property name="localeLanguage" value="ja" /-->
23+ <property name="fileExtensions" value="java, xml, properties" />
2324 <property name="severity" value="error" />
2425
2526
@@ -32,6 +33,10 @@
3233
3334
3435 <!-- Headers -->
36+ <module name="Header">
37+ <property name="header" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;" />
38+ <property name="fileExtensions" value="xml" />
39+ </module>
3540 <module name="RegexpHeader">
3641 <property name="header" value="^/\*$\n^ \*( .*)?$\n^ \*/$\n" />
3742 <property name="multiLines" value="2" />
@@ -55,7 +60,7 @@
5560 <module name="RegexpMultiline">
5661 <property name="format" value="[\u000b\f\u001a]" />
5762 </module>
58-<!--<module name="RegexpOnFilename" /> 6.15 or later -->
63+ <module name="RegexpOnFilename" />
5964 <module name="RegexpSingleline">
6065 <property name="format" value="\s+$" />
6166 </module>
@@ -66,9 +71,7 @@
6671
6772
6873 <!-- Size Violations -->
69- <module name="FileLength">
70- <property name="max" value="2000"/>
71- </module>
74+ <module name="FileLength" />
7275
7376
7477 <!-- Whitespace -->
@@ -78,6 +81,7 @@
7881 <module name="TreeWalker">
7982
8083 <property name="tabWidth" value="8"/>
84+ <property name="fileExtensions" value="java"/>
8185
8286
8387 <!-- Annotations -->
@@ -92,12 +96,13 @@
9296
9397
9498 <!-- Block Checks -->
99+
95100 <module name="AvoidNestedBlocks" />
96101 <module name="EmptyBlock" />
97-<!-- <module name="EmptyCatchBlock" /> 6.4 or later -->
102+ <module name="EmptyCatchBlock" />
98103 <module name="LeftCurly" />
99104 <module name="NeedBraces">
100- <property name="tokens" value="LITERAL_DO" />
105+ <property name="allowSingleLineStatement" value="true" />
101106 </module>
102107 <module name="RightCurly" />
103108
@@ -111,9 +116,7 @@
111116 <module name="InterfaceIsType" />
112117 <module name="MutableException" />
113118 <module name="OneTopLevelClass" />
114- <module name="ThrowsCount">
115- <property name="max" value="4" />
116- </module>
119+ <module name="ThrowsCount" />
117120 <module name="VisibilityModifier" />
118121
119122
@@ -133,6 +136,7 @@
133136 <module name="HiddenField">
134137 <property name="ignoreConstructorParameter" value="true" />
135138 <property name="ignoreSetter" value="true" />
139+ <property name="setterCanReturnItsClass" value="true" />
136140 <property name="ignoreAbstractMethods" value="true" />
137141 </module>
138142 <module name="IllegalCatch" />
@@ -141,11 +145,7 @@
141145 <module name="IllegalToken">
142146 <property name="tokens" value="LITERAL_NATIVE" />
143147 </module>
144- <module name="IllegalTokenText">
145- <property name="tokens" value="NUM_INT, NUM_LONG" />
146- <property name="format" value="^0_*[0-7]" />
147- <property name="message" value="inhibit octal number" />
148- </module>
148+ <module name="IllegalTokenText" />
149149 <module name="IllegalType" />
150150 <module name="InnerAssignment" />
151151 <module name="MagicNumber" />
@@ -154,9 +154,6 @@
154154 <module name="ModifiedControlVariable" />
155155 <module name="MultipleStringLiterals" />
156156 <module name="MultipleVariableDeclarations" />
157- <module name="SimplifyBooleanExpression" />
158- <module name="SimplifyBooleanReturn" />
159- <module name="StringLiteralEquality" />
160157 <module name="NestedForDepth" />
161158 <module name="NestedIfDepth" />
162159 <module name="NestedTryDepth" />
@@ -167,20 +164,16 @@
167164 <module name="PackageDeclaration" />
168165 <module name="ParameterAssignment" />
169166 <module name="RequireThis">
170- <property name="checkMethods" value="false" />
167+ <!--property name="checkMethods" value="false" /-->
171168 </module>
172- <module name="ReturnCount">
173- <property name="max" value="5" />
174- </module>
169+ <module name="ReturnCount" />
175170 <module name="SimplifyBooleanExpression" />
176171 <module name="SimplifyBooleanReturn" />
177172 <module name="StringLiteralEquality" />
178173 <module name="SuperClone" />
179174 <module name="SuperFinalize" />
180175 <module name="UnnecessaryParentheses" />
181- <module name="VariableDeclarationUsageDistance">
182- <property name="allowedDistance" value="5" />
183- </module>
176+ <module name="VariableDeclarationUsageDistance" />
184177
185178
186179 <!-- Imports -->
@@ -237,7 +230,7 @@
237230 <property name="allowIfAllCharactersEscaped" value="true"/>
238231 <property name="allowNonPrintableEscapes" value="true"/>
239232 </module>
240-<!-- <module name="CommentsIndentation" /> 6.10 or later -->
233+ <module name="CommentsIndentation" />
241234 <module name="DescendantToken" />
242235 <module name="FileContentsHolder" />
243236 <module name="FinalParameters" />
@@ -262,34 +255,19 @@
262255 <!-- Naming Conventions -->
263256
264257 <module name="AbbreviationAsWordInName" />
265- <module name="AbstractClassName">
266- <property
267- name="format"
268- value="^Abstract.*$|^.*Factory$|^.*Builder$|^.*Adapter$"
269- />
270- </module>
271-<!-- <module name="CatchParameterName" /> 6.14 or later -->
258+ <module name="AbstractClassName" />
259+ <module name="CatchParameterName" />
272260 <module name="ClassTypeParameterName" />
273261 <module name="ConstantName" />
274262 <module name="InterfaceTypeParameterName" />
275- <module name="LocalFinalVariableName">
276- <property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
277- </module>
278- <module name="LocalVariableName">
279- <property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
280- </module>
281- <module name="MemberName">
282- <property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
283- </module>
263+ <module name="LocalFinalVariableName" />
264+ <module name="LocalVariableName" />
265+ <module name="MemberName" />
284266 <module name="MethodName" />
285267 <module name="MethodTypeParameterName" />
286268 <module name="PackageName" />
287- <module name="ParameterName">
288- <property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
289- </module>
290- <module name="StaticVariableName">
291- <property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
292- </module>
269+ <module name="ParameterName" />
270+ <module name="StaticVariableName" />
293271 <module name="TypeName" />
294272
295273
@@ -359,32 +337,7 @@
359337 <property name="allowLineBreaks" value="false" />
360338 <property name="tokens" value="COMMA, POST_INC, POST_DEC" />
361339 </module>
362- <module name="NoWhitespaceBefore">
363- <property name="allowLineBreaks" value="true" />
364- <property name="tokens" value="SEMI" />
365- </module>
366- <module name="OperatorWrap">
367- <property name="option" value="eol" />
368- <property
369- name="tokens"
370- value="ASSIGN,
371- BAND_ASSIGN, BOR_ASSIGN, BXOR_ASSIGN,
372- PLUS_ASSIGN, MINUS_ASSIGN,
373- STAR_ASSIGN, DIV_ASSIGN, MOD_ASSIGN,
374- SL_ASSIGN, SR_ASSIGN, BSR_ASSIGN"
375- />
376- </module>
377- <module name="OperatorWrap">
378- <property name="option" value="nl" />
379- <property
380- name="tokens"
381- value="QUESTION,
382- BAND, BOR, BXOR,
383- PLUS, MINUS, STAR, DIV, MOD,
384- LAND, LOR,
385- EQUAL, NOT_EQUAL"
386- />
387- </module>
340+ <module name="OperatorWrap" />
388341 <module name="ParenPad">
389342 <property name="option" value="nospace" />
390343 <property
@@ -396,8 +349,11 @@
396349 <property name="tokens" value="DOT" />
397350 <property name="option" value="nl" />
398351 </module>
352+ <module name="SingleSpaceSeparator" />
399353 <module name="TypecastParenPad" />
400- <module name="WhitespaceAfter" />
354+ <module name="WhitespaceAfter" >
355+ <property name="tokens" value="COMMA, SEMI,"/>
356+ </module>
401357 <module name="WhitespaceAround">
402358 <property
403359 name="tokens"
@@ -418,6 +374,7 @@
418374
419375 </module>
420376
377+
421378 </module>
422379
423380 <!-- EOF -->
Show on old repository browser