mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Create plugin for linting (#8942)
This commit is contained in:
parent
b56b8b55b4
commit
c31e75f02f
15 changed files with 45 additions and 38 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue