Skip to content

Commit

Permalink
golangci-lint: switch to fieldalignment
Browse files Browse the repository at this point in the history
fieldalignment replaces maligned. Errors related to pointer ordering
(for GC) are ignored; see golang/go#44877
for details.

Fixes: submariner-io#1252
Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt committed May 5, 2021
1 parent aa87534 commit c324aca
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 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 Expand Up @@ -83,3 +83,9 @@ issues:
- stylecheck
text: "ST1001: "
path: test

# Ignore pointer bytes in struct alignment tests (this is a very
# minor optimisation)
- linters:
- govet
text: "pointer bytes could be"

0 comments on commit c324aca

Please sign in to comment.