Enforce naming convention in the modules #2083
-
I have this file tree:
I have written a .tflint.hcl as the following:
and this is in the root folder of my terraform. If I run How can I enforce the naming convention in the module avoiding polutting the code with tons of .tflint.hcl files? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Use an absolute path if you don't want TFLint to try to load configuration relative to each directory: https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/config.md#configuring-tflint By default, |
Beta Was this translation helpful? Give feedback.
Use an absolute path if you don't want TFLint to try to load configuration relative to each directory:
https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/config.md#configuring-tflint
By default,
.tflint.hcl
is loaded relative to the module under test. But if you pass an absolute path to the file at your repo root, it'll always load the same config.