-
Notifications
You must be signed in to change notification settings - Fork 77
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
Update golangci-lint linters #125
base: master
Are you sure you want to change the base?
Conversation
@@ -334,10 +334,10 @@ func TestPrefixedDebugger_Assert(t *testing.T) { | |||
} | |||
|
|||
d := rootDebugger{fail: fail}.Push("FIZZ") | |||
d.Assert(1 == 1, "fizz") | |||
d.Assert(true, "fizz") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be interested in adding testifylint to golangci linters .
@@ -150,7 +150,7 @@ func TestEnum_Extension(t *testing.T) { | |||
// cannot be parallel | |||
|
|||
e := &enum{desc: &descriptor.EnumDescriptorProto{}} | |||
assert.NotPanics(t, func() { e.Extension(nil, nil) }) | |||
assert.NotPanics(t, func() { e.Extension(nil, nil) }) //nolint:errcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's usually a best practice to exclude in golangci lint config file. You can ensure there is no nolint with nolintlint
Building on requested change to add
errorlint
in https://github.com/lyft/protoc-gen-star/pull/124/files