mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Use Kolinter Gradle plugin for linting instead of ktlint directly
This commit is contained in:
parent
ca1373f36b
commit
76f6fe4601
108 changed files with 582 additions and 453 deletions
|
@ -2,7 +2,7 @@ plugins {
|
|||
id("com.android.application") version BuildPluginsVersion.AGP apply false
|
||||
id("com.android.library") version BuildPluginsVersion.AGP apply false
|
||||
kotlin("android") version BuildPluginsVersion.KOTLIN apply false
|
||||
id("org.jlleitschuh.gradle.ktlint") version BuildPluginsVersion.KTLINT
|
||||
id("org.jmailen.kotlinter") version BuildPluginsVersion.KOLINTER
|
||||
id("com.github.ben-manes.versions") version BuildPluginsVersion.VERSIONS_PLUGIN
|
||||
}
|
||||
|
||||
|
@ -16,22 +16,10 @@ allprojects {
|
|||
}
|
||||
|
||||
subprojects {
|
||||
apply {
|
||||
plugin("org.jlleitschuh.gradle.ktlint")
|
||||
}
|
||||
apply(plugin = "org.jmailen.kotlinter")
|
||||
|
||||
ktlint {
|
||||
debug.set(false)
|
||||
version.set(Versions.KTLINT)
|
||||
verbose.set(true)
|
||||
android.set(false)
|
||||
outputToConsole.set(true)
|
||||
ignoreFailures.set(false)
|
||||
enableExperimentalRules.set(true)
|
||||
filter {
|
||||
exclude("**/generated/**")
|
||||
include("**/kotlin/**")
|
||||
}
|
||||
kotlinter {
|
||||
experimentalRules = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue