From 1ac505f0bd671dff226efbb550535d24e31cb289 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Sun, 1 Sep 2024 22:26:59 +0100 Subject: [PATCH] Disable lint rule that generates false positives --- .golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 8dcd052..c4e1a9b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -106,6 +106,11 @@ output: # All available settings of specific linters. linters-settings: + gosec: + excludes: + # Flags for potentially-unsafe casting of ints, but generates a lot of false positives. + - 'G115' + lll: line-length: 132 @@ -135,6 +140,7 @@ linters: - execinquery - exhaustive - exhaustruct + - exportloopref - forbidigo - forcetypeassert - funlen