From f04bc0b48ec8800220ac8e9b0f7d6ba10220ccff Mon Sep 17 00:00:00 2001 From: Jordan Schalm Date: Fri, 3 Mar 2023 16:24:32 -0500 Subject: [PATCH] skip typecheck lint on problematic files When there are "real" lint errors, the linter will flood the output with spurious errors from the typecheck linter (which is not a real linter: https://github.com/golangci/golangci-lint/issues/2177). typecheck errors are triggered when the Go compilation frontend fails - it's not clear why a compilation error elsewhere triggers all the spurious errors from AccessNodeBuilder etc. But disabling these makes it easier to find the real comppilation error. --- .golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 678c61f2739..0b984c2ac90 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -33,3 +33,9 @@ issues: - path: 'cmd/access/node_build/*' linters: - typecheck + - path: 'cmd/observer/node_builder/*' + linters: + - typecheck + - path: 'follower/*' + linters: + - typecheck