Repository navigation
Enable Spotless for Scala (scalafmt 3.8.3) - #300
Merged
Merged
Conversation
- BaseConventionsPlugin: turn on the previously-commented Scala block with scalafmt 3.8.3 (3.7.17 hits an InvocationTargetException with spotless 7.0.x on Java 17). - GenerateCodeStyleTask: bump scalafmt version to match and trim the rewrite.imports rules that 3.8.3 rejects; keep align.preset = more and maxColumn = 120 as the baseline. - Add the generated scalafmt.conf alongside the committed .editorconfig. Modules without .scala sources are unaffected. Apply spotlessApply per module to bring existing Scala code onto the baseline. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
em3s
added a commit
that referenced
this pull request
May 6, 2026
Now that #300 enabled the Spotless Scala step on main, run spotlessApply across the pipeline module so its sources land on the shared baseline. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Activate the previously-disabled Scala block in Spotless so
.scalasources get the same formatting guarantees as Java and Kotlin. This prepares the ground for #299 (Add Spark-based pipeline module) so its Scala files can land already on the formatting baseline.Closes #
Changes
BaseConventionsPlugin: enable thescala { ... }block with scalafmt 3.8.3. 3.7.17 hits anInvocationTargetExceptionunder spotless 7.0.x on Java 17.GenerateCodeStyleTask: bump scalafmt version to 3.8.3 and droprewrite.imports.*rules that 3.8.3 rejects; keepalign.preset = moreandmaxColumn = 120.scalafmt.confalongside the committed.editorconfig.How to Test
./gradlew generateCodeStyleregenerates.editorconfigandscalafmt.conf../gradlew :<module>:spotlessApplyformats.scalasources on the new baseline..scalasources are unaffected — no-op for the currentmain.AI Assistance