We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef1360b + 25b4f34 commit 2dff208Copy full SHA for 2dff208
build.gradle
@@ -41,7 +41,7 @@ allprojects {
41
}
42
kotlin {
43
target '**/*.kt'
44
- ktlint("0.42.1")
+ ktlint().userData(["disabled_rules": "no-wildcard-imports"])
45
trimTrailingWhitespace()
46
indentWithSpaces()
47
endWithNewline()
@@ -68,13 +68,3 @@ ext {
68
minSdkVersion = 16
69
targetSdkVersion = 30
70
71
-
72
-task createSpotlessPreCommitHook() {
73
- def gitHooksDirectory = new File("$project.rootDir/.git/hooks/")
74
- if (!gitHooksDirectory.exists()) gitHooksDirectory.mkdirs()
75
- new File("$project.rootDir/.git/hooks", "pre-commit").text = """#!/bin/bash
76
- echo "Running spotless check"
77
- ./gradlew spotlessApply
78
-"""
79
- "bash chmod +x .git/hooks/pre-commit".execute()
80
-}
0 commit comments