We want to target .tf files in test_tf_1 only, how will be able to achieve that? In this case scenario, something like this could really help tflint --recursive --filter ./test_tf_1/.. or tflint --chdir='./test_tf_1' --recursive when running from the root of the project.
References
This request was initially raised as a bug issue first:
Introduction
Currently, the
--recursive
flag only works with--filter
if an exact file is mentioned. For example:tflint --recursive --filter main.tf
But if we want to filter based on a certain subdir in a project folder, it doesn't work.
Working with
--recursive
and--chdir
gives the following error:Proposal
For the following configuration: if we have two folders under a project folder:
We want to target .tf files in
test_tf_1
only, how will be able to achieve that? In this case scenario, something like this could really helptflint --recursive --filter ./test_tf_1/..
ortflint --chdir='./test_tf_1' --recursive
when running from the root of the project.References
This request was initially raised as a bug issue first: