Skip to content

Commit

Permalink
Fixed config deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Sep 16, 2024
1 parent a44f3af commit a78d880
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ linters-settings:
# default is false: such cases aren't reported by default.
check-blank: false

# [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
ignore: 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
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 Down Expand Up @@ -176,7 +175,7 @@ linters-settings:
- atomicalign
- shadow
enable-all: false
#disable:
#disable:
#- shadow
disable-all: false
#depguard:
Expand Down Expand Up @@ -283,17 +282,19 @@ linters-settings:

linters:
enable:
- megacheck
- gosimple
- staticcheck
- unused
- govet
- gofmt
- gosec
- copyloopvar
- bodyclose
- revive
- unconvert
- misspell
- dogsled
- prealloc
- exportloopref
- exhaustive
- sqlclosecheck
- nolintlint
Expand Down Expand Up @@ -336,10 +337,11 @@ linters:
- gochecknoglobals # this project uses some globals
- godot # some comments do not end in a period
- godox # finds all the HACKs
- goerr113 # requires a lot of fixes for errors with wrapping
- err113 # requires a lot of fixes for errors with wrapping
- gomnd # we have too many raw numbers that are not magic
- gomoddirectives # we use replace as needed
- nilnil # we do not conform to this
- testifylint # Need to fix all the lint issues before enabling
#- contextcheck # having issues with this
disable-all: false
presets:
Expand Down Expand Up @@ -468,4 +470,4 @@ severity:
rules:
- linters:
- dupl
severity: info
severity: info

0 comments on commit a78d880

Please sign in to comment.