Introduction
Usually our terraform workspace contains multiple subdirectories, including .terraform, and the .terraform includes multiple subfolders when working with nested terraform modules. Limiting tflint to only scan a certain level of directories in a similar way the find command works will be really helpful and improve tflint performance, hence reducing development time.
Proposal
Please include maxdepth parameter on tflint, similar to the find --maxdepth command.
Example:
tflint --maxdepth 1 # to only scan the current directory
tflint --maxdepth 2 # to scan maximum 2 subfolder levels
References
None.