-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
66 lines (50 loc) · 1.91 KB
/
checkstyle.xml
File metadata and controls
66 lines (50 loc) · 1.91 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<!-- Fail fast -->
<property name="severity" value="error"/>
<!-- File-level checks -->
<module name="NewlineAtEndOfFile"/>
<module name="FileTabCharacter"/>
<!-- TreeWalker = Java AST rules -->
<module name="TreeWalker">
<!-- Enforce braces -->
<module name="NeedBraces"/>
<!-- Prevent accidental fallthrough -->
<module name="FallThrough"/>
<!-- Catch empty blocks -->
<module name="EmptyBlock"/>
<!-- Equals & hashCode correctness -->
<module name="EqualsHashCode"/>
<!-- Avoid == for object comparison -->
<module name="EqualsAvoidNull"/>
<!-- Control flow clarity -->
<module name="AvoidNestedBlocks"/>
<module name="MissingSwitchDefault"/>
<!-- Common bug patterns -->
<module name="IllegalCatch">
<property name="illegalClassNames" value="java.lang.Throwable"/>
</module> <!-- forbids catch(Throwable, Exception) -->
<module name="IllegalThrows"/> <!-- forbids throws Throwable, Error -->
<!-- Safer boolean logic -->
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<!-- Readability -->
<module name="OneStatementPerLine"/>
<module name="MultipleVariableDeclarations"/>
<!-- Javadoc -->
<!-- Require Javadoc comments to exist -->
<module name="MissingJavadocType">
<property name="scope" value="public"/>
<property name="skipAnnotations" value="Generated"/>
</module>
<!-- Validate the content of existing Javadocs -->
<module name="JavadocType">
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="false"/>
<property name="allowUnknownTags" value="true"/>
</module>
</module>
</module>