From ec012c57f399773fe11c20dced9eab586c714a2b Mon Sep 17 00:00:00 2001 From: Jonathan Hall Date: Sat, 10 Feb 2024 21:38:26 +0100 Subject: [PATCH] Allow ignoring errors for rollbacks --- .golangci.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.toml b/.golangci.toml index 7cb5dd1e1..7568e5ab5 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -30,7 +30,7 @@ enable = [ exclude-use-default = false [[issues.exclude-rules]] -source = "defer .*\\.Close\\(\\)$" +source = "defer .*\\.(Close|Rollback)\\(\\)$" linters = ["errcheck"] [linters-settings.gci]