You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since the introduction of #1940, which throws an error if .tflint.hcl is missing, it is now expecting a .tflint.hcl file in every sub-directory when using the following
tflint --config .tflint.hcl --module --recursive
Failed to load TFLint config; failed to load file: open .tflint.hcl: no such file or directory working_dir=modules
I tried adding to the modules directory, but it then errors out on the next one underneath
.tflint.hcl files shouldn't be recursively set in every sub-directory, it's not scalable. either bugfix should be removed and warn instead, or configuration should be inherited from the top, unless there's a flag I'm not seeing which would resolve this bug
If you just want to ignore instead of returing an error if .tflint.hcl doesn't exist in a sub-directory, you can simply remove --config .tflint.hcl. See also #1926
Discussion on configuration inheritance is tracked in #1929.
Summary
since the introduction of #1940, which throws an error if
.tflint.hcl
is missing, it is now expecting a.tflint.hcl
file in every sub-directory when using the followingI tried adding to the
modules
directory, but it then errors out on the next one underneath.tflint.hcl
files shouldn't be recursively set in every sub-directory, it's not scalable. either bugfix should be removed and warn instead, or configuration should be inherited from the top, unless there's a flag I'm not seeing which would resolve this bugCommand
tflint --config .tflint.hcl --module --recursive
Terraform Configuration
N/A
TFLint Configuration
Output
TFLint Version
0.50.0
Terraform Version
No response
Operating System
The text was updated successfully, but these errors were encountered: