terraform_tflint: Fix files array assignation #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Files were concatenated into a single space-separated string
How
argsare passed to thetflintfunction might have to be improved too.Here's
shellcheckoutput:$ shellcheck terraform_tflint.sh [12:11:58] In terraform_tflint.sh line 36: let "index+=1" ^-----------^ SC2219: Instead of 'let expr', prefer (( expr )) . In terraform_tflint.sh line 43: tflint $args ^---^ SC2086: Double quote to prevent globbing and word splitting. Did you mean: tflint "$args" In terraform_tflint.sh line 534: [[ $BASH_SOURCE != "$0" ]] || main "$@" ^----------^ SC2128: Expanding an array without an index only gives the first element. For more information: https://www.shellcheck.net/wiki/SC2128 -- Expanding an array without an ind... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... https://www.shellcheck.net/wiki/SC2219 -- Instead of 'let expr', prefer (( ...