Skip to content

Commit

Permalink
Replace maligned linter with govet:fieldalignment
Browse files Browse the repository at this point in the history
refs GH-287
  • Loading branch information
atc0005 committed Apr 2, 2021
1 parent 764aa25 commit 4ef4d19
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .golangci.yml
Expand Up @@ -29,9 +29,16 @@ linters:
- golint
- gosec
- govet
- maligned
- misspell
- prealloc
- staticcheck
- stylecheck
- unconvert

disable:
- maligned

linters-settings:
govet:
enable:
- fieldalignment
8 changes: 7 additions & 1 deletion unstable/.golangci.yml
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit 4ef4d19

Please sign in to comment.