From 413d64ff39a5e074b6bca7e1af57527c87a45b0f Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Wed, 19 Feb 2020 14:22:30 +0000 Subject: [PATCH] Increase default values for cognitive complexity based on authors opinions --- .../pmd/lang/apex/rule/design/CognitiveComplexityRule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/design/CognitiveComplexityRule.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/design/CognitiveComplexityRule.java index 96c392aa2a..319afdd529 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/design/CognitiveComplexityRule.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/design/CognitiveComplexityRule.java @@ -26,14 +26,14 @@ public class CognitiveComplexityRule extends AbstractApexRule { = PropertyFactory.intProperty("classReportLevel") .desc("Total class cognitive complexity reporting threshold") .require(positive()) - .defaultValue(40) + .defaultValue(50) .build(); private static final PropertyDescriptor METHOD_LEVEL_DESCRIPTOR = PropertyFactory.intProperty("methodReportLevel") .desc("Cognitive complexity reporting threshold") .require(positive()) - .defaultValue(10) + .defaultValue(15) .build(); private Stack classNames = new Stack<>();