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

Introduce code formatting + git hooks #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

robhanlon22
Copy link
Contributor

Adds the spotless gradle plugin for a formatting abstraction; prettier for formatting Java, Java properties, YAML, and Markdown; and pre-commit to tie the aforementioned into a pre-commit hook.

Switching to different formatters is trivial if something like google-java-format is desired.

- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: "11"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched to 11 for the newest version of spotless, but source and target compilation is still set to 8

@robhanlon22 robhanlon22 force-pushed the pre-commit branch 2 times, most recently from 1c34510 to d97cd0e Compare November 30, 2023 00:50
Adds the spotless gradle plugin for a formatting abstraction; prettier
for formatting Java, Java properties, YAML, and Markdown; and pre-commit
to tie the aforementioned into a pre-commit hook.
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.

None yet

1 participant