-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckstyle.xml
102 lines (91 loc) · 3.89 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<module name="TreeWalker">
<!-- Annotations -->
<module name="AnnotationUseStyle" />
<module name="MissingDeprecated" />
<!-- Block checks -->
<module name="AvoidNestedBlocks" />
<module name="EmptyBlock" />
<module name="LeftCurly" />
<module name="NeedBraces" />
<module name="RightCurly" />
<!-- Class design -->
<module name="FinalClass" />
<module name="HideUtilityClassConstructor" />
<module name="InterfaceIsType" />
<module name="MutableException" />
<!-- Coding -->
<module name="CovariantEquals" />
<module name="DefaultComesLast" />
<module name="EmptyStatement" />
<module name="EqualsAvoidNull" />
<module name="EqualsHashCode" />
<module name="ExplicitInitialization" />
<module name="FallThrough" />
<module name="FinalLocalVariable" />
<module name="IllegalInstantiation" />
<module name="IllegalToken" />
<module name="IllegalTokenText" />
<module name="IllegalType" />
<module name="ModifiedControlVariable" />
<module name="MultipleVariableDeclarations" />
<module name="NoClone" />
<module name="NoFinalizer" />
<module name="OneStatementPerLine" />
<module name="ParameterAssignment" />
<module name="SimplifyBooleanExpression" />
<module name="SimplifyBooleanReturn" />
<module name="StringLiteralEquality" />
<module name="UnnecessaryParentheses" />
<module name="VariableDeclarationUsageDistance">
<property name="ignoreFinal" value="true"/>
</module>
<!-- Imports -->
<module name="AvoidStarImport" />
<module name="AvoidStaticImport">
<!-- Allow static imports for utils files that enhance Java or Android.
Avoid excluding files that contain Kickstarter business logic, unless they
improve the readability of tests. -->
<property name="excludes" value="java.util.Collections.emptyList" />
<property name="excludes" value="org.mockito.Mockito.*" />
<!--<property name="excludes" value="rx.android.schedulers.AndroidSchedulers.*" />-->
<property name="excludes" value="org.junit.Assert.*" />
</module>
<module name="IllegalImport" />
<module name="RedundantImport" />
<module name="UnusedImports" />
<!-- Miscellaneous -->
<module name="ArrayTypeStyle" />
<module name="CommentsIndentation" />
<module name="FinalParameters" />
<module name="Indentation">
<property name="basicOffset" value="2" />
<property name="arrayInitIndent" value="2" />
<property name="caseIndent" value="2" />
<property name="throwsIndent" value="2" />
<property name="lineWrappingIndentation" value="2" />
</module>
<module name="RedundantModifier" />
<!-- Whitespace -->
<module name="EmptyForInitializerPad" />
<module name="GenericWhitespace" />
<module name="MethodParamPad" />
<module name="NoLineWrap" />
<module name="NoWhitespaceAfter" />
<module name="NoWhitespaceBefore" />
<module name="ParenPad" />
<module name="SeparatorWrap">
<property name="option" value="nl" />
<property name="tokens" value="DOT" />
</module>
<module name="TypecastParenPad" />
<module name="WhitespaceAfter" />
</module>
<module name="FileLength">
<property name="max" value="800" />
</module>
<module name="FileTabCharacter" />
<module name="NewlineAtEndOfFile" />
</module>