From 90b1c8639f0366ef32bdc0dba3fd2b75ea1c7d93 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 26 Nov 2021 20:55:58 -0800 Subject: [PATCH] Reduce max complexity in linter --- .golangci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 4277d7b8a..a7cba8764 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,10 +5,10 @@ run: issues: # The linter has a default list of ignorable errors. Turning this on will enable that list. exclude-use-default: false - + # Maximum issues count per one linter. Set to 0 to disable. Default is 50. max-issues-per-linter: 0 - + # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. max-same-issues: 0 @@ -58,11 +58,11 @@ linters-settings: cyclop: # the maximal code complexity to report. default is 10. eventually work our way to that. - max-complexity: 20 + max-complexity: 15 # the max average package complexity. If it's higher than 0.0 (float) the check is enabled (default 0.0) package-average: 0.0 # should ignore tests - skip-tests: true + skip-tests: true gosimple: # Select the Go version to target. The default is '1.13'.