Skip to content

Commit 84a07ea

Browse files
committed
Address shellcheck errors
1 parent 9faa857 commit 84a07ea

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

hooks/terraform_checkov.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function main {
1818
export ANSI_COLORS_DISABLED=true
1919
fi
2020

21+
# shellcheck disable=SC2153 # ARGS is set in common::parse_cmdline
2122
common::per_dir_hook "$HOOK_ID" "${#ARGS[@]}" "${ARGS[@]}" "${FILES[@]}"
2223
}
2324

hooks/terraform_tflint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function main {
1919
# Run `tflint --init` for check that plugins installed.
2020
# It should run once on whole repo.
2121
{
22+
# shellcheck disable=SC2153 # ARGS is set in common::parse_cmdline
2223
TFLINT_INIT=$(tflint --init "${ARGS[@]}" 2>&1) 2> /dev/null &&
2324
common::colorify "green" "Command 'tflint --init' successfully done:" &&
2425
echo -e "${TFLINT_INIT}\n\n\n"

hooks/terraform_trivy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function main {
1313
common::export_provided_env_vars "${ENV_VARS[@]}"
1414
common::parse_and_export_env_vars
1515

16+
# shellcheck disable=SC2153 # ARGS is set in common::parse_cmdline
1617
common::per_dir_hook "$HOOK_ID" "${#ARGS[@]}" "${ARGS[@]}" "${FILES[@]}"
1718
}
1819

0 commit comments

Comments
 (0)