Preparing report...

Report for github.com/maxzerbini/dingo

A+    Excellent!    Found 19 issues across 26 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!


gocyclo96%

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.


golint26%

Golint is a linter for Go source code.

    • dingo/explorer/postgres_explorer.go
    • Line 9: 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 PostgreSqlExplorer should have comment or be unexported (golint)
    • Line 16: warning: exported function NewPostgreSqlExplorer should have comment or be unexported (golint)
    • Line 21: warning: exported method PostgreSqlExplorer.ExploreSchema should have comment or be unexported (golint)
    • dingo/model/configuration.go
    • Line 11: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 29: warning: exported method Configuration.IsExcluded should have comment or be unexported (golint)
    • Line 38: warning: exported method Configuration.IsIncluded should have comment or be unexported (golint)
    • Line 50: warning: exported function LoadConfiguration should have comment or be unexported (golint)
    • dingo/model/model.go
    • Line 8: warning: exported type DatabaseSchema should have comment or be unexported (golint)
    • Line 14: warning: exported type Table should have comment or be unexported (golint)
    • Line 21: warning: exported type View should have comment or be unexported (golint)
    • Line 26: warning: exported type Column should have comment or be unexported (golint)
    • Line 40: warning: exported method Column.GetPostgresParam should have comment or be unexported (golint)
    • Line 44: warning: exported method Column.GetPostgresParamFrom should have comment or be unexported (golint)
    • dingo/model/types.go
    • Line 7: warning: exported type BaseField should have comment or be unexported (golint)
    • Line 12: warning: exported type ModelField should have comment or be unexported (golint)
    • Line 22: warning: exported type ViewModelField should have comment or be unexported (golint)
    • Line 28: warning: exported type ModelType should have comment or be unexported (golint)
    • Line 36: warning: exported type DaoType should have comment or be unexported (golint)
    • Line 46: warning: exported type ViewModelType should have comment or be unexported (golint)
    • Line 56: warning: exported type BizType should have comment or be unexported (golint)
    • Line 66: warning: exported type ServiceType should have comment or be unexported (golint)
    • Line 76: warning: exported type ModelPackage should have comment or be unexported (golint)
    • Line 84: warning: exported type DaoPackage should have comment or be unexported (golint)
    • Line 92: warning: exported type ViewModelPackage should have comment or be unexported (golint)
    • Line 99: warning: exported type BizPackage should have comment or be unexported (golint)
    • Line 106: warning: exported type ServicePackage should have comment or be unexported (golint)
    • Line 113: warning: exported method ModelPackage.HasImport should have comment or be unexported (golint)
    • Line 122: warning: exported method ModelPackage.HasImports should have comment or be unexported (golint)
    • Line 126: warning: exported method ModelPackage.AppendImport should have comment or be unexported (golint)
    • Line 136: warning: exported method DaoPackage.HasImports should have comment or be unexported (golint)
    • Line 140: warning: exported method DaoPackage.AppendImport should have comment or be unexported (golint)
    • Line 150: warning: exported method ViewModelPackage.HasImports should have comment or be unexported (golint)
    • Line 154: warning: exported method ViewModelPackage.AppendImport should have comment or be unexported (golint)
    • Line 164: warning: exported method BizPackage.HasImports should have comment or be unexported (golint)
    • Line 168: warning: exported method BizPackage.AppendImport should have comment or be unexported (golint)
    • Line 178: warning: exported method ServicePackage.HasImports should have comment or be unexported (golint)
    • Line 182: warning: exported method ServicePackage.AppendImport should have comment or be unexported (golint)
    • Line 192: warning: exported method ModelField.GetPostgresParam should have comment or be unexported (golint)
    • Line 196: warning: exported method ModelField.GetPostgresParamFrom should have comment or be unexported (golint)
    • dingo/util/pluralize.go
    • Line 5: warning: comment on exported function Pluralize should be of the form "Pluralize ..." (golint)
    • Line 55: warning: exported var UserDefinedInflections should have comment or be unexported (golint)
    • Line 215: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • dingo/producers/daoproducer.go
    • Line 7: warning: exported function ProduceDaoPackage should have comment or be unexported (golint)
    • Line 33: warning: exported function CheckAutoIncrementPK should have comment or be unexported (golint)
    • dingo/explorer/explorer.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported type DatabaseExplorer should have comment or be unexported (golint)
    • Line 15: warning: exported type MySqlExplorer should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMySqlExplorer should have comment or be unexported (golint)
    • Line 23: warning: exported method MySqlExplorer.ExploreSchema 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!