Create plugin for linting (#8942)

This commit is contained in:
Andreas 2023-01-19 04:33:56 +01:00 committed by GitHub
parent b56b8b55b4
commit c31e75f02f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 45 additions and 38 deletions

View file

@ -3,30 +3,12 @@ buildscript {
classpath(libs.android.shortcut.gradle)
classpath(libs.google.services.gradle)
classpath(libs.aboutLibraries.gradle)
classpath(kotlinx.serialization.gradle)
classpath(libs.sqldelight.gradle)
}
}
plugins {
alias(androidx.plugins.application) apply false
alias(androidx.plugins.library) apply false
alias(androidx.plugins.test) apply false
alias(kotlinx.plugins.android) apply false
alias(libs.plugins.kotlinter)
}
subprojects {
apply<org.jmailen.gradle.kotlinter.KotlinterPlugin>()
kotlinter {
experimentalRules = true
disabledRules = arrayOf(
"experimental:argument-list-wrapping", // Doesn't play well with Android Studio
"filename", // Often broken to give a more general name
)
}
alias(kotlinx.plugins.serialization) apply false
}
tasks.register<Delete>("clean") {