-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add and apply Checkstyle config. #389
Conversation
9493ebf
to
52c9559
Compare
Oh well, looks like I've touched virtually every single Java file there is: 496/499 🤯 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, this is a lot of change ... hard to check everything. After my scanning I think it's good.
Checks have been disabled for test sources ...
Very good - so it's clear with one glimpse that the code (style) changes didn't change the outcome of the tests (there are some tests changed - but it's just adding a newline before package declaration).
... ; maybe they should be enabled at a later stage?
+1
Yes, sorry about that! But if it's any consolation, it was also a lot to write ;)
Thanks!
I only applied very few automatic changes to the test sources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phew, awesome, many thanks for setting this up! 🎉
Oddly, I had to run ./gradlew editorconfigFormat
locally once (but resulting in no changes on git diff
) to get rid of violation errors (whitespace/newline issues).
Thanks for the review!
So you had local (unversioned) files that were checked? Would you want those to get excluded/ignored? |
No, no unversioned files. Maybe related to line endings managed by git internally ( |
Based on https://github.com/metafacture/metafacture-fix/blob/master/config/checkstyle/checkstyle.xml (metafacture/metafacture-fix#11).
Originally posted by @fsteeg in #387 (comment)
This would be part 2 (see #388 for part 1).
Notes:
checkstyle-disable-line
) should be evaluated; maybe adjust the Checkstyle config.MagicNumber
,MissingCtor
,ReturnCount