From 477e804eb60c07391b609aaf35e83670484d2059 Mon Sep 17 00:00:00 2001 From: andrey1s Date: Wed, 24 Jul 2019 10:52:29 +0300 Subject: [PATCH] update config golangci --- .golangci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 2239d630a0f..9fda36054ff 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,39 @@ +run: + tests: true + skip-dirs: + - bin + - vendor + - var + - tmp + - example/* + linters-settings: errcheck: ignore: fmt:.*,[rR]ead|[wW]rite|[cC]lose,io:Copy + +linters: + enable-all: true + disable: + - lll + - gochecknoglobals + - gochecknoinits + - unparam + - gocritic + - goimports + - misspell + - gocyclo + - scopelint + - prealloc + - goconst + - maligned + - golint + +issues: + exclude-rules: + # Exclude some linters from running on tests files. + - path: _test\.go + linters: + - gocyclo + - errcheck + - dupl + - gosec