Skip to content

Commit

Permalink
chore(build): dogfooding
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramontina committed Jun 2, 2019
1 parent 184f106 commit ea57e08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
set -e

git --no-pager diff --cached --name-only --diff-filter=ACM "*.kt" \
| xargs -I {} sh -c "./gradlew --quiet ktlintFormat -PinternalKtlintGitFilter={} && git add {}"
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
id "com.adarshr.test-logger" version "1.6.0"
id "org.jlleitschuh.gradle.ktlint" version "8.0.0"
id "com.gradle.plugin-publish" version "0.10.1"
id "com.gtramontina.ghooks.gradle" version "1.1.0"
id "java-gradle-plugin"
}

Expand Down

0 comments on commit ea57e08

Please sign in to comment.