Skip to content

Commit 75bd5c8

Browse files
committed
Explain Bash-it variable clearing in lint script
1 parent a858e75 commit 75bd5c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lint_clean_files.sh

+7
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ mapfile -t FILES < <(
1313
| xargs -n1 -I{} find "{}" -type f
1414
)
1515

16+
# We clear the BASH_IT variable to help the shellcheck checker
17+
# identify source includes within our scripts that require a
18+
# 'source' directive. For more information, see:
19+
#
20+
# "Shellcheck SC1090 - Can't follow non-constant source"
21+
# https://www.shellcheck.net/wiki/SC1090
22+
#
1623
BASH_IT='' pre-commit run --files "${FILES[@]}"

0 commit comments

Comments
 (0)