-
Notifications
You must be signed in to change notification settings - Fork 139
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
CI: add golint
and misspell
to static checks
#126
CI: add golint
and misspell
to static checks
#126
Conversation
Hi @mayankshah1607. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
d96ebd7
to
1387606
Compare
Pull Request Test Coverage Report for Build 284001747
💛 - Coveralls |
961a981
to
de46aed
Compare
hack/verify-all.sh
Outdated
@@ -18,11 +18,7 @@ set -euo pipefail | |||
|
|||
readonly PKG_ROOT="$(git rev-parse --show-toplevel)" | |||
|
|||
${PKG_ROOT}/hack/verify-gofmt.sh | |||
${PKG_ROOT}/hack/verify-govet.sh |
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.
is govet check covered?
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.
Yes, it is enabled by default
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.
by static.yaml
? I don't see govet config in that file.
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
is enabled by default in golangci-linter - https://golangci-lint.run/usage/linters/
It does not have to be explicitly mentioned, unless it has to be disabled :)
hack/verify-all.sh
Outdated
${PKG_ROOT}/hack/verify-yamllint.sh | ||
${PKG_ROOT}/hack/verify-boilerplate.sh | ||
${PKG_ROOT}/hack/verify-spelling.sh |
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.
let's keep the original script, it's still useful in local dev, dev could run hack/verify-all.sh
before submitting PR,
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.
Okay, shall we remove make verify
from the workflow then? It would just run the same checks twice
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.
let's keep it for a period of time, finally should remove the check in pull-csi-driver-smb-verify
, pull-csi-driver-smb-unit
and travis test. Need stabilization time.
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.
Thanks @andyzhangx
I have added the required linters to golangci-lint
action.
let's keep it for a period of time, finally should remove the check in pull-csi-driver-smb-verify, pull-csi-driver-smb-unit and travis test. Need stabilization time.
Shall I open an issue for this so that it is kept track of?
Signed-off-by: Mayank Shah <[email protected]>
de46aed
to
163fab1
Compare
hack/*
scripts and move linting to static checksgolint
and misspell
to static checks
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.
/lgtm
/approve
/ok-to-test
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, mayankshah1607 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 |
/test pull-csi-driver-smb-e2e-windows |
chore: remove redundant
hack/*
scripts and move linting to static checksSigned-off-by: Mayank Shah [email protected]
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
hack/*
and introduce them as a part of golangci-linterWhich issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: