Repository navigation
feat(code-review): Add Java, Kotlin, and Android reference - #595
Draft
runningcode wants to merge 1 commit into
Draft
runningcode wants to merge 1 commit into
runningcode wants to merge 1 commit into
Conversation
The code-review skill had references only for JS/TS, Python, and GitHub workflows. A backtest on getsentry/sentry-java PRs found it caught 1 of 15 generic bugs Cursor Bugbot found on the same commit. Most misses were JVM and Android platform behavior the core contract does not name. The new reference covers missing API-level guards, old optional dependencies, unpaired bind and unregister, leaked descriptors, work after lifecycle end, main-thread blocking, clock choice, lost executor failures, swallowed interrupts, coroutine cancellation treated as failure, and docs that contradict code. False-positive controls cover desugaring, Compat helpers, and guarded callers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully 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.
The built-in
code-reviewskill has references only for JS/TS, Python, and GitHub workflows. On Java, Kotlin, and Android code it falls back to the core contract, which doesn't name the platform bugs that come up most there.We backtested
code-reviewon 80 getsentry/sentry-java PRs from October and November 2026. On the same commits, it caught 1 of the 15 valid generic bugs that Cursor Bugbot found. Most of the misses were JVM and Android behavior:ParcelFileDescriptorselapsedRealtimecounting deep sleepNoSuchMethodErrorfrom old optional dependenciesWebViewand main-thread affinityThis adds
references/java-kotlin-android.mdin the same format as the other references, and routes it fromSKILL.md. Besides the classes above, it covers lost executor failures, swallowed interrupts, coroutine cancellation treated as failure, and Javadoc that contradicts the code. Its false-positive controls cover desugaring, AndroidX*Compathelpers, and guarded callers. It sticks to generic bugs, with no sentry-java conventions.SPEC.mdandSOURCES.mdrecord the new scope and where it came from, andpackage.test.tschecks that the file ships.🤖 Generated with Claude Code