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