From 4ef4d193f5a64498d2575cd3f4f35f37419eb7a6 Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Fri, 2 Apr 2021 05:42:15 -0500 Subject: [PATCH] Replace maligned linter with govet:fieldalignment refs GH-287 --- .golangci.yml | 9 ++++++++- unstable/.golangci.yml | 8 +++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 70937e78..0828fe7e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -29,9 +29,16 @@ linters: - golint - gosec - govet - - maligned - misspell - prealloc - staticcheck - stylecheck - unconvert + + disable: + - maligned + +linters-settings: + govet: + enable: + - fieldalignment diff --git a/unstable/.golangci.yml b/unstable/.golangci.yml index 2e874611..ce4fd9d1 100644 --- a/unstable/.golangci.yml +++ b/unstable/.golangci.yml @@ -40,13 +40,15 @@ linters: - golint - gosec - govet - - maligned - misspell - prealloc - staticcheck - stylecheck - unconvert + disable: + - maligned + linters-settings: gocognit: # minimal code complexity to report, 30 by default (but we recommend 10-20) @@ -55,3 +57,7 @@ linters-settings: gocyclo: # minimal code complexity to report, 30 by default (but we recommend 10-20) min-complexity: 15 + + govet: + enable: + - fieldalignment