2021-08-13 12:11:18 +02:00
|
|
|
repos:
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: shfmt
|
|
|
|
name: shfmt
|
|
|
|
minimum_pre_commit_version: 2.4.0
|
2021-08-15 17:38:47 +02:00
|
|
|
language: system
|
2021-08-13 12:11:18 +02:00
|
|
|
types: [shell]
|
2021-08-17 09:37:11 +02:00
|
|
|
entry: bash
|
|
|
|
args: [-c, "shfmt -f $(git rev-parse --show-toplevel) | grep -v jdtls | xargs shfmt -i=2 -ci -w"]
|
2021-08-13 12:11:18 +02:00
|
|
|
- id: shellcheck
|
|
|
|
name: shellcheck
|
|
|
|
language: system
|
|
|
|
types: [shell]
|
|
|
|
entry: bash
|
|
|
|
args:
|
2021-08-17 09:37:11 +02:00
|
|
|
[-c, "shfmt -f $(git rev-parse --show-toplevel) | grep -v jdtls | xargs shellcheck"]
|
2021-08-13 12:11:18 +02:00
|
|
|
- id: stylua
|
|
|
|
name: StyLua
|
|
|
|
language: rust
|
|
|
|
entry: stylua
|
|
|
|
types: [lua]
|
2021-08-15 17:38:47 +02:00
|
|
|
args: ['-']
|
2021-08-13 12:11:18 +02:00
|
|
|
- id: luacheck
|
|
|
|
name: luacheck
|
|
|
|
language: system
|
|
|
|
entry: luacheck
|
|
|
|
types: [lua]
|
|
|
|
args: [.]
|