-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add godoc linter #7444
Comments
Before we enforce revive, we need to fix existing lint issues caught in #7472 as part of vet check. Its fine to change several files in a single PR if they all fix one type of issue or are otherwise related. However, be reasonable and try to keep the PRs small enough to make it not take a long time to review and avoid merge conflicts. |
@purnesh42H Please assign me this issue. |
@purnesh42H Right now, In the tests (vet) I'm getting like don't use an underscore in package name https://revive.run/r#var-naming. |
@purnesh42H Fixed some of the godoc-linter issues. Please review and let me know if any changes are required. Please find the PR below. |
@purnesh42H Fixed linter issues for superfluous-else, increment-decrement, indent-error-flow, var-declaration. Please review the changes. |
@purnesh42H Fixed below godoc linter issues. Please find the PRs below. Please let me know if any changes are required. 15 redefines-builtin-id |
Thanks. LGTM. Please open the. PR in main repo. |
@purnesh42H Fixed below godoc linter issues and raised a PR to main repo. 6 var-declaration |
@purnesh42H Fixed below godoc revive linter issues and raised a PR to main repo. Please find the PR below.
|
@purnesh42H Fixed below godoc revive linter issues and raised a PR to main repo. Please find the PR below.
|
@purnesh42H Fixed below godoc revive linter issues and raised a PR to main repo. Please find the PR below.
|
@purnesh42H Facing issue in context-as-argument(context.Context) should be the first parameter. Please have a look at the readme file (reflection/test/grpc_testing_not_regenerate/README.md), as the testv3.go is generated from the older version of v3. |
@purnesh42H Raised a separate PRs in forked branch. Please review the changes. Please find the PRs below. |
#7577 fixes: 546 unused-parameter (ignored) and renamed the check again cc: @purnesh42H |
@janardhanvissa can you do these since we include unused-parameter now
|
@purnesh42H Fixed above mentioned unused parameter linter issues and pushed the changes. |
Adding this here for context: Based on the discussion, we have sufficient cases where having an empty block is justifiable, so it's reasonable to include an "empty-block" check within the revive tool. |
Since removing golint, we've had numerous occasions of missing docstrings. This seems like the consensus replacement for golint: https://github.com/mgechev/revive -- we should set it up to at least check the docstrings.
EDIT:
add the
Revive
inter in quite mode: tools: Add github.com/mgechev/revive #7472**Enforce Revive Linter: vet: enforce revive linter #7589
fix below existing lint issues and enable the disabled rule
#7575 fixes
#7574 fixes
#7552 fixes
#7528 fixes
#7577 #7580 fixes
reflection/test/grpc_testing_not_regenerate/
)reflection/test/grpc_testing_not_regenerate/
)The text was updated successfully, but these errors were encountered: