Preparing report...

Report for github.com/demdxx/redify

A+    Excellent!    Found 15 issues across 43 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!


gocyclo97%

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.


golint67%

Golint is a linter for Go source code.

    • redify/internal/storage/multistore/driver.go
    • Line 10: warning: exported type Driver should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 18: warning: exported method Driver.Get should have comment or be unexported (golint)
    • Line 32: warning: exported method Driver.Set should have comment or be unexported (golint)
    • Line 45: warning: exported method Driver.Del should have comment or be unexported (golint)
    • Line 58: warning: exported method Driver.Keys should have comment or be unexported (golint)
    • Line 72: warning: exported method Driver.Bind should have comment or be unexported (golint)
    • Line 76: warning: exported method Driver.Close should have comment or be unexported (golint)
    • redify/internal/storage/pgx/driver.go
    • Line 19: warning: exported type Driver should have comment or be unexported (golint)
    • Line 25: warning: exported function Open should have comment or be unexported (golint)
    • Line 45: warning: exported method Driver.Get should have comment or be unexported (golint)
    • Line 58: warning: exported method Driver.Set should have comment or be unexported (golint)
    • Line 67: warning: exported method Driver.Del should have comment or be unexported (golint)
    • Line 76: warning: exported method Driver.Keys should have comment or be unexported (golint)
    • Line 104: warning: exported method Driver.Bind should have comment or be unexported (golint)
    • Line 119: warning: exported method Driver.Close should have comment or be unexported (golint)
    • Line 133: warning: comment on exported method Driver.ListenUpdateNotifies should be of the form "ListenUpdateNotifies ..." (golint)
    • redify/internal/storage/sql/query.go
    • Line 17: warning: exported type Query should have comment or be unexported (golint)
    • Line 23: warning: exported function ParseQuery should have comment or be unexported (golint)
    • Line 53: warning: exported method Query.Args should have comment or be unexported (golint)
    • redify/internal/storage/sql/syntax.go
    • Line 5: warning: exported type AbstractSyntax should have comment or be unexported (golint)
    • Line 9: warning: exported function NewAbstractSyntax should have comment or be unexported (golint)
    • Line 13: warning: exported method AbstractSyntax.UpsertQuery should have comment or be unexported (golint)
    • Line 18: warning: exported method AbstractSyntax.GetQuery should have comment or be unexported (golint)
    • Line 22: warning: exported method AbstractSyntax.SelectQuery should have comment or be unexported (golint)
    • Line 26: warning: exported method AbstractSyntax.DeleteQuery should have comment or be unexported (golint)
    • Line 30: warning: exported type MysqlSyntax should have comment or be unexported (golint)
    • Line 34: warning: exported function NewMysqlSyntax should have comment or be unexported (golint)
    • Line 40: warning: exported method MysqlSyntax.UpsertQuery should have comment or be unexported (golint)
    • redify/internal/storage/pgx/bind.go
    • Line 16: warning: exported type Record should have comment or be unexported (golint)
    • Line 17: warning: exported type DataFields should have comment or be unexported (golint)
    • Line 18: warning: exported type WhereStmt should have comment or be unexported (golint)
    • Line 19: warning: exported type Syntax should have comment or be unexported (golint)
    • Line 27: warning: exported type Bind should have comment or be unexported (golint)
    • Line 32: warning: exported function NewBind should have comment or be unexported (golint)
    • Line 39: warning: exported function NewBindFromTableName should have comment or be unexported (golint)
    • Line 46: warning: exported method Bind.Get should have comment or be unexported (golint)
    • Line 56: warning: exported method Bind.List should have comment or be unexported (golint)
    • Line 62: warning: exported method Bind.Upsert should have comment or be unexported (golint)
    • Line 80: warning: exported method Bind.Del should have comment or be unexported (golint)
    • redify/internal/storage/sql/bind.go
    • Line 12: warning: exported type Bind should have comment or be unexported (golint)
    • Line 17: warning: exported function NewBind should have comment or be unexported (golint)
    • Line 24: warning: exported function NewBindFromTableName should have comment or be unexported (golint)
    • Line 31: warning: exported method Bind.Get should have comment or be unexported (golint)
    • Line 43: warning: exported method Bind.List should have comment or be unexported (golint)
    • Line 59: warning: exported method Bind.Upsert should have comment or be unexported (golint)
    • Line 77: warning: exported method Bind.Del should have comment or be unexported (golint)
    • redify/internal/storage/sql/sql_types.go
    • Line 6: warning: exported type WhereStmt should have comment or be unexported (golint)
    • Line 7: warning: exported type DataFields should have comment or be unexported (golint)
    • Line 10: warning: exported method WhereStmt.Where should have comment or be unexported (golint)
    • Line 34: warning: exported method DataFields.Columns should have comment or be unexported (golint)
    • Line 47: warning: exported method DataFields.Values should have comment or be unexported (golint)
    • Line 58: warning: exported method DataFields.SetValues should have comment or be unexported (golint)
    • redify/internal/storage/interface.go
    • Line 9: warning: exported type Record should have comment or be unexported (golint)
    • Line 11: warning: exported method Record.Get should have comment or be unexported (golint)
    • Line 19: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 26: warning: exported type BindConfig should have comment or be unexported (golint)
    • Line 48: warning: exported type Cacher should have comment or be unexported (golint)
    • redify/internal/storage/sql/bind_abstract.go
    • Line 12: warning: exported type Record should have comment or be unexported (golint)
    • Line 16: warning: exported type Syntax should have comment or be unexported (golint)
    • Line 23: warning: exported type BindAbstract should have comment or be unexported (golint)
    • Line 33: warning: exported function NewBindAbstract should have comment or be unexported (golint)
    • Line 45: warning: exported function NewBindAbstractFromTableName should have comment or be unexported (golint)
    • Line 75: warning: exported method BindAbstract.TableName should have comment or be unexported (golint)
    • Line 79: warning: exported method BindAbstract.MatchKey should have comment or be unexported (golint)
    • Line 83: warning: exported method BindAbstract.MatchPattern should have comment or be unexported (golint)
    • Line 88: warning: exported method BindAbstract.Get should have comment or be unexported (golint)
    • Line 92: warning: exported method BindAbstract.List should have comment or be unexported (golint)
    • Line 96: warning: exported method BindAbstract.Upsert should have comment or be unexported (golint)
    • Line 100: warning: exported method BindAbstract.Del should have comment or be unexported (golint)
    • redify/internal/keypattern/pattern.go
    • Line 12: warning: exported type ValueType should have comment or be unexported (golint)
    • Line 15: warning: exported const ConstValueType should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type ValueGetter should have comment or be unexported (golint)
    • Line 26: warning: exported type ExecContext should have comment or be unexported (golint)
    • Line 28: warning: exported method ExecContext.Get should have comment or be unexported (golint)
    • Line 35: warning: exported type Matcher should have comment or be unexported (golint)
    • Line 98: warning: exported method Pattern.Format 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!