Skip to content

automate the remediation of Checkstyle #34818

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

Closed
Pankraz76 opened this issue Apr 24, 2025 · 1 comment
Closed

automate the remediation of Checkstyle #34818

Pankraz76 opened this issue Apr 24, 2025 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@Pankraz76
Copy link

Pankraz76 commented Apr 24, 2025

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

While editorconfig helps standardize editor settings, we're still left with trial and error.

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.

checkstyle/checkstyle#16860

@Pankraz76
Copy link
Author

#34830

@bclozel bclozel closed this as completed Apr 26, 2025
@bclozel bclozel added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants