0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-21 22:10:39 +00: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: linters:
# disable-all: true
# enable:
# - megacheck
# - govet
enable-all: true enable-all: true
disable: disable:
- scopelint - scopelint
- paralleltest - paralleltest
- staticcheck
- noctx - noctx
- godox
- wsl - wsl
- lll - lll
- forbidigo - forbidigo
# - prealloc - nlreturn
# presets: - gomnd
# - bugs
# - unused
# bugs|comment|complexity|error|format|import|metalinter|module|performance|sql|style|test|unused
fast: true fast: true
run: run:
skip-dirs: skip-dirs:
- build - build
- artifacts - 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