Explain Bash-it variable clearing in lint script

pull/1578/head
David Farrell 2020-11-05 08:28:33 -08:00 committed by phreakocious
parent cc9c8af404
commit da353cb803
1 changed files with 7 additions and 0 deletions

View File

@ -13,4 +13,11 @@ mapfile -t FILES < <(
| xargs -n1 -I{} find "{}" -type f
)
# We clear the BASH_IT variable to help the shellcheck checker
# identify source includes within our scripts that require a
# 'source' directive. For more information, see:
#
# "Shellcheck SC1090 - Can't follow non-constant source"
# https://www.shellcheck.net/wiki/SC1090
#
BASH_IT='' pre-commit run --files "${FILES[@]}"