Preparing report...

Report for github.com/strongo/bots-api-fbm

A    Great!    Found 8 issues across 14 files

Tweet

gofmt92%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint85%

Golint is a linter for Go source code.


gocyclo64%

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-api-fbm/send_api_ffjson.go
    • Line 1792: warning: cyclomatic complexity 80 of function (*RequestAttachmentPayload).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3007: warning: cyclomatic complexity 76 of function (*RequestButton).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4009: warning: cyclomatic complexity 74 of function (*RequestElement).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2505: warning: cyclomatic complexity 73 of function (*RequestAttachmentTemplate).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3515: warning: cyclomatic complexity 70 of function (*RequestDefaultAction).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 5206: warning: cyclomatic complexity 56 of function (*RequestWebURLAction).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 5561: warning: cyclomatic complexity 55 of function (*RequestWhitelistDomain).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1424: warning: cyclomatic complexity 47 of function (*RequestAttachmentListTemplate).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 651: warning: cyclomatic complexity 47 of function (*RequestAttachmentButtonTemplate).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 94: warning: cyclomatic complexity 45 of function (*Request).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4483: warning: cyclomatic complexity 40 of function (*RequestMessage).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 955: warning: cyclomatic complexity 40 of function (*RequestAttachmentGenericTemplate).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4934: warning: cyclomatic complexity 40 of function (*RequestRecipient).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 39 of function (*RequestAttachment).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4726: warning: cyclomatic complexity 33 of function (*RequestPostbackAction).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1197: warning: cyclomatic complexity 33 of function (*RequestAttachmentImage).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2275: warning: cyclomatic complexity 26 of function (*RequestAttachmentReceiptTemplate).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1673: warning: cyclomatic complexity 16 of function (*RequestAttachmentPayload).MarshalJSONBuf() is high (> 15) (gocyclo)
    • bots-api-fbm/request_PersistentMenu_ffjson.go
    • Line 977: warning: cyclomatic complexity 68 of function (*MenuItemWebURL).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1424: warning: cyclomatic complexity 55 of function (*PersistentMenu).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 329: warning: cyclomatic complexity 53 of function (*MenuItemNested).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 660: warning: cyclomatic complexity 46 of function (*MenuItemPostback).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1771: warning: cyclomatic complexity 40 of function (*PersistentMenuMessage).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 39 of function (*MenuItemBase).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • bots-api-fbm/webhook_api_ffjson.go
    • Line 1654: warning: cyclomatic complexity 67 of function (*Messaging).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1202: warning: cyclomatic complexity 62 of function (*Message).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 838: warning: cyclomatic complexity 55 of function (*Entry).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 518: warning: cyclomatic complexity 49 of function (*Delivery).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2522: warning: cyclomatic complexity 47 of function (*ReceivedMessage).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2260: warning: cyclomatic complexity 40 of function (*Postback).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 269: warning: cyclomatic complexity 39 of function (*Attachment).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3012: warning: cyclomatic complexity 38 of function (*SendMessage).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3238: warning: cyclomatic complexity 33 of function (*Sender).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2060: warning: cyclomatic complexity 33 of function (*Payload).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 33 of function (*Actor).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2802: warning: cyclomatic complexity 33 of function (*Recipient).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)

ineffassign71%

IneffAssign detects ineffectual assignments in Go code.

    • bots-api-fbm/send_api_ffjson.go
    • Line 247: warning: ineffectual assignment to state (ineffassign)
    • Line 268: warning: ineffectual assignment to state (ineffassign)
    • Line 548: warning: ineffectual assignment to state (ineffassign)
    • Line 838: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 854: warning: ineffectual assignment to state (ineffassign)
    • Line 1099: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 1115: warning: ineffectual assignment to state (ineffassign)
    • Line 1611: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 1627: warning: ineffectual assignment to state (ineffassign)
    • Line 2119: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 2135: warning: ineffectual assignment to state (ineffassign)
    • Line 2188: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 2204: warning: ineffectual assignment to state (ineffassign)
    • Line 2789: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 2805: warning: ineffectual assignment to state (ineffassign)
    • Line 2858: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 2874: warning: ineffectual assignment to state (ineffassign)
    • Line 4320: warning: ineffectual assignment to state (ineffassign)
    • Line 4366: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 4382: warning: ineffectual assignment to state (ineffassign)
    • Line 4651: warning: ineffectual assignment to state (ineffassign)
    • Line 5791: warning: ineffectual assignment to wantVal (ineffassign)
    • bots-api-fbm/webhook_api_ffjson.go
    • Line 431: warning: ineffectual assignment to state (ineffassign)
    • Line 709: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 1072: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 1088: warning: ineffectual assignment to state (ineffassign)
    • Line 1479: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 1495: warning: ineffectual assignment to state (ineffassign)
    • Line 1858: warning: ineffectual assignment to state (ineffassign)
    • Line 1879: warning: ineffectual assignment to state (ineffassign)
    • Line 1936: warning: ineffectual assignment to state (ineffassign)
    • Line 1963: warning: ineffectual assignment to state (ineffassign)
    • Line 1990: warning: ineffectual assignment to state (ineffassign)
    • Line 2709: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 2725: warning: ineffectual assignment to state (ineffassign)
    • Line 3148: warning: ineffectual assignment to state (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell92%

Misspell Finds commonly misspelled English words