Code Analysis Plugin¶
The plugin helps to analyse code of your project and warns about issues. It makes use of the detekt plugin.
Features¶
As this plugin wraps detekt, it offers the same features for project configuration.
Installation¶
Add the following to your project root build.gradle/build.gradle.kts
file:
plugins {
id("eu.bitfunk.gradle.plugin.quality.code.analysis")
}
Usage¶
To check source code:
./gradlew detekt
For applying initial configuration
./gradlew detektGenerateConfig
For setting a baseline
./gradlew detektBaseline