Skip to content

Commit e1677d2

Browse files
committed
checkstyle.xml: add 3 modules
1 parent 3d94e0e commit e1677d2

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
@@ -106,6 +106,7 @@
106106
<!-- See https://checkstyle.org/checks/coding -->
107107
<module name="AvoidDoubleBraceInitialization"/>
108108
<module name="AvoidNoArgumentSuperConstructorCall"/>
109+
<module name="ConstructorsDeclarationGrouping"/>
109110
<module name="CovariantEquals"/>
110111
<module name="DefaultComesLast"/>
111112
<module name="EmptyStatement"/>
@@ -197,6 +198,7 @@
197198
<module name="CommentsIndentation">
198199
<property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
199200
</module>
201+
<module name="NoCodeInFile"/>
200202
<module name="OuterTypeFilename"/>
201203
<module name="UpperEll"/>
202204

@@ -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)