Recipe: diff your detekt config with the default one
· One min read
detekt's ./gradlew detektGenerateConfig
task copies the default configuration file to the location
specified by the config
property.
detekt's ./gradlew detektGenerateConfig
task copies the default configuration file to the location
specified by the config
property.
detekt's reporting mechanism relies on implementations of ConsoleReport's. The cli module and therefore the Gradle plugin implement a bunch of this reports.
detekt uses bintray for releases and artifactory for snapshots.
Starting with RC15 the test-pattern is obsolete. This post shows how to leverage rule path excludes to achieve the same functionality.
A common use case of detekt users was to build upon the default config file and use a second config file to override some defaults.
When configuring detekt for your Gradle based project, you basically have two options: