Add style-check script

This commit is contained in:
Stephan Seitz 2020-07-05 20:45:46 +02:00 committed by Thomas Vigouroux
parent ab1916f385
commit 27d7a0ffff
4 changed files with 23 additions and 1 deletions

7
scripts/pre-push Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Can be used as a pre-push hook
# Just symlink this file to .git/hooks/pre-push
echo "Running style check..."
./scripts/style-check.sh

3
scripts/style-check.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
luacheck `find -name "*.lua"` --codes