Inspectopedia
 
2024.3

Exported element should have a comment

Info
Code Style
New
Last modified: 03 December 2024

Reports exported declarations without a documentation comment. According to Doc Comments at github.com/golang, all top-level exported names should have doc comments.

Also, for more information about comment sentences, refer to Comment Sentences at github.com/golang.

To add a comment, you can apply the Add comment quick-fix.