-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix linter deprecation warnings and enhance coverage #241
Conversation
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.
How would people feel about ci-mgmt plopping down some standardized lint rules for all the provider repos? It would mean some cleanup but it would be nice to have some standard conventions.
@@ -16,15 +17,15 @@ linters: | |||
- gofmt | |||
- revive | |||
- gosec | |||
- gosimple |
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.
👍
- govet | ||
- ineffassign | ||
- lll | ||
- misspell | ||
- nakedret | ||
- unconvert | ||
- paralleltest | ||
- staticcheck |
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.
👍
type contextKey string | ||
|
||
var migrationsKey = contextKey("migrations") |
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.
Slightly easier to just use an empty struct since you don't need to do anything with it. Zero bytes as a bonus.
var migrationsKey struct{}
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.
Thank you!
Sure. Except this repo isn't under ci-mgmt at all currently... |
Fix some linter deprecation warnings and add the gosimple linter. Can be reviewed commit by commit.