-
Notifications
You must be signed in to change notification settings - Fork 112
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
Upgrade to Checkstyle 8.21 #113
Comments
It was added in 8.19. |
Would it be possible to add an integration test in this project or something? The project currently build with that version and I'd expect it to fail. |
Any temporary solution ? |
You'll have to use Checkstyle 8.18 or earlier for now. |
8.21 has changed how try-with-resources is treated and the formatter and Checkstyle now disagree. The formatter produces this:
Checkstyle reports an error due to multiple statements:
A change in Checkstyle is being discussed and a PR has been proposed. AIUI, the proposed change will mean that an error is no longer reported by default with a property to turn it on. I'm not sure if we should:
|
Changing the formatter is never easy so I'm tempted to fix it at checkstyle. Perhaps we can create our own local copy of that rule until the 8.22 is released. |
There are only a handful of places in Boot that are affected. See parts of this commit. Another option could be to live with it and avoid having our own interim copy of the rule. |
I think I prefer the multiple |
This project uses the latest checkstyle release at that time (8.21). Trying to use
0.0.12
with that version on theinitializr
repository leads to:This can be reproduced by upgrading the checkstyle version locally
The text was updated successfully, but these errors were encountered: