mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 11:05:08 +02:00
29 lines
771 B
YAML
29 lines
771 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: shfmt
|
|
name: shfmt
|
|
minimum_pre_commit_version: 2.4.0
|
|
language: system
|
|
types: [shell]
|
|
entry: bash
|
|
args: [-c, "shfmt -f $(git rev-parse --show-toplevel) | grep -v jdtls | xargs shfmt -i=2 -ci -w"]
|
|
- id: shellcheck
|
|
name: shellcheck
|
|
language: system
|
|
types: [shell]
|
|
entry: bash
|
|
args:
|
|
[-c, "shfmt -f $(git rev-parse --show-toplevel) | grep -v jdtls | xargs shellcheck"]
|
|
- id: stylua
|
|
name: StyLua
|
|
language: rust
|
|
entry: stylua
|
|
types: [lua]
|
|
args: ['-']
|
|
- id: luacheck
|
|
name: luacheck
|
|
language: system
|
|
entry: luacheck
|
|
types: [lua]
|
|
args: [.]
|