forked from rotty3000/jalopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.xml
52 lines (52 loc) · 2.25 KB
/
checkstyle.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
<?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">
<!-- Tabs are strictly banned -->
<module name="FileTabCharacter" />
<module name="TreeWalker">
<!-- Important basics -->
<!-- <module name="PackageDeclaration"/> Unlikely that we would miss this in a PR -->
<module name="OuterTypeFilename" />
<!-- TypeName -> TypeName.java -->
<!-- Code -->
<module name="HideUtilityClassConstructor" />
<!-- Utility classes should not have a constructor -->
<module name="CovariantEquals" />
<module name="EqualsHashCode" />
<!-- equals() and hashCode() go together -->
<module name="NestedTryDepth">
<!-- SHOULD not need to adjust this -->
<property name="max" value="2" />
</module>
<module name="SuperFinalize" />
<!-- We don't actually use this -->
<module name="JUnitTestCase" />
<!-- Checks tearDown(), setUp() etc. -->
<!-- Style -->
<module name="LeftCurly">
<!-- Left brace never goes on another line -->
<property name="option" value="eol" />
</module>
<!-- We don't check right brace -->
<module name="DefaultComesLast" />
<!-- default case in switch should be last -->
<module name="GenericWhitespace" />
<!-- Naming -->
<module name="ClassTypeParameterName">
<property name="format" value="^[A-Z][a-zA-Z0-9]*$" />
</module>
<module name="LocalFinalVariableName" />
<module name="LocalVariableName">
<property name="format" value="^[a-z_][a-zA-Z0-9]*$" />
</module>
<module name="MemberName">
<property name="format" value="^[a-z_][a-zA-Z0-9]*$" />
</module>
<module name="MethodName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$" />
</module>
<!-- <module name="PackageName"/> Unlikely that we would miss this in a PR -->
<module name="ParameterName" />
<!-- <module name="TypeName"/> Unlikely that we would miss this in a PR -->
</module>
</module>