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

Last change on this file since 10740 was 10416, checked in by Don-vip, 8 years ago

checkstyle: force UTF-8 charset

File size: 5.0 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 <property name="charset" value="UTF-8"/>
15 <module name="TreeWalker">
16 <module name="FileContentsHolder"/>
17 <module name="MissingDeprecated"/>
18 <module name="MissingOverride"/>
19 <module name="PackageAnnotation"/>
20 <module name="AnnotationLocation">
21 <property name="allowSamelineMultipleAnnotations" value="true"/>
22 </module>
23 <module name="AnnotationUseStyle"/>
24 <module name="JavadocStyle">
25 <property name="checkFirstSentence" value="false"/>
26 <property name="checkHtml" value="false"/>
27 </module>
28 <module name="NonEmptyAtclauseDescription"/>
29 <module name="AtclauseOrder"/>
30 <module name="AvoidStarImport"/>
31 <module name="RedundantImport"/>
32 <module name="UnusedImports">
33 <property name="processJavadoc" value="true"/>
34 </module>
35 <module name="AnonInnerLength">
36 <property name="max" value="50"/>
37 </module>
38 <module name="ExecutableStatementCount">
39 <property name="max" value="150"/>
40 <property name="tokens" value="INSTANCE_INIT,STATIC_INIT,METHOD_DEF,CTOR_DEF"/>
41 </module>
42 <module name="LineLength">
43 <property name="max" value="145"/>
44 <property name="tabWidth" value="4"/>
45 </module>
46 <module name="MethodLength">
47 <property name="max" value="300"/>
48 </module>
49 <module name="ParameterNumber">
50 <property name="max" value="10"/>
51 </module>
52 <module name="OuterTypeNumber"/>
53 <module name="MethodCount"/>
54 <module name="GenericWhitespace"/>
55 <module name="EmptyForInitializerPad"/>
56 <module name="EmptyForIteratorPad"/>
57 <module name="NoWhitespaceAfter"/>
58 <module name="NoWhitespaceBefore"/>
59 <module name="SingleSpaceSeparator"/>
60 <module name="MethodParamPad"/>
61 <module name="ParenPad"/>
62 <module name="TypecastParenPad">
63 <property name="tokens" value="RPAREN,TYPECAST"/>
64 </module>
65 <module name="WhitespaceAfter"/>
66 <module name="WhitespaceAround">
67 <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"/>
68 <property name="allowEmptyConstructors" value="true"/>
69 <property name="allowEmptyMethods" value="true"/>
70 <property name="allowEmptyTypes" value="true"/>
71 </module>
72 <module name="EmptyLineSeparator">
73 <property name="tokens" value="CLASS_DEF,ENUM_DEF,INTERFACE_DEF,CTOR_DEF,METHOD_DEF,STATIC_INIT"/>
74 <property name="allowNoEmptyLineBetweenFields" value="true"/>
75 <property name="allowMultipleEmptyLines" value="false"/>
76 </module>
77 <module name="ModifierOrder"/>
78 <module name="RedundantModifier"/>
79 <module name="AvoidNestedBlocks">
80 <property name="allowInSwitchCase" value="true"/>
81 </module>
82 <module name="EmptyBlock">
83 <property name="tokens" value="LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_DO,LITERAL_ELSE,LITERAL_FOR,INSTANCE_INIT,STATIC_INIT,LITERAL_SWITCH"/>
84 </module>
85 <module name="EmptyCatchBlock"/>
86 <module name="LeftCurly">
87 <property name="maxLineLength" value="140"/>
88 </module>
89 <module name="RightCurly"/>
90 <module name="NeedBraces">
91 <property name="tokens" value="LITERAL_DO,LITERAL_FOR,LITERAL_WHILE"/>
92 <property name="allowSingleLineStatement" value="true"/>
93 </module>
94 <module name="ArrayTypeStyle"/>
95 <module name="UpperEll"/>
96 <module name="OuterTypeFilename"/>
97 <module name="FinalClass"/>
98 <module name="HideUtilityClassConstructor"/>
99 </module>
100 <module name="Header">
101 <property name="header" value="// License: GPL. For details, see LICENSE file."/>
102 <property name="fileExtensions" value=".java"/>
103 </module>
104 <module name="FileLength">
105 <property name="fileExtensions" value=".java"/>
106 </module>
107 <module name="SuppressionCommentFilter">
108 <property name="offCommentFormat" value="CHECKSTYLE\.OFF\: ([\w\|]+)"/>
109 <property name="onCommentFormat" value="CHECKSTYLE\.ON\: ([\w\|]+)"/>
110 <property name="checkFormat" value="$1"/>
111 </module>
112 <module name="FileTabCharacter"/>
113 <module name="NewlineAtEndOfFile">
114 <property name="lineSeparator" value="lf"/>
115 </module>
116 <module name="SuppressionFilter">
117 <property name="file" value="${basedir}/tools/checkstyle/josm_filters.xml" default="tools/checkstyle/josm_filters.xml"/>
118 <property name="optional" value="true"/>
119 </module>
120</module>
Note: See TracBrowser for help on using the repository browser.