ignore 'comment on exported type ... should be of the form' by default

This commit is contained in:
Denis Isaev 2018-06-11 18:57:33 +03:00
parent 84520c527e
commit 1ff1d6733f
No known key found for this signature in database
GPG Key ID: A36A0EC8E27A1A01

View File

@ -28,7 +28,7 @@ var DefaultExcludePatterns = []ExcludePattern{
Why: "Almost all programs ignore errors on these functions and in most cases it's ok",
},
{
Pattern: "(comment on exported (method|function)|should have( a package)? comment|comment should be of the form)",
Pattern: "(comment on exported (method|function|type)|should have( a package)? comment|comment should be of the form)",
Linter: "golint",
Why: "Annoying issue about not having a comment. The rare codebase has such comments",
},