Skip to content

Can not disable rules globally #1925

Answered by bendrucker
lony asked this question in Q&A
Discussion options

You must be logged in to vote

From the linked docs, emphasis mine:

The file path is resolved relative to the module directory when --chdir or --recursive is used. To use a config file from the working directory when recursing, pass an absolute path

Arguably explicitly setting --config to a non-existent file should error. Currently, it's handled as the default and so --config .tflint.hcl is both a noop and will not error even when the file does not exist.

I have filed #1926 to describe that and propose eliminating that special behavior so that you would have gotten an explicit error about your missing configuration.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bendrucker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1924 on November 28, 2023 18:40.