diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index f42a85b..68f975c 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -27,7 +27,7 @@ jobs: # Require: The version of golangci-lint to use. # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. - version: v1.56 + version: v1.61 # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/.golangci.yml b/.golangci.yml index 27ae907..a7a368e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -37,6 +37,10 @@ linters-settings: strict: true enable-all: true + gosec: + excludes: + - G115 + nakedret: max-func-lines: 0 # Do not use naked returns @@ -65,28 +69,22 @@ linters: - funlen - cyclop - gofumpt - - deadcode - - interfacer - - maligned - - nosnakecase - - scopelint - - structcheck - - varcheck + - intrange - wrapcheck - stylecheck - testableexamples - - ifshort - errcheck - nestif - - exhaustivestruct - govet - musttag - nilnil - gomnd + - mnd - gocritic # suggests some changes that are not necessarily better - gocognit - dupl - - golint + - exportloopref + - execinquery issues: max-ame-issues: 50