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

Added automatic code formatter #418

Merged
merged 3 commits into from
May 6, 2022

Conversation

or-shachar
Copy link
Contributor

@or-shachar or-shachar commented Apr 26, 2022

Resolves #417 :-)
Note: this requires JDK > 11

The first commit is adding a maven plugin that can check and auto-fix formatting + adds CircleCI step that fails if somehow the developer forgot to format. You can see the CircleCI failure (as the code is not formatted).

The second commit is after applying the plugin format.

@or-shachar or-shachar force-pushed the or-shachar/lint-spotify branch 4 times, most recently from 01d007d to 389d161 Compare April 26, 2022 16:23
@matthiasr
Copy link
Contributor

I like it!

I think JDK 11 is totally fine, we don't test on anything but 17 anyway, and since this isn't a library I am not worried about broad legacy support.

@matthiasr
Copy link
Contributor

#417 is merged, could you rebase this PR so we can get it merged, or allow me to make modifications?

Signed-off-by: or-shachar <or.shachar@wiz.io>
Signed-off-by: or-shachar <or.shachar@wiz.io>
Signed-off-by: or-shachar <or.shachar@wiz.io>
@or-shachar
Copy link
Contributor Author

@matthiasr - I think we're ready here too 🌷

@matthiasr
Copy link
Contributor

Beautiful!

@matthiasr matthiasr merged commit b1928a1 into prometheus:master May 6, 2022
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.

Unify and enforce formatting
2 participants