terramate-io / terramate

Terramate CLI is an open-source Infrastructure as Code (IaC) Orchestration and Code Generation tool for Terraform, OpenTofu and Terragrunt.
https://terramate.io
Mozilla Public License 2.0
3.28k stars 92 forks source link

[BUG] .tmskip file not being honoured by terramate fmt #1952

Closed jpo-tu closed 2 days ago

jpo-tu commented 2 weeks ago

Describe the bug .tmskip is not being honoured by terramate fmt

To Reproduce

git init tm-project
mkdir tm-project/a
touch tm-project/a/.tmskip
echo 'invalid' > tm-project/a/main.tm.hcl
terramate -C tm-project fmt

Expected behavior (no output, no files touched)

Actual behavior

Error: formatting directory /tmp/tm-project
> /tmp/tm-project/a/main.tm.hcl:1,1-8: HCL syntax error: An argument or block definition is required here.

Environment (please complete the following information):