-
Notifications
You must be signed in to change notification settings - Fork 60
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
Complexity in list comprehensions #69
Comments
To be hones I seen a lot of abuse related to list comprehensions, with nesting and other stuff that reduced the readability and maintainability of the code considerably. Shorter is no always better. I would be very happy if mccabe would not promote people to trick complexity-score by using list comprehensions. |
This assumes bad intent on the part of the author and maintainers which is unwelcome. |
Having
asdf.py
:The McCabe complexity in
loop()
seems to be higher than incomprehension()
:Is that really expected? Should not
for
s andif
s in list comprehensions count towards total complexity?The text was updated successfully, but these errors were encountered: