forked from Consensys/tessera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.xml
140 lines (121 loc) · 6.28 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="FileLength">
<property name="max" value="3500"/>
<property name="fileExtensions" value="java"/>
</module>
<module name="FileTabCharacter"/>
<module name="SuppressionFilter">
<property name="file" value="${checkstyle.suppressions.file}" />
</module>
<!-- Miscellaneous -->
<module name="NewlineAtEndOfFile"/> <!-- Hinted to by the .editorconfig file-->
<module name="UniqueProperties"/>
<module name="TreeWalker">
<module name="InterfaceTypeParameterName"/>
<module name="MethodName"/>
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="UnusedImports"/>
<module name="StaticVariableName"/>
<module name="TypeName"/>
<module name="MemberName"/>
<module name="MethodTypeParameterName"/>
<module name="PackageName"/>
<module name="ParameterName"/>
<module name="StaticVariableName"/>
<module name="TypeName"/>
<module name="RedundantModifier"/>
<module name="ModifierOrder"/>
<module name="EqualsHashCode"/>
<module name="EmptyStatement"/>
<module name="SimplifyBooleanExpression"/>
<module name="ParameterAssignment"/>
<module name="SimplifyBooleanReturn"/>
<module name="VariableDeclarationUsageDistance"/>
<module name="ParameterNumber">
<property name="max" value="5"/>
<property name="tokens" value="METHOD_DEF"/>
</module>
<module name="JavadocMethod">
<property name="allowMissingJavadoc" value="true" />
<property name="allowMissingReturnTag" value="true" />
<property name="allowMissingParamTags" value="true" />
<property name="allowMissingThrowsTags" value="true" />
</module>
<module name="EnumValueName"/>
</module>
<!-- Whitespace -->
<module name="TreeWalker" >
<module name="ParenPad"/>
<module name="GenericWhitespace"/>
<module name="TypecastParenPad"/>
<module name="SingleSpaceSeparator"/>
<!--Cannot have any whitespace before this token-->
<module name="NoWhitespaceBefore">
<property name="tokens" value="COMMA, SEMI, POST_INC, POST_DEC, GENERIC_END, ELLIPSIS, METHOD_REF"/>
<property name="allowLineBreaks" value="false"/>
</module>
<!--Can only have whitespace before this token if it's first token on line-->
<module name="NoWhitespaceBefore">
<property name="tokens" value="DOT"/>
<property name="allowLineBreaks" value="true"/>
</module>
<!--No whitespace directly after this token-->
<module name="NoWhitespaceAfter">
<property name="tokens" value="AT, INC, DEC, UNARY_MINUS, UNARY_PLUS, BNOT, LNOT, DOT, ARRAY_DECLARATOR, INDEX_OP, METHOD_REF"/>
</module>
<!-- Make sure that method calls have no space between method name and left parenthesis -->
<module name="MethodParamPad">
<property name="option" value="nospace"/>
<property name="tokens" value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF, SUPER_CTOR_CALL, ENUM_CONSTANT_DEF"/>
</module>
<!-- These separators (. @ ::) cannot appear at end of a line-->
<module name="SeparatorWrap">
<property name="tokens" value="DOT, AT, METHOD_REF"/>
<property name="option" value="nl"/>
</module>
<!-- These separators (, ;) cannot appear at start of a line-->
<module name="SeparatorWrap">
<property name="tokens" value="COMMA, SEMI"/>
<property name="option" value="EOL"/>
</module>
<module name="NoLineWrap">
<property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
</module>
<!-- Cannot be the first token on the line -->
<module name="OperatorWrap">
<property name="option" value="eol"/>
<property name="tokens" value="TYPE_EXTENSION_AND, SR, BSR, SL, BXOR, BOR, BAND"/>
<property name="tokens" value="SR_ASSIGN, BSR_ASSIGN, SL_ASSIGN, BXOR_ASSIGN, BOR_ASSIGN, BAND_ASSIGN"/>
<!--<property name="tokens" value="PLUS"/>--> <!-- TODO: uncomment -->
<property name="tokens" value="DIV, MINUS, STAR, MOD"/>
<property name="tokens" value="PLUS_ASSIGN, DIV_ASSIGN, MINUS_ASSIGN, STAR_ASSIGN, MOD_ASSIGN"/>
<property name="tokens" value="LITERAL_INSTANCEOF, METHOD_REF, QUESTION, COLON"/>
<property name="tokens" value="GE, GT, LE, LT"/>
<!--<property name="tokens" value="LOR, LAND"/>--> <!-- TODO: uncomment -->
<property name="tokens" value="EQUAL, NOT_EQUAL"/>
</module>
<!-- Cannot be last token on the line-->
<module name="OperatorWrap">
<property name="option" value="nl"/>
<!--<property name="tokens" value="ASSIGN"/>--> <!-- TODO: uncomment -->
<property name="tokens" value="TYPE_EXTENSION_AND, SR, BSR, SL, BXOR, BOR, BAND"/>
<property name="tokens" value="SR_ASSIGN, BSR_ASSIGN, SL_ASSIGN, BXOR_ASSIGN, BOR_ASSIGN, BAND_ASSIGN"/>
<!--<property name="tokens" value="PLUS"/>--> <!-- TODO: uncomment -->
<property name="tokens" value="DIV, MINUS, STAR, MOD"/>
<property name="tokens" value="PLUS_ASSIGN, DIV_ASSIGN, MINUS_ASSIGN, STAR_ASSIGN, MOD_ASSIGN"/>
<property name="tokens" value="LITERAL_INSTANCEOF, METHOD_REF, QUESTION, COLON"/>
<property name="tokens" value="GE, GT, LE, LT"/>
<!--<property name="tokens" value="LOR, LAND"/>--> <!-- TODO: uncomment -->
<property name="tokens" value="EQUAL, NOT_EQUAL"/>
</module>
<!-- <module name="EmptyLineSeparator">-->
<!-- <property name="allowNoEmptyLineBetweenFields" value="false"/>-->
<!-- <property name="allowMultipleEmptyLines" value="false" />-->
<!-- <property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>-->
<!-- </module>-->
</module>
</module>