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 runs-on: ubuntu-latest
env: env:
GO_VERSION: 1.17 GO_VERSION: 1.17
GOLANGCI_LINT_VERSION: v1.43.0 GOLANGCI_LINT_VERSION: v1.44.0
SEIHON_VERSION: v0.9.0 SEIHON_VERSION: v0.9.0
CGO_ENABLED: 0 CGO_ENABLED: 0

View File

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