From e7bac69a57602b3e4adaa745f4906bfa1e2c8109 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Mon, 20 Nov 2023 14:04:54 +0200 Subject: [PATCH] .golangci: disable gofumpt --- .golangci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 46579a63..3f2383c0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -32,6 +32,12 @@ linters-settings: linters: enable-all: true disable: + # Allow dynamic errors. + - goerr113 + + # We want to allow short variable names. + - varnamelen + # Init functions are used by loggers throughout the codebase. - gochecknoinits @@ -46,6 +52,11 @@ linters: # instances are created. - exhaustruct + # Disable gofumpt as it has weird behavior regarding formatting multiple + # lines for a function which is in conflict with our contribution + # guidelines. See https://github.com/mvdan/gofumpt/issues/235. + - gofumpt + # Deprecated linters. See https://golangci-lint.run/usage/linters/. - interfacer - golint