Skip to content

build: Format build scripts with Spotless - #6825

Open
runningcode wants to merge 2 commits into
mainfrom
no/spotless-build-scripts
Open

runningcode wants to merge 2 commits into
mainfrom
no/spotless-build-scripts

Conversation

@runningcode

Copy link
Copy Markdown
Contributor

📜 Description

Applies Spotless (ktfmt, Google style) to the build code that belongs to no subproject: the root and settings scripts of every build, build-logic, and buildSrc. Then reformats those files.

  • build: Format build scripts with Spotless: the only real change, a spotless block in the root build.gradle.kts. Subprojects keep formatting their own sources through io.sentry.spotless.
  • style: Format build scripts: formatting only, produced by ./gradlew :spotlessApply. Ignoring whitespace, it is 18 files, +122/-51, mostly trailing commas and line wrapping.

💡 Motivation and Context

Unformatted changes to these files passed CI, because no Spotless target covered them. make format and the Format Code job run spotlessApply on the root project, so they cover these files from now on with no CI change.

💚 How did you test it?

  • ./gradlew :spotlessCheck passes after the reformat.
  • ./gradlew help, ./gradlew -p sentry-samples help and ./gradlew -p sentry-android-integration-tests help all still configure.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

After this merges, add the squash commit to .git-blame-ignore-revs.

🤖 Generated with Claude Code

#skip-changelog

runningcode and others added 2 commits December 1, 2026 11:09
Subprojects format their own sources through io.sentry.spotless, but the
code that belongs to no subproject had no Spotless target: the root and
settings scripts of every build, build-logic, and buildSrc. Unformatted
changes there passed CI. The root project now applies Spotless to them,
so make format and the Format Code job cover them too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Formatting only, from ./gradlew :spotlessApply.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit cbe1429.

The model rated this change low. It was raised to medium because:

  • R6: build or release configuration changed: build-logic/settings.gradle.kts, build-logic/src/main/kotlin/io.sentry.javadoc.aggregate.gradle.kts, build-logic/src/main/kotlin/io.sentry.javadoc.gradle.kts, build-logic/src/main/kotlin/io.sentry.spotless.gradle.kts, build-logic/src/main/kotlin/io/sentry/gradle/AggregateJavadoc.kt and 16 more
  • R7: the model was not confident enough that the change is low

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Dec 1, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.66.0 (1) release

⚙️ sentry-android Build Distribution Settings

@runningcode
runningcode marked this pull request as ready for review December 1, 2026 16:01
@runningcode
runningcode requested review from a team and adinauer as code owners December 1, 2026 16:01
@runningcode
runningcode requested review from 0xadam-brown and romtsn and removed request for a team December 1, 2026 16:01
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant