Preparing report...

Report for github.com/strongo/bots-framework

A+    Excellent!    Found 10 issues across 105 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!


gocyclo95%

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.

    • bots-framework/core/structs_ffjson.go
    • Line 1051: warning: cyclomatic complexity 96 of function (*MessageFromBot).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1707: warning: cyclomatic complexity 79 of function (*TextMessageFromBot).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 49 of function (*BaseHandler).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 657: warning: cyclomatic complexity 46 of function (*EntryInputs).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 38 of function (*EntryInput).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 899: warning: cyclomatic complexity 21 of function (*MessageFromBot).MarshalJSONBuf() is high (> 15) (gocyclo)
    • bots-framework/core/router.go
    • Line 312: warning: cyclomatic complexity 28 of function (*WebhooksRouter).Dispatch() is high (> 15) (gocyclo)
    • Line 156: warning: cyclomatic complexity 25 of function (*WebhooksRouter).matchMessageCommands() is high (> 15) (gocyclo)
    • Line 479: warning: cyclomatic complexity 16 of function (*WebhooksRouter).processCommandResponse() is high (> 15) (gocyclo)

golint94%

Golint is a linter for Go source code.

    • bots-framework/core/router.go
    • Line 64: warning: exported method WebhooksRouter.CommandsCount should have comment or be unexported (golint)
    • Line 125: warning: exported var ErrNoCommandsMatched should have comment or be unexported (golint)
    • bots-framework/platforms/fbm/fbm_webhooks.go
    • Line 46: warning: receiver name handler should be consistent with previous receiver name h for webhookHandler (golint)
    • Line 57: warning: receiver name handler should be consistent with previous receiver name h for webhookHandler (golint)
    • Line 90: warning: receiver name handler should be consistent with previous receiver name h for webhookHandler (golint)
    • Line 114: warning: receiver name handler should be consistent with previous receiver name h for webhookHandler (golint)
    • Line 145: warning: receiver name handler should be consistent with previous receiver name h for webhookHandler (golint)
    • Line 199: warning: receiver name handler should be consistent with previous receiver name h for webhookHandler (golint)
    • bots-framework/platforms/telegram/model_chat_basic.go
    • Line 9: warning: exported type Chat should have comment or be unexported (golint)
    • Line 16: warning: exported method Chat.Kind should have comment or be unexported (golint)
    • Line 20: warning: exported method Chat.Entity should have comment or be unexported (golint)
    • Line 24: warning: exported method Chat.NewEntity should have comment or be unexported (golint)
    • Line 28: warning: exported method Chat.SetEntity should have comment or be unexported (golint)
    • Line 36: warning: exported type ChatEntity should have comment or be unexported (golint)
    • Line 41: warning: exported method ChatEntity.Load should have comment or be unexported (golint)
    • Line 45: warning: exported method ChatEntity.Save should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!