Skip to content

Commit

Permalink
Re-enable deprecated maligned linter
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
atc0005 committed Jun 12, 2021
1 parent 6d82171 commit 22637af
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .golangci.yml
Expand Up @@ -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

0 comments on commit 22637af

Please sign in to comment.