mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-24 10:41:51 +01:00
Two warnings, SC2034 and SC2178, pop up very often with the references - shellcheck handles them poorly and produces a ton of bogus warnings about them. Silence the warnings and drop most of the "shellcheck disable" clauses.
13 lines
541 B
Makefile
13 lines
541 B
Makefile
# ignoring SC2034 (VARIABLE_NAME appears unused), too many false
|
|
# positives
|
|
#
|
|
# ignoring SC2178 (Variable was used as an array but is now assigned a
|
|
# string.) - buggy for local variables, happens very often for
|
|
# references
|
|
SHELLCHECK_OPTS := -e SC2034 -e SC2178
|
|
|
|
all: shellcheck
|
|
|
|
shellcheck:
|
|
docker run --rm -v "$$PWD:/mnt" koalaman/shellcheck:latest --norc --shell=bash --source-path=SCRIPTDIR --source-path=SCRIPTDIR/impl --source-path=SCRIPTDIR/impl/for-shellcheck --external-sources --check-sourced $(SHELLCHECK_OPTS) *.sh impl/*.sh
|