generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 50
/
checkstyle.xml
52 lines (47 loc) · 1.75 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
<?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">
<property name="localeLanguage" value="en"/>
<property name="tabWidth" value="4"/>
<module name="NewlineAtEndOfFile"/>
<module name="JavadocPackage"/>
<module name="SuppressionSingleFilter">
<property name="checks" value="LeftCurly"/>
<property name="message" value="line.break.after"/>
</module>
<module name="TreeWalker">
<!-- Code format -->
<module name="AnnotationLocation"/>
<module name="LeftCurly"/>
<module name="RightCurly"/>
<module name="GenericWhitespace"/>
<module name="NeedBraces">
<property name="allowSingleLineStatement" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="^\t* {4,}"/>
<property name="message" value="Indent must use tab characters"/>
<property name="ignoreComments" value="true"/>
</module>
<!-- Imports -->
<module name="AvoidStarImport">
<property name="allowStaticMemberImports" value="true"/>
</module>
<module name="IllegalImport">
<!-- Prevent internal, AWT/Swing and JFX classes -->
<property name="illegalPkgs" value="sun, java.awt, javax.swing, javafx"/>
</module>
<module name="ImportOrder">
<property name="option" value="bottom"/>
<property name="groups" value="/(com.mojang|net.fabricmc|net.minecraft)\..+/,*,/javax?\..+/"/>
<property name="separated" value="true"/>
<property name="useContainerOrderingForStatic" value="true"/>
</module>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
</module>
<module name="SuppressionFilter">
<property name="file" value="${suppressions}"/>
</module>
</module>