0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-09-19 13:52:45 +02:00

chore: config golangci lint

This commit is contained in:
Beatriz Vieira 2021-07-31 16:40:18 -03:00
parent 6184ac3ad4
commit 18b4d78bd8

View File

@ -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