From 1f37e3c536cd4ff097cb9c4f90a4c4f8e796d55f Mon Sep 17 00:00:00 2001 From: Akshay Shah Date: Fri, 6 Oct 2023 22:43:41 -0700 Subject: [PATCH] Disable nonamedreturn linter We've disabled this linter in other projects, so let's stay as consistent as we can. --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 1ec58305..0ad344b1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -50,6 +50,7 @@ linters: - maintidx # covered by gocyclo - maligned # readability trumps efficient struct packing - nlreturn # generous whitespace violates house style + - nonamedreturns # named returns are fine; it's *bare* returns that are bad - nosnakecase # deprecated in https://github.com/golangci/golangci-lint/pull/3065 - scopelint # deprecated by author - structcheck # abandoned