Skip to content

Commit

Permalink
🆙 Include all opentofu-compatible files for Terraform (#275)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Boultbee <nick.boultbee@generative.vision>
  • Loading branch information
declension and Nick Boultbee authored Dec 9, 2024
1 parent 357cda8 commit 0ce9d14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/formatter-terraform.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
[formatter.terraform]
command = "tofu"
excludes = []
includes = ["*.tf"]
includes = ["*.tf", "*.tfvars", "*.tftest.hcl"]
options = ["fmt"]
7 changes: 6 additions & 1 deletion programs/terraform.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ in
settings.formatter.terraform = {
command = cfg.package;
options = [ "fmt" ];
includes = [ "*.tf" ];
# All opentofu-supported files
includes = [
"*.tf"
"*.tfvars"
"*.tftest.hcl"
];
};
};
}

0 comments on commit 0ce9d14

Please # to comment.