Skip to content

Commit c170c73

Browse files
committed
checkstyle.xml: add 3 modules
1 parent 72e3c8e commit c170c73

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

config/checkstyle/checkstyle.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<property name="message" value="Use special escape sequence instead of octal value or Unicode escaped value."/>
126126
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
127127
</module>
128+
<module name="IllegalType"/>
128129
<module name="MissingSwitchDefault"/>
129130
<module name="MultipleVariableDeclarations"/>
130131
<module name="NoFinalizer"/>
@@ -133,6 +134,7 @@
133134
<!-- Checks for imports: -->
134135
<!-- See https://checkstyle.org/checks/imports -->
135136
<module name="AvoidStarImport"/>
137+
<module name="AvoidStaticImport"/>
136138
<module name="CustomImportOrder">
137139
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
138140
<property name="separateLineBetweenGroups" value="true"/>
@@ -272,6 +274,10 @@
272274

273275
<!-- Regexp checks: -->
274276
<!-- See https://checkstyle.org/checks/regexp -->
277+
<module name="RegexpSinglelineJava">
278+
<property name="format" value="static (abstract|final|native|package|private|protected)|(native|package|private|protected) (abstract|final)"/>
279+
<property name="message" value="Modifiers must appear in alphabetical order."/>
280+
</module>
275281
<module name="RegexpSinglelineJava">
276282
<property name="format" value="\{[ ]+\}"/>
277283
<property name="message" value="Empty blocks must not contain spaces."/>

0 commit comments

Comments
 (0)