Cognitive complexity statistic #285
ernestasjuska
started this conversation in
New Rule
Replies: 1 comment
-
Hi @ernestasjuska. This sounds promising and could be great rule next to the Cyclomatic Complexity (LC0010). I'll will look into this and see if I can make a new rule for this in the undefined future. For now I've moved your issue to a discussion to have a follow-up here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
While looking information on cyclomatic complexity I came across "cognitive complexity".
Info: https://www.sonarsource.com/blog/cognitive-complexity-because-testability-understandability/
Whitepaper: https://www.sonarsource.com/docs/CognitiveComplexity.pdf
It seems to describe complexity of the function better than cyclomatic complexity while remaining very simple.
Maybe this method could be implemented too?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions