From 0784ab0e902f99636b81aa8ce725522705908e19 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Wed, 5 May 2021 18:14:40 +0200 Subject: [PATCH] golangci-lint: switch to fieldalignment fieldalignment replaces maligned. Errors related to pointer ordering (for GC) are ignored; see https://github.com/golang/go/issues/44877 for details. Signed-off-by: Stephen Kitt --- .golangci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 3aecfabe..3c844c95 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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: @@ -41,7 +42,6 @@ linters: - interfacer - lll - misspell - - maligned - nakedret - prealloc - staticcheck @@ -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"