Explain Bash-it variable clearing in lint script
parent
a858e75456
commit
ff208775a5
|
|
@ -13,4 +13,11 @@ mapfile -t FILES < <(
|
||||||
| xargs -n1 -I{} find "{}" -type f
|
| xargs -n1 -I{} find "{}" -type f
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# We clear the BASH_IT variable to help the schellcheck 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[@]}"
|
BASH_IT='' pre-commit run --files "${FILES[@]}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue