Preparing report...

Report for github.com/Logiase/gomirai

A+    Excellent!    Found 6 issues across 9 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!


golint33%

Golint is a linter for Go source code.

    • gomirai/message/chain.go
    • Line 3: warning: exported type Chain should have comment or be unexported (golint)
    • Line 7: warning: exported function GenChain should have comment or be unexported (golint)
    • gomirai/message/event.go
    • Line 4: warning: exported const EventReceiveFriendMessage should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type Event should have comment or be unexported (golint)
    • Line 48: warning: exported type Group should have comment or be unexported (golint)
    • Line 54: warning: exported type Friend should have comment or be unexported (golint)
    • Line 60: warning: exported type Sender should have comment or be unexported (golint)
    • Line 67: warning: exported type GroupConfig should have comment or be unexported (golint)
    • Line 76: warning: exported type MemberInfo should have comment or be unexported (golint)
    • gomirai/message/message.go
    • Line 4: warning: don't use underscores in Go names; const MsgType_Source should be MsgTypeSource (golint)
    • Line 4: warning: exported const MsgType_Source should have comment (or a comment on this block) or be unexported (golint)
    • Line 5: warning: don't use underscores in Go names; const MsgType_Quote should be MsgTypeQuote (golint)
    • Line 6: warning: don't use underscores in Go names; const MsgType_At should be MsgTypeAt (golint)
    • Line 7: warning: don't use underscores in Go names; const MsgType_AtAll should be MsgTypeAtAll (golint)
    • Line 8: warning: don't use underscores in Go names; const MsgType_Face should be MsgTypeFace (golint)
    • Line 9: warning: don't use underscores in Go names; const MsgType_Plain should be MsgTypePlain (golint)
    • Line 10: warning: don't use underscores in Go names; const MsgType_Image should be MsgTypeImage (golint)
    • Line 11: warning: don't use underscores in Go names; const MsgType_FlashImage should be MsgTypeFlashImage (golint)
    • Line 12: warning: don't use underscores in Go names; const MsgType_Xml should be MsgTypeXML (golint)
    • Line 13: warning: don't use underscores in Go names; const MsgType_Json should be MsgTypeJSON (golint)
    • Line 14: warning: don't use underscores in Go names; const MsgType_App should be MsgTypeApp (golint)
    • Line 15: warning: don't use underscores in Go names; const MsgType_Poke should be MsgTypePoke (golint)
    • Line 18: warning: exported type Message should have comment or be unexported (golint)
    • Line 39: warning: exported function PlainMessage should have comment or be unexported (golint)
    • Line 43: warning: exported function AtMessage should have comment or be unexported (golint)
    • Line 50: warning: exported function FaceMessage should have comment or be unexported (golint)
    • Line 54: warning: exported function ImageMessage should have comment or be unexported (golint)
    • Line 69: warning: exported function FlashImageMessage should have comment or be unexported (golint)
    • Line 84: warning: exported function RichMessage should have comment or be unexported (golint)
    • Line 102: warning: exported function PokeMessage should have comment or be unexported (golint)
    • gomirai/func.go
    • Line 8: warning: exported function SendGroupMessageWithBot should have comment or be unexported (golint)
    • Line 12: warning: exported function SendFriendMessageWithBot should have comment or be unexported (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!


misspell88%

Misspell Finds commonly misspelled English words