// Android: Don't create tasks for the specified build types (e.g. "release")
ignoredBuildTypes = ["release"]
// Android: Don't create tasks for the specified build flavor (e.g. "production")
ignoredFlavors = ["production"]
// Android: Don't create tasks for the specified build variants (e.g. "productionRelease")
ignoredVariants = ["productionRelease"]
which seems like normally you would run it on debug, but it seems to me you want to check the release especially
z
Zun
09/08/2022, 11:41 AM
Why would you care about code analysis in release builds? The tool is there to assist you during development. "Detekt helps you write cleaner Kotlin code so you can focus on what matters the most building amazing software."
👆 1
z
Zach
09/08/2022, 3:47 PM
Run it for every PR. ktlint too
a
arekolek
09/08/2022, 4:25 PM
Why would you care about code analysis in release builds?
not during release builds
but because you can have some sources under
src/debug/java
which you probably should care less about than about sources under