File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff 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
2323gitHooks {
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
3233repositories {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ plugin.com.gradle.plugin-publish=0.14.0
1111
1212plugin.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
1616version.kotlin =1.4.32
1717# # # available=1.5.0-M1
You can’t perform that action at this time.
0 commit comments