-
Notifications
You must be signed in to change notification settings - Fork 337
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
HOSTEDCP-2176: Introduce golangci-lint to make verify and only turn on gci linter #5322
Conversation
Skipping CI for Draft Pull Request. |
/test all |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox 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 |
@bryan-cox: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
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-sigs/prow repository. |
8092205
to
166d6f5
Compare
/test all |
@bryan-cox: This pull request references HOSTEDCP-2176 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target either version "4.19." or "openshift-4.19.", but it targets "4.18" instead. 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 openshift-eng/jira-lifecycle-plugin repository. |
@bryan-cox: This pull request references HOSTEDCP-2176 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target either version "4.19." or "openshift-4.19.", but it targets "4.18" instead. 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 openshift-eng/jira-lifecycle-plugin repository. |
166d6f5
to
e29d995
Compare
/test all |
e29d995
to
ba8f52f
Compare
/lgtm |
Add golangci-lint to verify in Makefile so common mistakes are caught in presubmit PRs. Signed-off-by: Bryan Cox <[email protected]>
Signed-off-by: Bryan Cox <[email protected]>
Signed-off-by: Bryan Cox <[email protected]>
Signed-off-by: Bryan Cox <[email protected]>
Signed-off-by: Bryan Cox <[email protected]>
This commit disables the standard golangci linters for now. There is an issue with one of the fixes found by one of the lint checkers that I will submit a follow-up PR for. Signed-off-by: Bryan Cox <[email protected]>
Signed-off-by: Bryan Cox <[email protected]>
ba8f52f
to
8be1d9c
Compare
/lgtm |
/test e2e-aws-4-18 |
/retest-required |
@bryan-cox: all tests passed! Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] Distgit: hypershift |
What this PR does / why we need it:
This PR introduces golangci-lint to
make verify
. All default linters are turned off at the moment as their is an issue causing the proxy create cluster test to fail that still needs to be tracked down. See #4739 for further details.However, it would be nice to introduce golangci-lint now and turn on the gci linter so we can ensure all imports are sorted in all files in a consistent fashion. The ordering of the imports can be found in the Enable GCI to sort imports commit.
Which issue(s) this PR fixes:
Initial PR for HOSTEDCP-2176.
Checklist