Report for github.com/ManageIQ-Exchange/manageiq-exchange-cli-go

A    Great!    Found 10 issues across 13 files

Tweet

gofmt61%

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!


golint46%

Golint is a linter for Go source code.

    • manageiq-exchange-cli-go/src/manageiq-exchange/constants/constants.go
    • Line 3: warning: exported const SERVICE should have comment or be unexported (golint)
    • Line 5: warning: exported const RESOURCE_PREFIX should have comment or be unexported (golint)
    • Line 7: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 8: warning: exported var COMMIT should have comment or be unexported (golint)
    • Line 9: warning: exported var BUILD_DATE should have comment or be unexported (golint)
    • Line 10: warning: exported var SERVICEAPIVERSION should have comment or be unexported (golint)
    • Line 12: warning: exported var BANNER_3D should have comment or be unexported (golint)
    • Line 32: warning: exported var BANNER should have comment or be unexported (golint)
    • manageiq-exchange-cli-go/src/manageiq-exchange/models/user/user.go
    • Line 8: warning: exported type User should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; struct field Url_profile should be URLProfile (golint)
    • Line 23: warning: exported type UserCollection should have comment or be unexported (golint)
    • Line 28: warning: exported method UserCollection.Init should have comment or be unexported (golint)
    • Line 37: warning: exported method User.Init should have comment or be unexported (golint)
    • Line 41: warning: exported method User.Print should have comment or be unexported (golint)
    • Line 48: warning: exported method UserCollection.Print should have comment or be unexported (golint)
    • manageiq-exchange-cli-go/src/manageiq-exchange/models/utils/utils.go
    • Line 9: warning: exported const NC should have comment or be unexported (golint)
    • Line 11: warning: exported var COLOR should have comment or be unexported (golint)
    • Line 30: warning: exported function CreateFromMap should have comment or be unexported (golint)
    • Line 39: warning: exported function PrintColor should have comment or be unexported (golint)
    • Line 43: warning: exported function PrintValues should have comment or be unexported (golint)
    • manageiq-exchange-cli-go/src/manageiq-exchange/menu/menu.go
    • Line 12: warning: exported function Menu should have comment or be unexported (golint)
    • Line 34: warning: don't use underscores in Go names; var miq_exchange should be miqExchange (golint)
    • Line 50: warning: exported function Banner should have comment or be unexported (golint)
    • Line 54: warning: exported function GetOsEnv should have comment or be unexported (golint)
    • Line 61: warning: exported function SetOsEnv should have comment or be unexported (golint)
    • Line 65: warning: exported function GetServer should have comment or be unexported (golint)
    • manageiq-exchange-cli-go/src/manageiq-exchange/api/api.go
    • Line 31: warning: exported type Api should have comment or be unexported (golint)
    • Line 38: warning: exported type DataApi should have comment or be unexported (golint)
    • Line 43: warning: exported method Api.Init should have comment or be unexported (golint)
    • Line 49: warning: exported method Api.CheckConnectionServer should have comment or be unexported (golint)
    • Line 65: warning: exported method Api.URL should have comment or be unexported (golint)
    • Line 73: warning: exported method Api.GetInfo should have comment or be unexported (golint)
    • Line 80: warning: exported method Api.GetUsers should have comment or be unexported (golint)
    • Line 94: warning: exported method Api.Request should have comment or be unexported (golint)
    • Line 106: warning: if block ends with a return statement, so drop this else and outdent its block (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!