0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-25 07:30:38 +00:00
git-sv/.golangci.yml

110 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
- execinquery
# - exhaustive
- exportloopref
- forcetypeassert
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
# - godox
- goerr113
- gofmt
- gofumpt
- goheader
- goimports
- gomnd
- 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
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
lang-version: "1.21"
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