-
Notifications
You must be signed in to change notification settings - Fork 3
/
checkstyle.xml
79 lines (70 loc) · 2.65 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
<module name="Checker">
<module name="TreeWalker">
<!-- Naming Conventions -->
<module name="ConstantName">
<property name="format" value="^([A-Z][A-Z0-9]*(_[A-Z0-9]+)*)$" />
</module>
<module name="LocalFinalVariableName" />
<module name="LocalVariableName" />
<module name="MemberName" />
<module name="PackageName" />
<module name="StaticVariableName" />
<module name="TypeName" />
<module name="MethodName" />
<!-- Imports -->
<module name="IllegalImport">
<property name="illegalPkgs" value="sun, com.sun, org.apache.logging.log4j.util, org.assertj.core.util.Strings, org.assertj.core.util.Lists" />
</module>
<module name="UpperEll" />
<module name="UnusedImports" />
<module name="AvoidStarImport">
<property name="allowStaticMemberImports" value="true" />
</module>
<!-- Coding -->
<module name="EmptyStatement" />
<module name="EmptyBlock">
<property name="option" value="text" />
</module>
<module name="HiddenField">
<property name="tokens" value="VARIABLE_DEF" />
</module>
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="expected|ignore" />
</module>
<!-- <module name="ParameterAssignment" /> -->
<!-- <module name="MissingSwitchDefault"/> -->
<module name="SimplifyBooleanExpression" />
<module name="SimplifyBooleanReturn" />
<module name="StringLiteralEquality" />
<module name="PackageDeclaration" />
<module name="MultipleVariableDeclarations" />
<module name="NeedBraces" />
<!-- Documentation -->
<!-- <module name="JavadocType" /> -->
<!-- <module name="UncommentedMain"/> -->
<module name="SuppressionCommentFilter" />
<!-- Class Design -->
<module name="FinalClass" />
<!-- <module name="HideUtilityClassConstructor"/> -->
<!-- Misc -->
<module name="Regexp">
<property name="illegalPattern" value="true" />
<property name="format" value="(System\.(out|err))|(printStackTrace\(\))" />
</module>
<module name="Regexp">
<property name="illegalPattern" value="true" />
<property name="format" value="(new Long\(|new Float\(|new Integer\(|new Double\()" />
</module>
<module name="Regexp">
<property name="illegalPattern" value="true" />
<property name="format" value="(import .+\.repackaged\..+;)" />
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="^ +[^*]" />
<property name="message" value="Indent must use tab characters" />
<property name="ignoreComments" value="true" />
</module>
</module>
</module>