chore: update linter

This commit is contained in:
Fernandez Ludovic 2022-01-26 14:32:08 +01:00
parent 32293934dd
commit 1de505f615
2 changed files with 9 additions and 6 deletions

View File

@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
env:
GO_VERSION: 1.17
GOLANGCI_LINT_VERSION: v1.43.0
GOLANGCI_LINT_VERSION: v1.44.0
SEIHON_VERSION: v0.9.0
CGO_ENABLED: 0

View File

@ -4,11 +4,11 @@ run:
linters-settings:
govet:
check-shadowing: true
enable-all: true
disable:
- fieldalignment
gocyclo:
min-complexity: 12
maligned:
suggest-new: true
goconst:
min-len: 3
min-occurrences: 3
@ -17,10 +17,13 @@ linters-settings:
gofumpt:
extra-rules: true
depguard:
list-type: blacklist
list-type: denylist
include-go-root: false
packages:
- github.com/pkg/errors
funlen:
lines: -1
statements: 40
godox:
keywords:
- FIXME
@ -55,9 +58,9 @@ linters:
enable-all: true
disable:
- golint # deprecated
- scopelint # deprecated
- interfacer # deprecated
- maligned # deprecated
- scopelint # deprecated
- sqlclosecheck # not relevant (SQL)
- rowserrcheck # not relevant (SQL)
- cyclop # duplicate of gocyclo