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

CI: Add Auto-Format GitHub Actions to format Java Files #7328

Open
SaptarshiSarkar12 opened this issue Nov 25, 2023 · 0 comments
Open

CI: Add Auto-Format GitHub Actions to format Java Files #7328

SaptarshiSarkar12 opened this issue Nov 25, 2023 · 0 comments

Comments

@SaptarshiSarkar12
Copy link

Is your feature request related to a problem? Please describe.

This project has a code style defined in checkstyle.xml file in the checkstyle directory. Checking whether the code in the Pull Requests or branches follows the project's code style and applying fixes accordingly is a tedious work.

Describe the solution you'd like

I want to use OpenRewrite's Gradle Plugin to automatically format the Java files using the Checkstyle configuration. I would also like to create a GitHub Actions to automatically run the formatter and push the changes to the branches or the PRs.

Additional context

I have implemented this feature in an Open-Source project - Drifty and the GitHub Action also pushes the formatted files to the branches or PRs as you can see below 👇
Screenshot from 2023-11-25 08-22-24
If this issue seems good to the maintainers and adds some value to the project, then, I would like to work on this issue.

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

No branches or pull requests

1 participant