Skip to content

Commit

Permalink
tests: bump golangci-lint to v1.58.0
Browse files Browse the repository at this point in the history
& re-order disable linters (deprecated section with version order, alphabetical order for unwanted
  • Loading branch information
jeremmfr committed May 6, 2024
1 parent 07d8189 commit 517316d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v5
with:
version: v1.57
version: v1.58.0
args: -c .golangci.yml -v
32 changes: 19 additions & 13 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
run:
timeout: 5m

linters:
enable-all: true
disable:
- maligned # deprecated 1.38
- interfacer # deprecated 1.38
- scopelint # deprecated 1.39
- golint # deprecated 1.41
- exhaustivestruct # deprecated 1.46
- ifshort # deprecated 1.48
- nosnakecase # deprecated 1.48.1
- deadcode # deprecated 1.49
- structcheck # deprecated 1.49
- varcheck # deprecated 1.49
- wsl
# deprecated
- interfacer # deprecated 1.38.0
- maligned # deprecated 1.38.0
- scopelint # deprecated 1.39.0
- golint # deprecated 1.41.0
- exhaustivestruct # deprecated 1.46.0
- ifshort # deprecated 1.48.0
- deadcode # deprecated 1.49.0
- structcheck # deprecated 1.49.0
- varcheck # deprecated 1.49.0
- execinquery # deprecated 1.58.0
- gomnd # deprecated 1.58.0
# unwanted
- depguard
- gochecknoglobals
- gomnd
- mnd
- nonamedreturns
- depguard
- wsl

linters-settings:
gofumpt:
extra-rules: true
Expand Down Expand Up @@ -54,6 +59,7 @@ linters-settings:
- name: import-alias-naming
- name: import-shadowing
- name: unhandled-error

issues:
exclude-rules:
- path: '^example_test\.go$'
Expand Down

0 comments on commit 517316d

Please sign in to comment.