-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Introduce the LeftCurlyCheck with a new message #12564
Comments
@Kevin222004 please follow issue template. |
@nrmancuso updated |
@Kevin222004 , please use officially released version , you used |
@romani done |
please update Test.java to have violation. |
is it fine |
Please remove |
done |
@romani ping |
All |
@romani ping |
please remove from remove for:
|
@Kevin222004 , do you have any recommendations for doc update
to make clear that "end of line" means something like "same line as block parent (identifier/expression/declaration)" |
I am also very confused now about this issue 🙃. that which msg is good. where to show which msg if I rethink this from the beginning,
know maybe those who have written that code thought about the logic that there is no code possible between the idea of the new message has begun from #12548 (comment)
know this is also very weird code to put comment like this if we want to put it lastly we can change the entire message |
yes we have to update this to make it very clear the meaning of end of line and if this pr is approved then https://checkstyle.org/config_blocks.html#LeftCurly we also need to update this to make it very clear the meaning of message end of line or i think in general we have to update it to make the meaning of eol clear |
@romani what is your opinion |
@romani should i create the minor pr to update it |
I have read check documentation:
https://checkstyle.org/config_blocks.html#LeftCurly
I have used latest version of checkstyle https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.6.0/checkstyle-10.6.0-all.jar
I have executed the cli and showed it below, as cli describes the problem better than 1,000 words
we can make violation like
// violation '{' is expected at the end of line
so user can decide it where to putthe LeftCurly
more information #12548 (comment)
Attention: we can introduce new message and migrate to it in few iterations. If current message is used good in some context, we should not change it.
The text was updated successfully, but these errors were encountered: