From 423255b704fdc0d52fcf50e7deca4c6aa1c13284 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 9 Mar 2018 19:51:08 +0000 Subject: [PATCH] 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 --- builder/src/main/resources/application.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/builder/src/main/resources/application.yml b/builder/src/main/resources/application.yml index 7d504a7..5d888f0 100644 --- a/builder/src/main/resources/application.yml +++ b/builder/src/main/resources/application.yml @@ -296,6 +296,8 @@ rules: enabled: true source: CHECKSTYLE uri: http://checkstyle.sourceforge.net/config_sizes.html#FileLength + properties: + max: 500 - name: FileTabCharacter parent: CHECKER @@ -463,9 +465,9 @@ rules: source: CHECKSTYLE uri: http://checkstyle.sourceforge.net/config_metrics.html#JavaNCSS properties: - classMaximum: 1200 - fileMaximum: 1600 - methodMaximum: 40 + classMaximum: 250 + fileMaximum: 250 + methodMaximum: 12 - name: LeftCurly parent: TREEWALKER @@ -518,7 +520,7 @@ rules: source: CHECKSTYLE uri: http://checkstyle.sourceforge.net/config_sizes.html#MethodCount properties: - maxTotal: 30 + maxTotal: 10 - name: MethodLength parent: TREEWALKER @@ -527,7 +529,7 @@ rules: source: CHECKSTYLE uri: http://checkstyle.sourceforge.net/config_sizes.html#MethodLength properties: - max: 40 + max: 30 - name: MethodName parent: TREEWALKER