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.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt authored and dfarrell07 committed May 5, 2021
1 parent 3478a42 commit 38c5ea7
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 @@ -8,10 +8,11 @@ linters-settings:
- style
gocyclo:
min-complexity: 15
govet:
enable:
- fieldalignment
lll:
line-length: 140
maligned:
suggest-new: true
linters:
disable-all: true
enable:
Expand All @@ -37,7 +38,6 @@ linters:
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- prealloc
Expand Down Expand Up @@ -70,3 +70,9 @@ issues:
- stylecheck
path: test/*
text: "ST1001: should not use dot imports"

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

0 comments on commit 38c5ea7

Please sign in to comment.