From 504a96bc30e1a672191c5baedc60916cd44e57d3 Mon Sep 17 00:00:00 2001 From: andrey1s Date: Wed, 7 Aug 2019 10:26:51 +0300 Subject: [PATCH] set enabled linters --- .golangci.yml | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 348d4eb2c1b..f78b298abc5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,23 +8,36 @@ linters-settings: ignore: fmt:.*,[rR]ead|[wW]rite|[cC]lose,io:Copy linters: - enable-all: true - disable: - - lll - - gochecknoglobals - - gochecknoinits - - gocyclo - - scopelint - - goconst - - maligned - - golint + disable-all: true + enable: + - bodyclose + - deadcode + - depguard + - dupl + - errcheck + - gocritic + - gofmt + - goimports + - gosec + - gosimple + - govet + - ineffassign + - interfacer + - misspell + - nakedret + - prealloc + - staticcheck + - structcheck + - stylecheck + - typecheck + - unconvert + - unparam + - unused + - varcheck issues: exclude-rules: # Exclude some linters from running on tests files. - path: _test\.go linters: - - gocyclo - - errcheck - dupl - - gosec