Repository navigation
build: Format build scripts with Spotless - #6825
Open
runningcode wants to merge 2 commits into
Open
runningcode wants to merge 2 commits into
runningcode wants to merge 2 commits into
Conversation
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]>
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
runningcode
marked this pull request as ready for review
December 1, 2026 16:01
runningcode
requested review from
0xadam-brown and
romtsn
and removed request for
a team
December 1, 2026 16:01
This branch has not been deployed
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.
📜 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, andbuildSrc. Then reformats those files.build: Format build scripts with Spotless: the only real change, aspotlessblock in the rootbuild.gradle.kts. Subprojects keep formatting their own sources throughio.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 formatand the Format Code job runspotlessApplyon the root project, so they cover these files from now on with no CI change.💚 How did you test it?
./gradlew :spotlessCheckpasses after the reformat../gradlew help,./gradlew -p sentry-samples helpand./gradlew -p sentry-android-integration-tests helpall still configure.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
After this merges, add the squash commit to
.git-blame-ignore-revs.🤖 Generated with Claude Code
#skip-changelog