mirror of
https://github.com/minetest-mods/gauges.git
synced 2024-11-10 20:40:39 +01:00
Use Luacheck as a pre-commit hook
This commit is contained in:
parent
c0c410755b
commit
644c33e36a
|
@ -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,6 @@ install:
|
||||||
- luarocks install --local luacheck
|
- luarocks install --local luacheck
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
# All linters are run with pre-commit hooks
|
||||||
|
- export PATH="$HOME/.luarocks/bin:$PATH"
|
||||||
- $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