Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

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

Merged
antoniivanov merged 5 commits into
mainfrom
person/aivanov/java-style
Aug 25, 2022
Merged

versatile-data-kit: set automatic java formatter#757
antoniivanov merged 5 commits into
mainfrom
person/aivanov/java-style

Conversation

@antoniivanov

@antoniivanov antoniivanov commented Mar 8, 2022

Copy link
Copy Markdown
Contributor

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 aivanov@vmware.com

@ivakoleva ivakoleva left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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 <aivanov@vmware.com>
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants