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
LeftCurlyCheck: An empty line should not be treated as a wrap #6036
Comments
I'm on it |
…eated as a wrap
…eated as a wrap
…eated as a wrap
…eated as a wrap
…eated as a wrap
@romani just to be clear:
All of these cases (1,2,3) should be violations, and not considered wrapped? |
no. because we have something (even empty line) between expression and |
(1), (2), (3) do not cause violations (latest master snapshot). Does this mean that there is no longer an issue, then? |
@pbludov ,
so technically current behavior is correct, as extra empty line(or line with comment) is continuation of expression as curly brace is not yet detected. |
I'm ok with current behaviour and ok to close this issue. |
from #6025 (comment)
https://checkstyle.org/config_blocks.html#LeftCurly
https://checkstyle.org/property_types.html#LeftCurlyOption
An empty line should not be treated as a wrap.
option=NLOW
an empty line implies wrap. More generally:
Also, a comment triggers a wrap:
openjdk10/make/src/classes/build/tools/cldrconverter/LDMLParseHandler.java.html#L267
spotbugs/spotbugs/src/main/java/edu/umd/cs/findbugs/OpcodeStack.java.html#L1562
The text was updated successfully, but these errors were encountered: