Skip to content

Commit

Permalink
feat: add shellcheck to lint shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
doniz committed Mar 1, 2024
1 parent 51521eb commit a3f42f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hooks/shellcheck/.lefthook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: Copyright Boozt Fashion, AB
# SPDX-License-Identifier: MIT

pre-commit:
parallel: true
commands:
shellcheck:
glob: "*.sh"
run: |
docker run --rm -v $(pwd):/mnt koalaman/shellcheck:stable {staged_files}

0 comments on commit a3f42f7

Please sign in to comment.