Skip to content

Commit cbd742b

Browse files
committed
checkstyle.xml: add 3 modules
1 parent e5c758c commit cbd742b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

config/checkstyle/checkstyle.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<!-- See https://checkstyle.org/checks/javadoc/javadocpackage.html -->
1414
<module name="JavadocPackage"/>
1515

16+
<!-- Miscellaneous checks: -->
17+
<!-- See https://checkstyle.org/checks/misc -->
18+
<module name="NewlineAtEndOfFile"/>
19+
1620
<!-- Check for trailing whitespace: -->
1721
<!-- See https://checkstyle.org/checks/regexp/regexpsingleline.html -->
1822
<module name="RegexpSingleline">
@@ -84,6 +88,9 @@
8488
<module name="HideUtilityClassConstructor"/>
8589
<module name="InterfaceIsType"/>
8690
<module name="OneTopLevelClass"/>
91+
<module name="ThrowsCount">
92+
<property name="max" value="3"/>
93+
</module>
8794

8895
<!-- Checks for common coding problems: -->
8996
<!-- See https://checkstyle.org/checks/coding -->
@@ -112,6 +119,7 @@
112119
<!-- Checks for imports: -->
113120
<!-- See https://checkstyle.org/checks/imports -->
114121
<module name="AvoidStarImport"/>
122+
<module name="AvoidStaticImport"/>
115123
<module name="CustomImportOrder">
116124
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
117125
<property name="separateLineBetweenGroups" value="true"/>

0 commit comments

Comments
 (0)