Skip to content

Add checkstyle auto-fix tooling - #9017

Open
sercuzz8 wants to merge 3 commits into
apache:masterfrom
sercuzz8:sketch-solution
Open

Add checkstyle auto-fix tooling#9017
sercuzz8 wants to merge 3 commits into
apache:masterfrom
sercuzz8:sketch-solution

Conversation

@sercuzz8

@sercuzz8 sercuzz8 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

After this comment, implement a groovy tool to auto fix checkstyle violation to avoid post hoc fixes

Runs a Groovy-based auto-fixer (checkstyle-autofix.groovy) via
gmavenplus-plugin at the validate phase, before maven-checkstyle-plugin,
to auto-correct a subset of storm_checkstyle.xml violations
(FileTabCharacter, colon-spacing, CommentsIndentation, CustomImportOrder)
ahead of the checkstyle check. Fixer parameters are read directly from
the active ruleset XML rather than a preset formatter style.

storm.checkstyle.config (root pom) picks the active ruleset basename for
both the fixer and maven-checkstyle-plugin's configLocation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant