Use Luacheck as a pre-commit hook

This commit is contained in:
Hugo Locurcio 2019-04-01 11:02:31 +02:00
parent 1075b4678f
commit cea44dce57
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
2 changed files with 6 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,5 @@ install:
- luarocks install --local luacheck
script:
# All linters are run with pre-commit hooks
- $HOME/.local/bin/pre-commit run --all-files
- $HOME/.luarocks/bin/luacheck .