From 43ea6ebfc6dc03259582372cdd45a35bd3f0748f Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Sat, 1 Jun 2024 06:37:51 -0500 Subject: [PATCH] Remove inactive maligned linter This linter has been deprecated for a while with the suggestion to use govet 'fieldalignment'. As of a recent release the linter no longer produced a report. As of the v1.59.0 release attempting to use this linter produces an error. Remove all references to this linter from the .golangci.yml config file bundled in this repo. --- .golangci.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index a6067f5..4bc9eaf 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,10 +17,6 @@ linters: - gofmt - revive - gosec - - # Deprecated linter, but still functional as of golangci-lint v1.39.0. - # See https://github.com/atc0005/go-ci/issues/302 for more information. - - maligned - nakedret - prealloc - exportloopref @@ -41,10 +37,6 @@ linters-settings: # minimal code complexity to report, 30 by default (but we recommend 10-20) min-complexity: 15 - maligned: - # print struct with more effective memory layout or not, false by default - suggest-new: true - nakedret: # make an issue if func has more lines of code than this setting and it has naked returns; default is 30 max-func-lines: 2