Closed chb0github closed 1 year ago
Have you tried this with --chdir
? Passing modules as arguments is deprecated and will be removed in an upcoming version.
Have you tried this with
--chdir
? Passing modules as arguments is deprecated and will be removed in an upcoming version.
The cli
warns and exit when passing both --chdir
and --recursive
, though the fix seems pretty simple, I can make a PR if needed, unless there are some hidden snakes in the jar -- probably @wata727 could give us more insights.
First, the --recursive .
works correctly is not the intended behavior. An error should be raised for all directory arguments, even if it is the current directory.
On the other hand, I'm wondering if --recursive
and --chdir
should be allowed at the same time. Internally --recursive
is an alias for --chdir
to each directory and is not supposed to be used at the same time.
Probably, you want to limit the directories that are recursively inspected, but I'm not sure that's what --chdir
should do.
Summary
I am trying to recusrively scan a directory by name, which should be:
tflint --recursive $dirname
and I get an error. But when I go into that same directory and add.
as the directory, it's fineThis is being run in ubuntu on WSL V2
Command
tflint --recusrive .
Terraform Configuration
TFLint Configuration
Output
TFLint Version
0.44.1
Terraform Version
No response
Operating System