Skip to content

Fix Spotless config in its/core-it-suite to enforce formatting rules#12324

Open
gnodet wants to merge 4 commits into
masterfrom
fix/spotless-its-formatting-steps
Open

Fix Spotless config in its/core-it-suite to enforce formatting rules#12324
gnodet wants to merge 4 commits into
masterfrom
fix/spotless-its-formatting-steps

Conversation

@gnodet

@gnodet gnodet commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The its/core-it-suite/pom.xml pluginManagement override for spotless-maven-plugin only specified <includes> and <excludes>, which inadvertently wiped out the formatting steps (palantirJavaFormat, removeUnusedImports, importOrder, licenseHeader for Java; sortPom for POM).
  • The its/ parent chain inherits from apache:38 (not maven-parent:48 where these steps are defined), so there was no parent config to inherit — combine.children="append" alone could not fix this.
  • Added the formatting steps explicitly along with the maven-shared-resources dependency (needed for importOrder and licenseHeader config files), and applied formatting to all files in the module.

Test plan

  • mvn -B com.diffplug.spotless:spotless-maven-plugin:check -f its/core-it-suite passes
  • Verified formatting is enforced by creating a deliberately badly formatted file and confirming spotless catches it
  • CI passes

Claude Code on behalf of Guillaume Nodet

@gnodet gnodet requested a review from slawekjaranowski June 19, 2026 07:52
gnodet and others added 4 commits June 22, 2026 18:01
The pluginManagement override for spotless-maven-plugin in
its/core-it-suite/pom.xml only had <includes> and <excludes>,
which wiped out the formatting steps (palantirJavaFormat,
removeUnusedImports, importOrder, licenseHeader, sortPom) since
the its/ parent chain (apache:38) does not inherit from
maven-parent where these steps are defined.

Add the formatting steps explicitly and the maven-shared-resources
dependency (for importOrder and licenseHeader config files), then
apply formatting to all files in the module.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…sion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet force-pushed the fix/spotless-its-formatting-steps branch from 3f1ad76 to 50b9803 Compare June 22, 2026 16:02
@gnodet gnodet added mvn4 build Pull requests that change the build process labels Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull requests that change the build process mvn4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant