From 9735f567af75e773e0c790dc7b1b43ca87b35b1e Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 13 May 2021 15:22:40 +0300 Subject: [PATCH] golangci: use stricter settings Check test code, use more linters and reenable some disabled-by-default golint checks. Signed-off-by: Roman Khimov --- .golangci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index ba892e7..79702d9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,7 +7,7 @@ run: timeout: 5m # include test files or not, default is true - tests: false + tests: true # output configuration options output: @@ -32,16 +32,28 @@ linters: - golint # some default golangci-lint linters + - deadcode - errcheck - gosimple - ineffassign - staticcheck + - structcheck - typecheck + - unused + - varcheck # extra linters - exhaustive + - godot - gofmt - whitespace - goimports disable-all: true fast: false + +issues: + include: + - EXC0002 # should have a comment + - EXC0003 # test/Test ... consider calling this + - EXC0004 # govet + - EXC0005 # C-style breaks