athenz icon indicating copy to clipboard operation
athenz copied to clipboard

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

Open SaptarshiSarkar12 opened this issue 7 months ago • 7 comments

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

This project has a code style defined in the athenz-checkstyle.xml file. 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 Maven 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 :point_down: Screenshot from 2023-11-25 08-22-24 If this issue seems good to the maintainers and can add some value to the project, then, I would like to work on this issue.

SaptarshiSarkar12 avatar Nov 25 '23 04:11 SaptarshiSarkar12