-
Notifications
You must be signed in to change notification settings - Fork 1.2k
📖 re-enable golangci-lint's godoc comment checking #885
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
Conversation
/assign @mengqiy |
.github/main.workflow
Outdated
resolves = ["lint"] | ||
} | ||
|
||
action "lint" { |
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.
Why is this done via github actions and not via a prow presubmit like the other tests?
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.
It is called by the prow already. See that if it is missing some comment the test will fail.
Example:
level=info msg="[runner] linters took 9.994443697s with stages: goanalysis_metalinter: 9.9921147s"
pkg/internal/testing/integration/internal/etcd.go:7:1: comment on exported var `EtcdDefaultArgs` should be of the form `EtcdDefaultArgs ...` (golint)
//todo(just to ensure that the pr will fails and the test is called in the prow): EtcdDefaultArgs allow tests to run offline, by preventing API server from attempting to
Test executed just to ensure that it will fail.
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
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, 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 |
Description
Now, the lint test will be checking the comments for the go-docs and then, it is called in the checks made in prow to allow or not merge the PR.
Also, in this PR, we have the fix for the places where the comments were missing.
Motivation
Closes: #501