Browse Source
Add trailing-whitespace checks to GitHub Actions and provide an optional local pre-commit hook.chirpmodem-v8.0.0
3 changed files with 42 additions and 0 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh |
||||
|
||||
#fail if trailing spaces |
||||
if ! git diff --cached --check -- \ |
||||
':(attr:text)' ':(attr:text=auto)'; then |
||||
echo "Error: Remove trailing whitespace from staged changes." |
||||
exit 1 |
||||
fi |
||||
Loading…
Reference in new issue