Skip to content

Commit 0ce9d14

Browse files
declensionNick Boultbee
and
Nick Boultbee
authored
🆙 Include all opentofu-compatible files for Terraform (#275)
Co-authored-by: Nick Boultbee <[email protected]>
1 parent 357cda8 commit 0ce9d14

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎examples/formatter-terraform.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
[formatter.terraform]
33
command = "tofu"
44
excludes = []
5-
includes = ["*.tf"]
5+
includes = ["*.tf", "*.tfvars", "*.tftest.hcl"]
66
options = ["fmt"]

‎programs/terraform.nix

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ in
1515
settings.formatter.terraform = {
1616
command = cfg.package;
1717
options = [ "fmt" ];
18-
includes = [ "*.tf" ];
18+
# All opentofu-supported files
19+
includes = [
20+
"*.tf"
21+
"*.tfvars"
22+
"*.tftest.hcl"
23+
];
1924
};
2025
};
2126
}

0 commit comments

Comments
 (0)