Preparing report...

Report for github.com/ddliu/fractal

B    Not bad!    Found 4 issues across 5 files

Tweet

gofmt60%

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!


gocyclo80%

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.


golint40%

Golint is a linter for Go source code.

    • fractal/casting.go
    • Line 10: warning: exported method Context.Bool should have comment or be unexported (golint)
    • Line 14: warning: exported method Context.Float32 should have comment or be unexported (golint)
    • Line 18: warning: exported method Context.Float64 should have comment or be unexported (golint)
    • Line 22: warning: exported method Context.Int should have comment or be unexported (golint)
    • Line 26: warning: exported method Context.Int16 should have comment or be unexported (golint)
    • Line 30: warning: exported method Context.Int32 should have comment or be unexported (golint)
    • Line 34: warning: exported method Context.Int64 should have comment or be unexported (golint)
    • Line 38: warning: exported method Context.Int8 should have comment or be unexported (golint)
    • Line 42: warning: exported method Context.Uint should have comment or be unexported (golint)
    • Line 46: warning: exported method Context.Uint16 should have comment or be unexported (golint)
    • Line 50: warning: exported method Context.Uint32 should have comment or be unexported (golint)
    • Line 54: warning: exported method Context.Uint64 should have comment or be unexported (golint)
    • Line 58: warning: exported method Context.Uint8 should have comment or be unexported (golint)
    • fractal/context.go
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 21: warning: exported function FromJson should have comment or be unexported (golint)
    • Line 49: warning: exported method Context.GetValueE should have comment or be unexported (golint)
    • Line 106: warning: exported method Context.GetValue should have comment or be unexported (golint)
    • Line 115: warning: exported method Context.GetMapContextE should have comment or be unexported (golint)
    • Line 137: warning: exported method Context.GetMapContext should have comment or be unexported (golint)
    • Line 146: warning: exported method Context.GetListContextE should have comment or be unexported (golint)
    • Line 167: warning: exported method Context.GetListContext should have comment or be unexported (golint)
    • Line 173: warning: exported method Context.Keys should have comment or be unexported (golint)
    • Line 181: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 188: warning: exported method Context.Length should have comment or be unexported (golint)
    • Line 199: warning: exported method Context.GetContextWithTypeE should have comment or be unexported (golint)
    • Line 212: warning: exported method Context.GetContextWithType should have comment or be unexported (golint)
    • Line 218: warning: exported method Context.SetValue should have comment or be unexported (golint)
    • Line 232: warning: exported method Context.GetContextE should have comment or be unexported (golint)
    • Line 243: warning: exported method Context.GetContext should have comment or be unexported (golint)
    • Line 249: warning: comment on exported method Context.IsEmpty should be of the form "IsEmpty ..." (golint)
    • Line 308: warning: exported method Context.Unmarshal should have comment or be unexported (golint)
    • Line 317: warning: exported method Context.UnmarshalJSON should have comment or be unexported (golint)
    • Line 325: warning: exported method Context.MarshalJSON should have comment or be unexported (golint)
    • Line 329: warning: exported method Context.MustMarshalJSON should have comment or be unexported (golint)
    • Line 334: warning: exported method Context.Exist should have comment or be unexported (golint)
    • Line 376: warning: exported type SimpleType should have comment or be unexported (golint)
    • Line 379: warning: exported const TYPE_UNKNOWN should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!