forked from GrowthcraftCE/Growthcraft-1.7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckstyle.xml
88 lines (82 loc) · 2.97 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
86
87
88
<?xml version="1.0"?>
<!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="charset" value="UTF-8"/>
<property name="severity" value="warning"/>
<module name="SuppressionFilter">
<property name="file" value="checkstyle/suppressions.xml"/>
</module>
<module name="SuppressWarningsFilter" />
<!-- Because window$ is bullshit when it comes to newlines -->
<!-- <module name="NewlineAtEndOfFile"/> -->
<module name="TreeWalker">
<module name="SuppressWarningsHolder" />
<module name="ArrayTypeStyle">
<property name="javaStyle" value="true"/>
</module>
<module name="DeclarationOrder"/>
<module name="DefaultComesLast"/>
<module name="ExplicitInitialization"/>
<module name="FallThrough"/>
<module name="FinalLocalVariable"/>
<module name="HideUtilityClassConstructor"/>
<module name="InterfaceIsType"/>
<module name="MissingSwitchDefault"/>
<module name="ModifiedControlVariable"/>
<module name="ModifierOrder"/>
<module name="ModifierOrder"/>
<module name="MultipleVariableDeclarations"/>
<module name="NoFinalizer"/>
<module name="OneTopLevelClass"/>
<module name="OuterTypeFilename"/>
<module name="OverloadMethodsDeclarationOrder"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StringLiteralEquality"/>
<module name="TrailingComment"/>
<module name="UnnecessaryParentheses"/>
<module name="UpperEll"/>
<module name="VariableDeclarationUsageDistance">
<property name="allowedDistance" value="16"/>
</module>
<!-- <module name="VisibilityModifier">
<property name="protectedAllowed" value="true"/>
<property name="allowPublicImmutableFields" value="true"/>
</module> -->
<!-- Rules that are treated as errors -->
<!-- http://stackoverflow.com/questions/28458846/how-to-require-tab-indentation-with-checkstyle -->
<module name="RegexpSinglelineJava">
<property name="format" value="^\t* "/>
<property name="message" value="Indent must use tab characters"/>
<property name="ignoreComments" value="true"/>
<property name="severity" value="error"/>
</module>
<module name="MissingOverride">
<property name="severity" value="error"/>
</module>
<module name="PackageDeclaration">
<property name="severity" value="error"/>
</module>
<module name="EmptyStatement">
<property name="severity" value="error"/>
</module>
<module name="RedundantImport">
<property name="severity" value="error"/>
</module>
<module name="AvoidStarImport">
<!-- Rationale: import what you use, and nothing more -->
<property name="severity" value="error"/>
</module>
<module name="UnusedImports">
<property name="severity" value="error"/>
</module>
<module name="HiddenField">
<property name="severity" value="error"/>
</module>
<module name="InnerAssignment">
<property name="severity" value="error"/>
</module>
</module>
</module>