Preparing report...

Report for github.com/gobuffalo/fizz

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


gocyclo94%

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.

    • fizz/tables.go
    • Line 31: warning: cyclomatic complexity 17 of function (Table).Fizz() is high (> 15) (gocyclo)

golint71%

Golint is a linter for Go source code.

    • fizz/tables.go
    • Line 99: warning: exported method Table.DisableTimestamps should have comment or be unexported (golint)
    • fizz/translators/schema.go
    • Line 10: warning: exported type SchemaQuery should have comment or be unexported (golint)
    • Line 22: warning: exported type Schema should have comment or be unexported (golint)
    • Line 29: warning: exported function CreateSchema should have comment or be unexported (golint)
    • Line 37: warning: exported method Schema.ReplaceSchema should have comment or be unexported (golint)
    • Line 41: warning: exported method Schema.Build should have comment or be unexported (golint)
    • Line 45: warning: exported method Schema.TableInfo should have comment or be unexported (golint)
    • Line 67: warning: exported method Schema.ReplaceColumn should have comment or be unexported (golint)
    • Line 81: warning: exported method Schema.ColumnInfo should have comment or be unexported (golint)
    • Line 93: warning: exported method Schema.IndexInfo should have comment or be unexported (golint)
    • Line 105: warning: exported method Schema.Delete should have comment or be unexported (golint)
    • Line 109: warning: exported method Schema.SetTable should have comment or be unexported (golint)
    • Line 113: warning: exported method Schema.DeleteColumn should have comment or be unexported (golint)
    • fizz/translators/mysql.go
    • Line 27: warning: exported method MySQL.Name should have comment or be unexported (golint)
    • Line 72: warning: exported method MySQL.DropTable should have comment or be unexported (golint)
    • Line 76: warning: exported method MySQL.RenameTable should have comment or be unexported (golint)
    • Line 83: warning: exported method MySQL.ChangeColumn should have comment or be unexported (golint)
    • Line 92: warning: exported method MySQL.AddColumn should have comment or be unexported (golint)
    • Line 114: warning: exported method MySQL.DropColumn should have comment or be unexported (golint)
    • Line 122: warning: exported method MySQL.RenameColumn should have comment or be unexported (golint)
    • Line 145: warning: exported method MySQL.AddIndex should have comment or be unexported (golint)
    • Line 161: warning: exported method MySQL.DropIndex should have comment or be unexported (golint)
    • Line 169: warning: exported method MySQL.RenameIndex should have comment or be unexported (golint)
    • Line 187: warning: exported method MySQL.AddForeignKey should have comment or be unexported (golint)
    • Line 195: warning: exported method MySQL.DropForeignKey should have comment or be unexported (golint)
    • fizz/translators/postgres.go
    • Line 10: warning: exported type Postgres should have comment or be unexported (golint)
    • Line 13: warning: exported function NewPostgres should have comment or be unexported (golint)
    • Line 17: warning: exported method Postgres.Name should have comment or be unexported (golint)
    • Line 21: warning: exported method Postgres.CreateTable should have comment or be unexported (golint)
    • Line 73: warning: exported method Postgres.DropTable should have comment or be unexported (golint)
    • Line 77: warning: exported method Postgres.RenameTable should have comment or be unexported (golint)
    • Line 84: warning: exported method Postgres.ChangeColumn should have comment or be unexported (golint)
    • Line 93: warning: exported method Postgres.AddColumn should have comment or be unexported (golint)
    • Line 102: warning: exported method Postgres.DropColumn should have comment or be unexported (golint)
    • Line 110: warning: exported method Postgres.RenameColumn should have comment or be unexported (golint)
    • Line 120: warning: exported method Postgres.AddIndex should have comment or be unexported (golint)
    • Line 132: warning: exported method Postgres.DropIndex should have comment or be unexported (golint)
    • Line 140: warning: exported method Postgres.RenameIndex should have comment or be unexported (golint)
    • Line 150: warning: exported method Postgres.AddForeignKey should have comment or be unexported (golint)
    • Line 158: warning: exported method Postgres.DropForeignKey should have comment or be unexported (golint)
    • fizz/translators/sqlite.go
    • Line 10: warning: exported type SQLite should have comment or be unexported (golint)
    • Line 14: warning: exported function NewSQLite should have comment or be unexported (golint)
    • Line 27: warning: exported method SQLite.Name should have comment or be unexported (golint)
    • Line 31: warning: exported method SQLite.CreateTable should have comment or be unexported (golint)
    • Line 82: warning: exported method SQLite.DropTable should have comment or be unexported (golint)
    • Line 88: warning: exported method SQLite.RenameTable should have comment or be unexported (golint)
    • Line 103: warning: exported method SQLite.ChangeColumn should have comment or be unexported (golint)
    • Line 150: warning: exported method SQLite.AddColumn should have comment or be unexported (golint)
    • Line 167: warning: exported method SQLite.DropColumn should have comment or be unexported (golint)
    • Line 224: warning: exported method SQLite.RenameColumn should have comment or be unexported (golint)
    • Line 234: warning: exported method SQLite.AddIndex should have comment or be unexported (golint)
    • Line 252: warning: exported method SQLite.DropIndex should have comment or be unexported (golint)
    • Line 274: warning: exported method SQLite.RenameIndex should have comment or be unexported (golint)
    • Line 322: warning: exported method SQLite.AddForeignKey should have comment or be unexported (golint)
    • Line 326: warning: exported method SQLite.DropForeignKey should have comment or be unexported (golint)
    • fizz/bubbler.go
    • Line 10: warning: exported type BubbleType should have comment or be unexported (golint)
    • Line 12: warning: exported type Bubbler should have comment or be unexported (golint)
    • Line 17: warning: exported function NewBubbler should have comment or be unexported (golint)
    • Line 28: warning: exported method Bubbler.Bubble should have comment or be unexported (golint)
    • fizz/columns.go
    • Line 10: warning: comment on exported var INT_ID_COL should be of the form "INT_ID_COL ..." (golint)
    • Line 18: warning: comment on exported var UUID_ID_COL should be of the form "UUID_ID_COL ..." (golint)
    • Line 26: warning: exported var CREATED_COL should have comment or be unexported (golint)
    • Line 27: warning: exported var UPDATED_COL should have comment or be unexported (golint)
    • Line 29: warning: exported type Column should have comment or be unexported (golint)
    • fizz/foreign_keys.go
    • Line 10: warning: exported type ForeignKeyRef should have comment or be unexported (golint)
    • Line 15: warning: exported type ForeignKey should have comment or be unexported (golint)
    • fizz/translators/cockroach.go
    • Line 10: warning: exported type Cockroach should have comment or be unexported (golint)
    • Line 14: warning: exported function NewCockroach should have comment or be unexported (golint)
    • Line 26: warning: exported method Cockroach.Name should have comment or be unexported (golint)
    • Line 30: warning: exported method Cockroach.CreateTable should have comment or be unexported (golint)
    • Line 81: warning: exported method Cockroach.DropTable should have comment or be unexported (golint)
    • Line 86: warning: exported method Cockroach.RenameTable should have comment or be unexported (golint)
    • Line 101: warning: exported method Cockroach.ChangeColumn should have comment or be unexported (golint)
    • Line 162: warning: exported method Cockroach.AddColumn should have comment or be unexported (golint)
    • Line 188: warning: exported method Cockroach.DropColumn should have comment or be unexported (golint)
    • Line 197: warning: exported method Cockroach.RenameColumn should have comment or be unexported (golint)
    • Line 220: warning: exported method Cockroach.AddIndex should have comment or be unexported (golint)
    • Line 239: warning: exported method Cockroach.DropIndex should have comment or be unexported (golint)
    • Line 261: warning: exported method Cockroach.RenameIndex should have comment or be unexported (golint)
    • Line 283: warning: exported method Cockroach.AddForeignKey should have comment or be unexported (golint)
    • Line 297: warning: exported method Cockroach.DropForeignKey should have comment or be unexported (golint)
    • fizz/translators/mssqlserver.go
    • Line 18: warning: exported method MsSqlServer.Name should have comment or be unexported (golint)
    • Line 22: warning: exported method MsSqlServer.CreateTable should have comment or be unexported (golint)
    • Line 66: warning: exported method MsSqlServer.DropTable should have comment or be unexported (golint)
    • Line 70: warning: exported method MsSqlServer.RenameTable should have comment or be unexported (golint)
    • Line 77: warning: exported method MsSqlServer.ChangeColumn should have comment or be unexported (golint)
    • Line 109: warning: exported method MsSqlServer.AddColumn should have comment or be unexported (golint)
    • Line 126: warning: exported method MsSqlServer.DropColumn should have comment or be unexported (golint)
    • Line 134: warning: exported method MsSqlServer.RenameColumn should have comment or be unexported (golint)
    • Line 144: warning: exported method MsSqlServer.AddIndex should have comment or be unexported (golint)
    • Line 156: warning: exported method MsSqlServer.DropIndex should have comment or be unexported (golint)
    • Line 164: warning: exported method MsSqlServer.RenameIndex should have comment or be unexported (golint)
    • Line 174: warning: exported method MsSqlServer.AddForeignKey should have comment or be unexported (golint)
    • Line 182: warning: exported method MsSqlServer.DropForeignKey should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!