Skip to content

Commit

Permalink
Add exclusion rule for TLS settings in tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wneessen committed Nov 19, 2024
1 parent 7ee4e47 commit f05654d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .golangci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"

0 comments on commit f05654d

Please sign in to comment.