-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cognitive complexity calculation is incorrect #10
Comments
The algorithm in this plugin is implemented in https://github.com/Melevir/cognitive_complexity, you might get more attention opening an issue there |
When I run the functions through the complexity checker as a part of the tests, I get 16 and 15 respectively:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Computed Cognitive complexity is 12 (I believe correct) for this:
However, 10 is incorrect (less than before???) for following code:
Note complexity should be higher than before since code is the same with an added 'if' condition after the 'else'):
The text was updated successfully, but these errors were encountered: