We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac54720 commit 1aff30fCopy full SHA for 1aff30f
hooks/terraform_tflint.sh
@@ -34,6 +34,13 @@ function per_dir_hook_unique_part {
34
local -r args="$1"
35
local -r dir_path="$2"
36
37
+ # shellcheck disable=SC2091,SC2068 # Suppress error output
38
+ TFLINT_INIT=$(tflint --init 2>&1) 2> /dev/null || {
39
+ local exit_code=$?
40
+ common:colorify "yellow" "tflint init:"
41
+ echo "${TFLINT_INIT}"
42
+ return ${exit_code}
43
+ }
44
# Print checked PATH **only** if TFLint have any messages
45
# shellcheck disable=SC2091,SC2068 # Suppress error output
46
$(tflint ${args[@]} 2>&1) 2> /dev/null || {
0 commit comments