Skip to content

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

Open
gnodet wants to merge 3 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 3 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 and others added 2 commits June 19, 2026 08:53
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>
@gnodet gnodet requested a review from slawekjaranowski June 19, 2026 07:52
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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