From 18b4d78bd801b783c41fcc1e89b4dcf5593248e4 Mon Sep 17 00:00:00 2001 From: Beatriz Vieira Date: Sat, 31 Jul 2021 16:40:18 -0300 Subject: [PATCH] chore: config golangci lint --- .golangci.yml | 41 ++++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2d0a9ae..965f5e3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 \ No newline at end of file