Ok, then a few more questions:
1. Do you have plans to add more friendly tasks to run detekt? Imo it would be great to have
detekt*WithTypes*
task that run detekt against all source sets with type checks. Then
detekt*WithoutTypes*
, and finally
detektAll
that run both tasks above?
2. My initial question: is it right approach to configure detekt with combination of task and DetektExtension?
3. For some reason I have an error running detekt for specific KMP module with compose. If I directly run
./gradlew :module:detekt
I face this problem, but if I run detekt for all modules (
./gradlew detekt
) there is no such problem. What I’m doing wrong?
An exception occurred applying plugin request [id: 'com.android.library', version: '8.0.2']
> Failed to apply plugin 'com.android.internal.library'.
> Accessing GradleBuildProject.Builder through AnalyticsConfiguratorService is not allowed after AnalyticsService is created.