feat(tools): Add shellcheck for shell scripts to CI

- shellcheck fixes in shell scripts
This commit is contained in:
Marek Fiala
2023-09-05 11:09:52 +02:00
parent c50dfa2374
commit 37c7c5b58d
4 changed files with 26 additions and 7 deletions
+11
View File
@@ -208,3 +208,14 @@ repos:
- id: astyle_py
# If you are modifying astyle version, update tools/format.sh as well
args: ['--astyle-version=3.4.7', '--rules=tools/ci/astyle-rules.yml']
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.5
hooks:
- id: shellcheck
name: shellcheck bash
args: ['--shell', 'bash', '-x']
files: 'install.sh|export.sh'
- id: shellcheck
name: shellcheck dash (export.sh)
args: ['--shell', 'dash', '-x']
files: 'export.sh'