Preparing report...

Report for github.com/rocketlaunchr/react

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


gocyclo78%

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.

    • react/forks/mapstructure/mapstructure.go
    • Line 983: warning: cyclomatic complexity 28 of function (*Decoder).decodeStructFromMap() is high (> 15) (gocyclo)
    • Line 230: warning: cyclomatic complexity 28 of function (*Decoder).decode() is high (> 15) (gocyclo)
    • Line 348: warning: cyclomatic complexity 20 of function (*Decoder).decodeString() is high (> 15) (gocyclo)
    • Line 805: warning: cyclomatic complexity 17 of function (*Decoder).decodeSlice() is high (> 15) (gocyclo)
    • Line 667: warning: cyclomatic complexity 16 of function (*Decoder).decodeMapFromStruct() is high (> 15) (gocyclo)
    • react/forks/encoding/json/decode.go
    • Line 741: warning: cyclomatic complexity 50 of function (*decodeState).literalStore() is high (> 15) (gocyclo)
    • Line 556: warning: cyclomatic complexity 34 of function (*decodeState).object() is high (> 15) (gocyclo)
    • Line 1056: warning: cyclomatic complexity 30 of function unquoteBytes() is high (> 15) (gocyclo)
    • Line 190: warning: cyclomatic complexity 27 of function isValidNumber() is high (> 15) (gocyclo)
    • Line 448: warning: cyclomatic complexity 23 of function (*decodeState).array() is high (> 15) (gocyclo)
    • Line 405: warning: cyclomatic complexity 19 of function (*decodeState).indirect() is high (> 15) (gocyclo)
    • react/forks/encoding/json/encode.go
    • Line 1003: warning: cyclomatic complexity 24 of function typeFields() is high (> 15) (gocyclo)
    • Line 360: warning: cyclomatic complexity 22 of function newTypeEncoder() is high (> 15) (gocyclo)
    • Line 789: warning: cyclomatic complexity 22 of function (*encodeState).string() is high (> 15) (gocyclo)
    • Line 865: warning: cyclomatic complexity 22 of function (*encodeState).stringBytes() is high (> 15) (gocyclo)

golint90%

Golint is a linter for Go source code.

    • react/forks/context/context_go113.go
    • Line 10: warning: exported var Canceled should have comment or be unexported (golint)
    • Line 12: warning: exported var DeadlineExceeded should have comment or be unexported (golint)
    • Line 14: warning: exported function WithCancel should have comment or be unexported (golint)
    • Line 18: warning: exported function WithDeadline should have comment or be unexported (golint)
    • Line 22: warning: exported function WithTimeout should have comment or be unexported (golint)
    • Line 26: warning: exported function Background should have comment or be unexported (golint)
    • Line 30: warning: exported function TODO should have comment or be unexported (golint)
    • Line 34: warning: exported function WithValue should have comment or be unexported (golint)
    • react/forks/encoding/json/encode.go
    • Line 212: warning: exported type UnsupportedValueError should have comment or be unexported (golint)
    • Line 221: warning: comment on exported type InvalidUTF8Error should be of the form "InvalidUTF8Error ..." (with optional leading article) (golint)
    • Line 235: warning: exported type MarshalerError should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!