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

versatile-data-kit: set automatic java formatter #757

Merged
merged 5 commits into from
Aug 25, 2022

Conversation

antoniivanov
Copy link
Collaborator

@antoniivanov antoniivanov commented Mar 8, 2022

We have settled on using Google Java coding style . This is adding
github action to automatically format the code.

I nitially wanted to use pre-commit hook
(https://github.com/macisamuele/language-formatters-pre-commit-hooks)
but it requires to have installed locally java and I could not figuore
out how to make it optional for local runs.

Signed-off-by: Antoni Ivanov [email protected]

Copy link
Contributor

@ivakoleva ivakoleva left a comment

Choose a reason for hiding this comment

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

lgtm, seems the hook will autoupdate to use latest google java formatter, unless pinned to a specific one

@antoniivanov antoniivanov changed the title versatile-data-kit: set pre-commit hook for java formatter [draft] versatile-data-kit: set pre-commit hook for java formatter Mar 22, 2022
@antoniivanov antoniivanov force-pushed the person/aivanov/java-style branch 3 times, most recently from d2d3c05 to 34ae85f Compare April 13, 2022 14:22
@antoniivanov
Copy link
Collaborator Author

This is on hold for now because I have not figure out how to apply the pre-commit hook without requiring java to be installed . Java is only required for control service. There are people that have contributed only to the SDK. We should not require them to have java.

@antoniivanov antoniivanov force-pushed the person/aivanov/java-style branch 3 times, most recently from 040fc83 to d002063 Compare August 23, 2022 20:15
We have settled on using Google Java coding style . This is adding
github action to automatically format the code.

I nitially wanted to use pre-commit hook
(https://github.com/macisamuele/language-formatters-pre-commit-hooks)
but it requires to have installed locally java and I could not figuore
out how to make it optional for local runs.

Signed-off-by: Antoni Ivanov <[email protected]>
@antoniivanov antoniivanov force-pushed the person/aivanov/java-style branch from 327e8f5 to ad9b8bf Compare August 23, 2022 20:35
@antoniivanov antoniivanov changed the title [draft] versatile-data-kit: set pre-commit hook for java formatter versatile-data-kit: set pre-commit hook for java formatter Aug 24, 2022
@antoniivanov antoniivanov changed the title versatile-data-kit: set pre-commit hook for java formatter versatile-data-kit: set automatic java formatter Aug 24, 2022
@antoniivanov antoniivanov enabled auto-merge (squash) August 25, 2022 13:43
@antoniivanov antoniivanov merged commit 3507c2d into main Aug 25, 2022
@antoniivanov antoniivanov deleted the person/aivanov/java-style branch August 25, 2022 13:56
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.

4 participants