0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-09 16:00:40 +00:00
git-sv/.golangci.yml

109 lines
1.7 KiB
YAML
Raw Normal View History

linters:
2023-10-12 14:18:25 +00:00
enable-all: false
disable-all: true
2021-07-31 20:35:15 +00:00
enable:
2023-10-12 14:18:25 +00: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 09:08:29 +00:00
- err113
2023-10-12 14:18:25 +00:00
- gofmt
- gofumpt
- goheader
- goimports
2024-05-12 09:08:29 +00:00
- mnd
2023-10-12 14:18:25 +00: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 20:35:15 +00:00
- tagliatelle
2023-10-12 14:18:25 +00:00
- tenv
- testableexamples
- thelper
- tparallel
- unconvert
- unparam
- usestdlibvars
# - wastedassign
- whitespace
- wsl
2023-12-06 08:29:44 +00:00
- zerologlint
2023-10-12 14:18:25 +00:00
fast: false
run:
2023-10-12 14:18:25 +00:00
timeout: 3m
2021-07-31 19:40:18 +00:00
linters-settings:
tagliatelle:
case:
rules:
yaml: kebab
2023-10-12 14:18:25 +00:00
gofumpt:
extra-rules: true
2021-07-31 19:40:18 +00:00
issues:
exclude-rules:
2023-10-12 14:18:25 +00:00
- path: (.+)_test.go
2021-07-31 19:40:18 +00:00
linters:
- gosec
- gochecknoglobals
2023-10-12 14:18:25 +00:00
- prealloc