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
Empty Line Separator Check, added option for managing empty lines betwee... #597
Empty Line Separator Check, added option for managing empty lines betwee... #597
Conversation
build is failed.
need more explanation on this, previous usually mean "-1", pre-previous "-2" |
6095c2c
to
378c68f
Compare
Corrected build. About pre-previous line: Line 296 in 378c68f
just analyzing previous line from this one. Seems to be it's the feature of FileContents class from where getLines() is calling |
ok, but rename hasEmptyLinesBefore method to be named absolutely reflecting functionality. As "Lines" is not exact, and there is not argument that customize distance before. |
378c68f
to
b95cf5e
Compare
renamed to isPrecededByMoreThanOneEmptyLine "line" is quite exact in this context, we don't need to take care about distance as we're looking for only "> 1 empty lines", so I think it's quite obvious. |
Build is failed. Please send me link to line in code where you have " ... > 1" or " ... > 2" if lines are indexed from 0. |
b95cf5e
to
4ca50aa
Compare
Here's checking line after token Here's checking line before token (only previous line), my method is based on it. |
I meant in isPrecededByMoreThanOneEmptyLine method. Method named incorrectly. |
…ween class members, issue checkstyle#530
4ca50aa
to
8db2b14
Compare
generally speaking, this method checks only pre-previous line, in context of Check couple of methods are checking "more than 1 empty line before", so I renamed this method to isPrePreviousLineEmpty because it checks exactly pre-previous line. |
merged as FF |
...n class members, issue #530
Added option allowMultipleEmptyLines for managing empty lines between class members, default value is true.
Added corresponding UT and input file.