blob: 92345cb9dcb6c1ea720df8f7105f87e8b2485a1c [file] [log] [blame]
Benjamin Cabee7d47332009-07-06 19:16:36 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 This configuration file was written by the eclipse-cs plugin configuration editor
4-->
5<!--
Benjamin Cabe44949a62009-07-06 19:53:01 +00006 Checkstyle-Configuration: PDE Modeling Incubator Checkstyle
7 Description: none
Benjamin Cabee7d47332009-07-06 19:16:36 +00008-->
9<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
10<module name="Checker">
11 <property name="severity" value="warning"/>
12 <module name="TreeWalker">
13 <module name="FileContentsHolder"/>
14 <module name="ArrayTypeStyle"/>
15 <module name="ModifierOrder"/>
16 <module name="RedundantModifier">
17 <property name="severity" value="ignore"/>
18 </module>
19 <module name="TodoComment">
20 <property name="format" value="TODO"/>
21 </module>
22 <module name="UpperEll"/>
23 <module name="AvoidNestedBlocks"/>
24 <module name="CovariantEquals"/>
25 <module name="DeclarationOrder">
26 <property name="severity" value="info"/>
27 </module>
28 <module name="DefaultComesLast"/>
29 <module name="DoubleCheckedLocking"/>
30 <module name="EmptyStatement"/>
31 <module name="EqualsHashCode"/>
32 <module name="HiddenField">
33 <property name="ignoreConstructorParameter" value="true"/>
34 <property name="ignoreSetter" value="true"/>
35 </module>
36 <module name="IllegalCatch">
37 <property name="severity" value="error"/>
38 </module>
39 <module name="IllegalInstantiation"/>
40 <module name="InnerAssignment"/>
41 <module name="MissingSwitchDefault"/>
42 <module name="ModifiedControlVariable"/>
43 <module name="MultipleVariableDeclarations"/>
44 <module name="RedundantThrows"/>
45 <module name="SimplifyBooleanExpression"/>
46 <module name="SimplifyBooleanReturn"/>
47 <module name="FinalClass"/>
48 <module name="HideUtilityClassConstructor">
49 <property name="severity" value="error"/>
50 </module>
51 <module name="VisibilityModifier"/>
Benjamin Cabee7d47332009-07-06 19:16:36 +000052 <module name="IllegalImport"/>
53 <module name="RedundantImport"/>
54 <module name="UnusedImports"/>
55 <module name="JavadocStyle">
56 <property name="checkFirstSentence" value="false"/>
57 </module>
58 <module name="JavadocType"/>
59 <module name="CyclomaticComplexity">
60 <property name="max" value="7"/>
61 </module>
62 <module name="NPathComplexity"/>
63 <module name="ConstantName">
64 <property name="format" value="^[A-Z](_?[A-Z0-9]+)*$"/>
65 </module>
66 <module name="LocalFinalVariableName"/>
67 <module name="LocalVariableName"/>
68 <module name="MemberName">
69 <property name="format" value="^_?[a-z][a-zA-Z0-9]*$"/>
70 </module>
71 <module name="MethodName"/>
72 <module name="PackageName">
73 <property name="format" value="^[a-z]+(\.[a-z_][a-z0-9_]*)*$"/>
74 </module>
75 <module name="ParameterName"/>
76 <module name="StaticVariableName">
77 <property name="format" value="^[A-Z0-9_]*$"/>
78 </module>
79 <module name="TypeName"/>
80 <module name="AnonInnerLength"/>
81 <module name="FileLength"/>
82 <module name="LineLength">
83 <property name="max" value="300"/>
84 </module>
85 <module name="MethodLength">
86 <property name="countEmpty" value="false"/>
87 <property name="tokens" value="METHOD_DEF, CTOR_DEF"/>
88 </module>
89 <module name="ParameterNumber">
90 <property name="tokens" value="METHOD_DEF, CTOR_DEF"/>
91 </module>
92 <module name="EmptyBlock"/>
93 <module name="NeedBraces">
94 <property name="severity" value="ignore"/>
95 </module>
96 <module name="IllegalThrows"/>
97 <module name="FallThrough">
98 <property name="severity" value="error"/>
99 </module>
100 <module name="NestedIfDepth">
101 <property name="max" value="4"/>
102 </module>
103 <module name="NestedTryDepth"/>
104 <module name="PackageDeclaration"/>
105 <module name="ParameterAssignment"/>
106 <module name="StringLiteralEquality"/>
107 <module name="SuperClone"/>
108 <module name="SuperFinalize"/>
109 <module name="UnnecessaryParentheses"/>
110 <module name="MutableException"/>
111 <module name="BooleanExpressionComplexity">
112 <property name="tokens" value="LAND,BAND,LOR,BXOR"/>
113 </module>
114 <module name="ClassDataAbstractionCoupling">
115 <property name="severity" value="ignore"/>
116 </module>
117 <module name="ClassFanOutComplexity">
118 <property name="severity" value="ignore"/>
119 </module>
120 <module name="JavaNCSS"/>
121 <module name="GenericIllegalRegexp">
122 <property name="severity" value="error"/>
123 <property name="format" value="[.]*\.printStackTrace()"/>
124 <property name="ignoreComments" value="true"/>
125 <property name="message" value="Use logger instead of printStackTrace()."/>
126 </module>
127 <module name="GenericIllegalRegexp">
128 <property name="severity" value="error"/>
129 <property name="format" value="System\.out\.print"/>
130 <property name="message" value="Use log instead of System.out.print."/>
131 </module>
132 <module name="GenericIllegalRegexp">
133 <property name="severity" value="error"/>
134 <property name="format" value="System\.exit"/>
135 </module>
136 <module name="IllegalType">
137 <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="You should try to use a more appropriate type"/>
138 <property name="severity" value="info"/>
139 <property name="tokens" value="METHOD_DEF,PARAMETER_DEF,VARIABLE_DEF"/>
140 <property name="illegalClassNames" value="java.util.Vector"/>
141 </module>
142 <module name="TodoComment">
143 <property name="format" value="FIXME"/>
144 </module>
145 <module name="AbstractClassName"/>
146 </module>
147 <module name="SuppressionCommentFilter">
148 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Default suppression comment filter"/>
149 <property name="checkCPP" value="false"/>
150 <property name="checkC" value="false"/>
151 </module>
152 <module name="SuppressionCommentFilter">
153 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Generated code suppression comment filterrrrrrrr"/>
154 <property name="offCommentFormat" value="@generated"/>
155 <property name="onCommentFormat" value="@generated NOT"/>
156 <property name="checkCPP" value="false"/>
157 <property name="checkC" value="false"/>
158 </module>
159</module>