--recursive flag doesn't seem to run in child directories #2133
Unanswered
caoimheharvey
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This is the documented behavior: If you pass a relative directory, that's relative to the working directory, not to the config file. Perhaps it should be otherwise, but that would be breaking too for users relying on it working as documented currently. If you just let the plugins get managed in your home directory like they are by default, you'd be fine. Otherwise, you have to set |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I have my
.tflint.hcl
config in a parent directory and runtflint --init
in the parent directory, and I have a lot of child directories that I want to lint, but when I runtflint --recursive --config="$(pwd)/.tflint.hcl"
from the parent directory it returns nothing even if there are linting failures.When I switch to debug output this is what I am seeing:
Seems odd that I would need to run
tflint --init --recursive
because I would very quickly hit a rate limit (tried this), so its not a practical solution.As a work-around I've tried to copy the
.tflint.d
directory to all my subdirectories but again, this isn't a workable solution.Command
tflint --recursive --config="$(pwd)/.tflint.hcl"
Terraform Configuration
TFLint Configuration
Output
Beta Was this translation helpful? Give feedback.
All reactions