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 committed May 5, 2021
1 parent 68cca15 commit 95144d8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ linters-settings:
min-complexity: 15
golint:
min-confidence: 0
govet:
enable:
- fieldalignment
lll:
line-length: 140
maligned:
suggest-new: true
linters:
disable-all: true
enable:
Expand Down Expand Up @@ -81,3 +82,9 @@ issues:
- golint
text: "should not use dot imports"
source: ". \"github.com/onsi/ginkgo\""

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

0 comments on commit 95144d8

Please sign in to comment.