Preparing report...

Report for github.com/xyproto/simpleredis

A+    Excellent!    Found 2 issues across 4 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!


gocyclo100%

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.

No problems detected. Good job!


golint50%

Golint is a linter for Go source code.

    • simpleredis/creator.go
    • Line 9: warning: exported type RedisCreator should have comment or be unexported (golint)
    • Line 14: warning: exported function NewCreator should have comment or be unexported (golint)
    • Line 18: warning: exported method RedisCreator.SelectDatabase should have comment or be unexported (golint)
    • Line 22: warning: exported method RedisCreator.NewList should have comment or be unexported (golint)
    • Line 26: warning: exported method RedisCreator.NewSet should have comment or be unexported (golint)
    • Line 30: warning: exported method RedisCreator.NewHashMap should have comment or be unexported (golint)
    • Line 34: warning: exported method RedisCreator.NewKeyValue should have comment or be unexported (golint)
    • simpleredis/simpleredis.go
    • Line 29: warning: comment on exported type ConnectionPool should be of the form "ConnectionPool ..." (with optional leading article) (golint)
    • Line 32: warning: exported type List should have comment or be unexported (golint)
    • Line 33: warning: exported type Set should have comment or be unexported (golint)
    • Line 34: warning: exported type HashMap should have comment or be unexported (golint)
    • Line 35: warning: exported type KeyValue should have comment or be unexported (golint)
    • Line 80: warning: comment on exported function TestConnection should be of the form "TestConnection ..." (golint)
    • Line 85: warning: comment on exported function TestConnectionHost should be of the form "TestConnectionHost ..." (golint)
    • Line 103: warning: comment on exported function NewConnectionPool should be of the form "NewConnectionPool ..." (golint)
    • Line 125: warning: comment on exported function NewConnectionPoolHost should be of the form "NewConnectionPoolHost ..." (golint)
    • Line 155: warning: comment on exported function SetMaxIdleConnections should be of the form "SetMaxIdleConnections ..." (golint)
    • Line 191: warning: comment on exported function NewList should be of the form "NewList ..." (golint)
    • Line 196: warning: comment on exported method List.SelectDatabase should be of the form "SelectDatabase ..." (golint)
    • Line 201: warning: comment on exported method List.Get should be of the form "Get ..." (golint)
    • Line 211: warning: comment on exported method List.Size should be of the form "Size ..." (golint)
    • Line 221: warning: comment on exported method List.PopFirst should be of the form "PopFirst ..." (golint)
    • Line 231: warning: comment on exported method List.PopLast should be of the form "PopLast ..." (golint)
    • Line 241: warning: comment on exported method List.AddStart should be of the form "AddStart ..." (golint)
    • Line 248: warning: comment on exported method List.AddEnd should be of the form "AddEnd ..." (golint)
    • Line 255: warning: comment on exported method List.Add should be of the form "Add ..." (golint)
    • Line 260: warning: comment on exported method List.All should be of the form "All ..." (golint)
    • Line 271: warning: comment on exported method List.GetAll should be of the form "GetAll ..." (golint)
    • Line 276: warning: comment on exported method List.Last should be of the form "Last ..." (golint)
    • Line 286: warning: comment on exported method List.GetLast should be of the form "GetLast ..." (golint)
    • Line 291: warning: comment on exported method List.LastN should be of the form "LastN ..." (golint)
    • Line 302: warning: comment on exported method List.GetLastN should be of the form "GetLastN ..." (golint)
    • Line 307: warning: comment on exported method List.RemoveElement should be of the form "RemoveElement ..." (golint)
    • Line 343: warning: comment on exported function NewSet should be of the form "NewSet ..." (golint)
    • Line 348: warning: comment on exported method Set.SelectDatabase should be of the form "SelectDatabase ..." (golint)
    • Line 360: warning: comment on exported method Set.Size should be of the form "Size ..." (golint)
    • Line 370: warning: comment on exported method Set.Has should be of the form "Has ..." (golint)
    • Line 380: warning: comment on exported method Set.All should be of the form "All ..." (golint)
    • Line 391: warning: comment on exported method Set.GetAll should be of the form "GetAll ..." (golint)
    • Line 396: warning: comment on exported method Set.Pop should be of the form "Pop ..." (golint)
    • Line 406: warning: comment on exported method Set.Random should be of the form "Random ..." (golint)
    • Line 416: warning: comment on exported method Set.Del should be of the form "Del ..." (golint)
    • Line 437: warning: comment on exported function NewHashMap should be of the form "NewHashMap ..." (golint)
    • Line 442: warning: comment on exported method HashMap.SelectDatabase should be of the form "SelectDatabase ..." (golint)
    • Line 454: warning: comment on exported method HashMap.SetExpire should be of the form "SetExpire ..." (golint)
    • Line 497: warning: comment on exported method HashMap.Has should be of the form "Has ..." (golint)
    • Line 518: warning: comment on exported method HashMap.Exists should be of the form "Exists ..." (golint)
    • Line 524: warning: comment on exported method HashMap.All should be of the form "All ..." (golint)
    • Line 536: warning: comment on exported method HashMap.GetAll should be of the form "GetAll ..." (golint)
    • Line 541: warning: comment on exported method HashMap.DelKey should be of the form "DelKey ..." (golint)
    • Line 548: warning: comment on exported method HashMap.Del should be of the form "Del ..." (golint)
    • Line 580: warning: comment on exported function NewKeyValue should be of the form "NewKeyValue ..." (golint)
    • Line 585: warning: comment on exported method KeyValue.SelectDatabase should be of the form "SelectDatabase ..." (golint)
    • Line 597: warning: comment on exported method KeyValue.SetExpire should be of the form "SetExpire ..." (golint)
    • Line 629: warning: comment on exported method KeyValue.Del should be of the form "Del ..." (golint)
    • Line 636: warning: comment on exported method KeyValue.Inc should be of the form "Inc ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!