Preparing report...

Report for github.com/opencurve/curve-csi

A+    Excellent!    Found 15 issues across 34 files

Tweet

gofmt97%

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!


gocyclo97%

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.


golint58%

Golint is a linter for Go source code.

    • curve-csi/pkg/curveservice/curveservice.go
    • Line 39: warning: comment on exported const CurveVolumeStatusNotExist should be of the form "CurveVolumeStatusNotExist ..." (golint)
    • Line 41: warning: exported const CurveVolumeStatusExist should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type CurveVolume should have comment or be unexported (golint)
    • Line 55: warning: exported function NewCurveVolume should have comment or be unexported (golint)
    • Line 65: warning: comment on exported method CurveVolume.Stat should be of the form "Stat ..." (golint)
    • Line 86: warning: comment on exported method CurveVolume.Create should be of the form "Create ..." (golint)
    • Line 110: warning: comment on exported method CurveVolume.Delete should be of the form "Delete ..." (golint)
    • Line 127: warning: comment on exported method CurveVolume.Extend should be of the form "Extend ..." (golint)
    • Line 198: warning: comment on exported method CurveVolume.Map should be of the form "Map ..." (golint)
    • Line 229: warning: comment on exported method CurveVolume.UnMap should be of the form "UnMap ..." (golint)
    • curve-csi/pkg/util/command.go
    • Line 23: warning: exported function ExecCommandHost should have comment or be unexported (golint)
    • Line 29: warning: exported function ExecCommand should have comment or be unexported (golint)
    • curve-csi/pkg/curve/curve.go
    • Line 43: warning: exported function NewCurveDriver should have comment or be unexported (golint)
    • Line 47: warning: exported function NewIdentityServer should have comment or be unexported (golint)
    • Line 53: warning: exported function NewControllerServer should have comment or be unexported (golint)
    • Line 60: warning: exported function NewNodeServer should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!