Skip to content

Commit 0f8995f

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 7dcffd6 commit 0f8995f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ repos:
6464
name: run oxipng
6565
description: check PNG files with oxipng
6666
args: ['--fix', '-o', '4', '--strip', 'safe', '--alpha']
67+
- repo: https://github.com/shellcheck-py/shellcheck-py
68+
rev: v0.11.0.1
69+
hooks:
70+
- id: shellcheck
71+
name: run shellcheck
72+
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)