From bd3083ebabeb0ff9d70172212fb30c6f3e94e366 Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Fri, 5 Apr 2024 14:37:52 +0000 Subject: [PATCH] Run go-makefile-maker --- .golangci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index f457cd1..9c5fa6a 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -43,6 +43,9 @@ linters-settings: # Applications wishing to use http.ServeMux should obtain local instances through http.NewServeMux() instead of using the global default instance. - ^http\.DefaultServeMux$ - ^http\.Handle(?:Func)?$ + goconst: + ignore-tests: true + min-occurrences: 5 gocritic: enabled-checks: - boolExprSimplify @@ -116,10 +119,12 @@ linters: - dupword - durationcheck - errcheck + - errname - errorlint - forbidigo - ginkgolinter - gocheckcompilerdirectives + - goconst - gocritic - gofmt - goimports @@ -129,10 +134,12 @@ linters: - ineffassign - intrange - misspell + - nilerr - noctx - nolintlint - nosprintfhostport - perfsprint + - predeclared - rowserrcheck - sqlclosecheck - staticcheck