-
Notifications
You must be signed in to change notification settings - Fork 430
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
Require comments on exported funcs #996
Require comments on exported funcs #996
Conversation
# Run with --fast=false for more extensive checks | ||
fast: true | ||
issue: | ||
issues: |
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.
The parser in golangci-lint
seems to silently ignore typos like this (should have been issues:
, so this section was being ignored.
max-same-issues: 0 | ||
max-per-linter: 0 |
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.
And this should have been max-issues-per-linter
--fixed now.
05611ca
to
3fd7335
Compare
@@ -28,6 +28,7 @@ const ( | |||
// // alpha: v1.X | |||
// MyFeature featuregate.Feature = "MyFeature" | |||
|
|||
// AKS is the feature gate for AKS managed clusters. |
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.
@alexeldeib is it ok to add this to the top of feature gate doc comments?
3fd7335
to
d0494d2
Compare
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon 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 |
What type of PR is this?:
/kind cleanup
What this PR does / why we need it:
Turns on
golint
checking for comments on exported code objects inmake lint
, and backfills 50+ comments to allow this PR to pass.Also fixes some typos in the
golangci-lint
configuration and updates that tool to version 1.31.0.Which issue(s) this PR fixes:
Fixes #948
Special notes for your reviewer:
This doesn't guarantee "non-trivial" comments as suggested in #948, but seems like a good start to me.
I did my best to backfill missing comments, but would love help from reviewers with more history and context to make them better.
TODOs:
Release note: