-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 CI linter #699
Add CI linter #699
Conversation
08d3f06
to
6f7188c
Compare
/test pull-cluster-api-test |
2 similar comments
/test pull-cluster-api-test |
/test pull-cluster-api-test |
6f7188c
to
b9c56f3
Compare
i see this test flaking a lot:
timeouts and flakes would imply that this might not be suited as a "unit test"? |
@neolit123 I proposed a fix in #702 |
/test pull-cluster-api-test |
@@ -0,0 +1,21 @@ | |||
linters: | |||
enable: | |||
- govet |
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.
can we add megacheck?
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.
also goimports ?
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 added goimports
. About megacheck
, it's now called staticcheck
. A quick run of it seems to yield a good amount of tests to fix, should we do that in a different PR later on?
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.
Sounds good! And I don't mind taking that task up :)
b9c56f3
to
f2b5367
Compare
b0aa131
to
9bb137f
Compare
/assign @roberthbailey |
/retest |
@vincepri - I was (selfishly) waiting to review until @paulfantom or @neolit123 gave an lgtm. |
9bb137f
to
e20611d
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@neolit123 ptal |
/lgtm |
@paulfantom: changing LGTM is restricted to assignees, and only kubernetes-sigs/cluster-api repo collaborators may be assigned issues. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
7279cc7
to
a2adaf9
Compare
/test pull-cluster-api-test |
a2adaf9
to
9ca8527
Compare
/test pull-cluster-api-make |
Signed-off-by: Vince Prignano <[email protected]>
9ca8527
to
9e2b6cf
Compare
This should be good to go |
/lgtm as per @roberthbailey 's comment:
thanks @vincepri (edit: although the approve label was added because Vince became an approver... ). |
Signed-off-by: Vince Prignano [email protected]
What this PR does / why we need it:
This PR introduces golangci linter in CI and as Makefile
lint
andlint-full
commands. The goal is to catch errors and general improvements during theci-make
step.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #43
Special notes for your reviewer:
NOTE: The PR doesn't introduce
go-lint
yet. I'm going to open a new PR given the amount of changes required.Release note: