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

golangci-lint: switch to fieldalignment #1306

Merged
merged 2 commits into from
May 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ linters-settings:
- unnamedResult
gocyclo:
min-complexity: 20
govet:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird that it's under govet now, good job finding that.

enable:
- fieldalignment
lll:
line-length: 140
maligned:
suggest-new: true
linters:
disable-all: true
enable:
Expand All @@ -39,7 +40,6 @@ linters:
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- prealloc
Expand Down Expand Up @@ -83,3 +83,9 @@ issues:
- stylecheck
text: "ST1001: "
path: test

# Ignore pointer bytes in struct alignment tests (this is a very
# minor optimisation)
- linters:
- govet
text: "pointer bytes could be"