Skip to content

Commit cb1daf1

Browse files
committed
pre-commit: add shellcheck and clean shell files
"ShellCheck, a static analysis tool for shell scripts" https://github.com/shellcheck-py/shellcheck-py A wrapper for: https://github.com/koalaman/shellcheck https://shellcheck.net/
1 parent e456655 commit cb1daf1

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎.pre-commit-config.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@ repos:
4747
- id: gitleaks
4848
name: run gitleaks
4949
description: check for secrets with gitleaks
50+
- repo: https://github.com/shellcheck-py/shellcheck-py
51+
rev: v0.11.0.1
52+
hooks:
53+
- id: shellcheck
54+
name: run shellcheck
55+
description: check Shell scripts with shellcheck

‎integration-tests/support/src/main/resources/createKeyStore.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ set -e
3030
# programmatically: `System.setProperty("javax.net.ssl.trustStore", "/path/to/keystore")`
3131

3232
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
33+
# shellcheck disable=SC2034
3334
keystore_file="${dir}/test-keystore.jks"
3435
file_prefix="${dir}/test-keystore"
35-
rm -f ${file_prefix}*
36+
rm -f "${file_prefix}"*
3637

3738
echo "generate new keystore"
3839
keytool -genkey \

0 commit comments

Comments
 (0)