Skip to content

Include maxdepth parameter to limit the number of subfolders to review #2466

@tceu-maurizio

Description

@tceu-maurizio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions