Skip to content

Commit

Permalink
Bump golangci lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
tobischo committed Dec 15, 2024
1 parent 0df0f3d commit dc446b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 8 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ linters-settings:
strict: true
enable-all: true

gosec:
excludes:
- G115

nakedret:
max-func-lines: 0 # Do not use naked returns

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dc446b2

Please sign in to comment.