Preparing report...

Report for github.com/Hexilee/rorm

A    Great!    Found 7 issues across 10 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!


golint40%

Golint is a linter for Go source code.

    • rorm/gorm.go
    • Line 8: warning: exported type Model should have comment or be unexported (golint)
    • rorm/mysql/gorm_mysql.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported type GormMySQLConfig should have comment or be unexported (golint)
    • Line 19: warning: exported type GormMySQLParameter should have comment or be unexported (golint)
    • Line 31: warning: exported type GormMySQL should have comment or be unexported (golint)
    • Line 37: warning: exported method GormMySQLConfig.GetAutoMigrateMySQLDB should have comment or be unexported (golint)
    • rorm/sqlite3/gorm_sqlite3.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 13: warning: exported type GormSQLiteConfig should have comment or be unexported (golint)
    • Line 18: warning: exported type GormSQLiteParameter should have comment or be unexported (golint)
    • Line 23: warning: exported type GormSQLite should have comment or be unexported (golint)
    • Line 29: warning: exported method GormSQLiteConfig.GetAutoMigrateSQLiteDB should have comment or be unexported (golint)
    • rorm/mssql/gorm_sqlserver.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported type GormSQLServerConfig should have comment or be unexported (golint)
    • Line 19: warning: exported type GormSQLServerParameter should have comment or be unexported (golint)
    • Line 28: warning: exported type GormSQLServer should have comment or be unexported (golint)
    • Line 34: warning: exported method GormSQLServerConfig.GetAutoMigrateSQLServerDB should have comment or be unexported (golint)
    • rorm/postgres/gorm_postgres.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported type GormPostgresConfig should have comment or be unexported (golint)
    • Line 19: warning: exported type GormPostgresParameter should have comment or be unexported (golint)
    • Line 29: warning: exported type GormPostgres should have comment or be unexported (golint)
    • Line 35: warning: exported method GormPostgresConfig.GetAutoMigratePostgresDB should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign30%

IneffAssign detects ineffectual assignments in Go code.

    • rorm/mssql/gorm_sqlserver.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: 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/Hexilee/rady (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/Hexilee/rorm/utils (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/jinzhu/gorm/dialects/mssql (invalid package name: "") (ineffassign)
    • rorm/mysql/gorm_mysql.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: 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/Hexilee/rady (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/Hexilee/rorm/utils (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/jinzhu/gorm/dialects/mysql (invalid package name: "") (ineffassign)
    • rorm/postgres/gorm_postgres.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: 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/Hexilee/rady (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/Hexilee/rorm/utils (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/jinzhu/gorm/dialects/postgres (invalid package name: "") (ineffassign)
    • rorm/utils/gorm_utils.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/Hexilee/rady (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • rorm/gorm.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • rorm/auto_rollback_test.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/Hexilee/rady (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/Hexilee/rorm/sqlite3 (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • rorm/sqlite3/gorm_sqlite3.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 7: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/Hexilee/rady (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/Hexilee/rorm/utils (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/jinzhu/gorm (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/jinzhu/gorm/dialects/sqlite (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!