ruleset: update 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:
Paul Campbell 2018-03-09 19:51:08 +00:00
parent 6283c9af80
commit 423255b704

View file

@ -296,6 +296,8 @@ rules:
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
uri: http://checkstyle.sourceforge.net/config_sizes.html#FileLength uri: http://checkstyle.sourceforge.net/config_sizes.html#FileLength
properties:
max: 500
- -
name: FileTabCharacter name: FileTabCharacter
parent: CHECKER parent: CHECKER
@ -463,9 +465,9 @@ rules:
source: CHECKSTYLE source: CHECKSTYLE
uri: http://checkstyle.sourceforge.net/config_metrics.html#JavaNCSS uri: http://checkstyle.sourceforge.net/config_metrics.html#JavaNCSS
properties: properties:
classMaximum: 1200 classMaximum: 250
fileMaximum: 1600 fileMaximum: 250
methodMaximum: 40 methodMaximum: 12
- -
name: LeftCurly name: LeftCurly
parent: TREEWALKER parent: TREEWALKER
@ -518,7 +520,7 @@ rules:
source: CHECKSTYLE source: CHECKSTYLE
uri: http://checkstyle.sourceforge.net/config_sizes.html#MethodCount uri: http://checkstyle.sourceforge.net/config_sizes.html#MethodCount
properties: properties:
maxTotal: 30 maxTotal: 10
- -
name: MethodLength name: MethodLength
parent: TREEWALKER parent: TREEWALKER
@ -527,7 +529,7 @@ rules:
source: CHECKSTYLE source: CHECKSTYLE
uri: http://checkstyle.sourceforge.net/config_sizes.html#MethodLength uri: http://checkstyle.sourceforge.net/config_sizes.html#MethodLength
properties: properties:
max: 40 max: 30
- -
name: MethodName name: MethodName
parent: TREEWALKER parent: TREEWALKER