Preparing report...

Report for github.com/nafhul/migrate

A+    Excellent!    Found 38 issues across 121 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!


gocyclo95%

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.

    • migrate/migrate.go
    • Line 402: warning: cyclomatic complexity 26 of function (*Migrate).read() is high (> 15) (gocyclo)
    • Line 634: warning: cyclomatic complexity 21 of function (*Migrate).readDown() is high (> 15) (gocyclo)
    • Line 534: warning: cyclomatic complexity 21 of function (*Migrate).readUp() is high (> 15) (gocyclo)

golint70%

Golint is a linter for Go source code.

    • migrate/migrate.go
    • Line 32: warning: exported var ErrNoChange should have comment or be unexported (golint)
    • Line 50: warning: exported type ErrDirty should have comment or be unexported (golint)
    • Line 58: warning: exported type Migrate should have comment or be unexported (golint)
    • migrate/database/testing/testing.go
    • Line 31: warning: exported function TestNilVersion should have comment or be unexported (golint)
    • Line 41: warning: exported function TestLockAndUnlock should have comment or be unexported (golint)
    • Line 102: warning: exported function TestRun should have comment or be unexported (golint)
    • Line 112: warning: exported function TestDrop should have comment or be unexported (golint)
    • Line 118: warning: exported function TestSetVersion should have comment or be unexported (golint)
    • migrate/database/sqlite3/sqlite3.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 22: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 24: warning: exported var ErrDatabaseDirty should have comment or be unexported (golint)
    • Line 29: warning: exported type Config should have comment or be unexported (golint)
    • Line 35: warning: exported type Sqlite should have comment or be unexported (golint)
    • Line 42: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 94: warning: exported method Sqlite.Open should have comment or be unexported (golint)
    • Line 131: warning: exported method Sqlite.Close should have comment or be unexported (golint)
    • Line 135: warning: exported method Sqlite.Drop should have comment or be unexported (golint)
    • Line 179: warning: exported method Sqlite.Lock should have comment or be unexported (golint)
    • Line 187: warning: exported method Sqlite.Unlock should have comment or be unexported (golint)
    • Line 195: warning: exported method Sqlite.Run should have comment or be unexported (golint)
    • Line 232: warning: exported method Sqlite.SetVersion should have comment or be unexported (golint)
    • Line 263: warning: exported method Sqlite.Version should have comment or be unexported (golint)
    • migrate/database/cockroachdb/cockroachdb.go
    • Line 32: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 33: warning: exported var DefaultLockTable should have comment or be unexported (golint)
    • Line 36: warning: exported var ErrNilConfig should have comment or be unexported (golint)
    • Line 40: warning: exported type Config should have comment or be unexported (golint)
    • Line 47: warning: exported type CockroachDb should have comment or be unexported (golint)
    • Line 55: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 103: warning: exported method CockroachDb.Open should have comment or be unexported (golint)
    • Line 148: warning: exported method CockroachDb.Close should have comment or be unexported (golint)
    • Line 152: warning: comment on exported method CockroachDb.Lock should be of the form "Lock ..." (golint)
    • Line 188: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 194: warning: comment on exported method CockroachDb.Unlock should be of the form "Unlock ..." (golint)
    • Line 222: warning: exported method CockroachDb.Run should have comment or be unexported (golint)
    • Line 237: warning: exported method CockroachDb.SetVersion should have comment or be unexported (golint)
    • Line 256: warning: exported method CockroachDb.Version should have comment or be unexported (golint)
    • Line 279: warning: exported method CockroachDb.Drop should have comment or be unexported (golint)
    • migrate/source/gitlab/gitlab.go
    • Line 24: warning: exported const DefaultMaxItemsPerPage should have comment or be unexported (golint)
    • Line 27: warning: exported var ErrNoUserInfo should have comment or be unexported (golint)
    • Line 34: warning: exported type Gitlab should have comment or be unexported (golint)
    • Line 45: warning: exported type Config should have comment or be unexported (golint)
    • Line 48: warning: exported method Gitlab.Open should have comment or be unexported (golint)
    • Line 109: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 170: warning: exported method Gitlab.Close should have comment or be unexported (golint)
    • Line 174: warning: exported method Gitlab.First should have comment or be unexported (golint)
    • Line 177: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 182: warning: exported method Gitlab.Prev should have comment or be unexported (golint)
    • Line 185: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 190: warning: exported method Gitlab.Next should have comment or be unexported (golint)
    • Line 193: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 198: warning: exported method Gitlab.ReadUp should have comment or be unexported (golint)
    • Line 220: warning: exported method Gitlab.ReadDown should have comment or be unexported (golint)
    • migrate/source/github_ee/github_ee.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 20: warning: exported type GithubEE should have comment or be unexported (golint)
    • Line 24: warning: exported method GithubEE.Open should have comment or be unexported (golint)
    • migrate/database/redshift/redshift.go
    • Line 26: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 29: warning: exported var ErrNilConfig should have comment or be unexported (golint)
    • Line 33: warning: exported type Config should have comment or be unexported (golint)
    • Line 38: warning: exported type Redshift should have comment or be unexported (golint)
    • Line 47: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 93: warning: exported method Redshift.Open should have comment or be unexported (golint)
    • Line 118: warning: exported method Redshift.Close should have comment or be unexported (golint)
    • Line 127: warning: comment on exported method Redshift.Lock should be of the form "Lock ..." (golint)
    • Line 136: warning: exported method Redshift.Unlock should have comment or be unexported (golint)
    • Line 141: warning: exported method Redshift.Run should have comment or be unexported (golint)
    • Line 209: warning: exported method Redshift.SetVersion should have comment or be unexported (golint)
    • Line 243: warning: exported method Redshift.Version should have comment or be unexported (golint)
    • Line 263: warning: exported method Redshift.Drop should have comment or be unexported (golint)
    • migrate/database/clickhouse/clickhouse.go
    • Line 22: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 28: warning: exported type Config should have comment or be unexported (golint)
    • Line 39: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 60: warning: exported type ClickHouse should have comment or be unexported (golint)
    • Line 65: warning: exported method ClickHouse.Open should have comment or be unexported (golint)
    • Line 120: warning: exported method ClickHouse.Run should have comment or be unexported (golint)
    • Line 150: warning: exported method ClickHouse.Version should have comment or be unexported (golint)
    • Line 165: warning: exported method ClickHouse.SetVersion should have comment or be unexported (golint)
    • Line 231: warning: exported method ClickHouse.Drop should have comment or be unexported (golint)
    • Line 263: warning: exported method ClickHouse.Lock should have comment or be unexported (golint)
    • Line 264: warning: exported method ClickHouse.Unlock should have comment or be unexported (golint)
    • Line 265: warning: exported method ClickHouse.Close should have comment or be unexported (golint)
    • migrate/source/bitbucket/bitbucket.go
    • Line 22: warning: exported var ErrNoUserInfo should have comment or be unexported (golint)
    • Line 29: warning: exported type Bitbucket should have comment or be unexported (golint)
    • Line 35: warning: exported type Config should have comment or be unexported (golint)
    • Line 42: warning: exported method Bitbucket.Open should have comment or be unexported (golint)
    • Line 80: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 130: warning: exported method Bitbucket.Close should have comment or be unexported (golint)
    • Line 134: warning: exported method Bitbucket.First should have comment or be unexported (golint)
    • Line 139: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 144: warning: exported method Bitbucket.Prev should have comment or be unexported (golint)
    • Line 149: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 154: warning: exported method Bitbucket.Next should have comment or be unexported (golint)
    • Line 159: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 164: warning: exported method Bitbucket.ReadUp should have comment or be unexported (golint)
    • Line 186: warning: exported method Bitbucket.ReadDown should have comment or be unexported (golint)
    • migrate/source/parse.go
    • Line 10: warning: exported var ErrParse should have comment or be unexported (golint)
    • Line 14: warning: exported var DefaultParse should have comment or be unexported (golint)
    • migrate/database/sqlcipher/sqlcipher.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 22: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 24: warning: exported var ErrDatabaseDirty should have comment or be unexported (golint)
    • Line 29: warning: exported type Config should have comment or be unexported (golint)
    • Line 35: warning: exported type Sqlite should have comment or be unexported (golint)
    • Line 42: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 94: warning: exported method Sqlite.Open should have comment or be unexported (golint)
    • Line 131: warning: exported method Sqlite.Close should have comment or be unexported (golint)
    • Line 135: warning: exported method Sqlite.Drop should have comment or be unexported (golint)
    • Line 179: warning: exported method Sqlite.Lock should have comment or be unexported (golint)
    • Line 187: warning: exported method Sqlite.Unlock should have comment or be unexported (golint)
    • Line 195: warning: exported method Sqlite.Run should have comment or be unexported (golint)
    • Line 232: warning: exported method Sqlite.SetVersion should have comment or be unexported (golint)
    • Line 263: warning: exported method Sqlite.Version should have comment or be unexported (golint)
    • migrate/source/aws_s3/s3.go
    • Line 28: warning: exported type Config should have comment or be unexported (golint)
    • Line 47: warning: exported function WithInstance should have comment or be unexported (golint)
    • migrate/database/mysql/mysql.go
    • Line 31: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 34: warning: exported var ErrDatabaseDirty should have comment or be unexported (golint)
    • Line 41: warning: exported type Config should have comment or be unexported (golint)
    • Line 47: warning: exported type Mysql should have comment or be unexported (golint)
    • Line 57: warning: comment on exported function WithInstance should be of the form "WithInstance ..." (golint)
    • Line 208: warning: exported method Mysql.Open should have comment or be unexported (golint)
    • Line 244: warning: exported method Mysql.Close should have comment or be unexported (golint)
    • Line 253: warning: exported method Mysql.Lock should have comment or be unexported (golint)
    • Line 283: warning: exported method Mysql.Unlock should have comment or be unexported (golint)
    • Line 312: warning: exported method Mysql.Run should have comment or be unexported (golint)
    • Line 326: warning: exported method Mysql.SetVersion should have comment or be unexported (golint)
    • Line 360: warning: exported method Mysql.Version should have comment or be unexported (golint)
    • Line 380: warning: exported method Mysql.Drop should have comment or be unexported (golint)
    • migrate/testing/testing.go
    • Line 13: warning: exported type IsReadyFunc should have comment or be unexported (golint)
    • Line 15: warning: exported type TestFunc should have comment or be unexported (golint)
    • Line 17: warning: exported type Version should have comment or be unexported (golint)
    • Line 23: warning: exported function ParallelTest should have comment or be unexported (golint)
    • Line 97: warning: exported type Instance should have comment or be unexported (golint)
    • migrate/database/driver.go
    • Line 16: warning: exported var ErrLocked should have comment or be unexported (golint)
    • Line 20: warning: exported const NilVersion should have comment or be unexported (golint)
    • migrate/database/postgres/postgres.go
    • Line 32: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 37: warning: exported var ErrNilConfig should have comment or be unexported (golint)
    • Line 43: warning: exported type Config should have comment or be unexported (golint)
    • Line 52: warning: exported type Postgres should have comment or be unexported (golint)
    • Line 62: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 122: warning: exported method Postgres.Open should have comment or be unexported (golint)
    • Line 177: warning: exported method Postgres.Close should have comment or be unexported (golint)
    • Line 186: warning: comment on exported method Postgres.Lock should be of the form "Lock ..." (golint)
    • Line 207: warning: exported method Postgres.Unlock should have comment or be unexported (golint)
    • Line 225: warning: exported method Postgres.Run should have comment or be unexported (golint)
    • Line 315: warning: exported method Postgres.SetVersion should have comment or be unexported (golint)
    • Line 350: warning: exported method Postgres.Version should have comment or be unexported (golint)
    • Line 370: warning: exported method Postgres.Drop should have comment or be unexported (golint)
    • migrate/database/firebird/firebird.go
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 27: warning: exported var ErrNilConfig should have comment or be unexported (golint)
    • Line 30: warning: exported type Config should have comment or be unexported (golint)
    • Line 35: warning: exported type Firebird should have comment or be unexported (golint)
    • Line 45: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 76: warning: exported method Firebird.Open should have comment or be unexported (golint)
    • Line 99: warning: exported method Firebird.Close should have comment or be unexported (golint)
    • Line 108: warning: exported method Firebird.Lock should have comment or be unexported (golint)
    • Line 116: warning: exported method Firebird.Unlock should have comment or be unexported (golint)
    • Line 121: warning: exported method Firebird.Run should have comment or be unexported (golint)
    • Line 136: warning: exported method Firebird.SetVersion should have comment or be unexported (golint)
    • Line 157: warning: exported method Firebird.Version should have comment or be unexported (golint)
    • Line 172: warning: exported method Firebird.Drop should have comment or be unexported (golint)
    • migrate/source/testing/testing.go
    • Line 30: warning: exported function TestFirst should have comment or be unexported (golint)
    • Line 40: warning: exported function TestPrev should have comment or be unexported (golint)
    • Line 69: warning: exported function TestNext should have comment or be unexported (golint)
    • Line 98: warning: exported function TestReadUp should have comment or be unexported (golint)
    • Line 140: warning: exported function TestReadDown should have comment or be unexported (golint)
    • migrate/database/snowflake/snowflake.go
    • Line 24: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 27: warning: exported var ErrNilConfig should have comment or be unexported (golint)
    • Line 34: warning: exported type Config should have comment or be unexported (golint)
    • Line 39: warning: exported type Snowflake should have comment or be unexported (golint)
    • Line 48: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 94: warning: exported method Snowflake.Open should have comment or be unexported (golint)
    • Line 151: warning: exported method Snowflake.Close should have comment or be unexported (golint)
    • Line 160: warning: exported method Snowflake.Lock should have comment or be unexported (golint)
    • Line 168: warning: exported method Snowflake.Unlock should have comment or be unexported (golint)
    • Line 173: warning: exported method Snowflake.Run should have comment or be unexported (golint)
    • Line 241: warning: exported method Snowflake.SetVersion should have comment or be unexported (golint)
    • Line 277: warning: exported method Snowflake.Version should have comment or be unexported (golint)
    • Line 297: warning: exported method Snowflake.Drop should have comment or be unexported (golint)
    • migrate/source/migration.go
    • Line 11: warning: exported const Down should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported function NewMigrations should have comment or be unexported (golint)
    • Line 48: warning: exported method Migrations.Append should have comment or be unexported (golint)
    • Line 76: warning: exported method Migrations.First should have comment or be unexported (golint)
    • Line 83: warning: exported method Migrations.Prev should have comment or be unexported (golint)
    • Line 91: warning: exported method Migrations.Next should have comment or be unexported (golint)
    • Line 99: warning: exported method Migrations.Up should have comment or be unexported (golint)
    • Line 108: warning: exported method Migrations.Down should have comment or be unexported (golint)
    • migrate/database/ql/ql.go
    • Line 15: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 22: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 24: warning: exported var ErrDatabaseDirty should have comment or be unexported (golint)
    • Line 30: warning: exported type Config should have comment or be unexported (golint)
    • Line 35: warning: exported type Ql should have comment or be unexported (golint)
    • Line 42: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 102: warning: exported method Ql.Open should have comment or be unexported (golint)
    • Line 125: warning: exported method Ql.Close should have comment or be unexported (golint)
    • Line 128: warning: exported method Ql.Drop should have comment or be unexported (golint)
    • Line 168: warning: exported method Ql.Lock should have comment or be unexported (golint)
    • Line 175: warning: exported method Ql.Unlock should have comment or be unexported (golint)
    • Line 182: warning: exported method Ql.Run should have comment or be unexported (golint)
    • Line 207: warning: exported method Ql.SetVersion should have comment or be unexported (golint)
    • Line 239: warning: exported method Ql.Version should have comment or be unexported (golint)
    • migrate/database/stub/stub.go
    • Line 15: warning: exported type Stub should have comment or be unexported (golint)
    • Line 27: warning: exported method Stub.Open should have comment or be unexported (golint)
    • Line 36: warning: exported type Config should have comment or be unexported (golint)
    • Line 38: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 47: warning: exported method Stub.Close should have comment or be unexported (golint)
    • Line 51: warning: exported method Stub.Lock should have comment or be unexported (golint)
    • Line 59: warning: exported method Stub.Unlock should have comment or be unexported (golint)
    • Line 64: warning: exported method Stub.Run should have comment or be unexported (golint)
    • Line 74: warning: exported method Stub.SetVersion should have comment or be unexported (golint)
    • Line 80: warning: exported method Stub.Version should have comment or be unexported (golint)
    • Line 84: warning: exported const DROP should have comment or be unexported (golint)
    • Line 86: warning: exported method Stub.Drop should have comment or be unexported (golint)
    • Line 93: warning: exported method Stub.EqualSequence should have comment or be unexported (golint)
    • migrate/database/neo4j/neo4j.go
    • Line 23: warning: exported const DefaultMigrationsLabel should have comment or be unexported (golint)
    • Line 26: warning: exported var StatementSeparator should have comment or be unexported (golint)
    • Line 31: warning: exported var ErrNilConfig should have comment or be unexported (golint)
    • Line 34: warning: exported type Config should have comment or be unexported (golint)
    • Line 40: warning: exported type Neo4j should have comment or be unexported (golint)
    • Line 48: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 65: warning: exported method Neo4j.Open should have comment or be unexported (golint)
    • Line 118: warning: exported method Neo4j.Close should have comment or be unexported (golint)
    • Line 122: warning: comment on exported method Neo4j.Lock should be of the form "Lock ..." (golint)
    • Line 131: warning: exported method Neo4j.Unlock should have comment or be unexported (golint)
    • Line 138: warning: exported method Neo4j.Run should have comment or be unexported (golint)
    • Line 185: warning: exported method Neo4j.SetVersion should have comment or be unexported (golint)
    • Line 205: warning: exported type MigrationRecord should have comment or be unexported (golint)
    • Line 210: warning: exported method Neo4j.Version should have comment or be unexported (golint)
    • Line 258: warning: exported method Neo4j.Drop should have comment or be unexported (golint)
    • migrate/database/cassandra/cassandra.go
    • Line 27: warning: exported var DefaultMultiStatementMaxSize should have comment or be unexported (golint)
    • Line 30: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 33: warning: exported var ErrNilConfig should have comment or be unexported (golint)
    • Line 39: warning: exported type Config should have comment or be unexported (golint)
    • Line 46: warning: exported type Cassandra should have comment or be unexported (golint)
    • Line 54: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 85: warning: exported method Cassandra.Open should have comment or be unexported (golint)
    • Line 179: warning: exported method Cassandra.Close should have comment or be unexported (golint)
    • Line 184: warning: exported method Cassandra.Lock should have comment or be unexported (golint)
    • Line 192: warning: exported method Cassandra.Unlock should have comment or be unexported (golint)
    • Line 197: warning: exported method Cassandra.Run should have comment or be unexported (golint)
    • Line 228: warning: exported method Cassandra.SetVersion should have comment or be unexported (golint)
    • Line 247: warning: comment on exported method Cassandra.Version should be of the form "Version ..." (golint)
    • Line 266: warning: exported method Cassandra.Drop should have comment or be unexported (golint)
    • migrate/database/mongodb/mongodb.go
    • Line 27: warning: exported var DefaultMigrationsCollection should have comment or be unexported (golint)
    • Line 29: warning: exported const DefaultLockingCollection should have comment or be unexported (golint)
    • Line 31: warning: exported const DefaultLockTimeout should have comment or be unexported (golint)
    • Line 32: warning: exported const DefaultLockTimeoutInterval should have comment or be unexported (golint)
    • Line 33: warning: exported const DefaultAdvisoryLockingFlag should have comment or be unexported (golint)
    • Line 34: warning: exported const LockIndexName should have comment or be unexported (golint)
    • Line 38: warning: exported var ErrNoDatabaseName should have comment or be unexported (golint)
    • Line 42: warning: exported type Mongo should have comment or be unexported (golint)
    • Line 48: warning: exported type Locking should have comment or be unexported (golint)
    • Line 54: warning: exported type Config should have comment or be unexported (golint)
    • Line 75: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 113: warning: exported method Mongo.Open should have comment or be unexported (golint)
    • Line 200: warning: exported method Mongo.SetVersion should have comment or be unexported (golint)
    • Line 212: warning: exported method Mongo.Version should have comment or be unexported (golint)
    • Line 225: warning: exported method Mongo.Run should have comment or be unexported (golint)
    • Line 278: warning: exported method Mongo.Close should have comment or be unexported (golint)
    • Line 282: warning: exported method Mongo.Drop should have comment or be unexported (golint)
    • Line 327: warning: comment on exported method Mongo.Lock should be of the form "Lock ..." (golint)
    • Line 364: warning: exported method Mongo.Unlock should have comment or be unexported (golint)
    • migrate/source/stub/stub.go
    • Line 17: warning: exported type Config should have comment or be unexported (golint)
    • Line 22: warning: exported type Stub should have comment or be unexported (golint)
    • Line 29: warning: exported method Stub.Open should have comment or be unexported (golint)
    • Line 37: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 45: warning: exported method Stub.Close should have comment or be unexported (golint)
    • Line 49: warning: exported method Stub.First should have comment or be unexported (golint)
    • Line 52: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 57: warning: exported method Stub.Prev should have comment or be unexported (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 65: warning: exported method Stub.Next should have comment or be unexported (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 73: warning: exported method Stub.ReadUp should have comment or be unexported (golint)
    • Line 80: warning: exported method Stub.ReadDown should have comment or be unexported (golint)
    • migrate/database/pgx/pgx.go
    • Line 19: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 33: warning: exported var DefaultMigrationsTable should have comment or be unexported (golint)
    • Line 38: warning: exported var ErrNilConfig should have comment or be unexported (golint)
    • Line 44: warning: exported type Config should have comment or be unexported (golint)
    • Line 53: warning: exported type Postgres should have comment or be unexported (golint)
    • Line 63: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 123: warning: exported method Postgres.Open should have comment or be unexported (golint)
    • Line 183: warning: exported method Postgres.Close should have comment or be unexported (golint)
    • Line 192: warning: comment on exported method Postgres.Lock should be of the form "Lock ..." (golint)
    • Line 213: warning: exported method Postgres.Unlock should have comment or be unexported (golint)
    • Line 231: warning: exported method Postgres.Run should have comment or be unexported (golint)
    • Line 318: warning: exported method Postgres.SetVersion should have comment or be unexported (golint)
    • Line 353: warning: exported method Postgres.Version should have comment or be unexported (golint)
    • Line 373: warning: exported method Postgres.Drop should have comment or be unexported (golint)
    • migrate/source/github/github.go
    • Line 25: warning: exported var ErrNoUserInfo should have comment or be unexported (golint)
    • Line 32: warning: exported type Github should have comment or be unexported (golint)
    • Line 39: warning: exported type Config should have comment or be unexported (golint)
    • Line 46: warning: exported method Github.Open should have comment or be unexported (golint)
    • Line 93: warning: exported function WithInstance should have comment or be unexported (golint)
    • Line 145: warning: exported method Github.Close should have comment or be unexported (golint)
    • Line 149: warning: exported method Github.First should have comment or be unexported (golint)
    • Line 154: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 159: warning: exported method Github.Prev should have comment or be unexported (golint)
    • Line 164: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 169: warning: exported method Github.Next should have comment or be unexported (golint)
    • Line 174: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 179: warning: exported method Github.ReadUp should have comment or be unexported (golint)
    • Line 205: warning: exported method Github.ReadDown should have comment or be unexported (golint)
    • migrate/testing/docker.go
    • Line 25: warning: exported function NewDockerContainer should have comment or be unexported (golint)
    • Line 71: warning: exported method DockerContainer.PullImage should have comment or be unexported (golint)
    • Line 100: warning: exported method DockerContainer.Start should have comment or be unexported (golint)
    • Line 139: warning: exported method DockerContainer.KeepForDebugging should have comment or be unexported (golint)
    • Line 147: warning: exported method DockerContainer.Remove should have comment or be unexported (golint)
    • Line 170: warning: exported method DockerContainer.Inspect should have comment or be unexported (golint)
    • Line 188: warning: exported method DockerContainer.Logs should have comment or be unexported (golint)
    • Line 227: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 232: warning: exported method DockerContainer.Host should have comment or be unexported (golint)
    • Line 243: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 248: warning: exported method DockerContainer.Port should have comment or be unexported (golint)
    • Line 259: warning: exported method DockerContainer.PortFor should have comment or be unexported (golint)
    • Line 270: warning: exported method DockerContainer.NetworkSettings should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!