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

Enforce common code style and formatting #651

Open
berezovskyi opened this issue Nov 11, 2024 · 1 comment
Open

Enforce common code style and formatting #651

berezovskyi opened this issue Nov 11, 2024 · 1 comment

Comments

@berezovskyi
Copy link
Contributor

berezovskyi commented Nov 11, 2024

This will be easier in the long run

https://github.com/google/google-java-format is the only tool that I found that works both in Eclipse and IntelliJ.

Maven integration may make things easy via https://github.com/diffplug/spotless/tree/main/plugin-maven#google-java-format (+ can enforce/check other things). Alternatively, https://github.com/spotify/fmt-maven-plugin - also uses google-java-format under the hood.

Ideally add a CI check/fixer - https://github.com/axel-op/googlejavaformat-action should work in the --set-exit-if-changed mode for us, I guess.

@berezovskyi berezovskyi changed the title Enforce common code style Enforce common code style and formatting Nov 11, 2024
@berezovskyi
Copy link
Contributor Author

Starting small with OSLC/lyo-samples#171

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

No branches or pull requests

1 participant