Skip to content

Commit fc1cffe

Browse files
author
Jan Phillip Kretzschmar
committed
chore: configure ktlint
1 parent 04ed588 commit fc1cffe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ tasks.withType<Test> {
2626
}
2727
}
2828

29+
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
30+
version.set("1.1.1")
31+
debug.set(false)
32+
verbose.set(false)
33+
android.set(true)
34+
outputToConsole.set(true)
35+
outputColorName.set("RED")
36+
ignoreFailures.set(false)
37+
baseline.set(file("ktlint-baseline.xml"))
38+
filter {
39+
exclude {
40+
projectDir.toURI().relativize(it.file.toURI()).path.startsWith("build/")
41+
}
42+
}
43+
}
44+
2945
dependencies {
3046
implementation(gradleApi())
3147

0 commit comments

Comments
 (0)