From 0d12fb6a4e151443a777b74cd6b1ff30cb5dea25 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 24 Apr 2020 12:29:38 +0200 Subject: [PATCH] tests: allow external-sources for shellcheck While introducing scripts/build_step.inc.sh the tests start to fail as the script is included and each shell script is tested separately. By adding the option --external-sources to shellcheck, the related warnings are not reported. Signed-off-by: Niels de Vos (cherry picked from commit fd62a5897aaabef696a4aecea74b9172b1dc6b24) --- scripts/lint-text.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint-text.sh b/scripts/lint-text.sh index 1586a7655..45aa144c8 100755 --- a/scripts/lint-text.sh +++ b/scripts/lint-text.sh @@ -44,7 +44,7 @@ fi run_check '.*\.md' mdl --style scripts/mdl-style.rb # Install via: dnf install shellcheck -run_check '.*\.(ba)?sh' shellcheck +run_check '.*\.(ba)?sh' shellcheck --external-sources run_check '.*\.(ba)?sh' bash -n # Install via: pip install yamllint