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