Linting
Linting
- pre-commit-opentofu
terraform validateisn't able to catch invalid resources like aws instance type, buttflintis i.e.
tflint
- Github
- User guide
- Ignore rules with Annotations
- Opentofu discussions: Tools, dependencies, and other things: tflint
- WIP: tofulint fork
- Not usable atm
Debug mode:
TFLINT_LOG=debug tflint
Issues:
.tofufiles are not parsed- No OpenTofu support planned
- When used in pre-commit, there's no indication about the file location Output directory tflint is executed from
- Tflint searched for config files in the current directory, then for a global one (
~/.tflint.hcl), but not in the root of the git repo i.e. When there is no global config file, the default config is used for tflint when executed in a subdir i.e., or even when used astflint --recursive --module.