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

Format the codebase using google-java-format #46

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Format the codebase using google-java-format #46

merged 2 commits into from
Apr 16, 2024

Conversation

stea-uw
Copy link
Contributor

@stea-uw stea-uw commented Oct 30, 2023

The first commit adds the google-java-formatter (via spotless) to our pom.xml, and the second simply runs it. Though this PR is large now, it will help prevent misconfigured IDEs from mis-formatting the code in the future.

This is a large PR because it was generated by an automated tool.

If you wish to verify this PR, you can copy the pom.xml settings, then run the following maven command.

mvn spotless:apply

You should end up with the exact same repo state as this PR.

@stea-uw stea-uw requested a review from mar235av October 30, 2023 23:47
@stea-uw stea-uw self-assigned this Oct 30, 2023
@mar235av
Copy link
Collaborator

mar235av commented Nov 1, 2023

Reviewed and looks OK. I didn't do a full validation as it's clear that even though there are a lot of changes, they are all driven by running a standard formatter in which we can have confidence.
We will want to run a set of reasonable tests before pushing these changes into prod.

stea-uw added 2 commits April 16, 2024 11:26
When run, this will automatically format all files to follow the Google style guide.
    Doing this now will prevent spurious diffs in the future
@stea-uw stea-uw merged commit 1707644 into main Apr 16, 2024
1 check passed
@stea-uw stea-uw deleted the format branch April 16, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants