Preparing report...

Report for github.com/textileio/go-ds-mongo

A    Great!    Found 6 issues across 6 files

Tweet

gofmt83%

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!


gocyclo83%

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.


golint16%

Golint is a linter for Go source code.

    • go-ds-mongo/mongo.go
    • Line 24: warning: exported var ErrClosed should have comment or be unexported (golint)
    • Line 29: warning: exported type MongoDS should have comment or be unexported (golint)
    • Line 50: warning: exported function New should have comment or be unexported (golint)
    • Line 74: warning: exported method MongoDS.Batch should have comment or be unexported (golint)
    • Line 82: warning: exported method MongoDS.Put should have comment or be unexported (golint)
    • Line 94: warning: exported method MongoDS.Has should have comment or be unexported (golint)
    • Line 106: warning: exported method MongoDS.Sync should have comment or be unexported (golint)
    • Line 110: warning: exported method MongoDS.GetSize should have comment or be unexported (golint)
    • Line 122: warning: exported method MongoDS.Get should have comment or be unexported (golint)
    • Line 133: warning: exported method MongoDS.Delete should have comment or be unexported (golint)
    • Line 145: warning: exported method MongoDS.QueryExtended should have comment or be unexported (golint)
    • Line 158: warning: exported method MongoDS.Query should have comment or be unexported (golint)
    • Line 173: warning: exported method MongoDS.Close should have comment or be unexported (golint)
    • go-ds-mongo/options.go
    • Line 19: warning: exported type Option should have comment or be unexported (golint)
    • Line 21: warning: exported function WithOpTimeout should have comment or be unexported (golint)
    • Line 27: warning: exported function WithTxnTimeout should have comment or be unexported (golint)
    • Line 33: warning: exported function WithCollName should have comment or be unexported (golint)
    • go-ds-mongo/txn.go
    • Line 16: warning: exported var ErrTxnFinalized should have comment or be unexported (golint)
    • Line 33: warning: exported method MongoDS.NewTransaction should have comment or be unexported (golint)
    • Line 37: warning: exported method MongoDS.NewTransactionExtended should have comment or be unexported (golint)
    • go-ds-mongo/test/test.go
    • Line 17: warning: exported function GetMongoUri should have comment or be unexported (golint)
    • Line 25: warning: exported function StartMongoDB should have comment or be unexported (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!


misspell66%

Misspell Finds commonly misspelled English words