Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
go-version: '1.26'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v9
with:
# 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.55
version: v2.10.1

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
22 changes: 7 additions & 15 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
version: "2"

run:
timeout: 5m

linters:
enable:
- asasalint
- bidichk
- bodyclose
- containedctx
- contextcheck
- dogsled
- dupl
- dupword
- durationcheck
- errorlint
- errchkjson
- exhaustive
- exportloopref
- forcetypeassert
# - gochecknoglobals
- goconst
- gocritic
# - goerr113
- gofmt
- goprintffuncname
- gosec
- grouper
- ireturn
- loggercheck
- makezero
- mirror
- misspell
# - musttag
Expand All @@ -35,21 +30,18 @@ linters:
- nilerr
#- noctx
- nonamedreturns
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- reassign
- revive
- sqlclosecheck
- stylecheck
# - tagliatelle
- tenv
- thelper
- tparallel
- unconvert
- unparam
- usestdlibvars
# - varnamelen
- wastedassign
- whitespace

formatters:
enable:
- gofmt
Loading