Skip to content

Commit

Permalink
chore: update golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Mar 10, 2024
1 parent 1454ab0 commit 686ea42
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
with:
version: v1.52.2
version: v1.56.2
13 changes: 12 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ linters:
- gci
- ginkgolinter
- gocheckcompilerdirectives
- gochecksumtype
- gocognit
- goconst
- gocritic
Expand All @@ -38,14 +39,17 @@ linters:
- goprintffuncname
- gosec
- gosimple
- gosmopolitan
- govet
- grouper
- importas
- inamedparam
- ineffassign
- interfacebloat
- ireturn
- loggercheck
- makezero
- mirror
- misspell
- musttag
- nakedret
Expand All @@ -55,17 +59,23 @@ linters:
- noctx
- nolintlint
- nosprintfhostport
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- revive
- rowserrcheck
- sloglint
- spancheck
- sqlclosecheck
- staticcheck
- stylecheck
- tagalign
- tagliatelle
- tenv
- testifylint
- testpackage
- thelper
- tparallel
Expand All @@ -76,6 +86,7 @@ linters:
- usestdlibvars
- wastedassign
- whitespace
- zerologlint
disable:
- cyclop
- depguard
Expand All @@ -91,7 +102,6 @@ linters:
- nlreturn
- nonamedreturns
- paralleltest
- structcheck # https://github.com/golangci/golangci-lint/issues/2649
- testableexamples
- varnamelen
- wrapcheck
Expand All @@ -115,6 +125,7 @@ linters-settings:
enable-all: true
ireturn:
allow:
- empty
- error
- github.com/jackc/pgx/v5/pgtype.EncodePlan
- github.com/jackc/pgx/v5/pgtype.ScanPlan
Expand Down

0 comments on commit 686ea42

Please sign in to comment.