Preparing report...

Report for github.com/openebs/cstor-csi

A+    Excellent!    Found 13 issues across 68 files

Tweet

gofmt95%

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.


golint86%

Golint is a linter for Go source code.

    • cstor-csi/pkg/utils/mount.go
    • Line 27: warning: exported type NodeMounter should have comment or be unexported (golint)
    • Line 31: warning: exported function NewNodeMounter should have comment or be unexported (golint)
    • Line 40: warning: exported method NodeMounter.GetDeviceName should have comment or be unexported (golint)
    • Line 44: warning: exported method NodeMounter.MakeFile should have comment or be unexported (golint)
    • Line 55: warning: exported method NodeMounter.MakeDir should have comment or be unexported (golint)
    • Line 65: warning: exported method NodeMounter.ExistsPath should have comment or be unexported (golint)
    • cstor-csi/pkg/iscsi/iscsi_util.go
    • Line 40: warning: don't use underscores in Go names; const exit_ISCSI_ERR_SESS_NOT_FOUND should be exitISCSIERRSESSNOTFOUND (golint)
    • Line 42: warning: don't use underscores in Go names; const exit_ISCSI_ERR_NO_OBJS_FOUND should be exitISCSIERRNOOBJSFOUND (golint)
    • cstor-csi/pkg/utils/utils.go
    • Line 1: warning: package comment should be of the form "Package utils ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 57: warning: comment on exported const GoogleAnalyticsKey should be of the form "GoogleAnalyticsKey ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


misspell98%

Misspell Finds commonly misspelled English words