Preparing report...

Report for github.com/rai-project/mxnet

A    Great!    Found 8 issues across 17 files

Tweet

gofmt88%

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!


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.

    • mxnet/graph.go
    • Line 35: warning: cyclomatic complexity 33 of function (*Graph).ToDotGraph() is high (> 15) (gocyclo)

golint52%

Golint is a linter for Go source code.

    • mxnet/predictor/image_classification_predictor.go
    • Line 19: warning: exported type ImageClassificationPredictor should have comment or be unexported (golint)
    • Line 25: warning: exported function NewImageClassificationPredictor should have comment or be unexported (golint)
    • Line 49: warning: exported method ImageClassificationPredictor.Load should have comment or be unexported (golint)
    • Line 49: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 119: warning: exported method ImageClassificationPredictor.Modality should have comment or be unexported (golint)
    • mxnet/predictor/image_object_detection_predictor.go
    • Line 19: warning: exported type ObjectDetectionPredictor should have comment or be unexported (golint)
    • Line 29: warning: exported function NewObjectDetectionPredictor should have comment or be unexported (golint)
    • Line 48: warning: exported method ObjectDetectionPredictor.Load should have comment or be unexported (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 155: warning: exported method ObjectDetectionPredictor.Modality should have comment or be unexported (golint)
    • mxnet/predictor/image_predictor.go
    • Line 19: warning: exported type ImagePredictor should have comment or be unexported (golint)
    • Line 24: warning: exported method ImagePredictor.Close should have comment or be unexported (golint)
    • Line 34: warning: exported method ImagePredictor.Load should have comment or be unexported (golint)
    • mxnet/graph.go
    • Line 35: warning: exported method Graph.ToDotGraph should have comment or be unexported (golint)
    • Line 204: warning: exported type ModelGraphAttributes should have comment or be unexported (golint)
    • mxnet/register.go
    • Line 11: warning: exported var FrameworkManifest should have comment or be unexported (golint)
    • Line 36: warning: exported function Register should have comment or be unexported (golint)
    • mxnet/utils.go
    • Line 9: warning: exported method Graph_NodeEntry.UnmarshalJSON should have comment or be unexported (golint)
    • Line 25: warning: exported method Graph_NodeEntry.MarshalJSON should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • mxnet/graph.go
    • Line 105: warning: ineffectual assignment to label (ineffassign)
    • Line 109: warning: ineffectual assignment to label (ineffassign)
    • Line 115: warning: ineffectual assignment to label (ineffassign)
    • Line 123: warning: ineffectual assignment to label (ineffassign)
    • Line 128: warning: ineffectual assignment to label (ineffassign)
    • Line 133: warning: ineffectual assignment to label (ineffassign)
    • Line 139: warning: ineffectual assignment to label (ineffassign)
    • Line 187: warning: ineffectual assignment to key (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!