From c3af54dd1808de6544c1c20b34b7a78948a9d89b Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 6 Dec 2025 20:17:38 +0100 Subject: [PATCH] sync with restic settings --- .golangci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index d72cb29..edd1ef0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,8 +3,10 @@ linters: # only enable the linters listed below default: none enable: + - asciicheck # ensure that http response bodies are closed - bodyclose + - copyloopvar # make sure all errors returned by functions are handled - errcheck # examine code and report suspicious constructs, such as Printf calls whose @@ -14,6 +16,7 @@ linters: - importas # detect when assignments to existing variables are not used - ineffassign + - nolintlint # make sure names and comments are used according to the conventions - revive # run static analysis and find errors