This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note that this is a slimmed version of a detekt config file that only includes behavior we | |
# want to override for our application. This is done by using `buildUponDefaultConfig` in the gradle | |
# configuration. | |
naming: | |
active: true | |
BooleanPropertyNaming: | |
active: true | |
allowedPattern: '^(is|has|are|can|was|should)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AndroidLibraryConventionPlugin : Plugin<Project> { | |
override fun apply(target: Project) { | |
with(target) { | |
with(pluginManager) { | |
apply("com.android.library") | |
apply("org.jetbrains.kotlin.android") | |
apply("composenews.android.detekt") // here | |
apply("composenews.android.ktlint") | |
} |