Skip to content

Commit 7ec1568

Browse files
authored
add environment to quickly skip all checks (#7)
setting `SKIP_LINT` environment variable will skip all lint checks.
1 parent 185b74d commit 7ec1568

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
if [ "x$SKIP_LINT" != "x" ]; then
4+
echo "SKIP_LINT set in environment, skipping Puppet syntax checks"
5+
exit
6+
fi
7+
38
TERM=${TERM:-unknown}; export TERM
49

510
git_root=$(git rev-parse --show-toplevel)

0 commit comments

Comments
 (0)