Preparing report...

Report for github.com/gohouse/gorose/v2

A    Great!    Found 20 issues across 47 files

Tweet

gofmt85%

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!


gocyclo85%

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.

    • gorose/v2/builder_default.go
    • Line 428: warning: cyclomatic complexity 28 of function (*BuilderDefault).parseWhere() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 16 of function (*BuilderDefault).BuildData2() is high (> 15) (gocyclo)

golint70%

Golint is a linter for Go source code.

    • gorose/v2/examples/dbobj/db.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: exported function GetMysqlEngin should have comment or be unexported (golint)
    • Line 27: warning: exported function GetSqliteEngin should have comment or be unexported (golint)
    • Line 40: warning: exported function Getdb should have comment or be unexported (golint)
    • gorose/v2/builder_interface.go
    • Line 22: warning: exported type FieldQuotesDefault should have comment or be unexported (golint)
    • Line 26: warning: exported method FieldQuotesDefault.AddFieldQuotes should have comment or be unexported (golint)
    • gorose/v2/builder_oracle.go
    • Line 458: warning: comment on exported method BuilderOracle.BuildQuery should be of the form "BuildQuery ..." (golint)
    • Line 464: warning: comment on exported method BuilderOracle.BuildExecute should be of the form "BuildExecute ..." (golint)
    • gorose/v2/orm.go
    • Line 8: warning: comment on exported type Orm should be of the form "Orm ..." (with optional leading article) (golint)
    • Line 29: warning: exported function NewOrmBuilder should have comment or be unexported (golint)
    • Line 85: warning: comment on exported method Orm.Table should be of the form "Table ..." (golint)
    • Line 178: warning: comment on exported method Orm.OrWhere should be of the form "OrWhere ..." (golint)
    • Line 329: warning: comment on exported method Orm.BuildSql should be of the form "BuildSql ..." (golint)
    • Line 397: warning: comment on exported method Orm.LockForUpdate should be of the form "LockForUpdate ..." (golint)
    • gorose/v2/orm_query.go
    • Line 164: warning: don't use underscores in Go names; method Pluck_bak should be PluckBak (golint)
    • Line 234: warning: comment on exported method Orm.Value should be of the form "Value ..." (golint)
    • Line 244: warning: don't use underscores in Go names; method Value_bak should be ValueBak (golint)
    • gorose/v2/session.go
    • Line 44: warning: exported method Session.Close should have comment or be unexported (golint)
    • Line 54: warning: comment on exported method Session.SetIEngin should be of the form "SetIEngin ..." (golint)
    • Line 69: warning: comment on exported method Session.GetErr should be of the form "GetErr ..." (golint)
    • Line 74: warning: comment on exported method Session.SetIBinder should be of the form "SetIBinder ..." (golint)
    • Line 79: warning: comment on exported method Session.GetIBinder should be of the form "GetIBinder ..." (golint)
    • Line 84: warning: comment on exported method Session.ResetBinderResult should be of the form "ResetBinderResult ..." (golint)
    • Line 346: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gorose/v2/builder_postgres.go
    • Line 43: warning: comment on exported method BuilderPostgres.BuildExecute should be of the form "BuildExecute ..." (golint)
    • Line 48: warning: exported method BuilderPostgres.AddFieldQuotes 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!