mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +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
|
sudo luarocks install luacheck
|
||||||
|
|
||||||
- name: Run Luacheck
|
- name: Run Luacheck
|
||||||
run: sudo ./scripts/style-check.sh
|
run: luacheck .
|
||||||
|
|
||||||
stylua:
|
stylua:
|
||||||
name: StyLua
|
name: StyLua
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
-- Rerun tests only if their modification time changed.
|
-- Rerun tests only if their modification time changed.
|
||||||
cache = true
|
cache = true
|
||||||
|
codes = true
|
||||||
|
|
||||||
|
exclude_files = {
|
||||||
|
"tests/indent/lua/"
|
||||||
|
}
|
||||||
|
|
||||||
-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html
|
-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html
|
||||||
ignore = {
|
ignore = {
|
||||||
|
|
|
@ -3,5 +3,8 @@
|
||||||
# Can be used as a pre-push hook
|
# Can be used as a pre-push hook
|
||||||
# Just symlink this file to .git/hooks/pre-push
|
# Just symlink this file to .git/hooks/pre-push
|
||||||
|
|
||||||
echo "Running style check..."
|
echo "Running linter..."
|
||||||
./scripts/style-check.sh
|
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