From d2b7fd3682657358dd4933329c8787a2c3f9211b Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 3 May 2023 13:44:04 +0300 Subject: [PATCH] [#27] .golanci.yml: Unify with other repos Leave specific excepcions in place. Signed-off-by: Evgenii Stratonikov --- .golangci.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5abd044..db94146 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,7 +4,7 @@ # options for analysis running run: # timeout for analysis, e.g. 30s, 5m, default is 1m - timeout: 2m + timeout: 10m # include test files or not, default is true tests: false @@ -27,6 +27,11 @@ linters-settings: govet: # report about shadowed variables check-shadowing: false + funlen: + lines: 80 # default 60 + statements: 60 # default 40 + gocognit: + min-complexity: 40 # default 30 linters: enable: @@ -37,15 +42,27 @@ linters: # some default golangci-lint linters - errcheck - gosimple + - godot - ineffassign - staticcheck - typecheck + - unused # extra linters + - bidichk + - durationcheck - exhaustive + - exportloopref - gofmt - - whitespace - goimports + - misspell + - predeclared + - reassign + - whitespace + - containedctx + - funlen + - gocognit + - contextcheck disable-all: true fast: false