We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 337bb38 commit 749924bCopy full SHA for 749924b
.lefthook/pre-commit/lint
@@ -0,0 +1,10 @@
1
+#!/bin/sh
2
+
3
+if ! [ -x "$(which brew)" ]; then
4
+ export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
5
+fi
6
7
+export CGO_LDFLAGS_ALLOW="-s|-w"
8
+export CGO_CFLAGS_ALLOW="-Xpreprocessor"
9
10
+golangci-lint run
.lefthook/pre-push/test
+go test
lefthook.yml
@@ -0,0 +1,9 @@
+pre-commit:
+ scripts:
+ lint:
+ tags: lint
+pre-push:
+ test:
+ tags: test
0 commit comments