source: josm/trunk/tools/checkstyle/josm_checks.xml@ 9057

Last change on this file since 9057 was 8632, checked in by Don-vip, 9 years ago

update Checkstyle to 6.8.1, update Eclipse project, fix checkstyle issues

File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
3
4<!--
5 This configuration file was written by the eclipse-cs plugin configuration editor
6-->
7<!--
8 Checkstyle-Configuration: JOSM
9 Description:
10JOSM Checkstyle rules
11-->
12<module name="Checker">
13 <property name="severity" value="warning"/>
14 <module name="TreeWalker">
15 <module name="FileContentsHolder"/>
16 <module name="MissingDeprecated"/>
17 <module name="MissingOverride"/>
18 <module name="PackageAnnotation"/>
19 <module name="AnnotationLocation">
20 <property name="allowSamelineMultipleAnnotations" value="true"/>
21 </module>
22 <module name="AnnotationUseStyle"/>
23 <module name="JavadocStyle">
24 <property name="checkFirstSentence" value="false"/>
25 <property name="checkHtml" value="false"/>
26 </module>
27 <module name="NonEmptyAtclauseDescription"/>
28 <module name="AtclauseOrder"/>
29 <module name="AvoidStarImport"/>
30 <module name="RedundantImport"/>
31 <module name="UnusedImports">
32 <property name="processJavadoc" value="true"/>
33 </module>
34 <module name="AnonInnerLength">
35 <property name="max" value="50"/>
36 </module>
37 <module name="ExecutableStatementCount">
38 <property name="max" value="150"/>
39 <property name="tokens" value="INSTANCE_INIT,STATIC_INIT,METHOD_DEF,CTOR_DEF"/>
40 </module>
41 <module name="LineLength">
42 <property name="max" value="145"/>
43 <property name="tabWidth" value="4"/>
44 </module>
45 <module name="MethodLength">
46 <property name="max" value="300"/>
47 </module>
48 <module name="ParameterNumber">
49 <property name="max" value="10"/>
50 </module>
51 <module name="OuterTypeNumber"/>
52 <module name="MethodCount"/>
53 <module name="GenericWhitespace"/>
54 <module name="EmptyForInitializerPad"/>
55 <module name="EmptyForIteratorPad"/>
56 <module name="NoWhitespaceAfter"/>
57 <module name="NoWhitespaceBefore"/>
58 <module name="MethodParamPad"/>
59 <module name="ParenPad"/>
60 <module name="TypecastParenPad">
61 <property name="tokens" value="RPAREN,TYPECAST"/>
62 </module>
63 <module name="WhitespaceAfter"/>
64 <module name="WhitespaceAround">
65 <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV_ASSIGN,DO_WHILE,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR_ASSIGN,TYPE_EXTENSION_AND"/>
66 <property name="allowEmptyConstructors" value="true"/>
67 <property name="allowEmptyMethods" value="true"/>
68 <property name="allowEmptyTypes" value="true"/>
69 </module>
70 <module name="EmptyLineSeparator">
71 <property name="tokens" value="CLASS_DEF,ENUM_DEF,INTERFACE_DEF,CTOR_DEF,METHOD_DEF,STATIC_INIT"/>
72 <property name="allowNoEmptyLineBetweenFields" value="true"/>
73 <property name="allowMultipleEmptyLines" value="false"/>
74 </module>
75 <module name="ModifierOrder"/>
76 <module name="RedundantModifier"/>
77 <module name="AvoidNestedBlocks">
78 <property name="allowInSwitchCase" value="true"/>
79 </module>
80 <module name="EmptyBlock">
81 <property name="tokens" value="LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_DO,LITERAL_ELSE,LITERAL_FOR,INSTANCE_INIT,STATIC_INIT,LITERAL_SWITCH"/>
82 </module>
83 <module name="EmptyCatchBlock"/>
84 <module name="LeftCurly">
85 <property name="maxLineLength" value="140"/>
86 </module>
87 <module name="RightCurly"/>
88 <module name="NeedBraces">
89 <property name="tokens" value="LITERAL_DO,LITERAL_FOR,LITERAL_WHILE"/>
90 <property name="allowSingleLineStatement" value="true"/>
91 </module>
92 <module name="ArrayTypeStyle"/>
93 <module name="UpperEll"/>
94 <module name="OuterTypeFilename"/>
95 <module name="FinalClass"/>
96 <module name="HideUtilityClassConstructor"/>
97 </module>
98 <module name="Header">
99 <property name="header" value="// License: GPL. For details, see LICENSE file."/>
100 <property name="fileExtensions" value=".java"/>
101 </module>
102 <module name="FileLength">
103 <property name="fileExtensions" value=".java"/>
104 </module>
105 <module name="SuppressionCommentFilter">
106 <property name="offCommentFormat" value="CHECKSTYLE\.OFF\: ([\w\|]+)"/>
107 <property name="onCommentFormat" value="CHECKSTYLE\.ON\: ([\w\|]+)"/>
108 <property name="checkFormat" value="$1"/>
109 </module>
110 <module name="FileTabCharacter"/>
111 <module name="NewlineAtEndOfFile">
112 <property name="lineSeparator" value="lf"/>
113 </module>
114 <module name="SuppressionFilter">
115 <property name="file" value="${basedir}/tools/checkstyle/josm_filters.xml"/>
116 </module>
117</module>
Note: See TracBrowser for help on using the repository browser.