-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"--recursive" and "--filter" options together not working as expected #1904
Comments
Globstar ( That would be a feature request that we could consider via swapping the glob implementation for one that does. What works: tflint --recursive --filter main.tf Filters are evaluated within the working directory: Lines 35 to 38 in 83655ca
So this is working as designed right now, but there is discussion and proposals around implementing additional flags for filtering modules or repurposing the existing filter flag (i.e., break the existing behavior) to allow this. You're welcome to reopen this as a feature request with more complete background and examples on how it would be used. The given example doesn't show why you wouldn't just use See also: |
Hi @bendrucker , thanks for your feedback. Here is a feature request for enhancement. It is still up for grooming, please let me know your thoughts on it. |
Summary
I'm encountering an issue when using the
tflint --recursive --filter='./<somedir>/**'
command. It seems that the command is not working as expected, and I'd like to report this as a potential bug.Steps to reproduce:
tflint --recursive --filter='./tf_test_1/**'
Expected behavior:
You should see tflint complaining about the tf code with error that needs to be fixed
Actual behavior:
Don't see any output at all
Additional context:
Please let me know if there's any additional information I can provide or if there's a workaround for this issue. Thank you!
Command
tflint --recursive --filter='./test_tf_1/**'
Terraform Configuration
TFLint Configuration
Output
TFLint Version
0.48.0
Terraform Version
v1.5.7
Operating System
The text was updated successfully, but these errors were encountered: