Skip to content

Enable type resolution with Android and JVM classpath support - #207

Open
ryanulep wants to merge 1 commit into
buildfoundation:masterfrom
ryanulep:typeres
Open

Enable type resolution with Android and JVM classpath support#207
ryanulep wants to merge 1 commit into
buildfoundation:masterfrom
ryanulep:typeres

Conversation

@ryanulep

Copy link
Copy Markdown
Contributor

Adds type resolution support to all three detekt rules. When enabled (the default), the JDK or Android SDK bootclasspath is always included. Pass library dependencies via the new deps attribute to extend the classpath, and set is_android = True to use the Android SDK instead of the JDK. Set enable_type_resolution = False to opt out entirely.

jvm_target and language_version move from per-rule attributes to detekt_toolchain. srcs now also accepts .java files to support mixed-language projects.

Comment thread detekt/defs.bzl
Comment thread detekt/defs.bzl
Comment thread detekt/defs.bzl
Comment thread docs/generate.sh
@snuderl

snuderl commented Aug 7, 2026

Copy link
Copy Markdown

Hey. Anything blocking this? (we are using this patch for a few months already without issues)

@Bencodes

Bencodes commented Aug 9, 2026

Copy link
Copy Markdown
Member

4257934

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants