Preparing report...

Report for github.com/maistra/maistra-test-tool

A    Great!    Found 18 issues across 26 files

Tweet

gofmt92%

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!


gocyclo100%

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.

No problems detected. Good job!


golint38%

Golint is a linter for Go source code.

    • maistra-test-tool/pkg/ossm/smcp.go
    • Line 38: warning: exported method ControlPlane.Install should have comment or be unexported (golint)
    • Line 54: warning: exported method ControlPlane.Uninstall should have comment or be unexported (golint)
    • Line 62: warning: exported method ControlPlane.CheckStatus should have comment or be unexported (golint)
    • Line 66: warning: exported method ControlPlane.CheckImages should have comment or be unexported (golint)
    • maistra-test-tool/pkg/examples/fortio.go
    • Line 27: warning: exported type Fortio should have comment or be unexported (golint)
    • Line 31: warning: exported method Fortio.Install should have comment or be unexported (golint)
    • Line 39: warning: exported method Fortio.Uninstall should have comment or be unexported (golint)
    • maistra-test-tool/pkg/examples/sleep.go
    • Line 28: warning: exported type Sleep should have comment or be unexported (golint)
    • Line 32: warning: exported method Sleep.Install should have comment or be unexported (golint)
    • Line 40: warning: exported method Sleep.InstallLegacy should have comment or be unexported (golint)
    • Line 48: warning: exported method Sleep.Uninstall should have comment or be unexported (golint)
    • maistra-test-tool/pkg/util/testUtil.go
    • Line 28: warning: comment on exported function RecoverPanic should be of the form "RecoverPanic ..." (golint)
    • Line 35: warning: exported function IsWithinPercentage should have comment or be unexported (golint)
    • Line 41: warning: comment on exported function CurlWithCA should be of the form "CurlWithCA ..." (golint)
    • Line 87: warning: comment on exported function CurlWithCAClient should be of the form "CurlWithCAClient ..." (golint)
    • Line 140: warning: comment on exported function CheckUserGroup should be of the form "CheckUserGroup ..." (golint)
    • maistra-test-tool/pkg/examples/echo.go
    • Line 28: warning: exported type Echo should have comment or be unexported (golint)
    • Line 32: warning: exported method Echo.Install should have comment or be unexported (golint)
    • Line 41: warning: exported method Echo.InstallWithProxy should have comment or be unexported (golint)
    • Line 49: warning: exported method Echo.Uninstall should have comment or be unexported (golint)
    • Line 55: warning: exported method Echo.UninstallWithProxy should have comment or be unexported (golint)
    • maistra-test-tool/pkg/examples/httpbin.go
    • Line 30: warning: exported type Httpbin should have comment or be unexported (golint)
    • Line 34: warning: exported method Httpbin.Install should have comment or be unexported (golint)
    • Line 42: warning: exported method Httpbin.InstallLegacy should have comment or be unexported (golint)
    • Line 50: warning: exported method Httpbin.InstallV1 should have comment or be unexported (golint)
    • Line 58: warning: exported method Httpbin.InstallV2 should have comment or be unexported (golint)
    • Line 66: warning: exported method Httpbin.Uninstall should have comment or be unexported (golint)
    • Line 72: warning: exported method Httpbin.UninstallV1 should have comment or be unexported (golint)
    • Line 78: warning: exported method Httpbin.UninstallV2 should have comment or be unexported (golint)
    • maistra-test-tool/pkg/config/ocp.go
    • Line 22: warning: exported const SMMR should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: comment on exported function Login should be of the form "Login ..." (golint)
    • Line 43: warning: exported function CreateNamespace should have comment or be unexported (golint)
    • Line 47: warning: comment on exported function Setup should be of the form "Setup ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!