-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
98 lines (87 loc) · 3.99 KB
/
Copy pathcheckstyle.xml
File metadata and controls
98 lines (87 loc) · 3.99 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?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">
<!--
Teams API checkstyle configuration.
Derived from EzFramework/Jaloquent checkstyle.xml.
Rules: 4-space indent, 120-char line limit, full Javadoc on public APIs,
ordered imports with blank-line separators, explicit braces everywhere.
-->
<module name="Checker">
<!-- Ban literal tab characters in source files -->
<module name="FileTabCharacter"/>
<!-- Maximum line length -->
<module name="LineLength">
<property name="max" value="120"/>
</module>
<module name="TreeWalker">
<!-- ================================================================
Javadoc — required on all public types and methods
================================================================ -->
<module name="JavadocType">
<property name="scope" value="public"/>
<property name="severity" value="error"/>
</module>
<module name="JavadocMethod">
<property name="allowMissingParamTags" value="false"/>
<property name="severity" value="error"/>
</module>
<module name="JavadocVariable">
<property name="severity" value="warning"/>
</module>
<!-- ================================================================
Indentation
================================================================ -->
<module name="Indentation">
<property name="basicOffset" value="4"/>
<property name="tabWidth" value="4"/>
</module>
<!-- ================================================================
Whitespace
================================================================ -->
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>
<module name="NoWhitespaceBefore"/>
<module name="NoWhitespaceAfter"/>
<module name="EmptyLineSeparator"/>
<module name="MethodParamPad"/>
<module name="ParenPad"/>
<module name="NoLineWrap"/>
<!-- ================================================================
Braces & curly rules
================================================================ -->
<module name="NeedBraces"/>
<module name="LeftCurly">
<property name="option" value="eol"/>
</module>
<module name="RightCurly">
<property name="option" value="alone"/>
</module>
<!-- ================================================================
Class structure
================================================================ -->
<module name="OneTopLevelClass"/>
<!-- ================================================================
Local variable style
================================================================ -->
<module name="FinalLocalVariable"/>
<!-- ================================================================
Equals/hashCode contract
================================================================ -->
<module name="EqualsHashCode"/>
<!-- ================================================================
Imports
================================================================ -->
<module name="AvoidStarImport"/>
<module name="UnusedImports"/>
<module name="RedundantImport"/>
<module name="ImportOrder">
<property name="groups" value="com.skyblockexp,com,java,net,org"/>
<property name="ordered" value="true"/>
<property name="separated" value="true"/>
<property name="sortStaticImportsAlphabetically" value="true"/>
<property name="option" value="bottom"/>
</module>
</module>
</module>