mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-08 02:35:43 +02:00
Luacheck: use config file to exclude files
This commit is contained in:
parent
8b876207e6
commit
437e41e9fc
4 changed files with 11 additions and 7 deletions
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
sudo luarocks install luacheck
|
||||
|
||||
- name: Run Luacheck
|
||||
run: sudo ./scripts/style-check.sh
|
||||
run: luacheck .
|
||||
|
||||
stylua:
|
||||
name: StyLua
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
-- Rerun tests only if their modification time changed.
|
||||
cache = true
|
||||
codes = true
|
||||
|
||||
exclude_files = {
|
||||
"tests/indent/lua/"
|
||||
}
|
||||
|
||||
-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html
|
||||
ignore = {
|
||||
|
|
|
@ -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 .
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# ignore indent test files
|
||||
luacheck `find -name "*.lua" -not -path "./tests/indent/lua/*"` --codes
|
Loading…
Reference in a new issue