Checkstyle add WhitespaceAround, ModifierOrder, ParenPad

This commit is contained in:
Vladimir Ivanov
2023-07-03 18:01:27 +03:00
parent 2acabf8603
commit e37aea85fa
+13 -1
View File
@@ -2,7 +2,8 @@
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="severity" value="error"/>
<property name="charset" value="UTF-8"/>
<module name="TreeWalker">
<module name="AbstractClassName"/>
<module name="AvoidStarImport"/>
@@ -110,6 +111,17 @@
<message key="matchxpath.match"
value="Большая вложенность блоков в методе, максимум 5"/>
</module>
<module name="WhitespaceAround">
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyMethods" value="true"/>
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyLoops" value="true"/>
<message key="ws.notPreceded" value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
<message key="ws.notFollowed"
value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
</module>
<module name="ModifierOrder"/>
<module name="ParenPad"/>
</module>
<module name="LineLength">