Skip to content

Commit 25b4f34

Browse files
authored
refactor: configure disable rules and remove pre-commit-hook (#1127)
1 parent 2945b30 commit 25b4f34

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

build.gradle

+1-11
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ allprojects {
4141
}
4242
kotlin {
4343
target '**/*.kt'
44-
ktlint("0.42.1")
44+
ktlint().userData(["disabled_rules": "no-wildcard-imports"])
4545
trimTrailingWhitespace()
4646
indentWithSpaces()
4747
endWithNewline()
@@ -68,13 +68,3 @@ ext {
6868
minSdkVersion = 16
6969
targetSdkVersion = 30
7070
}
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

Comments
 (0)