From 3b379a13710cae2adc56131af1069e6fb92976b8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 9 May 2024 18:58:14 +0200 Subject: style: reformat with golines and enforce on commit --- default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 10f7ac7..3de02f2 100644 --- a/default.nix +++ b/default.nix @@ -61,6 +61,14 @@ in yamllint = { enable = true; }; + golines = { + enable = true; + name = "golines"; + description = "A golang formatter that fixes long lines"; + types_or = [ "go" ]; + entry = "${pkgs.golines}/bin/golines --write-output"; + pass_filenames = true; + }; go-mod-tidy = { enable = true; name = "go-mod-tidy"; -- cgit 1.4.1