-
Notifications
You must be signed in to change notification settings - Fork 2
/
checkstyle-config-cs5.xml
145 lines (145 loc) · 5.86 KB
/
checkstyle-config-cs5.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="severity" value="warning" />
<module name="TreeWalker">
<module name="FileContentsHolder"/>
<module name="JavadocStyle">
<property name="scope" value="package" />
</module>
<module name="ConstantName"/>
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="MemberName"/>
<module name="MethodName"/>
<module name="MethodTypeParameterName"/>
<module name="PackageName"/>
<module name="ParameterName"/>
<module name="StaticVariableName"/>
<module name="TypeName"/>
<module name="AvoidStarImport"/>
<module name="IllegalImport">
<property name="illegalPkgs" value="sun,com.sun,sunw" />
</module>
<module name="RedundantImport"/>
<module name="AnonInnerLength">
<property name="max" value="100" />
</module>
<module name="LineLength">
<property name="ignorePattern" value="^.*(@see|@\([#]\) \$[I]d:).*$|^import" />
<property name="max" value="120" />
<property name="tabWidth" value="2" />
</module>
<module name="MethodLength">
<property name="max" value="300" />
</module>
<module name="ParameterNumber"/>
<module name="EmptyForInitializerPad"/>
<module name="EmptyForIteratorPad"/>
<module name="NoWhitespaceAfter">
<property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS" />
</module>
<module name="NoWhitespaceBefore"/>
<module name="OperatorWrap"/>
<module name="MethodParamPad"/>
<module name="ParenPad"/>
<module name="TypecastParenPad">
<property name="tokens" value="RPAREN,TYPECAST" />
</module>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>
<module name="GenericWhitespace"/>
<module name="ModifierOrder"/>
<module name="RedundantModifier"/>
<module name="AvoidNestedBlocks"/>
<module name="EmptyBlock">
<property name="option" value="text" />
</module>
<module name="LeftCurly">
<property name="maxLineLength" value="120" />
</module>
<module name="NeedBraces"/>
<module name="RightCurly"/>
<module name="IllegalInstantiation">
<metadata name="net.sf.eclipsecs.core.comment" value="Netcetera: The classes Boolean and Integer should not be instantiated. Use valueOf(..)." />
<property name="classes" value="java.lang.Boolean,java.lang.Integer" />
</module>
<module name="InnerAssignment"/>
<module name="EqualsHashCode"/>
<module name="RedundantThrows">
<property name="allowUnchecked" value="true" />
<property name="allowSubclasses" value="true" />
</module>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StringLiteralEquality"/>
<module name="NestedIfDepth">
<property name="max" value="6" />
</module>
<module name="DefaultComesLast"/>
<module name="IllegalTokenText">
<metadata name="net.sf.eclipsecs.core.comment" value="Netcetera: The usage of labels is discourraged." />
<property name="tokens" value="LABELED_STAT" />
<property name="format" value=".*" />
<property name="message" value="Netcetera: The usage of labels is discourraged." />
</module>
<module name="CovariantEquals"/>
<module name="ModifiedControlVariable"/>
<module name="MultipleVariableDeclarations"/>
<module name="SuperFinalize"/>
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="InterfaceIsType"/>
<module name="VisibilityModifier"/>
<module name="ArrayTypeStyle"/>
<module name="UpperEll"/>
<module name="RegexpSinglelineJava">
<property name="format" value="(.*)\/\/\$NON-NLS-(.+)\$" />
<property name="message" value="Netcetera: Do not use Eclipse's string externalisation" />
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="new\s+String\s*[(]\s*"" />
<property name="message" value="Netcetera: Possible redundant String object" />
<property name="ignoreComments" value="true" />
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="new\s+BigDecimal\s*[(]\s*\d" />
<property name="message" value="Netcetera: Avoid non-String BigDecimal constructors" />
<property name="ignoreComments" value="true" />
</module>
<module name="UnusedImports"/>
<module name="OuterTypeNumber"/>
<module name="ParameterAssignment"/>
<module name="SuperClone"/>
<module name="MutableException"/>
<module name="AnnotationUseStyle"/>
<module name="ClassTypeParameterName"/>
<module name="MissingDeprecated"/>
<module name="EmptyStatement"/>
<module name="IllegalCatch">
<property name="illegalClassNames" value="java.lang.Error,java.lang.Throwable" />
</module>
<module name="IllegalThrows">
<property name="illegalClassNames" value="java.lang.Error,java.lang.Throwable" />
</module>
<module name="PackageDeclaration"/>
<module name="PackageAnnotation"/>
<module name="NoFinalizer"/>
<module name="UnnecessaryParentheses"/>
</module>
<module name="FileLength">
<property name="max" value="2000"/>
<property name="fileExtensions" value=".java" />
</module>
<module name="SuppressionCommentFilter">
<property name="checkC" value="false" />
</module>
<module name="FileTabCharacter">
<property name="eachLine" value="true" />
<property name="fileExtensions" value=".java,.xml" />
</module>
<module name="RegexpSingleline">
<property name="format" value="select[ ]*\*" />
<property name="message" value="Netcetera: "select *" is considered harmful and must not be used" />
</module>
</module>