diff options
Diffstat (limited to 'tools/depotfmt.nix')
-rw-r--r-- | tools/depotfmt.nix | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/depotfmt.nix b/tools/depotfmt.nix index 04dd6ffc7555..16e6b19b546d 100644 --- a/tools/depotfmt.nix +++ b/tools/depotfmt.nix @@ -3,22 +3,12 @@ { pkgs, ... }: let - # terraform fmt can't handle multiple paths at once, but treefmt - # expects this - terraformat = pkgs.writeShellScript "terraformat" '' - echo "$@" | xargs -n1 ${pkgs.terraform}/bin/terraform fmt - ''; - config = pkgs.writeText "depot-treefmt-config" '' [formatter.go] command = "${pkgs.go}/bin/gofmt" options = [ "-w" ] includes = ["*.go"] - [formatter.tf] - command = "${terraformat}" - includes = [ "*.tf" ] - [formatter.nix] command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt" includes = [ "*.nix" ] |