-
Notifications
You must be signed in to change notification settings - Fork 5
/
checkstyle.xml
86 lines (77 loc) · 2.86 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
<?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="SuppressionCommentFilter" /> -->
<module name="TreeWalker">
<!-- <module name="FileContentsHolder" /> -->
<!-- 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.assertj.core.util.Strings, org.assertj.core.util.Lists, com.google.common.base.Charsets" />
</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">
<property name="allowMissingParamTags" value="true" />
</module>
<!-- 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="logger\.(trace|debug|info|warn|error|fatal)" />
</module>
<module name="Regexp">
<property name="illegalPattern" value="true" />
<property name="format" value="Logger.getLogger\((?!stackTraceElements\[THREAD_TYPE_DEEP\])" />
</module>
-->
<module name="Regexp">
<property name="illegalPattern" value="true" />
<property name="format" value="(import .+\.repackaged\..+;)" />
</module>
</module>
</module>