Preparing report...

Report for dev.sum7.eu/genofire/yaja

A+    Excellent!    Found 28 issues across 75 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!


gocyclo93%

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.


golint68%

Golint is a linter for Go source code.

    • /dev.sum7.eu/genofire/yaja/client/comm.go
    • Line 25: warning: exported method Client.Decode should have comment or be unexported (golint)
    • Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 38: warning: exported method Client.ReadDecode should have comment or be unexported (golint)
    • Line 73: warning: exported method Client.Send should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/bot/handler_subscribe.go
    • Line 7: warning: exported type SubscribeHander should have comment or be unexported (golint)
    • Line 12: warning: exported method SubscribeHander.Presence should have comment or be unexported (golint)
    • Line 45: warning: exported method SubscribeHander.Message should have comment or be unexported (golint)
    • Line 49: warning: exported method SubscribeHander.IQ should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/xmpp/utils.go
    • Line 11: warning: exported function XMLStartElementToString should have comment or be unexported (golint)
    • Line 23: warning: exported function XMLChildrenString should have comment or be unexported (golint)
    • Line 49: warning: exported function CreateCookie should have comment or be unexported (golint)
    • Line 56: warning: exported function CreateCookieString should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/bot/handler_commandmsg.go
    • Line 9: warning: exported type CommandMessageHander should have comment or be unexported (golint)
    • Line 14: warning: exported method CommandMessageHander.Presence should have comment or be unexported (golint)
    • Line 18: warning: exported method CommandMessageHander.Message should have comment or be unexported (golint)
    • Line 34: warning: exported method CommandMessageHander.IQ should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/bot/main.go
    • Line 11: warning: exported type Bot should have comment or be unexported (golint)
    • Line 20: warning: exported function NewBot should have comment or be unexported (golint)
    • Line 30: warning: exported method Bot.Start should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/database/main.go
    • Line 13: warning: exported type State should have comment or be unexported (golint)
    • Line 18: warning: exported method State.AddAccount should have comment or be unexported (golint)
    • Line 53: warning: exported method State.Authenticate should have comment or be unexported (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 72: warning: exported method State.GetAccount should have comment or be unexported (golint)
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • /dev.sum7.eu/genofire/yaja/cmd/tester/tester.go
    • Line 14: warning: exported type Tester should have comment or be unexported (golint)
    • Line 25: warning: exported function NewTester should have comment or be unexported (golint)
    • Line 32: warning: exported method Tester.Start should have comment or be unexported (golint)
    • Line 54: warning: exported method Tester.Close should have comment or be unexported (golint)
    • Line 60: warning: exported method Tester.Connect should have comment or be unexported (golint)
    • Line 122: warning: exported method Tester.CheckStatus should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/client/start.go
    • Line 10: warning: exported var DefaultChannelSize should have comment or be unexported (golint)
    • Line 12: warning: exported method Client.Start should have comment or be unexported (golint)
    • Line 127: warning: exported method Client.SendRecv should have comment or be unexported (golint)
    • Line 151: warning: exported method Client.Recv should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/model/account.go
    • Line 10: warning: exported type Domain should have comment or be unexported (golint)
    • Line 16: warning: exported method Domain.GetJID should have comment or be unexported (golint)
    • Line 22: warning: exported method Domain.UpdateAccount should have comment or be unexported (golint)
    • Line 33: warning: exported type Account should have comment or be unexported (golint)
    • Line 41: warning: exported function NewAccount should have comment or be unexported (golint)
    • Line 54: warning: exported method Account.GetJID should have comment or be unexported (golint)
    • Line 61: warning: exported method Account.ValidatePassword should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/model/buddy.go
    • Line 4: warning: exported const SubscriptionNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type Buddy should have comment or be unexported (golint)
    • Line 19: warning: exported type Bookmark should have comment or be unexported (golint)
    • /dev.sum7.eu/genofire/yaja/client/client.go
    • Line 33: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 41: warning: exported method Client.Connect should have comment or be unexported (golint)
    • Line 75: warning: receiver name c should be consistent with previous receiver name client for Client (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!