Skip to content

Commit

Permalink
chore(golangci-lint): upgrade to 1.59.0 (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored May 31, 2024
1 parent 8b72963 commit bcec71f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.2
version: v1.59.0
13 changes: 8 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ linters-settings:
enabled-tags:
- performance
govet:
check-shadowing: true
enable:
- shadow
misspell:
locale: US
gci:
local-prefixes: github.com/evilmartians/lefthook
sections:
- standard
- default
- prefix(github.com/evilmartians/lefthook)
revive:
rules:
- name: unused-parameter
Expand All @@ -18,8 +22,7 @@ linters-settings:
issues:
exclude:
# https://github.com/catenacyber/perfsprint/issues/21
# https://github.com/catenacyber/perfsprint/issues/23
- "^fmt\\.Sprintf can be replaced with string (addi|concatena)tion$"
- "^fmt\\.Sprintf can be replaced with string concatenation$"

linters:
disable-all: true
Expand Down Expand Up @@ -52,14 +55,14 @@ linters:
- gofumpt
- goheader
- goimports
- gomnd
- goprintffuncname
- gosimple
- govet
- ineffassign
- makezero
- mirror
- misspell
- mnd
- nestif
- noctx
- nolintlint
Expand Down

0 comments on commit bcec71f

Please sign in to comment.