From 01c79240ebef0d73dc4c1a10ee8566fd9b02bba6 Mon Sep 17 00:00:00 2001 From: Maarten van der Heijden Date: Mon, 25 Sep 2023 12:08:39 +0200 Subject: [PATCH] Disable some linters in test code --- .golangci.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 921f72f..ce6d8b7 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -6,6 +6,16 @@ linters-settings: - "performance" - "style" - "diagnostic" + +issues: + exclude-rules: + - path: (.+)_test.go + linters: + - funlen + - goconst + - nilnil + - goerr113 + linters: enable: - asasalint @@ -33,7 +43,7 @@ linters: - goconst - gocritic - gocyclo -# - goerr113 # extensively used in the test files + - goerr113 - gofmt - gofumpt - goheader