mirror of
https://github.com/minetest-mods/gauges.git
synced 2024-11-16 15:40:23 +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
|
||||
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
|
||||
|
||||
script:
|
||||
# All linters are run with pre-commit hooks
|
||||
- export PATH="$HOME/.luarocks/bin:$PATH"
|
||||
- $HOME/.local/bin/pre-commit run --all-files
|
||||
- $HOME/.luarocks/bin/luacheck .
|
||||
|
|
Loading…
Reference in New Issue
Block a user