-
Notifications
You must be signed in to change notification settings - Fork 157
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
Formatter setup with checkstyle.xml doesn't honor SeparatorWrap rules in checksum #335
Comments
Thanks for the report. I'll add it to the todo list. The formatter import was a contribution however, so I'm not familiar with the code and hence I can make no promises as to when/if this will be fixed. |
Please prioritize this issue. We have been struggling formatting our legacy code and it is really hard for us to do this manually. |
@appraveen see https://stackoverflow.com/questions/45109089/checkstyle-can-i-change-the-should-be-on-the-previous-line-rule-of-meth |
@nddipiazza thank you for the link. It will work for method parameters. There are many other instances where line wrapping has to be properly formatted Wrap around operators
if reformat code does not take care of this, then everyone has to manually fix the line and run checkstyle to ensure all rules are passing. No wonder if we end up doing multiple tries before wrapping the line successfully. |
The code formatter input was a contribution, and to be honest it's not something I'm very familiar with. While there's certainly work I want to get done on the plugin, this is pretty low on the priority list and unlikely to be fixed any time soon. If this is a major problem for you, contributions are very welcome. |
I could be wrong, but it seems like IntelliJ itself does not have the option that allows us to set a wrap on commas, dots, etc in the formatter. |
I have loaded checkstyle.xml into the intellij formatter with the following separator wraps:
yet when i format
it spaces it incorrectly
It should have respected the SeparatorWrap rule and put the comma on the previous line.
The text was updated successfully, but these errors were encountered: