Skip to content

Commit e1d482d

Browse files
committed
ktlint replacement
1 parent d694dda commit e1d482d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

build.gradle.kts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
id("com.gradle.plugin-publish")
88
id("org.jetbrains.dokka")
99
id("com.github.jakemarsden.git-hooks")
10-
id("org.jmailen.kotlinter")
10+
id("org.jlleitschuh.gradle.ktlint")
1111
idea
1212
}
1313

@@ -21,12 +21,13 @@ idea {
2121
}
2222

2323
gitHooks {
24-
setHooks(mapOf("pre-commit" to "formatKotlin", "pre-push" to "check"))
25-
}
26-
27-
kotlinter {
28-
indentSize = 2
29-
experimentalRules = false
24+
setHooks(
25+
mapOf(
26+
"post-checkout" to "ktlintApplyToIdea",
27+
"pre-commit" to "ktlintFormat",
28+
"pre-push" to "check"
29+
)
30+
)
3031
}
3132

3233
repositories {

versions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugin.com.gradle.plugin-publish=0.14.0
1111

1212
plugin.org.jetbrains.dokka=1.4.30
1313

14-
plugin.org.jmailen.kotlinter=3.4.0
14+
plugin.org.jlleitschuh.gradle.ktlint=10.0.0
1515

1616
version.kotlin=1.4.32
1717
## # available=1.5.0-M1

0 commit comments

Comments
 (0)