git-sv/.golangci.yml

109 lines
1.7 KiB
YAML
Raw Permalink Normal View History

linters:
2023-10-12 16:18:25 +02:00
enable-all: false
disable-all: true
2021-07-31 22:35:15 +02:00
enable:
2023-10-12 16:18:25 +02:00
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- decorder
- dogsled
- dupl
- dupword
- durationcheck
- errchkjson
- errname
- errorlint
# - exhaustive
- exportloopref
- forcetypeassert
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
# - godox
2024-05-12 11:08:29 +02:00
- err113
2023-10-12 16:18:25 +02:00
- gofmt
- gofumpt
- goheader
- goimports
2024-05-12 11:08:29 +02:00
- mnd
2023-10-12 16:18:25 +02:00
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- grouper
- importas
- interfacebloat
- ireturn
- lll
- loggercheck
- maintidx
- makezero
- misspell
- musttag
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- noctx
- nolintlint
- nonamedreturns
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- reassign
- revive
# - rowserrcheck
# - sqlclosecheck
# - structcheck
- stylecheck
2021-07-31 22:35:15 +02:00
- tagliatelle
2023-10-12 16:18:25 +02:00
- tenv
- testableexamples
- thelper
- tparallel
- unconvert
- unparam
- usestdlibvars
# - wastedassign
- whitespace
- wsl
2023-12-06 09:29:44 +01:00
- zerologlint
2023-10-12 16:18:25 +02:00
fast: false
run:
2023-10-12 16:18:25 +02:00
timeout: 3m
2021-07-31 21:40:18 +02:00
linters-settings:
tagliatelle:
case:
rules:
yaml: kebab
2023-10-12 16:18:25 +02:00
gofumpt:
extra-rules: true
2021-07-31 21:40:18 +02:00
issues:
exclude-rules:
2023-10-12 16:18:25 +02:00
- path: (.+)_test.go
2021-07-31 21:40:18 +02:00
linters:
- gosec
- gochecknoglobals
2023-10-12 16:18:25 +02:00
- prealloc