Skip to content

Commit

Permalink
.golangci.yml: align with latest golangci-lint version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed May 27, 2024
1 parent 6b57709 commit ca7d2ea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/golang-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- 'bindings/go/*.go'
- '.github/workflows/golang-lint.yml'
- '.golangci.yml'
pull_request:
branches:
- master
Expand All @@ -24,7 +25,7 @@ jobs:
cache: false
- name: "go version"
run: go version
- uses: golangci/golangci-lint-action@v4
- uses: golangci/golangci-lint-action@v6
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.
Expand Down
26 changes: 15 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ linters:
enable-all: true
disable:
# deprecated
- deadcode
- exhaustivestruct
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck
#- deadcode
- execinquery
#- exhaustivestruct
#- golint
#- ifshort
#- interfacer
#- maligned
#- nosnakecase
#- scopelint
#- structcheck
#- varcheck
# just whining
- copyloopvar # go>=1.22
- cyclop
- dupword
- forbidigo
Expand All @@ -27,7 +29,9 @@ linters:
- gofumpt
- goimports
- gomnd
- intrange # go>=1.22
- lll
- mnd
- nlreturn
- stylecheck
- varnamelen
Expand All @@ -43,7 +47,7 @@ linters:
- nonamedreturns
- perfsprint
- testpackage
# 75 active linters remaining including gosec, gosimple, govet, etc.
# 77 active linters remaining including gosec, gosimple, govet, etc.

linters-settings:
revive:
Expand Down

0 comments on commit ca7d2ea

Please sign in to comment.