AdGuardHome/scripts/make/sh-lint.sh
Eugene Burkov d2fa4f1af9 Pull request 2471: Update Go & tools
Squashed commit of the following:

commit 7bb21d6e92f1bdb3f928c644f6ea4adda41e1ace
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Thu Sep 4 19:07:35 2025 +0300

    all: imp code

commit 85a8751ba41e82b9e92a32d103de719ecc385ff4
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Thu Sep 4 17:59:04 2025 +0300

    all: upd go & tools
2025-09-04 19:21:53 +03:00

36 lines
776 B
Bash

#!/bin/sh
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 3
verbose="${VERBOSE:-0}"
readonly verbose
# Don't use -f, because we use globs in this script.
set -e -u
if [ "$verbose" -gt '0' ]; then
set -x
fi
# Source the common helpers, including not_found and run_linter.
. ./scripts/make/helper.sh
run_linter -e shfmt --binary-next-line -d -p -s \
./scripts/hooks/* \
./scripts/install.sh \
./scripts/make/*.sh \
./scripts/snap/*.sh \
./snap/local/*.sh \
;
shellcheck -e 'SC2250' -e 'SC2310' -f 'gcc' -o 'all' -x -- \
./scripts/hooks/* \
./scripts/install.sh \
./scripts/make/*.sh \
./scripts/snap/*.sh \
./snap/local/*.sh \
;