Skip to content

Fix spotless/ktlint version mismatch breaking Android formatting checks - #139

Merged
crow merged 1 commit into
mainfrom
fix-spotless-ktlint-userdata
Aug 27, 2026
Merged

crow merged 1 commit into
mainfrom
fix-spotless-ktlint-userdata

Conversation

@crow

@crow crow commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

spotlessPlugin was bumped to 8.1.0 in #109 without bumping ktlint past 0.45.2, which Spotless no longer supports (dropped ktlint < 1.0 in 7.1.0). This has been crashing spotlessCheck/spotlessApply instead of running them since that PR merged.

Bumps ktlint to 1.7.1 (Spotless 8.1.0's own default) and updates the userData -> editorConfigOverride API call it requires. Running the check for the first time in years surfaced 3 real violations (2 mismatched filenames, 1 backing-property name) which are fixed here, plus applies the accumulated formatting drift (license header text, expression-body style, import order) across the rest of the Kotlin sources.

spotlessPlugin was bumped to 8.1.0 in #109 without bumping ktlint past
0.45.2, which Spotless no longer supports (dropped ktlint < 1.0 in
7.1.0). This has been crashing spotlessCheck/spotlessApply instead of
running them since that PR merged.

Bumps ktlint to 1.7.1 (Spotless 8.1.0's own default) and updates the
userData -> editorConfigOverride API call it requires. Running the
check for the first time in years surfaced 3 real violations (2
mismatched filenames, 1 backing-property name) which are fixed here,
plus applies the accumulated formatting drift (license header text,
expression-body style, import order) across the rest of the Kotlin
sources.
@crow
crow requested a review from a team as a code owner August 27, 2026 19:48
@crow
crow merged commit 8a7d865 into main Aug 27, 2026
3 checks passed
@crow
crow deleted the fix-spotless-ktlint-userdata branch August 27, 2026 21:50
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.

3 participants