From 64cff1d762ae0aa819ca26ebbc7614a6e2d87274 Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Tue, 7 Jan 2025 15:22:46 +0000 Subject: [PATCH] Run go-makefile-maker --- .golangci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index f445783..103258d 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -87,6 +87,9 @@ linters-settings: goimports: # Put local imports after 3rd-party packages. local-prefixes: github.com/sapcc/limesctl/v3 + gomoddirectives: + toolchain-forbidden: true + go-version-pattern: '1\.\d+(\.0)?$' gosec: excludes: # gosec wants us to set a short ReadHeaderTimeout to avoid Slowloris attacks, but doing so would expose us to Keep-Alive race conditions (see https://iximiuz.com/en/posts/reverse-proxy-http-keep-alive-and-502s/) @@ -114,6 +117,9 @@ linters-settings: time-month: true time-weekday: true tls-signature-scheme: true + usetesting: + os-setenv: true + os-temp-dir: true whitespace: # Enforce newlines (or comments) after multi-line function signatures. multi-func: true @@ -132,6 +138,7 @@ linters: - errcheck - errname - errorlint + - exptostd - forbidigo - ginkgolinter - gocheckcompilerdirectives @@ -139,6 +146,7 @@ linters: - gocritic - gofmt - goimports + - gomoddirectives - gosec - gosimple - govet @@ -161,4 +169,5 @@ linters: - unparam - unused - usestdlibvars + - usetesting - whitespace