ci: move code formatting responsibility to golangci-lint
4 files changed, 11 insertions(+), 16 deletions(-)
M .golangci.yaml → .golangci.yaml
@@ -73,6 +73,15 @@ - third_party$ - builtin$ - examples$ formatters: + enable: + - gofumpt + - golines + - goimports + settings: + gofmt: + simplify: true + golines: + tab-len: 2 exclusions: generated: lax paths:
M nix/pre-commit-checks.nix → nix/pre-commit-checks.nix
@@ -43,14 +43,6 @@ 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";