-
Notifications
You must be signed in to change notification settings - Fork 27
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
File and Method Length Ignore Empty Lines #353
Comments
How about calling it |
What if you want to ignore comments, but not empty lines? ;) |
how about:
|
I'm not sure users will actually use it, but if we change it, then we might as well go for a maximum of flexibility. This might even lead to a separate test calculating a code vs non-code ratio... |
So would you have like "ActiveMethodLength" and the normal "MethodLength" as well? |
No, MethodLength can handle both cases (or all four), you can even define them in the same config file. A check for measuring code to non-code ratios is a whole different thing, I'm not even sure if that makes sense on a method level. |
I've come to the conclusion, that Compatibility with Java checkstyle is not really necessary, since config files are not interchangeable between Haxe and Java and specific implementations might vary in scope or function. So people will have to read checkstyle docs either way. I haven't added ignoring for comments, so I'll keep this issue open. |
Sometimes it's nice to add new lines to create logical blocks inside a function. It would be great if there were an option to ignore empty lines when doing a line count.
I propose:
The text was updated successfully, but these errors were encountered: