chore: update linter
This commit is contained in:
parent
b02023370b
commit
cd16576a1f
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.17
|
GO_VERSION: 1.17
|
||||||
GOLANGCI_LINT_VERSION: v1.44.0
|
GOLANGCI_LINT_VERSION: v1.47.2
|
||||||
SEIHON_VERSION: v0.9.0
|
SEIHON_VERSION: v0.9.0
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
|
|||||||
@ -61,6 +61,7 @@ linters:
|
|||||||
- interfacer # deprecated
|
- interfacer # deprecated
|
||||||
- maligned # deprecated
|
- maligned # deprecated
|
||||||
- scopelint # deprecated
|
- scopelint # deprecated
|
||||||
|
- exhaustivestruct # 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
|
||||||
@ -78,7 +79,7 @@ linters:
|
|||||||
- goerr113
|
- goerr113
|
||||||
- wrapcheck
|
- wrapcheck
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- exhaustivestruct
|
- exhaustruct
|
||||||
- ifshort
|
- ifshort
|
||||||
- varnamelen
|
- varnamelen
|
||||||
- nilnil
|
- nilnil
|
||||||
@ -94,3 +95,6 @@ issues:
|
|||||||
linters:
|
linters:
|
||||||
- gochecknoglobals
|
- gochecknoglobals
|
||||||
- gochecknoinits
|
- gochecknoinits
|
||||||
|
- path: "(.+)_test.go"
|
||||||
|
linters:
|
||||||
|
- nosnakecase
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user