Report for github.com/jenkins-x/jx-cli

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


gocyclo95%

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.


golint68%

Golint is a linter for Go source code.

    • jx-cli/pkg/cmd/upgrade/upgrade_plugins.go
    • Line 34: warning: comment on exported type PluginOptions should be of the form "PluginOptions ..." (with optional leading article) (golint)
    • Line 42: warning: comment on exported function NewCmdUpgradePlugins should be of the form "NewCmdUpgradePlugins ..." (golint)
    • jx-cli/pkg/cmd/version/version.go
    • Line 28: warning: comment on exported type Options should be of the form "Options ..." (with optional leading article) (golint)
    • Line 61: warning: exported function GetVersion should have comment or be unexported (golint)
    • jx-cli/pkg/cmd/ui/ui.go
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 64: warning: exported method Options.Run should have comment or be unexported (golint)
    • Line 94: warning: exported function VerifyOctantPlugins should have comment or be unexported (golint)
    • Line 106: warning: exported function VerifyOctantPluginVersion should have comment or be unexported (golint)
    • jx-cli/pkg/cmd/namespace/namespace.go
    • Line 37: warning: exported type Options should have comment or be unexported (golint)
    • Line 78: warning: exported function NewCmdNamespace should have comment or be unexported (golint)
    • Line 101: warning: exported method Options.Run should have comment or be unexported (golint)
    • Line 286: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • jx-cli/pkg/cmd/upgrade/upgrade_cli.go
    • Line 54: warning: exported const LatestVersionstreamURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: comment on exported type CLIOptions should be of the form "CLIOptions ..." (with optional leading article) (golint)
    • Line 67: warning: comment on exported function NewCmdUpgradeCLI should be of the form "NewCmdUpgradeCLI ..." (golint)
    • Line 314: warning: exported function BinaryWithExtension should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!