Preparing report...

Report for github.com/storageos/kubectl-storageos

A+    Excellent!    Found 12 issues across 20 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!


gocyclo90%

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.


golint50%

Golint is a linter for Go source code.

    • kubectl-storageos/cmd/plugin/cli/install.go
    • Line 12: warning: exported function InstallCmd should have comment or be unexported (golint)
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • kubectl-storageos/cmd/plugin/cli/root.go
    • Line 18: warning: exported var KubernetesConfigFlags should have comment or be unexported (golint)
    • Line 21: warning: exported function RootCmd should have comment or be unexported (golint)
    • Line 80: warning: exported function InitAndExecute should have comment or be unexported (golint)
    • kubectl-storageos/pkg/install/install.go
    • Line 28: warning: comment on exported const StosOperatorYamlFlag should be of the form "StosOperatorYamlFlag ..." (golint)
    • Line 30: warning: exported const StosClusterYamlFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: comment on exported const EtcdNamespaceConfig should be of the form "EtcdNamespaceConfig ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign85%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!