-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
Add GolangCI Lint #104
Add GolangCI Lint #104
Conversation
@abiosoft any thoughts? or help regarding Linting? |
@kensipe I was working on the codebase at the time and would rather not deal with conflicts. Thanks. |
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
3e61f94
to
07a0923
Compare
@abiosoft rebase complete.. no merge conflicts to resolve |
it's worth noting but perhaps obvious... the first lint requires connectivity to pull the versioned linter. All other lints can work with a disconnected machine. |
This reverts commit 06e60e8.
Signed-off-by: Ken Sipe <kensipe@gmail.com>
…e for now Signed-off-by: Ken Sipe <kensipe@gmail.com>
@abiosoft ok. Add adjustments made. Worth noting that this is the initial stage. The config file is empty making this PR small. I was planning on adding a number of linters for your review after this is merged. As noted, I still have concerns over linter versioning but happy to seeing linting As note that based on guidance, there is a total assumption the linter is in the path. The result of it not being in the path is:
|
One last thing to make this actually be part of the CI, can you add a |
Not an issue, it will be available in the CI environment. And anyone that wants to run it locally can always install it. |
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Signed-off-by: Ken Sipe <kensipe@gmail.com>
Lint Resolution
kubernetesVersion
as it is private and used. If desired, please indicate how it is to be usedtime.Since
is preferred totime.Now().Sub
otherwise same functionalitydownloadURL := u
was never used. if err not nil, it is assigned tou
otherwise an error is returned. It is better and more readable in Go to not useelse
unless required, in this case, it is much more clear.Looking forward to adding more linting rules. I was looking for feedback on this first.
Signed-off-by: Ken Sipe <kensipe@gmail.com