From 95d9e03f007fc0bb4ba292109b29f46fb173d634 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Sat, 29 Jun 2024 14:50:04 +0000 Subject: [PATCH] ci lint: Allow ShellCheck to test source-d scripts. As the scripts 'utils/run-tests.sh' and 'utils/setup_test_container.sh' use some scripts as function libraries, this change forces shellcheck to also verify those scripts. --- .github/workflows/lint.yml | 2 ++ .pre-commit-config.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cec6196cd2..3eb9305fe8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -88,3 +88,5 @@ jobs: fetch-depth: 1 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master + env: + SHELLCHECK_OPTS: -x diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82bfbcd71f..e52b84d7c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,4 +54,5 @@ repos: name: ShellCheck language: system entry: shellcheck + args: ['-x'] files: \.sh$