Luacheck: use config file to exclude files

This commit is contained in:
Santos Gallegos 2021-07-04 17:55:11 -05:00 committed by Stephan Seitz
parent 8b876207e6
commit 437e41e9fc
4 changed files with 11 additions and 7 deletions

View file

@ -3,5 +3,8 @@
# 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
echo "Running linter..."
luacheck .
echo "Checking formatting..."
stylua --check .

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
# ignore indent test files
luacheck `find -name "*.lua" -not -path "./tests/indent/lua/*"` --codes