From 23d4d16c5721c8d12838561a0df7614b4916ada5 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 4 May 2021 18:27:23 +0200 Subject: [PATCH] golangci-lint: switch to fieldalignment fieldalignment replaces maligned. This currently raises a number of linting errors because fieldalignment cares about pointer ordering (for GC); see https://github.com/golang/go/issues/44877 for details. Fixes: #1252 Signed-off-by: Stephen Kitt --- .golangci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 9619adf1a..50159928a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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: @@ -39,7 +40,6 @@ linters: - ineffassign - interfacer - lll - - maligned - misspell - nakedret - prealloc