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.
This commit is contained in:
Winni Neessen 2024-11-19 17:29:37 +01:00
parent 7ee4e47c8e
commit f05654d5e5
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -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:"