Increase default values for cognitive complexity based on authors opinions

This commit is contained in:
Gwilym Kuiper
2020-02-19 14:22:30 +00:00
parent a22d6f62b4
commit 413d64ff39

View File

@ -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<Integer> METHOD_LEVEL_DESCRIPTOR
= PropertyFactory.intProperty("methodReportLevel")
.desc("Cognitive complexity reporting threshold")
.require(positive())
.defaultValue(10)
.defaultValue(15)
.build();
private Stack<String> classNames = new Stack<>();