Skip to content

Commit 1902231

Browse files
authored
terraform_fmt: include .tfbackend files
As per the official docs https://developer.hashicorp.com/terraform/language/backend#file: > *.backendname.tfbackend (e.g. config.consul.tfbackend) is the recommended naming pattern. Terraform will not prevent you from using other names but following this convention will help your editor understand the content and likely provide better editing experience as a result.
1 parent 8a38366 commit 1902231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-hooks.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Rewrites all Terraform configuration files to a canonical format.
1414
entry: hooks/terraform_fmt.sh
1515
language: script
16-
files: (\.tf|\.tfvars)$
16+
files: (\.tf|\.tfbackend|\.tfvars)$
1717
exclude: \.terraform/.*$
1818

1919
- id: terraform_docs

0 commit comments

Comments
 (0)