-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.xml
48 lines (41 loc) · 1.83 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
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<!-- Adjustments: Moved LineLength outside TreeWalker -->
<module name="LineLength">
<property name="max" value="150"/>
</module>
<module name="FileLength">
<property name="max" value="1000"/>
</module>
<module name="TreeWalker">
<module name="UnusedImports"/>
<!-- Naming Conventions -->
<module name="TypeName">
<property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
</module>
<module name="MethodName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
</module>
<module name="ConstantName">
<property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
</module>
<module name="ParameterName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
</module>
<!-- Whitespace and formatting rules -->
<module name="WhitespaceAround">
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyMethods" value="true"/>
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyLoops" value="true"/>
<property name="tokens"
value="BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, GE, GT, LAND, LE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, QUESTION, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN"/>
</module>
<module name="NoLineWrap">
<property name="tokens"
value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, INTERFACE_DEF, ENUM_DEF"/>
</module>
</module>
</module>