-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
Why complexity is off? #1758
Comments
In practice, it's not a very useful metric. |
Why is not useful?, in teory could evoid complexity, not? |
For me, more better metric and more quality code you will get if you combine:
Don't know how In almost my whole life i didn't needed more than 15 statements and 5 nested-callbacks/max-depth - there is always a way to refactor and extract, except some rare scenarios. |
@yeion7 that's the theory. In practice, it doesn't really help. |
Why the rule complexity is off by default?
https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/best-practices.js#L14
The text was updated successfully, but these errors were encountered: