Skip to content

Commit

Permalink
golangci-lint: switch to fieldalignment
Browse files Browse the repository at this point in the history
fieldalignment replaces maligned. This currently raises a number of
linting errors because fieldalignment cares about pointer ordering
(for GC); see golang/go#44877 for details.

Fixes: #1252
Signed-off-by: Stephen Kitt <skitt@redhat.com>
  • Loading branch information
skitt committed May 4, 2021
1 parent 375a0c6 commit 23d4d16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ linters-settings:
- unnamedResult
gocyclo:
min-complexity: 20
govet:
enable:
- fieldalignment
lll:
line-length: 140
maligned:
suggest-new: true
linters:
disable-all: true
enable:
Expand All @@ -39,7 +40,6 @@ linters:
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- prealloc
Expand Down

0 comments on commit 23d4d16

Please sign in to comment.