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

Last change on this file since 11587 was 11587, checked in by Don-vip, 7 years ago

checkstyle - enable BooleanExpressionComplexity / 6

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