Skip to content

Commit

Permalink
Remove inactive maligned linter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
atc0005 committed Jun 1, 2024
1 parent eab35eb commit 43ea6eb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 43ea6eb

Please sign in to comment.