Preparing report...

Report for github.com/go-pg/sharding

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


golint66%

Golint is a linter for Go source code.

    • sharding/uuid.go
    • Line 28: warning: exported type UUID should have comment or be unexported (golint)
    • Line 30: warning: exported function NewUUID should have comment or be unexported (golint)
    • Line 43: warning: exported function ParseUUID should have comment or be unexported (golint)
    • Line 49: warning: exported method UUID.IsZero should have comment or be unexported (golint)
    • Line 61: warning: exported method UUID.Split should have comment or be unexported (golint)
    • Line 68: warning: exported method UUID.ShardID should have comment or be unexported (golint)
    • Line 73: warning: exported method UUID.Time should have comment or be unexported (golint)
    • Line 85: warning: exported method UUID.AppendValue should have comment or be unexported (golint)
    • Line 109: warning: exported method UUID.Value should have comment or be unexported (golint)
    • Line 115: warning: exported method UUID.Scan should have comment or be unexported (golint)
    • Line 137: warning: exported method UUID.MarshalBinary should have comment or be unexported (golint)
    • Line 143: warning: exported method UUID.UnmarshalBinary should have comment or be unexported (golint)
    • Line 157: warning: exported method UUID.MarshalText should have comment or be unexported (golint)
    • Line 163: warning: exported method UUID.UnmarshalText should have comment or be unexported (golint)
    • Line 197: warning: exported method UUID.MarshalJSON should have comment or be unexported (golint)
    • Line 211: warning: exported method UUID.UnmarshalJSON should have comment or be unexported (golint)
    • sharding/cluster.go
    • Line 62: warning: exported function NewCluster should have comment or be unexported (golint)
    • Line 88: warning: exported method Cluster.IDGen should have comment or be unexported (golint)
    • Line 103: warning: exported method Cluster.Close should have comment or be unexported (golint)
    • sharding/idgen.go
    • Line 11: warning: exported var DefaultIDGen should have comment or be unexported (golint)
    • Line 14: warning: exported type IDGen should have comment or be unexported (golint)
    • Line 23: warning: exported function NewIDGen should have comment or be unexported (golint)
    • Line 39: warning: exported method IDGen.NumShards should have comment or be unexported (golint)
    • Line 43: warning: comment on exported method IDGen.MakeID should be of the form "MakeID ..." (golint)
    • Line 79: warning: comment on exported type ShardIDGen should be of the form "ShardIDGen ..." (with optional leading article) (golint)
    • Line 110: warning: comment on exported method ShardIDGen.MinID should be of the form "MinID ..." (golint)
    • Line 115: warning: comment on exported method ShardIDGen.MaxID should be of the form "MaxID ..." (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!