Preparing report...

Report for github.com/g14a/metana

A+    Excellent!    Found 21 issues across 47 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!


gocyclo93%

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.


golint55%

Golint is a linter for Go source code.

    • metana/pkg/utils.go
    • Line 12: warning: exported function GetComponents should have comment or be unexported (golint)
    • Line 24: warning: exported function ExecuteCommand should have comment or be unexported (golint)
    • Line 40: warning: exported type T should have comment or be unexported (golint)
    • Line 45: warning: exported function ExpectLines should have comment or be unexported (golint)
    • Line 57: warning: exported function GetExpectedLinesInit should have comment or be unexported (golint)
    • metana/pkg/store/store.go
    • Line 20: warning: exported type Store should have comment or be unexported (golint)
    • Line 26: warning: exported function GetStoreViaConn should have comment or be unexported (golint)
    • Line 80: warning: exported function TrackToSetDown should have comment or be unexported (golint)
    • Line 96: warning: exported function ProcessLogs should have comment or be unexported (golint)
    • metana/pkg/config/config.go
    • Line 11: warning: exported type MetanaConfig should have comment or be unexported (golint)
    • Line 16: warning: exported function GetMetanaConfig should have comment or be unexported (golint)
    • Line 30: warning: exported function SetMetanaConfig should have comment or be unexported (golint)
    • metana/pkg/core/tpl/tpl.go
    • Line 3: warning: exported function MigrationTemplate should have comment or be unexported (golint)
    • Line 42: warning: exported function InitMigrationRunTemplate should have comment or be unexported (golint)
    • Line 103: warning: exported function AddMigrationTemplate should have comment or be unexported (golint)
    • Line 131: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 159: warning: exported type NewMigration should have comment or be unexported (golint)
    • metana/pkg/core/gen/file.go
    • Line 24: warning: exported function CreateMigrationFile should have comment or be unexported (golint)
    • Line 70: warning: exported function CreateInitConfig should have comment or be unexported (golint)
    • Line 111: warning: exported function MigrationExists should have comment or be unexported (golint)
    • metana/pkg/cmd/down.go
    • Line 16: warning: exported function RunDown 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 (golint)
    • metana/pkg/list.go
    • Line 15: warning: exported function ListMigrations should have comment or be unexported (golint)
    • Line 42: warning: exported function GetMigrations should have comment or be unexported (golint)
    • Line 68: warning: exported type Migration should have comment or be unexported (golint)
    • metana/pkg/store/postgres.go
    • Line 10: warning: exported type PGDB should have comment or be unexported (golint)
    • Line 14: warning: exported method PGDB.Set should have comment or be unexported (golint)
    • Line 31: warning: exported method PGDB.Load should have comment or be unexported (golint)
    • Line 42: warning: exported method PGDB.CreateTable should have comment or be unexported (golint)
    • Line 54: warning: exported method PGDB.Wipe should have comment or be unexported (golint)
    • metana/pkg/types/type.go
    • Line 3: warning: exported type Track should have comment or be unexported (golint)
    • Line 10: warning: exported type Migration should have comment or be unexported (golint)
    • Line 15: warning: exported type Migrator should have comment or be unexported (golint)
    • metana/pkg/store/file.go
    • Line 10: warning: exported type File should have comment or be unexported (golint)
    • Line 14: warning: exported method File.Set should have comment or be unexported (golint)
    • Line 27: warning: exported method File.Load should have comment or be unexported (golint)
    • Line 45: warning: exported method File.Wipe should have comment or be unexported (golint)
    • metana/pkg/store/mongo.go
    • Line 13: warning: exported type MongoDb should have comment or be unexported (golint)
    • Line 18: warning: exported method MongoDb.Set should have comment or be unexported (golint)
    • Line 31: warning: exported method MongoDb.Load should have comment or be unexported (golint)
    • Line 42: warning: exported method MongoDb.Wipe should have comment or be unexported (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!