We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bcd822 commit fbd65ddCopy full SHA for fbd65dd
.githooks/pre-commit
@@ -0,0 +1,17 @@
1
+#!/bin/bash
2
+# http://redsymbol.net/articles/unofficial-bash-strict-mode/
3
+set -euo pipefail
4
+IFS=$'\n\t'
5
+
6
+if ! ./gradlew spotlessCheck; then
7
+ ./gradlew spotlessApply
8
+ echo ""
9
10
+ echo -e "\033[0;33mCode has been formatted; please git diff/add and recommit."
11
12
13
+ exit 1
14
+fi
15
16
+# Run Groovy code check
17
+./gradlew codenarcTest -PskipTests
0 commit comments