Preparing report...

Report for github.com/adrianwit/mgc

A+    Excellent!    Found 6 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!


golint77%

Golint is a linter for Go source code.

    • mgc/connection.go
    • Line 19: warning: exported var SessionPointer should have comment or be unexported (golint)
    • Line 20: warning: exported var DbPointer should have comment or be unexported (golint)
    • mgc/criteria.go
    • Line 14: warning: exported var OperatorMapping should have comment or be unexported (golint)
    • Line 81: warning: exported function MapCriterion should have comment or be unexported (golint)
    • Line 150: warning: exported function AsMongoCriteria should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.

    • mgc/criteria_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/adrianwit/mgc (invalid package name: "") (ineffassign)
    • mgc/connection_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/viant/dsc (invalid package name: "") (ineffassign)
    • mgc/manager_test.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/viant/assertly (invalid package name: "") (ineffassign)
    • mgc/criteria.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import cloud.google.com/go/container (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/viant/toolbox (invalid package name: "") (ineffassign)
    • mgc/connection.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/globalsign/mgo (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/viant/dsc (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/viant/toolbox/url (invalid package name: "") (ineffassign)
    • Line 59: warning: p.ConnectionProvider undefined (type *connectionProvider has no field or method ConnectionProvider) (ineffassign)
    • Line 82: warning: p.Config undefined (type *connectionProvider has no field or method Config) (ineffassign)
    • Line 85: warning: p.Config undefined (type *connectionProvider has no field or method Config) (ineffassign)
    • Line 94: warning: p.ConnectionProvider undefined (type *connectionProvider has no field or method ConnectionProvider) (ineffassign)
    • mgc/manager.go
    • Line 28: warning: m.config.GetString undefined (type *config has no field or method GetString) (ineffassign)
    • Line 183: warning: m.Config undefined (type *manager has no field or method Config, but does have config) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!