summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9172b0f1..8ecda3bd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,16 +5,16 @@ repos:
name: shfmt
minimum_pre_commit_version: 2.4.0
language: system
- entry: shfmt
- args: [-i=2, -ci, -w]
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) | xargs shellcheck"]
+ [-c, "shfmt -f $(git rev-parse --show-toplevel) | grep -v jdtls | xargs shellcheck"]
- id: stylua
name: StyLua
language: rust