Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
hclfmt: only format .hcl files (hercules-ci#182)
Browse files Browse the repository at this point in the history
Avoid clashes with the `terraform` formatter who does a better job at
formatting the ".tf" files, since it has more domain knowledge there.
  • Loading branch information
zimbatm authored Jun 1, 2024
1 parent 03b982b commit 3eb96ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion examples/formatter-hclfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
[formatter.hclfmt]
command = "hclfmt"
excludes = []
includes = ["*.hcl", "*.tf"]
includes = ["*.hcl"]
options = ["-w"]
2 changes: 0 additions & 2 deletions programs/hclfmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ in
];
includes = [
"*.hcl"
"*.tf"
# TODO: any other file extensions?
];
};
};
Expand Down

0 comments on commit 3eb96ca

Please sign in to comment.