Closed SharkyND closed 1 year ago
Globstar (**
) is not supported so that was never going to work:
https://github.com/golang/go/issues/11862
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:
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 --chdir
.
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