Skip to content

Commit 2ecfa90

Browse files
authored
update pre commit to use make checkFormat
1 parent 1663eba commit 2ecfa90

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hooks/pre-commit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/sh
22
# From gist at https://gist.github.com/chadmaughan/5889802
33

4-
echo '[git hook] executing gradle spotlessCheck before commit'
4+
echo '[git hook] executing gradle spotless check before commit'
55

66
# run the spotlessCheck with the gradle wrapper
7-
./gradlew spotlessCheck --daemon
7+
make checkFormat
88

99
# store the last exit code in a variable
1010
RESULT=$?
1111

1212
# return the './gradlew spotlessCheck' exit code
13-
exit $RESULT
13+
exit $RESULT

0 commit comments

Comments
 (0)