-
-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle detektBaselineMain task not creating baseline for particular folder structure #4177
Comments
I've briefly looked into this. The problem is that you used the When we register the Android tasks, we use detekt/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/internal/DetektAndroid.kt Lines 118 to 119 in edabb6f
I haven't really looked deeply into this but seems like AGP is not properly returning the |
|
Oh that's great news! One more reason to drop Java 8 then :) |
Looks like fixed in #4554 isn't it? |
Yes this can be closed 👍 |
Expected Behavior
Baseline file should be created when running detektBaselineMain for a module
Observed Behavior
Baseline file is not created when running detektBaselineMain for a module
(detektBaseline does create the baseline file for same module)
Steps to Reproduce
./gradlew :swipe-party:card-stack:data:detektBaselineMain
Note: If you run
./gradlew :swipe-party:card-stack:data:detektBaseline
, the baseline file will be created.Context
We use baselines to allow to suppress warnings for legacy code. With this bug, some modules don't have baseline created.
Your Environment
--scan
option when running the gradle task): https://gradle.com/s/m6ncaprqjcg3kThe text was updated successfully, but these errors were encountered: