Preparing report...

Report for github.com/rai-project/go-caffe

A    Great!    Found 6 issues across 9 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!


gocyclo77%

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.


golint33%

Golint is a linter for Go source code.

    • go-caffe/examples/batch_mlmodelscope/main.go
    • Line 37: warning: don't use underscores in Go names; var graph_url should be graphURL (golint)
    • Line 38: warning: don't use underscores in Go names; var weights_url should be weightsURL (golint)
    • Line 39: warning: don't use underscores in Go names; var synset_url should be synsetURL (golint)
    • go-caffe/examples/batch_nvprof/main.go
    • Line 40: warning: don't use underscores in Go names; var graph_url should be graphURL (golint)
    • Line 41: warning: don't use underscores in Go names; var weights_url should be weightsURL (golint)
    • Line 42: warning: don't use underscores in Go names; var synset_url should be synsetURL (golint)
    • go-caffe/predictor.go
    • Line 21: warning: exported const CPUMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type Predictor should have comment or be unexported (golint)
    • Line 30: warning: exported function New should have comment or be unexported (golint)
    • Line 72: warning: exported function SetUseCPU should have comment or be unexported (golint)
    • Line 76: warning: exported function SetUseGPU should have comment or be unexported (golint)
    • Line 84: warning: comment on exported method Predictor.Predict should be of the form "Predict ..." (golint)
    • Line 94: warning: exported method Predictor.SetInput should have comment or be unexported (golint)
    • Line 118: warning: exported method Predictor.GetOutputShape should have comment or be unexported (golint)
    • Line 138: warning: exported method Predictor.GetOutputData should have comment or be unexported (golint)
    • Line 147: warning: exported method Predictor.ReadOutputData should have comment or be unexported (golint)
    • Line 159: warning: exported method Predictor.Close should have comment or be unexported (golint)
    • Line 163: warning: exported method Predictor.StartProfiling should have comment or be unexported (golint)
    • Line 172: warning: exported method Predictor.EndProfiling should have comment or be unexported (golint)
    • Line 177: warning: exported method Predictor.DisableProfiling should have comment or be unexported (golint)
    • Line 182: warning: exported method Predictor.ReadProfile 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!


misspell66%

Misspell Finds commonly misspelled English words