From 2a115836f3b295899b452ba84e325189b25c979c Mon Sep 17 00:00:00 2001 From: Satchmo Date: Tue, 14 Jan 2025 21:50:56 -0500 Subject: [PATCH] chore: disable recvcheck linter to allow mixed receiver types --- .golangci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 3986c76..75daa98 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -93,7 +93,9 @@ linters-settings: # [deprecated] comma-separated list of pairs of the form pkg:regex # the regex is used to ignore names within pkg. (default "fmt:.*"). # see https://github.com/kisielk/errcheck#the-deprecated-method for details - exclude-functions: fmt:.*,io/ioutil:^Read.* + exclude-functions: + - fmt:.* + - io/ioutil:^Read.* # path to a file containing a list of functions to exclude from checking # see https://github.com/kisielk/errcheck#excluding-functions for details @@ -109,7 +111,7 @@ linters-settings: gci: # put imports beginning with prefix after 3rd-party packages; sections: - prefix(github.com/org/project) + - prefix(github.com/org/project) gocognit: # minimal code complexity to report, 30 by default (but we recommend 10-20) min-complexity: 10 @@ -354,6 +356,7 @@ linters: - nestif - nlreturn - gci + - recvcheck disable-all: false presets: - bugs