forked from vostok/hercules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
66 lines (58 loc) · 2.93 KB
/
Copy pathcheckstyle.xml
File metadata and controls
66 lines (58 loc) · 2.93 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"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="fileExtensions" value="java, xml, properties"/>
<property name="severity"
value="warning"/><!-- TODO: Replace with 'error' when problems will be fixed -->
<property name="haltOnException" value="false"/>
<module name="FileLength"><!-- Checks for Java file Size Violations -->
<property name="max" value="3500"/>
<property name="fileExtensions" value="java"/>
</module>
<module name="FileTabCharacter"><!-- Checks for whitespace (Not tabs accepted). Report for each line -->
<property name="eachLine" value="true"/>
</module>
<module name="TreeWalker"><!-- Check source files -->
<module name="AvoidStarImport"/><!-- No *-import accepted -->
<module name="OuterTypeFilename"/><!-- Outer type name matches filename -->
<module name="StaticVariableName"><!-- Static variables (non-final) match lower camel case -->
<property name="format" value="^[a-z](_?[a-zA-Z0-9]+)*$"/>
</module>
<module name="ConstantName"><!-- Static constants (final) match upper case (except serialVersionUID) -->
<property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
</module>
<module name="TypeName"><!-- Type names for classes, interfaces, enums and annotations -->
<property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
</module>
<module name="LineLength"><!-- Check line length -->
<property name="max" value="160"/>
<property name="ignorePattern"
value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="OneTopLevelClass"/>
<module name="NoLineWrap"/>
<module name="NeedBraces"/>
<module name="LeftCurly"/>
<module name="RightCurly">
<property name="id" value="RightCurlySame"/>
<property name="tokens"
value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>
</module>
<module name="RightCurly">
<property name="id" value="RightCurlyAlone"/>
<property name="option" value="alone"/>
<property name="tokens"
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/>
</module>
<module name="WhitespaceAround">
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyMethods" value="true"/>
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyLoops" value="true"/>
</module>
<module name="ModifierOrder"/>
</module>
</module>