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 68cca15 commit 0784ab0
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 @@ -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 All @@ -41,7 +42,6 @@ linters:
- interfacer
- lll
- misspell
- maligned
- nakedret
- prealloc
- staticcheck
Expand Down Expand Up @@ -81,3 +81,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 0784ab0

Please sign in to comment.