Skip to content

Commit 2dff208

Browse files
authored
Merge branch 'master' into #1124-cannot-update-to-latest-android-sdk-version-2-0-0
2 parents ef1360b + 25b4f34 commit 2dff208

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)