Skip to content
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

Disable Spotless on gradle check for now #210

Merged

Conversation

MrDOS
Copy link
Contributor

@MrDOS MrDOS commented Feb 1, 2021

I really want to start to use Spotless, and having it run automatically on gradle check is part of its magic – but it needs to not cause build failures due to formatting errors in areas which haven't changed. I was hoping ratchetting mode would be sufficient, but that still checks formatting on a whole-file basis. E.g., if a file Foo.java was changed, then the entire Foo.java is checked for formatting errors, not just the area of the diff. In a project like this where the majority of the source is (currently, lamentably) kept in a couple multi-thousand-line files, you can't sensibly apply formatting fixes on a file-by-file basis along with other changes. It masks the real diff too much. I'm about to open a PR to fix #197; it's +259 -103. But because it touches RXTXPort.java, it would be ten times that size if I had to fix the formatting at the same time, and the real changes would be totally buried.

Hopefully I can get a reformatting commit made up soon, and then I'm looking forward to re-enabling Spotless on the check task.

@MrDOS MrDOS merged commit 6c54eeb into NeuronRobotics:master Feb 1, 2021
@MrDOS MrDOS deleted the improvement/disable-spotless-on-check branch February 1, 2021 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In case of HARDWARE_ERROR event serial.disconnect() never returns
1 participant