Skip to content

Commit

Permalink
chore: disable recvcheck linter to allow mixed receiver types
Browse files Browse the repository at this point in the history
  • Loading branch information
rohenaz committed Jan 15, 2025
1 parent 2406118 commit 2a11583
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -354,6 +356,7 @@ linters:
- nestif
- nlreturn
- gci
- recvcheck
disable-all: false
presets:
- bugs
Expand Down

0 comments on commit 2a11583

Please sign in to comment.