Browse Source

Catch ShellCheck errors in pre-commit using same command as CI. (#9752)

pull/9763/head
Bas 1 year ago
committed by GitHub
parent
commit
bdd1c7bcb5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. 8
      .pre-commit-config.yaml

8
.pre-commit-config.yaml

@ -28,6 +28,14 @@ repos:
args: [ -r, "~MD013,~MD029" ] args: [ -r, "~MD013,~MD029" ]
exclude: "^.git" exclude: "^.git"
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
args: [ --severity, "error" ]
exclude: "^.git"
files: "\\.sh$"
- repo: local - repo: local
hooks: hooks:
- id: ansible-lint - id: ansible-lint

Loading…
Cancel
Save