Cluster-api-provider-azure: Enforce documentation for public APIs

Created on 21 Sep 2020  路  7Comments  路  Source: kubernetes-sigs/cluster-api-provider-azure

/kind feature

Describe the solution you'd like
The build / verification scripts should verify that every public API in the project has a non-trivial comment.

Anything else you would like to add:
The easy part is probably turning on verification. The more time consuming part is writing comments for public APIs which are not documented.

see also: https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/938#discussion_r492182584

help wanted kinfeature

Most helpful comment

All 7 comments

/help

@CecileRobertMichon:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

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.

/assign

@devigned do you think simply requiring comments as we did in #996 is sufficient here? It doesn't guarantee they won't be trivial, so perhaps you were looking for additional checks.

Hopefully we should be able to rely on reviewers to evaluate the quality of code documentation. It's easier to see that something is non-descriptive than it is to notice that something is missing in a PR diff IMO.

Like @CecileRobertMichon said, I find it easier spot bad comments than missing ones. As part of CI, it would make folks aware of the expectation and hopefully cause them to think about the comments a little more.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eedorenko picture eedorenko  路  8Comments

CecileRobertMichon picture CecileRobertMichon  路  7Comments

mboersma picture mboersma  路  6Comments

alexeldeib picture alexeldeib  路  9Comments

nader-ziada picture nader-ziada  路  8Comments