You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for this great tool 😄 I was scratching my head when adding/removing any lines from try block was influencing cognitive complexity and searched in your documentation and then code why is that and found this line in code:
Hi, thanks for this great tool 😄 I was scratching my head when adding/removing any lines from
try
block was influencing cognitive complexity and searched in your documentation and then code why is that and found this line in code:cognitive_complexity/cognitive_complexity/utils/ast.py
Line 40 in 1df07df
It means that any line added inside try block will increment complexity (code below gives complexity 4)
This behavior is unexpected as it was not mentioned in SonarSource links provided, can we document it here or in flake8 extension? Thanks
The text was updated successfully, but these errors were encountered: