Skip to content

📖 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

Merged
merged 1 commit into from
Apr 7, 2020

Conversation

camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Apr 3, 2020

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

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 3, 2020
@k8s-ci-robot k8s-ci-robot requested review from droot and vincepri April 3, 2020 17:15
@camilamacedo86
Copy link
Member Author

/assign @mengqiy

resolves = ["lint"]
}

action "lint" {
Copy link
Member

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?

Copy link
Member Author

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

ref: https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_controller-runtime/885/pull-controller-runtime-test-master/1247116818334617600/build-log.txt

Test executed just to ensure that it will fail.

Copy link
Member

@alvaroaleman alvaroaleman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 6, 2020
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@vincepri vincepri added this to the v0.5.x milestone Apr 7, 2020
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 7, 2020
@k8s-ci-robot k8s-ci-robot merged commit 4e1e8ed into kubernetes-sigs:master Apr 7, 2020
@camilamacedo86 camilamacedo86 deleted the fix-lint branch April 7, 2020 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

re-enable golangci-lint's godoc comment checking
6 participants