summaryrefslogtreecommitdiff
path: root/contrib/cirrus/shellcheck.sh
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-10-05 08:42:15 -0500
committerGitHub <noreply@github.com>2020-10-05 08:42:15 -0500
commitcaace52d54c846c948c88a62f973f4d11808532e (patch)
tree41ef903d08193a4f6ff0edba9727f54a1e0583d5 /contrib/cirrus/shellcheck.sh
parent436dda23852a367807d86e98b7a59f09a82c1802 (diff)
parent2c9084e2245834094e14e9105e64b6062d70a0f1 (diff)
downloadpodman-caace52d54c846c948c88a62f973f4d11808532e.tar.gz
podman-caace52d54c846c948c88a62f973f4d11808532e.tar.bz2
podman-caace52d54c846c948c88a62f973f4d11808532e.zip
Merge pull request #6784 from cevich/new_ci_cd
Cirrus: Make efficient and performant
Diffstat (limited to 'contrib/cirrus/shellcheck.sh')
-rwxr-xr-xcontrib/cirrus/shellcheck.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/cirrus/shellcheck.sh b/contrib/cirrus/shellcheck.sh
new file mode 100755
index 000000000..edf8248d3
--- /dev/null
+++ b/contrib/cirrus/shellcheck.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -eo pipefail
+
+# shellcheck source=./contrib/cirrus/lib.sh
+source $(dirname $0)/lib.sh
+
+cd $CIRRUS_WORKING_DIR
+shellcheck --color=always --format=tty \
+ --shell=bash --external-sources \
+ --enable add-default-case,avoid-nullary-conditions,check-unassigned-uppercase \
+ --exclude SC2046,SC2034,SC2090,SC2064 \
+ --wiki-link-count=0 --severity=warning \
+ $SCRIPT_BASE/*.sh
+
+echo "Shellcheck: PASS"