Skip to content
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: enable checks for missing Go documentation #581

Merged
merged 2 commits into from
Jun 29, 2021
Merged

Conversation

rolinh
Copy link
Member

@rolinh rolinh commented Jun 29, 2021

Checks for missing Go documentation used to be covered by the now defunct project golint. Revive is a replacement for golint that is used by golangci-lint. However, golangci-lint disables checks for missing Go documentation by default. The only way to re-enable them is apparently to suppress golangci-lint's default rules, which is what this commit does. Rules that triggered false-positive on this codebase have been manually added. The list of default exclude rules can be found by running golangci-lint run --help.

Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
@rolinh rolinh added 📄 area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. 🤖 area/CI Impacts the testing / continuous integration testing of the project. release-note/misc This PR makes changes that have no direct user impact. labels Jun 29, 2021
@rolinh rolinh requested review from a team as code owners June 29, 2021 12:18
@rolinh rolinh requested review from a team and nbusseneau and removed request for a team June 29, 2021 12:18
@rolinh rolinh requested review from glibsm and removed request for a team June 29, 2021 12:18
.golangci.yml Outdated Show resolved Hide resolved
Checks for missing Go documentation used to be covered by the now
defunct project `golint`. Revive is a replacement for golint that is
used by `golangci-lint`. However, `golangci-lint` disables checks for
missing Go documentation by default[0]. The only way to re-enable them
is apparently to suppress golangci-lint's default rules, which is what
this commit does. Rules that triggered false-positive on this codebase
have been manually added. The list of default exclude rules can be found
by running `golangci-lint run --help`.

[0]: golangci/golangci-lint#456

Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
Copy link
Member

@nbusseneau nbusseneau left a comment

Choose a reason for hiding this comment

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

:shipit:

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 29, 2021
@rolinh rolinh merged commit 8bb31d1 into master Jun 29, 2021
@rolinh rolinh deleted the pr/rolinh/godoc branch June 29, 2021 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 area/CI Impacts the testing / continuous integration testing of the project. 📄 area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants