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

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

checkstyle - enable CatchParameterName rule

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