Reason: ignore "variable appears unsued" beacause scripts in this
directory are being sourced by other scripts in the repo, and,
therefore, so not use self declared variables.
Solutions I have also tried:
- adding "# shellcheck source=../include/dts-functions.sh" and "# shellcheck
source=../include/dts-environment.sh" to all scripts under path
./scripts/;
- adding "# shellcheck source=SCRIPTDIR/../include/dts-functions.sh" and "#
shellcheck source=SCRIPTDIR/../include/dts-environment.sh" to all scripts
under path ./scripts/;
- adding "source-path=./include" and "source-path=SCRIPTDIR/../include" to
".shellcheckrc" as well as via command line arguments and comments in shell
scriptfiles;
- mixing above solutions in different ways;
All above solutions did not work.
References:
https://www.shellcheck.net/wiki/Directivehttps://www.shellcheck.net/wiki/SC2034https://www.shellcheck.net/wiki/SC1090https://pre-commit.com/#config-args
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>