-
Notifications
You must be signed in to change notification settings - Fork 656
Swap gometalinter for golangci-lint #2866
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| run: | ||
| tests: false | ||
| linters: | ||
| disable-all: true | ||
| enable: | ||
| - misspell | ||
| - gofmt | ||
| - goimports | ||
| - golint | ||
| - ineffassign | ||
| - deadcode | ||
| - unconvert | ||
| - govet | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ func (m *DriverProvider) NewSecretDriver(driver *api.Driver) (*SecretDriver, err | |
| if m.pluginGetter == nil { | ||
| return nil, fmt.Errorf("plugin getter is nil") | ||
| } | ||
| if driver == nil && driver.Name == "" { | ||
| if driver == nil || driver.Name == "" { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just a nitpick, shall we change the error to
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This probably ends up just getting logged, and I don't think it needs to be changed in this particular PR.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense |
||
| return nil, fmt.Errorf("driver specification is nil") | ||
| } | ||
| // Search for the specified plugin | ||
|
|
||
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.
@dperny
Do you want to exclude auto generated protobuf files
pb.goand vendor directory?Similar to
gometalinter,golangcisupports a deadline flagThere 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.
We probably do, but currently those actually pass linting, so I didn't worry about actually doing it.
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.
I wonder how much extra time do they add ? if it's significant , shall we add them now?