From 73f3459e00bc391c8639a3bb2d56a15599f2b824 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Fri, 10 Dec 2021 20:26:19 +0100 Subject: [PATCH] [COMMON] Add a shellcheck tox profile Shellcheck is a shell linter. It can include good remarks as well as false positives. It is currently not activated in the CI. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert Change-Id: Ie392ce030f877ab6bdca9e91d7f8ec6820f34d79 --- tox.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tox.ini b/tox.ini index 337b397a26..01019bbd18 100644 --- a/tox.ini +++ b/tox.ini @@ -62,6 +62,13 @@ whitelist_externals = commands = {toxinidir}/.ci/check-bashisms.sh +[testenv:shellcheck] +basepython = python3 +deps = shellcheck-py +whitelist_externals = find +commands = + find . -not -path '*/\.*' -name *.sh -exec shellcheck \{\} + + [testenv:autopep8] deps = -r{toxinidir}/requirements.txt -- 2.16.6