Skip to content

Format hand-maintained tests with Spotless + add CI formatting gate - #113

Merged
niteshsandal-merge merged 2 commits into
mainfrom
nitesh/spotless-format-tests
Jul 16, 2026
Merged

Format hand-maintained tests with Spotless + add CI formatting gate#113
niteshsandal-merge merged 2 commits into
mainfrom
nitesh/spotless-format-tests

Conversation

@niteshsandal-merge

Copy link
Copy Markdown
Collaborator

Summary

Fixes the spotlessJavaCheck failure that surfaced during publish, and adds a formatting gate to CI so it can't recur.

  • Apply Spotless formatting (spotlessApply / palantir-java-format) to the hand-maintained custom/ and integration/ test classes added in the last release, and drop an unused import in ExpandQueryParamTest. No behavior changes.
  • Run spotlessCheck in CI — added a Check formatting step to the compile job so violations fail fast on every push/PR instead of only during the publish build.

Why

Spotless previously ran only as part of the publish/assemble build (on tags), so a formatting violation slipped past push/PR and failed at publish time. Since test and publish both needs: [compile], running spotlessCheck in compile now fails the pipeline early.

Verification

  • ./gradlew spotlessCheck → BUILD SUCCESSFUL
  • ./gradlew compileTestJava → BUILD SUCCESSFUL

🤖 Generated with Claude Code

niteshsandal-merge and others added 2 commits July 16, 2026 16:48
Runs palantir-java-format (spotlessApply) over the custom and integration
test classes so they pass spotlessJavaCheck in CI, and drops an unused
import in ExpandQueryParamTest. No behavior changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a formatting gate to the compile job so format violations fail fast
on push/PR instead of only surfacing during the publish build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@waisshahbaz waisshahbaz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@niteshsandal-merge
niteshsandal-merge merged commit dfb19c3 into main Jul 16, 2026
3 checks passed
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.

2 participants