tinkerbell / lint-install

Consistently install reasonable linter rules for open-source projects
Apache License 2.0
6 stars 7 forks source link

Enable exported comment checking #32

Open jacobweinstock opened 2 years ago

jacobweinstock commented 2 years ago

Expected Behaviour

Would it be possible to add linting for comments on exported names?

Effective Go states

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

golangci-lint issue: https://github.com/golangci/golangci-lint/issues/456

Current Behaviour

Comments for exported names are not checked.

Possible Solution

One option would be to add to golangci.yml:

issues:
  exclude-use-default: false

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment