mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
Checkstyle add WhitespaceAround, ModifierOrder, ParenPad
This commit is contained in:
+13
-1
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user