Skip to content

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

@SaptarshiSarkar12

Description

@SaptarshiSarkar12

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 👇
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions