This is an automated email from the ASF dual-hosted git repository.

binbin pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new acf2e9c1 Remove deprecated golangci linters: structcheck, deadcode and 
varcheck (#1608)
acf2e9c1 is described below

commit acf2e9c1c68e236b581829c99de09072931d969e
Author: Binbin <[email protected]>
AuthorDate: Tue Jul 25 14:19:33 2023 +0800

    Remove deprecated golangci linters: structcheck, deadcode and varcheck 
(#1608)
    
    Ci resulted in the following warnings:
    ```
    level=warning msg="[runner] The linter 'structcheck' is deprecated
    (since v1.49.0) due to: The owner seems to have abandoned the linter.
    Replaced by unused."
    level=warning msg="[runner] The linter 'deadcode' is deprecated (since
    v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced
    by unused."
    level=warning msg="[runner] The linter 'varcheck' is deprecated (since
    v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced
    by unused."
    ```
    
    The deadcode, structcheck and varcheck linters are deprecated by
    golangci-lint. It is recommended to use unused instead. And we are
    already using it, so this PR just removes the deprecated linters.
---
 tests/gocase/.golangci.yml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/gocase/.golangci.yml b/tests/gocase/.golangci.yml
index 23fc6e6d..d913e372 100644
--- a/tests/gocase/.golangci.yml
+++ b/tests/gocase/.golangci.yml
@@ -22,7 +22,6 @@ linters:
   enable:
     - asciicheck
     - bodyclose
-    - deadcode
     - durationcheck
     - errcheck
     - exportloopref
@@ -35,8 +34,6 @@ linters:
     - predeclared
     - rowserrcheck
     - staticcheck
-    - structcheck
     - stylecheck
     - typecheck
     - unused
-    - varcheck

Reply via email to