- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
Latest commit
30 lines (29 loc) · 1.31 KB
/
Copy pathcheckstyle.xml
File metadata and controls
30 lines (29 loc) · 1.31 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
<?xml version="1.0"?>
<!DOCTYPEmodule PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<modulename="Checker">
<modulename="TreeWalker">
<!-- Set the indentation to 4 spaces -->
<modulename="Indentation">
<propertyname="basicOffset"value="4"/>
<propertyname="braceAdjustment"value="0"/>
<propertyname="caseIndent"value="4"/>
<propertyname="throwsIndent"value="4"/>
</module>
<!-- Use Intellij import order -->
<modulename="CustomImportOrder">
<propertyname="customImportOrderRules"
value="THIRD_PARTY_PACKAGE###SPECIAL_IMPORTS###STANDARD_JAVA_PACKAGE###STATIC"/>
<propertyname="sortImportsInGroupAlphabetically"value="true"/>
<propertyname="standardPackageRegExp"value="^(java|javax)\."/>
<propertyname="separateLineBetweenGroups"value="true"/>
</module>
</module>
<!-- Set the line length max to 120 -->
<modulename="LineLength">
<propertyname="fileExtensions"value="java"/>
<propertyname="max"value="120"/>
<propertyname="ignorePattern"value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
</module>