Preparing report...

Report for github.com/thinkoner/torm

A+    Excellent!    Found 18 issues across 26 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!


gocyclo96%

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.


golint30%

Golint is a linter for Go source code.

    • torm/model.go
    • Line 5: warning: exported type Model should have comment or be unexported (golint)
    • Line 11: warning: exported type SoftDeletes should have comment or be unexported (golint)
    • torm/query/query.go
    • Line 3: warning: exported type Query should have comment or be unexported (golint)
    • Line 22: warning: exported type Aggregate should have comment or be unexported (golint)
    • Line 27: warning: exported type Join should have comment or be unexported (golint)
    • Line 33: warning: exported type Where should have comment or be unexported (golint)
    • Line 46: warning: exported type Having should have comment or be unexported (golint)
    • Line 55: warning: exported type Order should have comment or be unexported (golint)
    • Line 62: warning: exported type Union should have comment or be unexported (golint)
    • Line 65: warning: exported type UnionOrder should have comment or be unexported (golint)
    • torm/connection.go
    • Line 12: warning: exported type Connection should have comment or be unexported (golint)
    • Line 108: warning: exported method Connection.Scan should have comment or be unexported (golint)
    • Line 163: warning: exported method Connection.GetQueryGrammar should have comment or be unexported (golint)
    • torm/db.go
    • Line 7: warning: exported function Open should have comment or be unexported (golint)
    • torm/table.go
    • Line 8: warning: exported type TableName should have comment or be unexported (golint)
    • torm/grammar/base_grammar.go
    • Line 5: warning: exported type BaseGrammar should have comment or be unexported (golint)
    • Line 8: warning: exported method BaseGrammar.Parameterize should have comment or be unexported (golint)
    • torm/field/attr.go
    • Line 5: warning: exported type IDAttr should have comment or be unexported (golint)
    • Line 9: warning: exported type CreatedAtAttr should have comment or be unexported (golint)
    • Line 13: warning: exported type UpdatedAtAttr should have comment or be unexported (golint)
    • Line 17: warning: exported type DeletedAtAttr should have comment or be unexported (golint)
    • torm/manager.go
    • Line 8: warning: exported type Config should have comment or be unexported (golint)
    • Line 14: warning: comment on exported type Manager should be of the form "Manager ..." (with optional leading article) (golint)
    • Line 32: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • torm/field.go
    • Line 24: warning: comment on exported method Field.GetAttr should be of the form "GetAttr ..." (golint)
    • Line 32: warning: comment on exported method Field.SetValue should be of the form "SetValue ..." (golint)
    • Line 108: warning: exported function NewField should have comment or be unexported (golint)
    • torm/join_clause.go
    • Line 3: warning: exported type JoinClause should have comment or be unexported (golint)
    • Line 10: warning: exported function NewJoinClause should have comment or be unexported (golint)
    • torm/schema.go
    • Line 15: warning: exported method Schema.SetId should have comment or be unexported (golint)
    • Line 26: warning: exported method Schema.Attributes should have comment or be unexported (golint)
    • Line 39: warning: exported function NewSchema should have comment or be unexported (golint)
    • torm/grammar/mysql_grammar.go
    • Line 27: warning: exported type MySqlGrammar should have comment or be unexported (golint)
    • Line 55: warning: exported method MySqlGrammar.WrapTable should have comment or be unexported (golint)
    • Line 59: warning: exported method MySqlGrammar.Wrap should have comment or be unexported (golint)
    • Line 405: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • torm/builder.go
    • Line 12: warning: exported type Builder should have comment or be unexported (golint)
    • Line 19: warning: exported type Binding should have comment or be unexported (golint)
    • Line 21: warning: exported function NewBuilder should have comment or be unexported (golint)
    • Line 52: warning: exported method Builder.AddSelect should have comment or be unexported (golint)
    • Line 130: warning: exported method Builder.First should have comment or be unexported (golint)
    • Line 134: warning: exported method Builder.Get should have comment or be unexported (golint)
    • Line 163: warning: exported method Builder.Scan should have comment or be unexported (golint)
    • Line 690: warning: exported method Builder.ToSql should have comment or be unexported (golint)
    • Line 711: warning: exported method Builder.GetBindings 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!