summaryrefslogtreecommitdiff
path: root/contrib/cirrus/shellcheck.sh
blob: edf8248d31eadd4ebfef5601964203864c0ff5b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"