mirror of
https://github.com/thegeeklab/git-sv.git
synced 2024-11-24 21:20:40 +00:00
chore: config golangci lint
This commit is contained in:
parent
6184ac3ad4
commit
18b4d78bd8
@ -1,26 +1,45 @@
|
||||
linters:
|
||||
# disable-all: true
|
||||
# enable:
|
||||
# - megacheck
|
||||
# - govet
|
||||
enable-all: true
|
||||
disable:
|
||||
- scopelint
|
||||
- paralleltest
|
||||
- staticcheck
|
||||
- noctx
|
||||
- godox
|
||||
- wsl
|
||||
- lll
|
||||
- forbidigo
|
||||
# - prealloc
|
||||
# presets:
|
||||
# - bugs
|
||||
# - unused
|
||||
|
||||
# bugs|comment|complexity|error|format|import|metalinter|module|performance|sql|style|test|unused
|
||||
- nlreturn
|
||||
- gomnd
|
||||
fast: true
|
||||
|
||||
run:
|
||||
skip-dirs:
|
||||
- build
|
||||
- artifacts
|
||||
|
||||
linters-settings:
|
||||
tagliatelle:
|
||||
case:
|
||||
use-field-name: true
|
||||
rules:
|
||||
json: camel
|
||||
yaml: kebab
|
||||
xml: camel
|
||||
bson: camel
|
||||
avro: snake
|
||||
mapstructure: kebab
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- gocyclo
|
||||
- errcheck
|
||||
- dupl
|
||||
- gosec
|
||||
- gochecknoglobals
|
||||
- testpackage
|
||||
- path: cmd/git-sv/main.go
|
||||
linters:
|
||||
- gochecknoglobals
|
||||
- funlen
|
Loading…
Reference in New Issue
Block a user