How to include Cognitive complexity for Java code? #3008
-
Description: I use the following rules:
But when I try to run the command it tells me that:
If I omit CognitiveComplexity, it works well, I have been using your tool for 3 moths already. But I cannot add CognitiveComplexity. How can I compute it and add to the rules? I also tried to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The Contributions to migrate the rule to Java are always welcomed. |
Beta Was this translation helpful? Give feedback.
-
Ref #2329 |
Beta Was this translation helpful? Give feedback.
The
CognitiveComplexity
is currently only available for Apex, not for Java, as denoted by the location of the rulecategory/**apex**/design.xml/CognitiveComplexity
.Contributions to migrate the rule to Java are always welcomed.