Preparing report...

Report for github.com/openebs/jiva-operator

A    Great!    Found 21 issues across 68 files

Tweet

gofmt94%

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.


golint77%

Golint is a linter for Go source code.

    • jiva-operator/pkg/driver/mount.go
    • Line 46: warning: exported type Optfunc should have comment or be unexported (golint)
    • Line 214: warning: receiver name n should be consistent with previous receiver name m for NodeMounter (golint)
    • Line 294: warning: receiver name n should be consistent with previous receiver name m for NodeMounter (golint)
    • Line 321: warning: receiver name n should be consistent with previous receiver name m for NodeMounter (golint)
    • Line 363: warning: exported method NodeMounter.ExistsPath should have comment or be unexported (golint)
    • Line 367: warning: exported method NodeMounter.MakeFile should have comment or be unexported (golint)
    • Line 378: warning: exported method NodeMounter.MakeDir should have comment or be unexported (golint)
    • jiva-operator/pkg/apis/openebs/v1alpha1/zz_generated.openapi.go
    • Line 12: warning: exported function GetOpenAPIDefinitions should have comment or be unexported (golint)
    • Line 20: warning: don't use underscores in Go names; func schema_pkg_apis_openebs_v1alpha1_JivaVolume should be schemaPkgApisOpenebsV1alpha1JivaVolume (golint)
    • Line 63: warning: don't use underscores in Go names; func schema_pkg_apis_openebs_v1alpha1_JivaVolumeSpec should be schemaPkgApisOpenebsV1alpha1JivaVolumeSpec (golint)
    • Line 75: warning: don't use underscores in Go names; func schema_pkg_apis_openebs_v1alpha1_JivaVolumeStatus should be schemaPkgApisOpenebsV1alpha1JivaVolumeStatus (golint)
    • jiva-operator/pkg/request/request.go
    • Line 38: warning: exported function RemoveVolumeFromTransitionList should have comment or be unexported (golint)
    • Line 44: warning: exported function AddVolumeToTransitionList should have comment or be unexported (golint)
    • jiva-operator/tests/yamls.go
    • Line 19: warning: exported var DeploymentName should have comment or be unexported (golint)
    • Line 20: warning: exported var DeployYAML should have comment or be unexported (golint)
    • Line 60: warning: exported var PVCName should have comment or be unexported (golint)
    • Line 61: warning: exported var PVCYAML should have comment or be unexported (golint)
    • Line 75: warning: exported var ExpandedPVCYAML should have comment or be unexported (golint)
    • Line 89: warning: exported var BlockDeploymentName should have comment or be unexported (golint)
    • Line 90: warning: exported var BlockDeployYAML should have comment or be unexported (golint)
    • Line 123: warning: exported var BlockPVCName should have comment or be unexported (golint)
    • Line 124: warning: exported var BlockPVCYAML should have comment or be unexported (golint)
    • Line 139: warning: exported var SCName should have comment or be unexported (golint)
    • Line 140: warning: exported var SCYAML should have comment or be unexported (golint)
    • Line 152: warning: exported var NSName should have comment or be unexported (golint)
    • Line 153: warning: exported var NSYAML should have comment or be unexported (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)


misspell95%

Misspell Finds commonly misspelled English words