Skip to content

Commit

Permalink
Enable additional govet analyzers
Browse files Browse the repository at this point in the history
- explicitly disable `fieldalignment` analyzer
- enable all other `govet` analyzers
  - this also pulls in `nilness` and `shadow`, both of which
    has proven useful (brief testing)

refs GH-482
  • Loading branch information
atc0005 committed Jan 27, 2022
1 parent a645578 commit e380d29
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions unstable/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@ linters-settings:
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 15
#
# 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.
#
# See https://github.com/atc0005/go-ci/issues/302 for more information.
#
# govet:
# enable:
# - fieldalignment

govet:
enable-all: true

#
# 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:
- fieldalignment

0 comments on commit e380d29

Please sign in to comment.