Skip to content

Commit 610a5ed

Browse files
committed
Fail for warnings in pre-commit to promote incremental changes
1 parent c93d18b commit 610a5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

relint-pre-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22

33
set -eo pipefail
4-
git diff --staged | relint --diff "${@:1}"
4+
git diff --staged | relint --diff -W "${@:1}"

0 commit comments

Comments
 (0)