We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe286b commit f69e597Copy full SHA for f69e597
cxx-checks/src/main/java/org/sonar/cxx/checks/FunctionCognitiveComplexityCheck.java
@@ -35,13 +35,13 @@
35
36
@Rule(
37
key = "FunctionCognitiveComplexity",
38
- name = "Functions should not be too complex",
+ name = "Cognitive Complexity of methods/functions should not be too high",
39
tags = {Tag.BRAIN_OVERLOAD},
40
- priority = Priority.MAJOR)
+ priority = Priority.CRITICAL)
41
@ActivatedByDefault
42
@SqaleLinearWithOffsetRemediation(
43
coeff = "1min",
44
- offset = "10min",
+ offset = "5min",
45
effortToFixDescription = "per complexity point above the threshold")
46
public class FunctionCognitiveComplexityCheck extends SquidCheck<Grammar> {
47
0 commit comments