From d8d56e18f9eb885b4b20bade935d84ab2fc0b3a7 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 28 Aug 2023 11:08:36 +0200 Subject: [PATCH] Add nolint for dxcore Signed-off-by: Evan Lezar --- .golangci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 88bc08e4..80492d3e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,3 +14,11 @@ linters: - misspell - staticcheck - unconvert + +issues: + exclude-rules: + # Exclude the gocritic dupSubExpr issue for cgo files. + - path: internal/dxcore/dxcore.go + linters: + - gocritic + text: dupSubExpr