The basic go linter will generate a warning for an exported function that doesn’t contain a comment. I could not find this rule available in SonarCloud.
Here is an example:
of non-compliance:
func CreateWidget(params string) { … }
of compliance:
// CreateWidget will use the params to make a new Widget
func CreateWidget(params string) { … }
I believe the type for this would be “Code Smell”
Here is a stackoverflow article on the issue:
Regards,
Doug