Skip to content

Commit 26b7d47

Browse files
committed
checkstyle.xml: add 9 modules
1 parent 4163bfb commit 26b7d47

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
<property name="id" value="AnnotationLocationVariables"/>
5151
<property name="tokens" value="VARIABLE_DEF"/>
5252
</module>
53+
<module name="AnnotationUseStyle"/>
54+
<module name="MissingDeprecated"/>
5355

5456
<!-- Checks for blocks: -->
5557
<!-- See https://checkstyle.org/checks/blocks -->
@@ -90,10 +92,15 @@
9092

9193
<!-- Checks for common coding problems: -->
9294
<!-- See https://checkstyle.org/checks/coding -->
95+
<module name="AvoidDoubleBraceInitialization"/>
96+
<module name="ConstructorsDeclarationGrouping"/>
97+
<module name="CovariantEquals"/>
98+
<module name="DefaultComesLast"/>
9399
<module name="EmptyStatement"/>
94100
<module name="EqualsHashCode"/>
95101
<module name="FallThrough"/>
96102
<module name="IllegalInstantiation"/>
103+
<module name="IllegalThrows"/>
97104
<module name="IllegalToken">
98105
<property name="tokens" value="LITERAL_NATIVE, STATIC_IMPORT"/>
99106
</module>
@@ -103,6 +110,7 @@
103110
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
104111
</module>
105112
<module name="MissingSwitchDefault"/>
113+
<module name="ModifiedControlVariable"/>
106114
<module name="NoFinalizer"/>
107115
<module name="OneStatementPerLine"/>
108116

@@ -162,6 +170,7 @@
162170
<property name="lineWrappingIndentation" value="4"/>
163171
<property name="throwsIndent" value="4"/>
164172
</module>
173+
<module name="NoCodeInFile"/>
165174
<module name="OuterTypeFilename"/>
166175
<module name="UpperEll"/>
167176

0 commit comments

Comments
 (0)