-
Notifications
You must be signed in to change notification settings - Fork 14.8k
MAJOR: Hotfix broken spotless config, adhere SSOT #21165 #21161 #21168
#21171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
MAJOR: Hotfix broken spotless config, adhere SSOT #21165 #21161 #21168
#21171
Conversation
Pankraz76
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dry
| skipProjects = [ ":jmh-benchmarks", ":trogdor" ] | ||
| skipConfigurations = [ "zinc" ] | ||
| } | ||
| apply plugin: 'com.diffplug.spotless' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dry
| dependsOn 'copyDependantLibs' | ||
| } | ||
|
|
||
| apply plugin: 'com.diffplug.spotless' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dry
| apply plugin: 'com.diffplug.spotless' | ||
| spotless { | ||
| scala { | ||
| target '**/*.scala' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes kind of, but not really.
| scala { | ||
| target '**/*.scala' | ||
| scalafmt("$versions.scalafmt").configFile('../../checkstyle/.scalafmt.conf').scalaMajorVersion(versions.baseScala) | ||
| licenseHeaderFile '../../checkstyle/java.header', 'package' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relative kind of fragile (error prone).
|
im not sure if major is too much and just name it again minor, but this kind of non trivial change as if enforces at least to make follow up activating scala again doing continuing changes aligning the code. |
spotless config, adhere SSOT #21165 #21161 #21168
f0759fc to
e877320
Compare
…ache#21161 apache#21168 Signed-off-by: Vincent Potucek <vpotucek@me.com>
e877320 to
365838b
Compare
MAJOR: Hotfix broken
spotlessconfig, adhereSSOT#21165 #21161 #21168According to the PR, the Spotless configuration appears to be broken. A closer inspection shows that it is significantly out of sync and not behaving as expected.
This change fixes the Spotless setup, restores correct formatting for functional Scala code, and addresses related issues across the codebase. The goal is to re-establish consistent conventions, follow the Single Source of Truth (SSOT) principle, and ensure a clean, robust codebase that supports a healthy development workflow.
Related PR:
Merge strategy suggestion
It is recommended to merge this PR as a minimal, stabilizing fix, focusing on restoring baseline correctness (including the Python-related fixes) and unblocking the build.
Any currently disabled or partially applied Spotless rules should be re-enabled in dedicated follow-up PRs, where formatting can be incrementally reintroduced, validated, and fully fixed. This allows safer iteration and clearer review while ensuring the Spotless formatting rules are ultimately applied as intended.