Skip to content

Prevent Java builds from silently reformatting source files - #772

Open
jonathan343 wants to merge 2 commits into
developfrom
java-linting
Open

Prevent Java builds from silently reformatting source files#772
jonathan343 wants to merge 2 commits into
developfrom
java-linting

Conversation

@jonathan343

Copy link
Copy Markdown
Contributor

Summary

Our Java formatting check currently rewrites files before validating them. Because spotlessCheck invokes spotlessApply, make build-java silently fixes formatting errors and CI passes. This allows unformatted code to reach develop, causing unrelated formatting changes to appear in later PRs.

This PR separates formatting from validation so builds and CI fail on unformatted code without modifying source files. It also adds explicit formatting commands and applies the outstanding formatting fixes.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jonathan343
jonathan343 requested a review from a team as a code owner August 17, 2026 21:35
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.

1 participant