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 Dec 27, 2024
1 parent 8935347 commit 21e266c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
with:
version: v1.56.2
version: v1.62.2
27 changes: 13 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
run:
go: '1.22'

linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- containedctx
- contextcheck
- copyloopvar
- decorder
- dogsled
- dupl
- dupword
- durationcheck
- err113
- errcheck
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
- exportloopref
- fatcontext
- forbidigo
- forcetypeassert
- gci
Expand All @@ -29,7 +34,6 @@ linters:
- gocritic
- gocyclo
- godot
- goerr113
- gofmt
- gofumpt
- goheader
Expand All @@ -42,10 +46,12 @@ linters:
- gosmopolitan
- govet
- grouper
- iface
- importas
- inamedparam
- ineffassign
- interfacebloat
- intrange
- loggercheck
- makezero
- mirror
Expand All @@ -64,6 +70,7 @@ linters:
- promlinter
- protogetter
- reassign
- recvcheck
- revive
- rowserrcheck
- sloglint
Expand All @@ -88,19 +95,20 @@ linters:
disable:
- cyclop
- depguard
- exhaustivestruct
- exhaustruct
- funlen
- gochecknoglobals
- gochecknoinits
- godox
- gomnd
- ireturn
- lll
- maintidx
- mnd
- nlreturn
- nonamedreturns
- paralleltest
- testableexamples
- unparam
- varnamelen
- wrapcheck
- wsl
Expand All @@ -113,22 +121,13 @@ linters-settings:
- prefix(github.com/twpayne/pgx-geom)
gofumpt:
extra-rules: true
local-prefixes: github.com/twpayne/pgx-geom
goimports:
local-prefixes: github.com/twpayne/pgx-geom
govet:
disable:
- fieldalignment
- shadow
enable-all: true
ireturn:
allow:
- empty
- error
- github.com/jackc/pgx/v5/pgtype.EncodePlan
- github.com/jackc/pgx/v5/pgtype.ScanPlan
- github.com/twpayne/go-geom.T
- stdlib
misspell:
locale: US
stylecheck:
Expand Down

0 comments on commit 21e266c

Please sign in to comment.