Skip to content

please reconsider ignoring missing doc comments #456

Closed
@bhcleek

Description

@bhcleek

We are in the process of adding support to vim-go for golangci-lint and plan to very soon make it the default to replace gometaliner when running vim-go's :GoMetaLinter.

Please reconsider excluding missing doc comments from golint by default. The README.md justifies the decision with

The rare codebase has such comments

But that rationale is false and goes against Go recommended best practices. Even if the rationale were true, appealing to such a common situation alone is insufficient to justify perpetuating bad practices.

Effective Go specifically states

Every exported (capitalized) name in a program should have a doc comment.

And the only reason we have such great tools as godoc.org is because so many packages implement that guideline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: configRelated to .golangci.yml and/or cli optionsenhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions