You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible to have a module that has no Kotlin dependencies at all, but depends on the JRE, or it might not have any dependencies at all. This is rare but detekt should properly handle this.
We could have a switch or flag to enable or disable full analysis mode so the intention is clear.
The text was updated successfully, but these errors were encountered:
Expected Behavior
I can use rules that use type resolution without passing a classpath explicitly.
Current Behavior
Type resolution is only enabled when a classpath is passed in.
Context
detekt assumes that if no classpath is passed in, that type resolution & full analysis isn't possible. This isn't true though - we call
configureJdkClasspathRoots
unconditionally:https://github.com/JetBrains/kotlin/blob/v1.9.23/compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/config/JvmContentRoots.kt#L91-L103
It's possible to have a module that has no Kotlin dependencies at all, but depends on the JRE, or it might not have any dependencies at all. This is rare but detekt should properly handle this.
We could have a switch or flag to enable or disable full analysis mode so the intention is clear.
The text was updated successfully, but these errors were encountered: