ruleset: update ruleset XML to match kemitix-pmd-ruleset
FileLength: restrict to 500 lines JavaNCSS: reduce limits (class & file 250, method 12) MethodCount: reduce to 10 MethodLength: reduce to 30
This commit is contained in:
parent
423255b704
commit
de5530e696
1 changed files with 8 additions and 6 deletions
|
@ -8,7 +8,9 @@
|
||||||
<property name="fileNamePattern" value="(.sync-conflict-| conflicted copy )"/>
|
<property name="fileNamePattern" value="(.sync-conflict-| conflicted copy )"/>
|
||||||
<property name="match" value="true"/>
|
<property name="match" value="true"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.sizes.FileLengthCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.sizes.FileLengthCheck">
|
||||||
|
<property name="max" value="500"/>
|
||||||
|
</module>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck"/>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.header.HeaderCheck">
|
<module name="com.puppycrawl.tools.checkstyle.checks.header.HeaderCheck">
|
||||||
<property name="fileExtensions" value="java"/>
|
<property name="fileExtensions" value="java"/>
|
||||||
|
@ -97,9 +99,9 @@
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck"/>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck"/>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck">
|
<module name="com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck">
|
||||||
<property name="classMaximum" value="1200"/>
|
<property name="classMaximum" value="250"/>
|
||||||
<property name="fileMaximum" value="1600"/>
|
<property name="fileMaximum" value="250"/>
|
||||||
<property name="methodMaximum" value="40"/>
|
<property name="methodMaximum" value="12"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck"/>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck">
|
<module name="com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck">
|
||||||
|
@ -110,10 +112,10 @@
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck"/>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck"/>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.sizes.MethodCountCheck">
|
<module name="com.puppycrawl.tools.checkstyle.checks.sizes.MethodCountCheck">
|
||||||
<property name="maxTotal" value="30"/>
|
<property name="maxTotal" value="10"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.sizes.MethodLengthCheck">
|
<module name="com.puppycrawl.tools.checkstyle.checks.sizes.MethodLengthCheck">
|
||||||
<property name="max" value="40"/>
|
<property name="max" value="30"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck"/>
|
||||||
<module name="com.puppycrawl.tools.checkstyle.checks.whitespace.MethodParamPadCheck"/>
|
<module name="com.puppycrawl.tools.checkstyle.checks.whitespace.MethodParamPadCheck"/>
|
||||||
|
|
Loading…
Reference in a new issue