Skip to content

detects whether declarations of exported variables, constants, functions, etc. have comments.  #4828

Closed
@cold-bin

Description

@cold-bin

Welcome

Your feature request related to a problem? Please describe

When a new person takes over a large project, it will be painful if there are no comments. This is how I feel that necessary comments need to be provided for public types, variables, functions or methods to facilitate the new person to quickly familiarize themselves with the project.

Describe the solution you'd like

use go/analyze package to recursive traversal ast comment or documention node. if empty the comment and documention node, then call reportf. the link of https://github.com/cold-bin/declaration-comment is my implement

Describe alternatives you've considered

nothing, this way can solve no comments of many complex type

Additional context

No response

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions