From de1c3cc3235835a258944ad9b5f08240db7323e8 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Wed, 1 May 2024 08:21:04 -0400 Subject: [PATCH] chore: enable go-critic deferInLoop lint The goal here is to be more careful about leaking file handles and other resources. Signed-off-by: Will Murphy --- .golangci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index 39a9e2e3d28..efe5fa2ec85 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -49,6 +49,9 @@ linters-settings: # If lower than 0, disable the check. # Default: 40 statements: 50 + gocritic: + enabled-checks: + - deferInLoop output: uniq-by-line: false run: