Skip to content

Commit

Permalink
Update golangci-lint version to 1.50.1
Browse files Browse the repository at this point in the history
Remove deprecated lints: golangci/golangci-lint#3125
Re-enable gocritic features which previously didn't support generics
  • Loading branch information
Philip Dubé committed Nov 14, 2022
1 parent c990439 commit ee36458
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Expand Up @@ -27,4 +27,4 @@ jobs:
uses: golangci/golangci-lint-action@v3.3.1
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.46.2
version: v1.50.1
14 changes: 4 additions & 10 deletions .golangci.yml
Expand Up @@ -17,12 +17,9 @@ linters-settings:
- experimental
- opinionated
- style
disabled-checks:
- hugeParam
- rangeValCopy
# settings:
# hugeParam:
# sizeThreshold: 170 # temporary, default is 80
settings:
hugeParam:
sizeThreshold: 170 # temporary, default is 80
gocyclo:
min-complexity: 15
govet:
Expand Down Expand Up @@ -77,14 +74,11 @@ linters:
- nakedret
- revive
- staticcheck
# - structcheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- lll
- deadcode
- stylecheck
- gosimple
- whitespace
Expand All @@ -108,5 +102,5 @@ severity:
rules:
- linters:
- godox
- deadcode
- unused
severity: info

0 comments on commit ee36458

Please sign in to comment.