Skip to content

automate the remediation of Checkstyle #34830

@Pankraz76

Description

@Pankraz76

Fixing violations by hand is tedious and error-prone - even though you gain experience, which Checkstyle is also kind of about.

It would be nifty to have a real autofix solution like OpenRewrite to properly address these issues: https://docs.openrewrite.org/running-recipes/popular-recipe-guides/automatically-fix-checkstyle-violations

Most programmers agree that having consistent formatting across a code base makes it easier to work with. Tools like Checkstyle provide automated enforcement of these policies. But it's never fun to have your workflow interrupted by complaints about formatting. This guide will show you how to configure OpenRewrite to automate the remediation of Checkstyle policy violations.

Either we wait for checkstyle/checkstyle#16948 or implement it ourselves quickly, like done in:

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions