Preparing report...

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

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


gocyclo70%

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.


golint30%

Golint is a linter for Go source code.

    • go-caffe2/examples/batch_nvprof/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-caffe2/examples/batch/main.go
    • Line 33: warning: don't use underscores in Go names; var graph_url should be graphURL (golint)
    • Line 34: warning: don't use underscores in Go names; var weights_url should be weightsURL (golint)
    • Line 35: warning: don't use underscores in Go names; var synset_url should be synsetURL (golint)
    • go-caffe2/cbits.go
    • Line 22: warning: exported type Device should have comment or be unexported (golint)
    • Line 25: warning: exported const CPUDevice should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type Predictor should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 104: warning: exported method Predictor.Predict should have comment or be unexported (golint)
    • Line 136: warning: exported method Predictor.ReadPredictionOutput should have comment or be unexported (golint)
    • Line 151: warning: exported method Predictor.Close should have comment or be unexported (golint)
    • Line 155: warning: exported method Predictor.StartProfiling should have comment or be unexported (golint)
    • Line 164: warning: exported method Predictor.EndProfiling should have comment or be unexported (golint)
    • Line 169: warning: exported method Predictor.DisableProfiling should have comment or be unexported (golint)
    • Line 174: 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!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell90%

Misspell Finds commonly misspelled English words