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
Rule Proposal: max-lines #6078
Comments
I'm a champion |
This rule is very close to complexity (no direct correlation, but never the less more lines usually means higher complexity). Do we need this in the core or should it go into a plugin of some kind? |
@ilyavolodin there is a bit of correlation, but they are quite different. Also, |
+1 |
@eslint/eslint-team opinions? |
👍 |
2 similar comments
👍 |
👍 |
For Lines I assume count under that definition: // comment
/* comment */
/* comment one */ /* comment two */
/* comment one */ // comment two Lines I assume don't count under that definition: var foo = "bar"; // comment And I'm happy to take this on if @alberto isn't super attached. |
From maximumNumberOfLines.
This rule will disallow that a file gets the number of lines more than the specific integer.
max
(default is300
) - The maximum count of lines per file.skipBlankLines
(default isfalse
) - If this istrue
, this rule skips blank lines to count lines.skipComments
(default isfalse
) - If this istrue
, this rule skips comment lines to count lines.The text was updated successfully, but these errors were encountered: