From 0dd865c179272644ef7c4d93a5e7920d96b6f43e Mon Sep 17 00:00:00 2001
From: Gareth Kirwan <gbjkirwan@gmail.com>
Date: Wed, 18 Dec 2024 13:52:34 +0700
Subject: [PATCH] Linter: Disable shadow linting for ctx and err

It's been a year, and I'm still getting caught out by govet demanding I
don't shadow a var I was deliberately shadowing.
Made worse by an increase in clashes with stylecheck when they both want
opposite things on the same line.
---
 .golangci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.golangci.yml b/.golangci.yml
index b59ae9635b3..721dfbf15c0 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -150,6 +150,9 @@ issues:
     - text: "Expect WriteFile permissions to be 0600 or less"
       linters:
         - gosec
+    - text: 'shadow: declaration of "(err|ctx)" shadows declaration at'
+      linters: [ govet ]
+
 
   exclude-dirs:
     - vendor