Preparing report...

Report for github.com/RobustaStudio/bkit

A    Great!    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!


gocyclo77%

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.

    • bkit/parser.go
    • Line 13: warning: cyclomatic complexity 19 of function NewBotFromReader() is high (> 15) (gocyclo)

golint44%

Golint is a linter for Go source code.

    • bkit/bot.go
    • Line 7: warning: exported type Bot should have comment or be unexported (golint)
    • Line 17: warning: exported type Menu should have comment or be unexported (golint)
    • Line 25: warning: exported type Button should have comment or be unexported (golint)
    • Line 34: warning: exported type Dialog should have comment or be unexported (golint)
    • Line 43: warning: exported type Input should have comment or be unexported (golint)
    • bkit/main.go
    • Line 15: warning: exported var HTML_FILE should have comment or be unexported (golint)
    • bkit/messenger_session.go
    • Line 39: warning: error should be the last type when returning multiple items (golint)
    • Line 125: warning: comment on exported method MessengerSession.SendInlineButtons should be of the form "SendInlineButtons ..." (golint)
    • bkit/messenger_wrapper.go
    • Line 17: warning: exported type Messenger should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method Messenger.SetGreeting should be of the form "SetGreeting ..." (golint)
    • Line 57: warning: comment on exported method Messenger.SetMainMenu should be of the form "SetMainMenu ..." (golint)
    • Line 89: warning: exported method Messenger.GetWelcomeMenu should have comment or be unexported (golint)
    • bkit/parser.go
    • Line 12: warning: comment on exported function NewBotFromReader should be of the form "NewBotFromReader ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell77%

Misspell Finds commonly misspelled English words