#!/bin/bash -e
#
# Reference: https://github.com/koalaman/shellcheck/wiki/Directive

cd "$(dirname "$0")/.."

set -x
find . -name "*.sh" -not -regex ".*/.cargo/.*" -not -regex ".*/node_modules/.*" -print0 \
  | xargs -0 \
      ci/docker-run.sh koalaman/shellcheck --color=always --external-sources --shell=bash
exit 0
