Preparing report...

Report for github.com/mojo-zd/orm-packaging

B    Not bad!    Found 10 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!


golint0%

Golint is a linter for Go source code.

    • orm-packaging/pagination/pagination.go
    • Line 3: warning: exported type Pagination should have comment or be unexported (golint)
    • Line 11: warning: exported method Pagination.Offset should have comment or be unexported (golint)
    • Line 19: warning: exported method Pagination.SetTotal should have comment or be unexported (golint)
    • orm-packaging/gorm/database/database.go
    • Line 14: warning: exported var DefaultPort should have comment or be unexported (golint)
    • Line 34: warning: exported type Database should have comment or be unexported (golint)
    • Line 43: warning: exported function OpenConnection should have comment or be unexported (golint)
    • Line 76: warning: exported function Connection should have comment or be unexported (golint)
    • orm-packaging/pkg/loader.go
    • Line 13: warning: exported var SingleLoader should have comment or be unexported (golint)
    • Line 17: warning: exported type Loader should have comment or be unexported (golint)
    • Line 39: warning: exported method Loader.GetInt64 should have comment or be unexported (golint)
    • Line 49: warning: exported function GetVariable should have comment or be unexported (golint)
    • Line 57: warning: exported function IsEmpty should have comment or be unexported (golint)
    • orm-packaging/beego/services/concrete.go
    • Line 9: warning: exported type ConcreteService should have comment or be unexported (golint)
    • Line 62: warning: comment on exported method ConcreteService.InsertOrUpdate should be of the form "InsertOrUpdate ..." (golint)
    • Line 68: warning: comment on exported method ConcreteService.Delete should be of the form "Delete ..." (golint)
    • Line 74: warning: comment on exported method ConcreteService.Count should be of the form "Count ..." (golint)
    • Line 84: warning: comment on exported method ConcreteService.Exist should be of the form "Exist ..." (golint)
    • orm-packaging/xorm/database/database.go
    • Line 13: warning: exported var OrmEngine should have comment or be unexported (golint)
    • Line 19: warning: exported var DEFAULT_USER should have comment or be unexported (golint)
    • Line 32: warning: exported type DatabaseInfo should have comment or be unexported (golint)
    • Line 48: warning: exported method DatabaseInfo.Builder should have comment or be unexported (golint)
    • Line 53: warning: exported function NewDatabaseInfo should have comment or be unexported (golint)
    • Line 57: warning: exported function NewOrmEngine should have comment or be unexported (golint)
    • orm-packaging/xorm/services/concrete.go
    • Line 10: warning: exported type ConcreteService should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method ConcreteService.Insert should be of the form "Insert ..." (golint)
    • Line 24: warning: exported method ConcreteService.Update should have comment or be unexported (golint)
    • Line 29: warning: comment on exported method ConcreteService.UpdateWithMap should be of the form "UpdateWithMap ..." (golint)
    • Line 41: warning: comment on exported method ConcreteService.Delete should be of the form "Delete ..." (golint)
    • orm-packaging/tool/reflect.go
    • Line 8: warning: exported function NewInstanceSetValue should have comment or be unexported (golint)
    • Line 35: warning: exported function SetValue should have comment or be unexported (golint)
    • Line 64: warning: exported function GetType should have comment or be unexported (golint)
    • Line 73: warning: exported function GetValue should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign22%

IneffAssign detects ineffectual assignments in Go code.

    • orm-packaging/gorm/database/database.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/orm-packaging/pkg (invalid package name: "") (ineffassign)
    • orm-packaging/gorm/service/concreate.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/orm-packaging/gorm/database (invalid package name: "") (ineffassign)
    • orm-packaging/xorm/services/concrete.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/go-xorm/builder (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/orm-packaging/xorm/database (invalid package name: "") (ineffassign)
    • orm-packaging/beego/services/concrete.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/astaxie/beego/orm (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/orm-packaging/pagination (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/orm-packaging/tool (invalid package name: "") (ineffassign)
    • orm-packaging/beego/database/database.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/astaxie/beego/orm (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/orm-packaging/pkg (invalid package name: "") (ineffassign)
    • orm-packaging/xorm/database/database.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/go-xorm/core (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/go-xorm/xorm (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/orm-packaging/pkg (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!