From f05654d5e58c558253c201b785b65f20dd1a89ab Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 19 Nov 2024 17:29:37 +0100 Subject: [PATCH] Add exclusion rule for TLS settings in tests Updated the .golangci.toml config to exclude gosec rule G402 in quicksend_test.go. This exclusion is intentional as these tests do not require TLS settings. --- .golangci.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.golangci.toml b/.golangci.toml index 9456df2..5178a27 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -72,3 +72,10 @@ text = "G505:" linters = ["gosec"] path = "smtp/smtp_test.go" text = "G505:" + +## These are tests which intentionally do not need any TLS settings +[[issues.exclude-rules]] +linters = ["gosec"] +path = "quicksend_test.go" +text = "G402:" +