Preparing report...

Report for github.com/nikepan/govkbot

A+    Excellent!    Found 5 issues across 18 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!


gocyclo100%

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.

No problems detected. Good job!


golint72%

Golint is a linter for Go source code.

    • govkbot/api.go
    • Line 50: warning: exported method VkAPI.IsGroup should have comment or be unexported (golint)
    • Line 163: warning: comment on exported method VkAPI.GetUserChatInfo should be of the form "GetUserChatInfo ..." (golint)
    • Line 174: warning: comment on exported method VkAPI.GetConversation should be of the form "GetConversation ..." (golint)
    • Line 220: warning: exported method VkAPI.GetChatFullInfo should have comment or be unexported (golint)
    • Line 235: warning: comment on exported method VkAPI.GetUserChatUsers should be of the form "GetUserChatUsers ..." (golint)
    • Line 247: warning: comment on exported method VkAPI.GetConversationMembers should be of the form "GetConversationMembers ..." (golint)
    • Line 283: warning: exported method VkAPI.GetChatUsers should have comment or be unexported (golint)
    • Line 290: warning: exported function FindUser should have comment or be unexported (golint)
    • Line 363: warning: exported method Message.GetMentions should have comment or be unexported (golint)
    • Line 413: warning: exported method VkAPI.GetRandomID should have comment or be unexported (golint)
    • Line 476: warning: exported function NewButton should have comment or be unexported (golint)
    • govkbot/longpoll_group.go
    • Line 16: warning: comment on exported type GroupLongPollServer should be of the form "GroupLongPollServer ..." (with optional leading article) (golint)
    • Line 31: warning: exported type GroupLongPollServerResponse should have comment or be unexported (golint)
    • Line 35: warning: exported type GroupLongPollMessage should have comment or be unexported (golint)
    • Line 58: warning: exported type GroupLongPollEvent should have comment or be unexported (golint)
    • Line 63: warning: exported type GroupFailResponse should have comment or be unexported (golint)
    • Line 70: warning: comment on exported function NewGroupLongPollServer should be of the form "NewGroupLongPollServer ..." (golint)
    • Line 97: warning: exported type GroupLongPollResponse should have comment or be unexported (golint)
    • Line 172: warning: exported method GroupLongPollServer.ParseMessage should have comment or be unexported (golint)
    • govkbot/longpoll_user.go
    • Line 17: warning: exported const DefaultWait should have comment or be unexported (golint)
    • Line 19: warning: exported const LongPollModeGetAttachments should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported const DefaultMode should have comment or be unexported (golint)
    • Line 26: warning: exported const DefaultVersion should have comment or be unexported (golint)
    • Line 27: warning: exported const ChatPrefix should have comment or be unexported (golint)
    • Line 29: warning: exported type LongPollServer should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type UserLongPollServer should be of the form "UserLongPollServer ..." (with optional leading article) (golint)
    • Line 51: warning: comment on exported type UserLongPollServerResponse should be of the form "UserLongPollServerResponse ..." (with optional leading article) (golint)
    • Line 56: warning: exported type LongPollUpdate should have comment or be unexported (golint)
    • Line 57: warning: exported type LongPollUpdateNum should have comment or be unexported (golint)
    • Line 59: warning: exported type LongPollResponse should have comment or be unexported (golint)
    • Line 64: warning: exported type Attachment should have comment or be unexported (golint)
    • Line 83: warning: exported type LongPollMessage should have comment or be unexported (golint)
    • Line 94: warning: exported type FailResponse should have comment or be unexported (golint)
    • Line 101: warning: comment on exported function NewUserLongPollServer should be of the form "NewUserLongPollServer ..." (golint)
    • govkbot/structs.go
    • Line 209: warning: comment on exported type ResponseError should be of the form "ResponseError ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words