Update golangci config
This commit is contained in:
parent
0af7547c4b
commit
bd632f21ef
135
.golangci.yml
135
.golangci.yml
@ -1,52 +1,10 @@
|
||||
linters-settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
gci:
|
||||
sections:
|
||||
- standard
|
||||
- default
|
||||
- prefix(go.c3c.cz)
|
||||
forbidigo:
|
||||
analyze-types: true
|
||||
gocritic:
|
||||
enabled-tags:
|
||||
- diagnostic
|
||||
- experimental
|
||||
- opinionated
|
||||
- performance
|
||||
- style
|
||||
disabled-checks:
|
||||
- hugeParam
|
||||
- paramTypeCombine
|
||||
- sloppyReassign
|
||||
govet:
|
||||
enable-all: true
|
||||
settings:
|
||||
shadow:
|
||||
strict: true
|
||||
nolintlint:
|
||||
require-explanation: true
|
||||
require-specific: true
|
||||
sloglint:
|
||||
attr-only: true
|
||||
context: scope
|
||||
forbidden-keys:
|
||||
- time
|
||||
- level
|
||||
- msg
|
||||
- source
|
||||
key-naming-case: snake
|
||||
no-global: all
|
||||
static-msg: true
|
||||
stylecheck:
|
||||
checks:
|
||||
- all
|
||||
- -ST1000
|
||||
wsl:
|
||||
allow-cuddle-declarations: true
|
||||
version: "2"
|
||||
|
||||
run:
|
||||
timeout: 3m
|
||||
relative-path-mode: gitroot
|
||||
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- bidichk
|
||||
- bodyclose
|
||||
@ -56,14 +14,11 @@ linters:
|
||||
- errorlint
|
||||
- exhaustive
|
||||
- forbidigo
|
||||
- gci
|
||||
- gocheckcompilerdirectives
|
||||
- gochecksumtype
|
||||
- goconst
|
||||
- gocritic
|
||||
- gofumpt
|
||||
- gosec
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- makezero
|
||||
@ -77,11 +32,9 @@ linters:
|
||||
- perfsprint
|
||||
- prealloc
|
||||
- predeclared
|
||||
- protogetter
|
||||
- sloglint
|
||||
- spancheck
|
||||
- staticcheck
|
||||
- stylecheck
|
||||
- unconvert
|
||||
- unconvert
|
||||
- unparam
|
||||
@ -90,11 +43,81 @@ linters:
|
||||
- usestdlibvars
|
||||
- wastedassign
|
||||
- whitespace
|
||||
- wsl
|
||||
- wsl_v5
|
||||
settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
forbidigo:
|
||||
analyze-types: true
|
||||
gocritic:
|
||||
disabled-checks:
|
||||
- hugeParam
|
||||
- paramTypeCombine
|
||||
- sloppyReassign
|
||||
enabled-tags:
|
||||
- diagnostic
|
||||
- experimental
|
||||
- opinionated
|
||||
- performance
|
||||
- style
|
||||
govet:
|
||||
enable:
|
||||
- shadow
|
||||
nolintlint:
|
||||
require-explanation: true
|
||||
require-specific: true
|
||||
sloglint:
|
||||
attr-only: true
|
||||
no-global: all
|
||||
context: scope
|
||||
static-msg: true
|
||||
key-naming-case: snake
|
||||
forbidden-keys:
|
||||
- time
|
||||
- level
|
||||
- msg
|
||||
- source
|
||||
staticcheck:
|
||||
checks:
|
||||
- all
|
||||
- -ST1000
|
||||
wsl_v5:
|
||||
disable:
|
||||
- decl
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
- comments
|
||||
- common-false-positives
|
||||
- legacy
|
||||
- std-error-handling
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
|
||||
formatters:
|
||||
enable:
|
||||
- gci
|
||||
- gofumpt
|
||||
settings:
|
||||
gci:
|
||||
sections:
|
||||
- standard
|
||||
- default
|
||||
- prefix(go.yrps.dev)
|
||||
exclusions:
|
||||
generated: lax
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
|
||||
issues:
|
||||
max-issues-per-linter: 0
|
||||
max-same-issues: 0
|
||||
exclude-use-default: false
|
||||
exclude:
|
||||
- Error return value of .*\.Body\.Close. is not checked
|
||||
|
||||
output:
|
||||
sort-order:
|
||||
- file
|
||||
show-stats: false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user