Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Re-enable deprecated maligned linter
Browse files Browse the repository at this point in the history
Disable govet:fieldalignment, re-enable deprecated maligned
linter until the Go team offers more control over the types
of checks provided by the fieldalignment linter or
golangci-lint does so.

refs GH-218
refs GH-219
refs GH-220
refs atc0005/go-ci#302
  • Loading branch information
atc0005 committed Apr 15, 2021
1 parent c33c2f1 commit 17258fa
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .golangci.yml
Expand Up @@ -33,17 +33,30 @@ linters:
- depguard
- prealloc
- misspell

# 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

- dupl
- unconvert
- gofmt
- golint
- gocritic
- exportloopref

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

0 comments on commit 17258fa

Please sign in to comment.