Preparing report...

Report for github.com/0ojixueseno0/go-Pichubot

A    Great!    Found 6 issues across 6 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!


gocyclo83%

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.


golint0%

Golint is a linter for Go source code.

    • go-Pichubot/api.go
    • Line 16: warning: exported var Connect should have comment or be unexported (golint)
    • Line 62: warning: comment on exported function SendPrivateMsg should be of the form "SendPrivateMsg ..." (golint)
    • Line 67: warning: don't use underscores in Go names; func parameter user_id should be userID (golint)
    • Line 80: warning: comment on exported function SendGroupMsg should be of the form "SendGroupMsg ..." (golint)
    • Line 85: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 98: warning: comment on exported function SendMsg should be of the form "SendMsg ..." (golint)
    • Line 119: warning: comment on exported function DeleteMsg should be of the form "DeleteMsg ..." (golint)
    • Line 123: warning: don't use underscores in Go names; func parameter message_id should be messageID (golint)
    • Line 128: warning: comment on exported function GetMsg should be of the form "GetMsg ..." (golint)
    • Line 132: warning: don't use underscores in Go names; func parameter message_id should be messageID (golint)
    • Line 137: warning: comment on exported function GetForwardMsg should be of the form "GetForwardMsg ..." (golint)
    • Line 146: warning: comment on exported function SendLike should be of the form "SendLike ..." (golint)
    • Line 151: warning: don't use underscores in Go names; func parameter user_id should be userID (golint)
    • Line 156: warning: comment on exported function SetGroupKick should be of the form "SetGroupKick ..." (golint)
    • Line 162: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 162: warning: don't use underscores in Go names; func parameter user_id should be userID (golint)
    • Line 162: warning: don't use underscores in Go names; func parameter reject_add_request should be rejectAddRequest (golint)
    • Line 167: warning: comment on exported function SetGroupBan should be of the form "SetGroupBan ..." (golint)
    • Line 173: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 173: warning: don't use underscores in Go names; func parameter user_id should be userID (golint)
    • Line 178: warning: comment on exported function SetGroupAnonymousBan should be of the form "SetGroupAnonymousBan ..." (golint)
    • Line 184: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 184: warning: don't use underscores in Go names; func parameter anymous_flag should be anymousFlag (golint)
    • Line 189: warning: comment on exported function SetGroupWholeBan should be of the form "SetGroupWholeBan ..." (golint)
    • Line 194: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 199: warning: comment on exported function SetGroupAdmin should be of the form "SetGroupAdmin ..." (golint)
    • Line 205: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 205: warning: don't use underscores in Go names; func parameter user_id should be userID (golint)
    • Line 210: warning: comment on exported function SetGroupAnonymous should be of the form "SetGroupAnonymous ..." (golint)
    • Line 215: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 220: warning: comment on exported function SetGroupCard should be of the form "SetGroupCard ..." (golint)
    • Line 226: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 226: warning: don't use underscores in Go names; func parameter user_id should be userID (golint)
    • Line 231: warning: comment on exported function SetGroupName should be of the form "SetGroupName ..." (golint)
    • Line 236: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 236: warning: don't use underscores in Go names; func parameter group_name should be groupName (golint)
    • Line 241: warning: comment on exported function SetGroupLeave should be of the form "SetGroupLeave ..." (golint)
    • Line 246: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 246: warning: don't use underscores in Go names; func parameter is_dismiss should be isDismiss (golint)
    • Line 251: warning: comment on exported function SetGroupSpecialTitle should be of the form "SetGroupSpecialTitle ..." (golint)
    • Line 257: warning: don't use underscores in Go names; func parameter group_id should be groupID (golint)
    • Line 257: warning: don't use underscores in Go names; func parameter user_id should be userID (golint)
    • Line 257: warning: don't use underscores in Go names; func parameter special_title should be specialTitle (golint)
    • Line 262: warning: comment on exported function SetFriendAddRequest should be of the form "SetFriendAddRequest ..." (golint)
    • Line 272: warning: comment on exported function SetGroupAddRequest should be of the form "SetGroupAddRequest ..." (golint)
    • Line 283: warning: comment on exported function SetGroupInviteRequest should be of the form "SetGroupInviteRequest ..." (golint)
    • Line 294: warning: comment on exported function GetLoginInfo should be of the form "GetLoginInfo ..." (golint)
    • Line 304: warning: comment on exported function GetImage should be of the form "GetImage ..." (golint)
    • Line 317: warning: comment on exported function OCRImage should be of the form "OCRImage ..." (golint)
    • go-Pichubot/bot.go
    • Line 10: warning: exported var Listeners should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Bot.Run should be of the form "Run ..." (golint)
    • go-Pichubot/events.go
    • Line 8: warning: comment on exported type ShortEvent should be of the form "ShortEvent ..." (with optional leading article) (golint)
    • Line 12: warning: exported type LongEvent should have comment or be unexported (golint)
    • Line 20: warning: exported var ShortEvents should have comment or be unexported (golint)
    • Line 21: warning: exported var LongEvents should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function NewEvent should be of the form "NewEvent ..." (golint)
    • Line 32: warning: comment on exported method LongEvent.Close should be of the form "Close ..." (golint)
    • go-Pichubot/logger.go
    • Line 8: warning: exported const LOGGER_LEVEL_EMERGENCY should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: comment on exported var Logger should be of the form "Logger ..." (golint)
    • Line 25: warning: exported function InitLogger should have comment or be unexported (golint)
    • go-Pichubot/struct.go
    • Line 31: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 38: warning: exported type Config should have comment or be unexported (golint)
    • Line 45: warning: exported type Bot should have comment or be unexported (golint)
    • Line 183: warning: don't use underscores in Go names; struct field Honor_type should be HonorType (golint)
    • Line 206: warning: comment on exported type MetaLifecycle should be of the form "MetaLifecycle ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!