Preparing report...

Report for github.com/grokify/commonchat

(v0.2.4)

A+    Excellent!    Found 13 issues across 19 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo89%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint31%

Golint is a linter for Go source code.

    • definitions.go
    • Line 3: warning: exported type Message should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 16: warning: exported method Message.AddAttachment should have comment or be unexported (golint)
    • Line 20: warning: exported type Attachment should have comment or be unexported (golint)
    • Line 34: warning: exported function NewAttachment should have comment or be unexported (golint)
    • Line 38: warning: exported type Field should have comment or be unexported (golint)
    • Line 44: warning: exported method Attachment.AddField should have comment or be unexported (golint)
    • slack/definition_post_message_request.go
    • Line 3: warning: exported type CommonPost should have comment or be unexported (golint)
    • Line 12: warning: exported type CreatePostRequest should have comment or be unexported (golint)
    • Line 24: warning: exported type WebhookRequest should have comment or be unexported (golint)
    • slack/slack_client_http.go
    • Line 15: warning: exported var WebhookBaseURL should have comment or be unexported (golint)
    • Line 18: warning: exported type ClientType should have comment or be unexported (golint)
    • Line 21: warning: exported const HTTP should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type SlackWebhookClient should have comment or be unexported (golint)
    • Line 32: warning: exported function NewSlackWebhookClient should have comment or be unexported (golint)
    • Line 48: warning: exported method SlackWebhookClient.BuildWebhookURL should have comment or be unexported (golint)
    • Line 61: warning: exported method SlackWebhookClient.PostWebhookFast should have comment or be unexported (golint)
    • Line 80: warning: exported method SlackWebhookClient.PostWebhookGUIDFast should have comment or be unexported (golint)
    • slack/webhook_in_message.go
    • Line 10: warning: exported const ParamNamePayload should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type Message should have comment or be unexported (golint)
    • Line 22: warning: exported function ParseMessageJSON should have comment or be unexported (golint)
    • Line 27: warning: exported function ParseMessageURLEncoded should have comment or be unexported (golint)
    • Line 35: warning: exported function ParseMessageURLValues should have comment or be unexported (golint)
    • Line 39: warning: exported function ParseMessageAny should have comment or be unexported (golint)
    • Line 46: warning: exported type Attachment should have comment or be unexported (golint)
    • Line 60: warning: exported type Field should have comment or be unexported (golint)
    • glip/glip_client_commonchat_webhook.go
    • Line 15: warning: exported type GlipAdapter should have comment or be unexported (golint)
    • Line 21: warning: exported function NewGlipAdapter should have comment or be unexported (golint)
    • Line 32: warning: exported function NewGlipAdapterMSI should have comment or be unexported (golint)
    • Line 40: warning: exported method GlipAdapter.Clone should have comment or be unexported (golint)
    • Line 46: warning: exported method GlipAdapter.SendWebhook should have comment or be unexported (golint)
    • Line 72: warning: exported method GlipAdapter.SendMessage should have comment or be unexported (golint)
    • Line 76: warning: exported method GlipAdapter.WebhookUID should have comment or be unexported (golint)
    • client.go
    • Line 7: warning: exported type Adapter should have comment or be unexported (golint)
    • slack/example_attachment.go
    • Line 8: warning: exported function ExampleMessageAttachmentURLValues should have comment or be unexported (golint)
    • Line 19: warning: exported function ExampleMessageAttachment should have comment or be unexported (golint)
    • slack/slack_client_commonchat_webhook.go
    • Line 11: warning: exported type SlackAdapter should have comment or be unexported (golint)
    • Line 17: warning: exported function NewSlackAdapter should have comment or be unexported (golint)
    • Line 24: warning: exported method SlackAdapter.SendWebhook should have comment or be unexported (golint)
    • Line 30: warning: exported method SlackAdapter.SendMessage should have comment or be unexported (golint)
    • Line 34: warning: exported method SlackAdapter.WebhookUID should have comment or be unexported (golint)
    • slack/webhook_in_cc2slack.go
    • Line 11: warning: exported function ConvertCommonMessage should have comment or be unexported (golint)
    • Line 37: warning: exported function ConvertMarkdownSlack should have comment or be unexported (golint)
    • Line 46: warning: exported function ConvertAttachmentsSlack should have comment or be unexported (golint)
    • Line 54: warning: exported function ConvertAttachmentSlack should have comment or be unexported (golint)
    • Line 66: warning: exported function ConvertFieldsSlack should have comment or be unexported (golint)
    • Line 74: warning: exported function ConvertFieldSlack should have comment or be unexported (golint)
    • glip/classic/convert_to_glip.go
    • Line 18: warning: exported type GlipMessageConverter should have comment or be unexported (golint)
    • Line 23: warning: exported function NewGlipMessageConverter should have comment or be unexported (golint)
    • Line 33: warning: exported method GlipMessageConverter.ConvertCommonMessage should have comment or be unexported (golint)
    • glip/config/config.go
    • Line 12: warning: exported const PropNameEmojiURLFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type ConverterConfig should have comment or be unexported (golint)
    • Line 31: warning: exported function NewConverterConfigMSI should have comment or be unexported (golint)
    • Line 36: warning: exported function DefaultConverterConfig should have comment or be unexported (golint)
    • Line 44: warning: exported method ConverterConfig.Clone should have comment or be unexported (golint)
    • Line 55: warning: exported method ConverterConfig.UpsertMSI should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!