forked from minetest-mods/moreores
Use Luacheck as a pre-commit hook
This commit is contained in:
parent
1075b4678f
commit
cea44dce57
@ -7,3 +7,8 @@ repos:
|
|||||||
|
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args: [--fix=lf]
|
args: [--fix=lf]
|
||||||
|
|
||||||
|
- repo: https://github.com/Calinou/pre-commit-luacheck
|
||||||
|
rev: v1.0.0
|
||||||
|
hooks:
|
||||||
|
- id: luacheck
|
||||||
|
@ -11,5 +11,5 @@ install:
|
|||||||
- luarocks install --local luacheck
|
- luarocks install --local luacheck
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
# All linters are run with pre-commit hooks
|
||||||
- $HOME/.local/bin/pre-commit run --all-files
|
- $HOME/.local/bin/pre-commit run --all-files
|
||||||
- $HOME/.luarocks/bin/luacheck .
|
|
||||||
|
Loading…
Reference in New Issue
Block a user