From 638b5b0ed4391b4cfbed84b50904c45dd41a8285 Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Mon, 15 Jul 2024 15:13:00 +0300 Subject: [PATCH] add staticcheck to golangci --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index ba9fdfa..9cf1703 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -29,6 +29,7 @@ linters: - tenv # ensure we use t.SetEnv instead of os.SetEnv - unconvert # remove unnecessary conversions - wastedassign + - staticcheck # a lot of useful checks #TODO#- nilnil # needs fixes; checks that we don't return a nil and no-error #TODO#- forcetypeassert # needs work to replace unchecked interface type assertion #TODO#- gochecknoglobals # needs work to remove globals @@ -40,7 +41,6 @@ linters: #TODO#- whitespace # checks for leading/trailing newlines disable: - nolintlint # checks that nolint directives are correct - - staticcheck # we already use staticcheck separately - asciicheck # non-ascii is allowed - containedctx # gives false positives, however might be good to re-evaluate - contextcheck # doesn't look like it's useful