-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcheckstyle.xml
86 lines (75 loc) · 2.43 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
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Package Names 1.0//EN"
"http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
<module name="Checker">
<!-- Check that package.html exists -->
<module name="PackageHtml"/>
<module name="TreeWalker">
<property name="tabWidth" value="3"/>
<!-- Import checks -->
<module name="AvoidStarImport"/>
<module name="ConstantName"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<!-- Modifier checks -->
<module name="RedundantModifier">
<property name="tokens" value="METHOD_DEF"/>
</module>
<module name="VisibilityModifier">
<property name="packageAllowed" value="true"/>
<property name="protectedAllowed" value="true"/>
</module>
<!-- Whitespace checks -->
<module name="ParenPad">
<property name="option" value="space"/>
<property name="tokens" value="CTOR_CALL, METHOD_CALL, SUPER_CTOR_CALL"/>
</module>
<module name="TabCharacter"/>
<!-- Javadoc checks -->
<module name="JavadocType">
<property name="versionFormat" value=".*"/>
</module>
<!-- Blocks -->
<module name="LeftCurly">
<property name="option" value="eol"/>
</module>
<module name="RightCurly">
<property name="option" value="same"/>
</module>
<!-- It seems to be a good idea to concantenate strings with the '+' on
the next line because it makes it easier to add, extend or remove parts of the string -->
<module name="OperatorWrap">
<property name="option" value="nl"/>
<property name="tokens" value="PLUS"/>
</module>
<module name="NeedBraces"/>
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
<!-- Naming conventions -->
<module name="ConstantName"/>
<module name="ParameterName">
<property name="format" value="^[a-z][a-zA-Z0-9_]*$"/>
</module>
<module name="StaticVariableName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
</module>
<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>
<!-- Size Violations -->
<module name="FileLength">
<property name="max" value="2000"/>
</module>
<module name="LineLength">
<property name="max" value="320"/>
</module>
<module name="MethodLength">
<property name="max" value="150"/>
</module>
</module>
</module>