-
Notifications
You must be signed in to change notification settings - Fork 22
/
checkstyle.xml
92 lines (91 loc) · 3.48 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
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
<?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">
<!--
This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
Checkstyle-Configuration: Alexandre Style
Description: none
-->
<module name="Checker">
<property name="severity" value="warning"/>
<module name="LineLength">
<property name="max" value="120"/>
</module>
<module name="TreeWalker">
<module name="MethodLength">
<property name="tokens" value="METHOD_DEF"/>
<property name="max" value="60"/>
</module>
<module name="ConstantName"/>
<module name="AbbreviationAsWordInName"/>
<module name="IllegalIdentifierName"/>
<module name="AbstractClassName"/>
<module name="PackageName"/>
<module name="ClassTypeParameterName"/>
<module name="LocalVariableName"/>
<module name="MethodTypeParameterName"/>
<module name="TypeName"/>
<module name="MethodName"/>
<module name="MemberName"/>
<module name="InterfaceTypeParameterName"/>
<module name="LambdaParameterName"/>
<module name="StaticVariableName"/>
<module name="RecordTypeParameterName"/>
<module name="ParameterName"/>
<module name="CatchParameterName"/>
<module name="PatternVariableName"/>
<module name="RecordComponentName"/>
<module name="LocalFinalVariableName"/>
<property name="tabWidth" value="4"/>
<module name="RegexpSinglelineJava">
<property name="format" value="^\t* "/>
<property name="message" value="Indent must use tab characters"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="Indentation">
<property name="forceStrictCondition" value="true"/>
</module>
<module name="MethodLength"/>
<module name="LeftCurly">
<property name="option" value="nl"/>
</module>
<module name="EmptyCatchBlock"/>
<module name="NeedBraces">
<property name="allowSingleLineStatement" value="true"/>
<property name="allowEmptyLoopBody" value="true"/>
</module>
<module name="EmptyBlock"/>
<module name="RightCurly">
<property name="option" value="alone_or_singleline"/>
<property name="tokens"
value="LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_IF,LITERAL_ELSE,CLASS_DEF,METHOD_DEF,CTOR_DEF,LITERAL_FOR,LITERAL_WHILE,LITERAL_DO,STATIC_INIT,INSTANCE_INIT,ANNOTATION_DEF,ENUM_DEF,INTERFACE_DEF,RECORD_DEF,COMPACT_CTOR_DEF"/>
</module>
<module name="AvoidNestedBlocks"/>
<module name="OneStatementPerLine"/>
<module name="ModifiedControlVariable"/>
<module name="SimplifyBooleanExpression"/>
<module name="DeclarationOrder"/>
<module name="EmptyStatement"/>
<module name="NestedIfDepth">
<property name="max" value="3"/>
</module>
<module name="SimplifyBooleanReturn"/>
<module name="IllegalThrows"/>
<module name="ExplicitInitialization"/>
<module name="UnnecessaryParentheses"/>
<module name="AvoidNoArgumentSuperConstructorCall"/>
<module name="OverloadMethodsDeclarationOrder"/>
<module name="StringLiteralEquality"/>
<module name="VisibilityModifier"/>
<module name="OneTopLevelClass"/>
<module name="InterfaceIsType"/>
<module name="InnerTypeLast"/>
<module name="HideUtilityClassConstructor"/>
<module name="BooleanExpressionComplexity">
<property name="max" value="6"/>
</module>
</module>
</module>