From d6b46e41dd3a70d3bae67288847b2ea7f3edd4b4 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sun, 28 Aug 2022 12:12:17 +0200 Subject: [PATCH] build: replace deprecated linters deadcode, structcheck and varcheckadd with unused The three linters deadcode, structcheck and varcheck we have been using are as of gitlabci-lint version 1.49.0 (24 Aug 2022) marked as deprecated, and replaced by unused. The linters staticcheck, gosimple, stylecheck and unused should combined correspond to the checks performed by the stand-alone staticcheck tool, which is by default used for linting in Visual Studio Code with the Go extension. We previously enabled the first three, but skipped unused due to many reported issues. See #6387 for more information. --- .golangci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 666fc3db3..5352490bc 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,19 +2,16 @@ linters: enable: - - deadcode - errcheck - goimports - revive - ineffassign - - structcheck - - varcheck - govet - unconvert - staticcheck - gosimple - stylecheck - #- unused + - unused #- prealloc #- maligned disable-all: true