Preparing report...

Report for github.com/gogap/dmod

B    Not bad!    Found 7 issues across 6 files

Tweet

gofmt83%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo83%

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.


golint0%

Golint is a linter for Go source code.

    • dmod/combine_mapper.go
    • Line 8: warning: exported type CombineMapper should have comment or be unexported (golint)
    • Line 14: warning: exported type MapperFunc should have comment or be unexported (golint)
    • Line 16: warning: exported type BasicMapper should have comment or be unexported (golint)
    • Line 21: warning: exported function NewBasicMapper should have comment or be unexported (golint)
    • Line 27: warning: exported method BasicMapper.Register should have comment or be unexported (golint)
    • Line 48: warning: exported method BasicMapper.Unregister should have comment or be unexported (golint)
    • Line 55: warning: exported method BasicMapper.GetMapper should have comment or be unexported (golint)
    • dmod/config.go
    • Line 7: warning: exported type ModelConfig should have comment or be unexported (golint)
    • Line 27: warning: exported type ModelsConfig should have comment or be unexported (golint)
    • dmod/model.go
    • Line 10: warning: exported type Model should have comment or be unexported (golint)
    • Line 28: warning: exported method Model.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method Model.Fields should have comment or be unexported (golint)
    • Line 36: warning: exported method Model.Dump should have comment or be unexported (golint)
    • Line 44: warning: exported method Model.Combine should have comment or be unexported (golint)
    • Line 53: warning: exported method Model.Delete should have comment or be unexported (golint)
    • Line 71: warning: exported method Model.Insert should have comment or be unexported (golint)
    • Line 96: warning: exported method Model.Update should have comment or be unexported (golint)
    • Line 131: warning: exported method Model.Type should have comment or be unexported (golint)
    • Line 135: warning: exported method Model.New should have comment or be unexported (golint)
    • Line 196: warning: exported method Model.Field should have comment or be unexported (golint)
    • dmod/model_field.go
    • Line 14: warning: exported var TypeOfModleField should have comment or be unexported (golint)
    • Line 18: warning: exported type ModelField should have comment or be unexported (golint)
    • Line 23: warning: exported method ModelField.Name should have comment or be unexported (golint)
    • Line 27: warning: exported method ModelField.Field should have comment or be unexported (golint)
    • Line 53: warning: exported method ModelField.Value should have comment or be unexported (golint)
    • Line 64: warning: exported method ModelField.Interface should have comment or be unexported (golint)
    • Line 73: warning: exported method ModelField.Set should have comment or be unexported (golint)
    • Line 112: warning: exported method ModelField.Call should have comment or be unexported (golint)
    • dmod/models.go
    • Line 16: warning: exported type Models should have comment or be unexported (golint)
    • Line 26: warning: exported type ModelsOption should have comment or be unexported (golint)
    • Line 28: warning: exported function NewModels should have comment or be unexported (golint)
    • Line 47: warning: exported function ModelsOptBaseMapper should have comment or be unexported (golint)
    • Line 54: warning: exported function ModelsOptBuilder should have comment or be unexported (golint)
    • Line 61: warning: exported method Models.Flush should have comment or be unexported (golint)
    • Line 68: warning: exported method Models.Dump should have comment or be unexported (golint)
    • Line 82: warning: exported method Models.DeleteModel should have comment or be unexported (golint)
    • Line 98: warning: exported method Models.LoadModels should have comment or be unexported (golint)
    • Line 154: warning: exported method Models.LoadFromFiles should have comment or be unexported (golint)
    • Line 220: warning: exported method Models.LoadFromDir should have comment or be unexported (golint)
    • Line 295: warning: exported method Models.NewModel should have comment or be unexported (golint)
    • Line 324: warning: exported method Models.GetModel should have comment or be unexported (golint)
    • Line 329: warning: exported method Models.Models should have comment or be unexported (golint)
    • Line 339: warning: exported method Models.SetModel should have comment or be unexported (golint)
    • Line 376: warning: exported method Models.Produce should have comment or be unexported (golint)
    • Line 384: warning: exported method Models.ProduceByName should have comment or be unexported (golint)
    • Line 397: warning: exported method Models.CombineMapper should have comment or be unexported (golint)
    • Line 401: warning: exported method Models.StructBuilder should have comment or be unexported (golint)
    • dmod/structs.go
    • Line 58: warning: exported type StructBuilder should have comment or be unexported (golint)
    • Line 63: warning: exported type Field should have comment or be unexported (golint)
    • Line 82: warning: exported type NameType should have comment or be unexported (golint)
    • Line 87: warning: exported type Builder should have comment or be unexported (golint)
    • Line 93: warning: exported function NewBuilder should have comment or be unexported (golint)
    • Line 99: warning: exported method Builder.RegisterTypes should have comment or be unexported (golint)
    • Line 113: warning: exported method Builder.Build should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell83%

Misspell Finds commonly misspelled English words