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

feat: add java spotless code formatter #101

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

JudeNiroshan
Copy link
Contributor

@JudeNiroshan JudeNiroshan commented Apr 4, 2024

Description

Introduce Java spotless code formatter -> https://github.com/diffplug/spotless/tree/main/plugin-maven

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Additional information

Check pom.xml and license-header files. Everything else is changed because I ran mvn spotless:apply

Anything else?

When someone raises a new PR, it will be validated automatically in the build phase of the github actions for PR.

Copy link
Collaborator

@zvigrinberg zvigrinberg left a comment

Choose a reason for hiding this comment

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

@JudeNiroshan
Please see my comments.
In addition, i personally find google-java-format more readable and easy to read style for the formatter.

pom.xml Show resolved Hide resolved
@JudeNiroshan JudeNiroshan force-pushed the code-formatter branch 2 times, most recently from 825bf9c to becb54f Compare April 18, 2024 11:23
Copy link
Collaborator

@zvigrinberg zvigrinberg left a comment

Choose a reason for hiding this comment

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

LGTM

@JudeNiroshan JudeNiroshan removed the request for review from xieshenzh April 19, 2024 07:08
@JudeNiroshan JudeNiroshan enabled auto-merge (squash) April 19, 2024 07:09
@JudeNiroshan JudeNiroshan merged commit 62e4445 into RHEcosystemAppEng:main Apr 19, 2024
5 checks passed
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.

2 participants