aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pre-push7
-rwxr-xr-xscripts/style-check.sh3
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/pre-push b/scripts/pre-push
new file mode 100755
index 000000000..00d4c5071
--- /dev/null
+++ b/scripts/pre-push
@@ -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
diff --git a/scripts/style-check.sh b/scripts/style-check.sh
new file mode 100755
index 000000000..181ab4581
--- /dev/null
+++ b/scripts/style-check.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+luacheck `find -name "*.lua"` --codes