From 2a436f5add3857322b2ed04890a75d7e24b35b2c Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 10 Dec 2024 18:43:33 +0100 Subject: [PATCH] .golangci.yml: disable unwanted linters We disable some of the linters that give us too many false positives. Those linters are also disabled in other projects such as lnd for example. --- .golangci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index a8735eaf7b..25f0dc4fd1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -89,6 +89,17 @@ linters: # The linter is too aggressive and doesn't add much value since reviewers # will also catch magic numbers that make sense to extract. - gomnd + + # Some of the tests cannot be parallelized. On the other hand, we don't + # gain much performance with this check so we disable it for now until + # unit tests become our CI bottleneck. + - paralleltest + + # Allow dynamic errors. + - goerr113 + + # New linters that we haven't had time to address yet. + - depguard issues: # Only check issues in the new code.