Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace maligned linter with govet:fieldalignment #297

Merged
merged 1 commit into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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