Use Luacheck as a pre-commit hook

This commit is contained in:
Hugo Locurcio 2019-04-03 00:29:43 +02:00
parent c0c410755b
commit 644c33e36a
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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 .