Skip to content

Commit 015381c

Browse files
committed
Modify hook to show diff
1 parent cdcf13a commit 015381c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/hooks.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2732,7 +2732,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
27322732
name = "opentofu-format";
27332733
description = "Format OpenTofu (`.tf`) files.";
27342734
package = tools.opentofu;
2735-
entry = "${hooks.opentofu-format.package}/bin/tofu fmt --check";
2735+
entry = "${hooks.opentofu-format.package}/bin/tofu fmt -check -diff";
27362736
files = "\\.tf$";
27372737
};
27382738
ormolu =
@@ -3190,7 +3190,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
31903190
name = "terraform-format";
31913191
description = "Format Terraform (`.tf`) files.";
31923192
package = tools.terraform;
3193-
entry = "${hooks.terraform-format.package}/bin/terraform fmt --check";
3193+
entry = "${hooks.terraform-format.package}/bin/terraform fmt -check -diff";
31943194
files = "\\.tf$";
31953195
};
31963196
tflint =

0 commit comments

Comments
 (0)