--recursive needs .tflint.hcl in each directory #1872
Replies: 2 comments
-
Unable to reproduce. The
While your command looks right the lack of an absolute path in the logs suggests that an absolute path is not actually being passed. No idea what the discrepancy is but there's also no indication it's a bug based on the output given. |
Beta Was this translation helpful? Give feedback.
-
Hi @bendrucker I'm able to reproduce this under Ubuntu 24.04 as well:
Running
Renaming the file to
No warnings are returned from the second run, because the config file is applied correctly to each traversed directory when explicitly specified with an absolute path, and the
tflint is trying to find the config file in the currently processed directory and |
Beta Was this translation helpful? Give feedback.
-
Summary
I'm trying to scan my whole repository with TF modules and when i'm enabling --recursive flag, tflint trying to get config in each directory on the way. As result, it's running with default values, not my custom one.
Command
TFLINT_LOG=debug tflint --recursive --config "$(pwd)/.tflint.hcl"
Terraform Configuration
-
TFLint Configuration
Output
TFLint Version
0.48.0
Terraform Version
No response
Operating System
Beta Was this translation helpful? Give feedback.
All reactions