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
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.
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: