From 22637af26fa303791cf97bfa97c58a9d19f357ff Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Sat, 12 Jun 2021 06:53:55 -0500 Subject: [PATCH] Re-enable deprecated maligned linter - Enable `maligned` linter - Disable `fieldalignment` settings - until the Go team offers more control over the types of checks provided by the `fieldalignment` linter or `golangci-lint` does so. refs GH-244 refs atc0005/go-ci#302 --- .golangci.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 8c979b19..8468c5a8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -25,16 +25,30 @@ linters: - goimports - golint - gosec + - govet + + # Deprecated linter, but still functional as of golangci-lint v1.39.0. + # See https://github.com/atc0005/go-ci/issues/302 for more information. + - maligned + - misspell - prealloc - exportloopref - stylecheck - unconvert - disable: - - maligned +# +# Disable fieldalignment settings until the Go team offers more control over +# the types of checks provided by the fieldalignment linter or golangci-lint +# does so. +# +# See https://github.com/atc0005/go-ci/issues/302 for more information. +# + +# disable: +# - maligned -linters-settings: - govet: - enable: - - fieldalignment +# linters-settings: +# govet: +# enable: +# - fieldalignment