Preparing report...

Report for github.com/mingslife/mtlmeta

A    Great!    Found 13 issues across 14 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!


gocyclo85%

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.


golint7%

Golint is a linter for Go source code.

    • mtlmeta/mtl/material.go
    • Line 5: warning: exported type MTLMaterialItem should have comment or be unexported (golint)
    • Line 10: warning: exported function NewMTLMaterialItem should have comment or be unexported (golint)
    • Line 14: warning: exported method MTLMaterialItem.Children should have comment or be unexported (golint)
    • Line 18: warning: exported method MTLMaterialItem.AppendChild should have comment or be unexported (golint)
    • Line 26: warning: exported method MTLMaterialItem.Bytes should have comment or be unexported (golint)
    • Line 30: warning: exported type MTLMaterial should have comment or be unexported (golint)
    • Line 36: warning: exported function NewMTLMaterial should have comment or be unexported (golint)
    • Line 40: warning: exported method MTLMaterial.Children should have comment or be unexported (golint)
    • Line 45: warning: exported method MTLMaterial.AppendChild should have comment or be unexported (golint)
    • Line 68: warning: exported method MTLMaterial.Bytes should have comment or be unexported (golint)
    • Line 78: warning: exported method MTLMaterial.Name should have comment or be unexported (golint)
    • Line 82: warning: exported method MTLMaterial.SetName should have comment or be unexported (golint)
    • mtlmeta/mtl/shader.go
    • Line 5: warning: exported type MTLShaderItem should have comment or be unexported (golint)
    • Line 10: warning: exported function NewMTLShaderItem should have comment or be unexported (golint)
    • Line 14: warning: exported method MTLShaderItem.Children should have comment or be unexported (golint)
    • Line 18: warning: exported method MTLShaderItem.AppendChild should have comment or be unexported (golint)
    • Line 26: warning: exported method MTLShaderItem.Bytes should have comment or be unexported (golint)
    • Line 30: warning: exported type MTLShader should have comment or be unexported (golint)
    • Line 37: warning: exported function NewMTLShader should have comment or be unexported (golint)
    • Line 41: warning: exported method MTLShader.Children should have comment or be unexported (golint)
    • Line 46: warning: exported method MTLShader.AppendChild should have comment or be unexported (golint)
    • Line 69: warning: exported method MTLShader.Bytes should have comment or be unexported (golint)
    • mtlmeta/conf/conf.go
    • Line 7: warning: exported type Config should have comment or be unexported (golint)
    • Line 15: warning: exported function ParseConfig should have comment or be unexported (golint)
    • mtlmeta/mtl/comment.go
    • Line 3: warning: exported type MTLComment should have comment or be unexported (golint)
    • Line 7: warning: exported function NewMTLComment should have comment or be unexported (golint)
    • Line 11: warning: exported method MTLComment.Children should have comment or be unexported (golint)
    • Line 15: warning: exported method MTLComment.AppendChild should have comment or be unexported (golint)
    • Line 23: warning: exported method MTLComment.Bytes should have comment or be unexported (golint)
    • mtlmeta/mtl/delimiter.go
    • Line 3: warning: exported type MTLDelimiter should have comment or be unexported (golint)
    • Line 7: warning: exported function NewMTLDelimiter should have comment or be unexported (golint)
    • Line 11: warning: exported method MTLDelimiter.Children should have comment or be unexported (golint)
    • Line 15: warning: exported method MTLDelimiter.AppendChild should have comment or be unexported (golint)
    • Line 26: warning: exported method MTLDelimiter.Bytes should have comment or be unexported (golint)
    • mtlmeta/mtl/document.go
    • Line 3: warning: exported type MTLDocument should have comment or be unexported (golint)
    • Line 7: warning: exported function NewMTLDocument should have comment or be unexported (golint)
    • Line 11: warning: exported method MTLDocument.Children should have comment or be unexported (golint)
    • Line 15: warning: exported method MTLDocument.AppendChild should have comment or be unexported (golint)
    • Line 28: warning: exported method MTLDocument.Bytes should have comment or be unexported (golint)
    • mtlmeta/mtl/file.go
    • Line 12: warning: exported type MTLFile should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 120: warning: exported method MTLFile.Bytes should have comment or be unexported (golint)
    • Line 124: warning: exported method MTLFile.Save should have comment or be unexported (golint)
    • Line 128: warning: exported method MTLFile.GetMaterial should have comment or be unexported (golint)
    • Line 138: warning: exported method MTLFile.MaterialName should have comment or be unexported (golint)
    • Line 146: warning: exported method MTLFile.SetMaterialName should have comment or be unexported (golint)
    • Line 155: warning: exported method MTLFile.GetIcon should have comment or be unexported (golint)
    • Line 165: warning: exported method MTLFile.SaveIcon should have comment or be unexported (golint)
    • mtlmeta/mtl/icon.go
    • Line 5: warning: exported type MTLIconKind should have comment or be unexported (golint)
    • Line 8: warning: exported const MTLIconKindBinary should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported var MTLIconMarkBinary should have comment or be unexported (golint)
    • Line 17: warning: exported type MTLIcon should have comment or be unexported (golint)
    • Line 23: warning: exported function NewMTLIcon should have comment or be unexported (golint)
    • Line 27: warning: exported method MTLIcon.Children should have comment or be unexported (golint)
    • Line 31: warning: exported method MTLIcon.AppendChild should have comment or be unexported (golint)
    • Line 39: warning: exported method MTLIcon.Bytes should have comment or be unexported (golint)
    • Line 53: warning: exported method MTLIcon.Save should have comment or be unexported (golint)
    • mtlmeta/middleware/dictionary.go
    • Line 20: warning: exported type DictionaryMiddleware should have comment or be unexported (golint)
    • Line 25: warning: exported function NewDictionaryMiddleware should have comment or be unexported (golint)
    • Line 64: warning: exported method DictionaryMiddleware.Handle should have comment or be unexported (golint)
    • mtlmeta/middleware/middleware.go
    • Line 8: warning: exported type MTLMiddleware should have comment or be unexported (golint)
    • Line 14: warning: exported function RegisterMiddlewares should have comment or be unexported (golint)
    • Line 18: warning: exported function Handle 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!


misspell92%

Misspell Finds commonly misspelled English words