Skip to content

Commit 0f53292

Browse files
authored
Merge pull request #1294 from guwirth/cognitive-rule-name
align FunctionCognitiveComplexity with Java, Python, ...
2 parents 4fe286b + f69e597 commit 0f53292

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cxx-checks/src/main/java/org/sonar/cxx/checks/FunctionCognitiveComplexityCheck.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535

3636
@Rule(
3737
key = "FunctionCognitiveComplexity",
38-
name = "Functions should not be too complex",
38+
name = "Cognitive Complexity of methods/functions should not be too high",
3939
tags = {Tag.BRAIN_OVERLOAD},
40-
priority = Priority.MAJOR)
40+
priority = Priority.CRITICAL)
4141
@ActivatedByDefault
4242
@SqaleLinearWithOffsetRemediation(
4343
coeff = "1min",
44-
offset = "10min",
44+
offset = "5min",
4545
effortToFixDescription = "per complexity point above the threshold")
4646
public class FunctionCognitiveComplexityCheck extends SquidCheck<Grammar> {
4747

0 commit comments

Comments
 (0)