From a78d8802f3084255dcc8c74e2e7da7f8fe1e6e74 Mon Sep 17 00:00:00 2001 From: mrz1836 Date: Mon, 16 Sep 2024 19:47:27 -0400 Subject: [PATCH] Fixed config deprecations --- .golangci.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index d8dc4e8..921c6cd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 @@ -176,7 +175,7 @@ linters-settings: - atomicalign - shadow enable-all: false - #disable: + #disable: #- shadow disable-all: false #depguard: @@ -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 @@ -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: @@ -468,4 +470,4 @@ severity: rules: - linters: - dupl - severity: info \ No newline at end of file + severity: info