Skip to content

Commit 597cd94

Browse files
committed
Updated .golangci.toml to exclude specific staticcheck rule
- Added exclusion rule for `staticcheck` linters in `internal/server/sendmail.go` - Ignored false positive `QF1012` related to strings.Builder usage Signed-off-by: Winni Neessen <wn@neessen.dev>
1 parent 0c7a45f commit 597cd94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.golangci.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,11 @@ paths = [
4646
'builtin$',
4747
'examples$'
4848
]
49+
50+
## False positive, strings.Builder cannot be used as io.Writer for fmt.Fprintf
51+
[[linters.exclusions.rules]]
52+
linters = [
53+
'staticcheck'
54+
]
55+
path = 'internal/server/sendmail.go'
56+
text = 'QF1012:'

0 commit comments

Comments
 (0)