mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-23 06:10:48 +01:00
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:
parent
7ee4e47c8e
commit
f05654d5e5
1 changed files with 7 additions and 0 deletions
|
@ -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:"
|
||||
|
||||
|
|
Loading…
Reference in a new issue