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 https://github.com/checkstyle/checkstyle/issues/16948 or implement it ourselves quickly, like done in: - https://github.com/checkstyle/checkstyle/pull/16863
References: - https://github.com/checkstyle/checkstyle/issues/16948 - https://github.com/checkstyle/checkstyle/issues/16860 - https://github.com/checkstyle/checkstyle/issues/16863
Comment From: bclozel
Thanks for the proposal, but we're not interested in investing there at the moment.
Comment From: Pankraz76
consider maven solution: - https://issues.apache.org/jira/browse/HBASE-26617 - https://github.com/diffplug/spotless