Preparing report...

Report for github.com/limoli/dbshift

A+    Excellent!    Found 6 issues across 22 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!


golint72%

Golint is a linter for Go source code.

    • dbshift/lib/mysql/model.go
    • Line 8: warning: exported type Migration should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Migration.GetId should be of the form "GetId ..." (golint)
    • Line 20: warning: comment on exported method Migration.GetUuid should be of the form "GetUuid ..." (golint)
    • Line 23: warning: comment on exported method Migration.GetScript should be of the form "GetScript ..." (golint)
    • Line 26: warning: comment on exported method Migration.GetDescription should be of the form "GetDescription ..." (golint)
    • Line 29: warning: comment on exported method Migration.GetType should be of the form "GetType ..." (golint)
    • Line 32: warning: comment on exported method Migration.GetCreatedAt should be of the form "GetCreatedAt ..." (golint)
    • Line 35: warning: comment on exported method Migration.TableName should be of the form "TableName ..." (golint)
    • Line 40: warning: exported type MigrationHistory should have comment or be unexported (golint)
    • Line 48: warning: exported method MigrationHistory.TableName should have comment or be unexported (golint)
    • dbshift/lib/mysql/mysql.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: exported type Db should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method Db.GetExtension should be of the form "GetExtension ..." (golint)
    • Line 38: warning: comment on exported method Db.GetTransaction should be of the form "GetTransaction ..." (golint)
    • Line 43: warning: exported type TxWrapper should have comment or be unexported (golint)
    • dbshift/lib/config.go
    • Line 7: warning: exported type IDbConfig should have comment or be unexported (golint)
    • Line 15: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 19: warning: exported type Db should have comment or be unexported (golint)
    • Line 25: warning: exported type MigrationPath should have comment or be unexported (golint)
    • Line 30: warning: exported type Connection should have comment or be unexported (golint)
    • Line 38: warning: exported type ConnectionType should have comment or be unexported (golint)
    • Line 43: warning: comment on exported method Connection.GetName should be of the form "GetName ..." (golint)
    • Line 52: warning: comment on exported method Connection.GetUser should be of the form "GetUser ..." (golint)
    • Line 61: warning: comment on exported method Connection.GetPassword should be of the form "GetPassword ..." (golint)
    • Line 70: warning: comment on exported method Connection.GetHost should be of the form "GetHost ..." (golint)
    • Line 79: warning: comment on exported method Connection.GetPort should be of the form "GetPort ..." (golint)
    • dbshift/lib/db.go
    • Line 8: warning: exported const DatabaseTypeMySQL should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported var AvailableDatabases should have comment or be unexported (golint)
    • Line 15: warning: exported type DatabaseType should have comment or be unexported (golint)
    • Line 17: warning: exported type IDb should have comment or be unexported (golint)
    • Line 25: warning: exported type IDbAction should have comment or be unexported (golint)
    • Line 34: warning: exported type IDbCheck should have comment or be unexported (golint)
    • Line 41: warning: exported type IDbConnection should have comment or be unexported (golint)
    • Line 45: warning: exported type IDbImport should have comment or be unexported (golint)
    • Line 49: warning: exported type IDbScript should have comment or be unexported (golint)
    • Line 53: warning: exported type IDbTransaction should have comment or be unexported (golint)
    • Line 58: warning: exported type IMigration should have comment or be unexported (golint)
    • dbshift/lib/model.go
    • Line 6: warning: exported const Downgrade should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type MigrationType should have comment or be unexported (golint)
    • Line 24: warning: exported type SystemMigration should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method SystemMigration.GetId should be of the form "GetId ..." (golint)
    • Line 36: warning: comment on exported method SystemMigration.GetUuid should be of the form "GetUuid ..." (golint)
    • Line 39: warning: comment on exported method SystemMigration.GetScript should be of the form "GetScript ..." (golint)
    • Line 42: warning: comment on exported method SystemMigration.GetDescription should be of the form "GetDescription ..." (golint)
    • Line 45: warning: comment on exported method SystemMigration.GetType should be of the form "GetType ..." (golint)
    • Line 48: warning: comment on exported method SystemMigration.GetCreatedAt should be of the form "GetCreatedAt ..." (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!