From 433797d0d08b7d27f19ab579e1ae606f34120e6a Mon Sep 17 00:00:00 2001 From: Semyon Krestyaninov <krestyaninov@perx.ru> Date: Tue, 11 Mar 2025 09:41:01 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20golangci-lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .golangci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index f32a80a9..6459d64f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -284,7 +284,7 @@ linters: - tenv # detects using os.Setenv instead of t.Setenv since Go1.17 - testableexamples # checks if examples are testable (have an expected output) - testifylint # checks usage of github.com/stretchr/testify - - testpackage # makes you use a separate _test package + #- testpackage # makes you use a separate _test package - unconvert # removes unnecessary type conversions - unparam # reports unused function parameters - usestdlibvars # detects the possibility to use variables/constants from the Go standard library @@ -351,4 +351,14 @@ issues: - goconst - gosec - noctx - - wrapcheck \ No newline at end of file + - wrapcheck + - mnd + - path: "_middleware\\.go" + linters: + - nonamedreturns + - path: "test/.*\\.go" + linters: + - mnd + - text: "shadow: declaration of \"(err|ctx)\" shadows declaration at" + linters: + - govet \ No newline at end of file -- GitLab