Preparing report...

Report for github.com/gomorpheus/morpheus-go-sdk

(v0.1.0)

A    Great!    Found 41 issues across 71 files

Tweet

gofmt84%

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!


gocyclo98%

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.

    • client.go
    • Line 136: warning: cyclomatic complexity 35 of function (*Client).Execute() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • node_types.go
    • Line 22: warning: exported type ListNodeTypesResult should have comment or be unexported (golint)
    • Line 27: warning: exported type GetNodeTypeResult should have comment or be unexported (golint)
    • Line 31: warning: exported type CreateNodeTypeResult should have comment or be unexported (golint)
    • Line 38: warning: exported type UpdateNodeTypeResult should have comment or be unexported (golint)
    • Line 42: warning: exported type DeleteNodeTypeResult should have comment or be unexported (golint)
    • Line 48: warning: exported method Client.ListNodeTypes should have comment or be unexported (golint)
    • Line 57: warning: exported method Client.GetNodeType should have comment or be unexported (golint)
    • Line 66: warning: exported method Client.CreateNodeType should have comment or be unexported (golint)
    • Line 76: warning: exported method Client.UpdateNodeType should have comment or be unexported (golint)
    • Line 86: warning: exported method Client.DeleteNodeType should have comment or be unexported (golint)
    • Line 98: warning: exported method Client.FindNodeTypeByName should have comment or be unexported (golint)
    • option_source.go
    • Line 13: warning: exported var OptionSourcePath should have comment or be unexported (golint)
    • Line 18: warning: comment on exported type GetOptionSourceResult should be of the form "GetOptionSourceResult ..." (with optional leading article) (golint)
    • Line 23: warning: exported type OptionSourceOption should have comment or be unexported (golint)
    • Line 34: warning: exported type GetOptionSourceLayoutsResult should have comment or be unexported (golint)
    • Line 38: warning: exported type LayoutOption should have comment or be unexported (golint)
    • Line 45: warning: exported type GetOptionSourceZoneNetworkOptionsResult should have comment or be unexported (golint)
    • Line 49: warning: exported type ZoneNetworkOptionsData should have comment or be unexported (golint)
    • Line 55: warning: exported type NetworkOption should have comment or be unexported (golint)
    • Line 61: warning: exported type NetworkGroupOption should have comment or be unexported (golint)
    • Line 66: warning: exported type NetworkTypeOption should have comment or be unexported (golint)
    • Line 77: warning: exported method Client.GetOptionSource should have comment or be unexported (golint)
    • Line 86: warning: exported method Client.GetOptionSourceLayouts should have comment or be unexported (golint)
    • Line 95: warning: exported method Client.GetOptionSourceZoneNetworkOptions should have comment or be unexported (golint)
    • request.go
    • Line 10: warning: exported type Request should have comment or be unexported (golint)
    • resource_pools.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 10: warning: exported type ResourcePool should have comment or be unexported (golint)
    • Line 19: warning: exported type ListResourcePoolsResult should have comment or be unexported (golint)
    • Line 24: warning: exported type GetResourcePoolResult should have comment or be unexported (golint)
    • Line 28: warning: exported type CreateResourcePoolResult should have comment or be unexported (golint)
    • Line 35: warning: exported type UpdateResourcePoolResult should have comment or be unexported (golint)
    • Line 39: warning: exported type DeleteResourcePoolResult should have comment or be unexported (golint)
    • Line 43: warning: exported type ResourcePoolPayload should have comment or be unexported (golint)
    • Line 50: warning: exported type CreateResourcePoolPayload should have comment or be unexported (golint)
    • Line 54: warning: exported type UpdateResourcePoolPayload should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.ListResourcePools should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.GetResourcePool should have comment or be unexported (golint)
    • Line 76: warning: exported method Client.CreateResourcePool should have comment or be unexported (golint)
    • Line 86: warning: exported method Client.UpdateResourcePool should have comment or be unexported (golint)
    • Line 96: warning: exported method Client.DeleteResourcePool should have comment or be unexported (golint)
    • Line 108: warning: exported method Client.FindResourcePoolByName should have comment or be unexported (golint)
    • spec_templates.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var SpecTemplatesPath should have comment or be unexported (golint)
    • Line 23: warning: exported type Type should have comment or be unexported (golint)
    • Line 26: warning: exported type Cloudformation should have comment or be unexported (golint)
    • Line 31: warning: exported type Config should have comment or be unexported (golint)
    • Line 34: warning: exported type File should have comment or be unexported (golint)
    • Line 42: warning: exported type Repository should have comment or be unexported (golint)
    • Line 46: warning: exported type ListSpecTemplatesResult should have comment or be unexported (golint)
    • Line 51: warning: exported type GetSpecTemplateResult should have comment or be unexported (golint)
    • Line 55: warning: exported type CreateSpecTemplateResult should have comment or be unexported (golint)
    • Line 62: warning: exported type UpdateSpecTemplateResult should have comment or be unexported (golint)
    • Line 66: warning: exported type DeleteSpecTemplateResult should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.ListSpecTemplates should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.GetSpecTemplate should have comment or be unexported (golint)
    • Line 90: warning: exported method Client.CreateSpecTemplate should have comment or be unexported (golint)
    • Line 100: warning: exported method Client.UpdateSpecTemplate should have comment or be unexported (golint)
    • Line 110: warning: exported method Client.DeleteSpecTemplate should have comment or be unexported (golint)
    • Line 122: warning: exported method Client.FindSpecTemplateByName should have comment or be unexported (golint)
    • client.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 16: warning: exported type Client should have comment or be unexported (golint)
    • Line 42: warning: exported method Client.IsLoggedIn should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.RequestCount should have comment or be unexported (golint)
    • Line 50: warning: exported method Client.SuccessCount should have comment or be unexported (golint)
    • Line 54: warning: exported method Client.ErrorCount should have comment or be unexported (golint)
    • Line 69: warning: exported method Client.LastRequest should have comment or be unexported (golint)
    • Line 73: warning: exported method Client.LastResponse should have comment or be unexported (golint)
    • Line 87: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.SetUsername should have comment or be unexported (golint)
    • Line 109: warning: exported method Client.SetPassword should have comment or be unexported (golint)
    • Line 114: warning: exported method Client.SetUsernameAndPassword should have comment or be unexported (golint)
    • Line 120: warning: exported method Client.SetAccessToken should have comment or be unexported (golint)
    • Line 128: warning: exported method Client.ClearAccessToken should have comment or be unexported (golint)
    • Line 136: warning: exported method Client.Execute should have comment or be unexported (golint)
    • Line 272: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 291: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 363: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 368: warning: exported method Client.Post should have comment or be unexported (golint)
    • Line 373: warning: exported method Client.Put should have comment or be unexported (golint)
    • Line 378: warning: exported method Client.Delete should have comment or be unexported (golint)
    • Line 383: warning: exported method Client.Patch should have comment or be unexported (golint)
    • Line 388: warning: exported method Client.Head should have comment or be unexported (golint)
    • Line 393: warning: exported method Client.Options should have comment or be unexported (golint)
    • Line 403: warning: exported type LoginResult should have comment or be unexported (golint)
    • Line 410: warning: exported method Client.Login should have comment or be unexported (golint)
    • Line 415: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 455: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 465: warning: exported method Client.Logout should have comment or be unexported (golint)
    • groups.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var GroupsPath should have comment or be unexported (golint)
    • Line 16: warning: exported type Group should have comment or be unexported (golint)
    • Line 24: warning: exported type Zone should have comment or be unexported (golint)
    • Line 29: warning: exported type ListGroupsResult should have comment or be unexported (golint)
    • Line 34: warning: exported type GetGroupResult should have comment or be unexported (golint)
    • Line 38: warning: exported type CreateGroupResult should have comment or be unexported (golint)
    • Line 45: warning: exported type UpdateGroupResult should have comment or be unexported (golint)
    • Line 49: warning: exported type DeleteGroupResult should have comment or be unexported (golint)
    • Line 55: warning: exported method Client.ListGroups should have comment or be unexported (golint)
    • Line 64: warning: exported method Client.GetGroup should have comment or be unexported (golint)
    • Line 73: warning: exported method Client.CreateGroup should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.UpdateGroup should have comment or be unexported (golint)
    • Line 93: warning: exported method Client.UpdateGroupClouds should have comment or be unexported (golint)
    • Line 103: warning: exported method Client.UpdateGroupZones should have comment or be unexported (golint)
    • Line 107: warning: exported method Client.DeleteGroup should have comment or be unexported (golint)
    • Line 119: warning: exported method Client.FindGroupByName should have comment or be unexported (golint)
    • integrations.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 21: warning: exported type ListIntegrationsResult should have comment or be unexported (golint)
    • Line 26: warning: exported type GetIntegrationResult should have comment or be unexported (golint)
    • Line 30: warning: exported type CreateIntegrationResult should have comment or be unexported (golint)
    • Line 37: warning: exported type UpdateIntegrationResult should have comment or be unexported (golint)
    • Line 41: warning: exported type DeleteIntegrationResult should have comment or be unexported (golint)
    • Line 47: warning: exported method Client.ListIntegrations should have comment or be unexported (golint)
    • Line 56: warning: exported method Client.GetIntegration should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.CreateIntegration should have comment or be unexported (golint)
    • Line 75: warning: exported method Client.UpdateIntegration should have comment or be unexported (golint)
    • Line 85: warning: exported method Client.DeleteIntegration should have comment or be unexported (golint)
    • Line 97: warning: exported method Client.FindIntegrationByName should have comment or be unexported (golint)
    • tasks.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var TasksPath should have comment or be unexported (golint)
    • Line 16: warning: exported type Task should have comment or be unexported (golint)
    • Line 23: warning: exported type ListTasksResult should have comment or be unexported (golint)
    • Line 28: warning: exported type GetTaskResult should have comment or be unexported (golint)
    • Line 32: warning: exported type CreateTaskResult should have comment or be unexported (golint)
    • Line 39: warning: exported type UpdateTaskResult should have comment or be unexported (golint)
    • Line 43: warning: exported type DeleteTaskResult should have comment or be unexported (golint)
    • Line 49: warning: exported method Client.ListTasks should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.GetTask should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.CreateTask should have comment or be unexported (golint)
    • Line 77: warning: exported method Client.UpdateTask should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.DeleteTask should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.FindTaskByName should have comment or be unexported (golint)
    • accounts.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var TenantsPath should have comment or be unexported (golint)
    • Line 16: warning: exported type Tenant should have comment or be unexported (golint)
    • Line 29: warning: exported type ListTenantsResult should have comment or be unexported (golint)
    • Line 34: warning: exported type GetTenantResult should have comment or be unexported (golint)
    • Line 38: warning: exported type CreateTenantResult should have comment or be unexported (golint)
    • Line 45: warning: exported type UpdateTenantResult should have comment or be unexported (golint)
    • Line 49: warning: exported type DeleteTenantResult should have comment or be unexported (golint)
    • Line 55: warning: exported method Client.ListTenants should have comment or be unexported (golint)
    • Line 64: warning: exported method Client.GetTenant should have comment or be unexported (golint)
    • Line 73: warning: exported method Client.CreateTenant should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.UpdateTenant should have comment or be unexported (golint)
    • Line 93: warning: exported method Client.DeleteTenant should have comment or be unexported (golint)
    • Line 105: warning: exported method Client.FindTenantByName should have comment or be unexported (golint)
    • task_sets.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var TaskSetsPath should have comment or be unexported (golint)
    • Line 16: warning: exported type TaskSet should have comment or be unexported (golint)
    • Line 25: warning: exported type TaskSetPayload should have comment or be unexported (golint)
    • Line 37: warning: exported type ListTaskSetsResult should have comment or be unexported (golint)
    • Line 42: warning: exported type GetTaskSetResult should have comment or be unexported (golint)
    • Line 46: warning: exported type CreateTaskSetResult should have comment or be unexported (golint)
    • Line 53: warning: exported type UpdateTaskSetResult should have comment or be unexported (golint)
    • Line 57: warning: exported type DeleteTaskSetResult should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.ListTaskSets should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.GetTaskSet should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.CreateTaskSet should have comment or be unexported (golint)
    • Line 91: warning: exported method Client.UpdateTaskSet should have comment or be unexported (golint)
    • Line 101: warning: exported method Client.DeleteTaskSet should have comment or be unexported (golint)
    • Line 113: warning: exported method Client.FindTaskSetByName should have comment or be unexported (golint)
    • option_types.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var OptionTypesPath should have comment or be unexported (golint)
    • Line 16: warning: exported type OptionType should have comment or be unexported (golint)
    • Line 34: warning: exported type ListOptionTypesResult should have comment or be unexported (golint)
    • Line 39: warning: exported type GetOptionTypeResult should have comment or be unexported (golint)
    • Line 43: warning: exported type CreateOptionTypeResult should have comment or be unexported (golint)
    • Line 50: warning: exported type UpdateOptionTypeResult should have comment or be unexported (golint)
    • Line 54: warning: exported type DeleteOptionTypeResult should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.ListOptionTypes should have comment or be unexported (golint)
    • Line 69: warning: exported method Client.GetOptionType should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.CreateOptionType should have comment or be unexported (golint)
    • Line 88: warning: exported method Client.UpdateOptionType should have comment or be unexported (golint)
    • Line 98: warning: exported method Client.DeleteOptionType should have comment or be unexported (golint)
    • Line 110: warning: exported method Client.FindOptionTypeByName should have comment or be unexported (golint)
    • apps.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 15: warning: exported type App should have comment or be unexported (golint)
    • Line 24: warning: exported type ListAppsResult should have comment or be unexported (golint)
    • Line 29: warning: exported type GetAppResult should have comment or be unexported (golint)
    • Line 33: warning: exported type CreateAppResult should have comment or be unexported (golint)
    • Line 40: warning: exported type UpdateAppResult should have comment or be unexported (golint)
    • Line 44: warning: exported type DeleteAppResult should have comment or be unexported (golint)
    • Line 50: warning: exported method Client.ListApps should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.GetApp should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.CreateApp should have comment or be unexported (golint)
    • Line 79: warning: exported method Client.UpdateApp should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.DeleteApp should have comment or be unexported (golint)
    • Line 99: warning: comment on exported method Client.FindAppByName should be of the form "FindAppByName ..." (golint)
    • clusters.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var ClustersPath should have comment or be unexported (golint)
    • Line 16: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 28: warning: exported type Server should have comment or be unexported (golint)
    • Line 39: warning: exported type ListClustersResult should have comment or be unexported (golint)
    • Line 44: warning: exported type GetClusterResult should have comment or be unexported (golint)
    • Line 48: warning: exported type CreateClusterResult should have comment or be unexported (golint)
    • Line 55: warning: exported type UpdateClusterResult should have comment or be unexported (golint)
    • Line 59: warning: exported type DeleteClusterResult should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.ListClusters should have comment or be unexported (golint)
    • Line 74: warning: exported method Client.GetCluster should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.CreateCluster should have comment or be unexported (golint)
    • Line 93: warning: exported method Client.UpdateCluster should have comment or be unexported (golint)
    • Line 103: warning: exported method Client.DeleteCluster should have comment or be unexported (golint)
    • Line 115: warning: exported method Client.FindClusterByName should have comment or be unexported (golint)
    • execute_schedules.go
    • Line 23: warning: exported type ListExecuteSchedulesResult should have comment or be unexported (golint)
    • Line 28: warning: exported type GetExecuteScheduleResult should have comment or be unexported (golint)
    • Line 32: warning: exported type CreateExecuteScheduleResult should have comment or be unexported (golint)
    • Line 39: warning: exported type UpdateExecuteScheduleResult should have comment or be unexported (golint)
    • Line 43: warning: exported type DeleteExecuteScheduleResult should have comment or be unexported (golint)
    • Line 49: warning: exported method Client.ListExecuteSchedules should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.GetExecuteSchedule should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.CreateExecuteSchedule should have comment or be unexported (golint)
    • Line 77: warning: exported method Client.UpdateExecuteSchedule should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.DeleteExecuteSchedule should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.FindExecuteScheduleByName should have comment or be unexported (golint)
    • policies.go
    • Line 26: warning: exported type ListPoliciesResult should have comment or be unexported (golint)
    • Line 31: warning: exported type GetPolicyResult should have comment or be unexported (golint)
    • Line 35: warning: exported type CreatePolicyResult should have comment or be unexported (golint)
    • Line 42: warning: exported type UpdatePolicyResult should have comment or be unexported (golint)
    • Line 46: warning: exported type DeletePolicyResult should have comment or be unexported (golint)
    • Line 52: warning: exported method Client.ListPolicies should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.GetPolicy should have comment or be unexported (golint)
    • Line 70: warning: exported method Client.CreatePolicy should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.UpdatePolicy should have comment or be unexported (golint)
    • Line 90: warning: exported method Client.DeletePolicy should have comment or be unexported (golint)
    • Line 102: warning: exported method Client.FindPolicyByName should have comment or be unexported (golint)
    • result_types.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: comment on exported type DeleteResult should be of the form "DeleteResult ..." (with optional leading article) (golint)
    • Line 29: warning: comment on exported type GetByIdRequest should be of the form "GetByIdRequest ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type TenantAbbrev should be of the form "TenantAbbrev ..." (with optional leading article) (golint)
    • instance_types.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 15: warning: exported type InstanceType should have comment or be unexported (golint)
    • Line 24: warning: exported type ListInstanceTypesResult should have comment or be unexported (golint)
    • Line 29: warning: exported type GetInstanceTypeResult should have comment or be unexported (golint)
    • Line 33: warning: exported type CreateInstanceTypeResult should have comment or be unexported (golint)
    • Line 40: warning: exported type UpdateInstanceTypeResult should have comment or be unexported (golint)
    • Line 44: warning: exported type DeleteInstanceTypeResult should have comment or be unexported (golint)
    • Line 50: warning: exported method Client.ListInstanceTypes should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.GetInstanceType should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.CreateInstanceType should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.UpdateInstanceType should have comment or be unexported (golint)
    • Line 88: warning: exported method Client.DeleteInstanceType should have comment or be unexported (golint)
    • Line 98: warning: comment on exported method Client.FindInstanceTypeByName should be of the form "FindInstanceTypeByName ..." (golint)
    • networks.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 9: warning: exported var NetworksPath should have comment or be unexported (golint)
    • Line 14: warning: exported type Network should have comment or be unexported (golint)
    • Line 22: warning: exported type ListNetworksResult should have comment or be unexported (golint)
    • Line 27: warning: exported type GetNetworkResult should have comment or be unexported (golint)
    • Line 31: warning: exported type CreateNetworkResult should have comment or be unexported (golint)
    • Line 38: warning: exported type UpdateNetworkResult should have comment or be unexported (golint)
    • Line 42: warning: exported type DeleteNetworkResult should have comment or be unexported (golint)
    • Line 46: warning: exported type NetworkPayload should have comment or be unexported (golint)
    • Line 53: warning: exported type CreateNetworkPayload should have comment or be unexported (golint)
    • Line 57: warning: exported type UpdateNetworkPayload should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.ListNetworks should have comment or be unexported (golint)
    • Line 70: warning: exported method Client.GetNetwork should have comment or be unexported (golint)
    • Line 79: warning: exported method Client.CreateNetwork should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.UpdateNetwork should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.DeleteNetwork should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.FindNetworkByName should have comment or be unexported (golint)
    • plans.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 15: warning: exported type Plan should have comment or be unexported (golint)
    • Line 23: warning: exported type ListPlansResult should have comment or be unexported (golint)
    • Line 28: warning: exported type GetPlanResult should have comment or be unexported (golint)
    • Line 32: warning: exported type CreatePlanResult should have comment or be unexported (golint)
    • Line 39: warning: exported type UpdatePlanResult should have comment or be unexported (golint)
    • Line 43: warning: exported type DeletePlanResult should have comment or be unexported (golint)
    • Line 49: warning: exported method Client.ListPlans should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.GetPlan should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.CreatePlan should have comment or be unexported (golint)
    • Line 77: warning: exported method Client.UpdatePlan should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.DeletePlan should have comment or be unexported (golint)
    • Line 97: warning: comment on exported method Client.FindPlanByName should be of the form "FindPlanByName ..." (golint)
    • contacts.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var ContactsPath should have comment or be unexported (golint)
    • Line 16: warning: exported type Contact should have comment or be unexported (golint)
    • Line 24: warning: exported type ListContactsResult should have comment or be unexported (golint)
    • Line 29: warning: exported type GetContactResult should have comment or be unexported (golint)
    • Line 33: warning: exported type CreateContactResult should have comment or be unexported (golint)
    • Line 40: warning: exported type UpdateContactResult should have comment or be unexported (golint)
    • Line 44: warning: exported type DeleteContactResult should have comment or be unexported (golint)
    • Line 50: warning: exported method Client.ListContacts should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.GetContact should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.CreateContact should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.UpdateContact should have comment or be unexported (golint)
    • Line 88: warning: exported method Client.DeleteContact should have comment or be unexported (golint)
    • Line 98: warning: comment on exported method Client.FindContactByName should be of the form "FindContactByName ..." (golint)
    • response.go
    • Line 14: warning: exported type Response should have comment or be unexported (golint)
    • Line 44: warning: exported method Response.SetRequest should have comment or be unexported (golint)
    • Line 49: warning: exported method Response.GetRequest should have comment or be unexported (golint)
    • Line 57: warning: comment on exported type APIResponse should be of the form "APIResponse ..." (with optional leading article) (golint)
    • setup.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 8: warning: exported var SetupPath should have comment or be unexported (golint)
    • Line 11: warning: exported type SetupCheckResult should have comment or be unexported (golint)
    • Line 18: warning: exported type SetupInitResult should have comment or be unexported (golint)
    • Line 22: warning: exported type SetupInitPayload should have comment or be unexported (golint)
    • Line 31: warning: exported method Client.SetupCheck should have comment or be unexported (golint)
    • Line 41: warning: exported method Client.SetupInit should have comment or be unexported (golint)
    • roles.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var RolesPath should have comment or be unexported (golint)
    • Line 17: warning: exported type Role should have comment or be unexported (golint)
    • Line 26: warning: exported type ListRolesResult should have comment or be unexported (golint)
    • Line 31: warning: exported type GetRoleResult should have comment or be unexported (golint)
    • Line 35: warning: exported type CreateRoleResult should have comment or be unexported (golint)
    • Line 42: warning: exported type UpdateRoleResult should have comment or be unexported (golint)
    • Line 46: warning: exported type DeleteRoleResult should have comment or be unexported (golint)
    • Line 52: warning: exported method Client.ListRoles should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.ListTenantRoles should have comment or be unexported (golint)
    • Line 70: warning: exported method Client.GetRole should have comment or be unexported (golint)
    • Line 79: warning: exported method Client.CreateRole should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.UpdateRole should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.DeleteRole should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.FindRoleByName should have comment or be unexported (golint)
    • Line 131: warning: exported method Client.FindTenantRoleByName should have comment or be unexported (golint)
    • environments.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 15: warning: exported type Environment should have comment or be unexported (golint)
    • Line 24: warning: exported type ListEnvironmentsResult should have comment or be unexported (golint)
    • Line 29: warning: exported type GetEnvironmentResult should have comment or be unexported (golint)
    • Line 33: warning: exported type CreateEnvironmentResult should have comment or be unexported (golint)
    • Line 40: warning: exported type UpdateEnvironmentResult should have comment or be unexported (golint)
    • Line 44: warning: exported type DeleteEnvironmentResult should have comment or be unexported (golint)
    • Line 50: warning: exported method Client.ListEnvironments should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.GetEnvironment should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.CreateEnvironment should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.UpdateEnvironment should have comment or be unexported (golint)
    • Line 88: warning: exported method Client.DeleteEnvironment should have comment or be unexported (golint)
    • Line 98: warning: comment on exported method Client.FindEnvironmentByName should be of the form "FindEnvironmentByName ..." (golint)
    • key_pairs.go
    • Line 10: warning: exported var KeyPairsPath should have comment or be unexported (golint)
    • Line 13: warning: exported type KeyPair should have comment or be unexported (golint)
    • Line 20: warning: exported type ListKeyPairsResult should have comment or be unexported (golint)
    • Line 25: warning: exported type GetKeyPairResult should have comment or be unexported (golint)
    • Line 29: warning: exported type CreateKeyPairResult should have comment or be unexported (golint)
    • Line 36: warning: exported type UpdateKeyPairResult should have comment or be unexported (golint)
    • Line 40: warning: exported type DeleteKeyPairResult should have comment or be unexported (golint)
    • Line 46: warning: exported type KeyPairPayload should have comment or be unexported (golint)
    • Line 52: warning: exported type CreateKeyPairPayload should have comment or be unexported (golint)
    • Line 56: warning: exported type UpdateKeyPairBody should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.ListKeyPairs should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.GetKeyPair should have comment or be unexported (golint)
    • option_lists.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var OptionListsPath should have comment or be unexported (golint)
    • Line 16: warning: exported type OptionList should have comment or be unexported (golint)
    • Line 35: warning: exported type SourceHeader should have comment or be unexported (golint)
    • Line 41: warning: exported type ListOptionListsResult should have comment or be unexported (golint)
    • Line 46: warning: exported type GetOptionListResult should have comment or be unexported (golint)
    • Line 50: warning: exported type CreateOptionListResult should have comment or be unexported (golint)
    • Line 57: warning: exported type UpdateOptionListResult should have comment or be unexported (golint)
    • Line 61: warning: exported type DeleteOptionListResult should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.ListOptionLists should have comment or be unexported (golint)
    • Line 76: warning: exported method Client.GetOptionList should have comment or be unexported (golint)
    • Line 85: warning: exported method Client.CreateOptionList should have comment or be unexported (golint)
    • Line 95: warning: exported method Client.UpdateOptionList should have comment or be unexported (golint)
    • Line 105: warning: exported method Client.DeleteOptionList should have comment or be unexported (golint)
    • Line 117: warning: exported method Client.FindOptionListByName should have comment or be unexported (golint)
    • network_domains.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 9: warning: exported var NetworkDomainsPath should have comment or be unexported (golint)
    • Line 14: warning: exported type NetworkDomain should have comment or be unexported (golint)
    • Line 34: warning: exported type ListNetworkDomainsResult should have comment or be unexported (golint)
    • Line 39: warning: exported type GetNetworkDomainResult should have comment or be unexported (golint)
    • Line 43: warning: exported type CreateNetworkDomainResult should have comment or be unexported (golint)
    • Line 50: warning: exported type UpdateNetworkDomainResult should have comment or be unexported (golint)
    • Line 54: warning: exported type DeleteNetworkDomainResult should have comment or be unexported (golint)
    • Line 58: warning: exported type NetworkDomainPayload should have comment or be unexported (golint)
    • Line 74: warning: exported type CreateNetworkDomainPayload should have comment or be unexported (golint)
    • Line 78: warning: exported type UpdateNetworkDomainPayload should have comment or be unexported (golint)
    • Line 138: warning: exported method Client.ListNetworkDomains should have comment or be unexported (golint)
    • Line 147: warning: exported method Client.GetNetworkDomain should have comment or be unexported (golint)
    • Line 156: warning: exported method Client.CreateNetworkDomain should have comment or be unexported (golint)
    • Line 166: warning: exported method Client.UpdateNetworkDomain should have comment or be unexported (golint)
    • Line 176: warning: exported method Client.DeleteNetworkDomain should have comment or be unexported (golint)
    • Line 188: warning: exported method Client.FindNetworkDomainByName should have comment or be unexported (golint)
    • instance_layouts.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 15: warning: exported type InstanceLayout should have comment or be unexported (golint)
    • Line 23: warning: exported type ListInstanceLayoutsResult should have comment or be unexported (golint)
    • Line 28: warning: exported type GetInstanceLayoutResult should have comment or be unexported (golint)
    • Line 32: warning: exported type CreateInstanceLayoutResult should have comment or be unexported (golint)
    • Line 39: warning: exported type UpdateInstanceLayoutResult should have comment or be unexported (golint)
    • Line 43: warning: exported type DeleteInstanceLayoutResult should have comment or be unexported (golint)
    • Line 49: warning: exported method Client.ListInstanceLayouts should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.GetInstanceLayout should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.CreateInstanceLayout should have comment or be unexported (golint)
    • Line 77: warning: exported method Client.UpdateInstanceLayout should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.DeleteInstanceLayout should have comment or be unexported (golint)
    • Line 97: warning: comment on exported method Client.FindInstanceLayoutByName should be of the form "FindInstanceLayoutByName ..." (golint)
    • instances.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 12: warning: exported var InstancesPath should have comment or be unexported (golint)
    • Line 17: warning: exported type Instance should have comment or be unexported (golint)
    • Line 41: warning: exported type InstancePlan should have comment or be unexported (golint)
    • Line 47: warning: exported type ListInstancesResult should have comment or be unexported (golint)
    • Line 52: warning: exported type GetInstanceResult should have comment or be unexported (golint)
    • Line 56: warning: exported type CreateInstanceResult should have comment or be unexported (golint)
    • Line 63: warning: exported type UpdateInstanceResult should have comment or be unexported (golint)
    • Line 67: warning: exported type DeleteInstanceResult should have comment or be unexported (golint)
    • Line 71: warning: exported type ListInstancePlansResult should have comment or be unexported (golint)
    • Line 76: warning: exported type GetInstancePlanResult should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.ListInstances should have comment or be unexported (golint)
    • Line 91: warning: exported method Client.GetInstance should have comment or be unexported (golint)
    • Line 100: warning: exported method Client.CreateInstance should have comment or be unexported (golint)
    • Line 110: warning: exported method Client.UpdateInstance should have comment or be unexported (golint)
    • Line 120: warning: exported method Client.DeleteInstance should have comment or be unexported (golint)
    • Line 132: warning: exported method Client.FindInstanceByName should have comment or be unexported (golint)
    • Line 155: warning: exported method Client.ListInstancePlans should have comment or be unexported (golint)
    • Line 164: warning: comment on exported method Client.GetInstancePlan should be of the form "GetInstancePlan ..." (golint)
    • Line 174: warning: exported method Client.FindInstancePlanByName should have comment or be unexported (golint)
    • Line 223: warning: comment on exported method Client.FindInstancePlanByCode should be of the form "FindInstancePlanByCode ..." (golint)
    • jobs.go
    • Line 28: warning: exported type ListJobsResult should have comment or be unexported (golint)
    • Line 33: warning: exported type GetJobResult should have comment or be unexported (golint)
    • Line 37: warning: exported type CreateJobResult should have comment or be unexported (golint)
    • Line 44: warning: exported type UpdateJobResult should have comment or be unexported (golint)
    • Line 48: warning: exported type DeleteJobResult should have comment or be unexported (golint)
    • Line 54: warning: exported method Client.ListJobs should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.GetJob should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.CreateJob should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.UpdateJob should have comment or be unexported (golint)
    • Line 92: warning: exported method Client.DeleteJob should have comment or be unexported (golint)
    • Line 104: warning: exported method Client.FindJobByName should have comment or be unexported (golint)
    • whoami.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 9: warning: exported var WhoamiPath should have comment or be unexported (golint)
    • Line 12: warning: exported type WhoamiResult should have comment or be unexported (golint)
    • Line 19: warning: exported type WhoamiPermissionObject should have comment or be unexported (golint)
    • Line 25: warning: exported type WhoamiUserResult should have comment or be unexported (golint)
    • Line 31: warning: exported type WhoamiApplianceResult should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.Whoami should have comment or be unexported (golint)
    • blueprints.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 15: warning: exported type Blueprint should have comment or be unexported (golint)
    • Line 24: warning: exported type ListBlueprintsResult should have comment or be unexported (golint)
    • Line 29: warning: exported type GetBlueprintResult should have comment or be unexported (golint)
    • Line 33: warning: exported type CreateBlueprintResult should have comment or be unexported (golint)
    • Line 40: warning: exported type UpdateBlueprintResult should have comment or be unexported (golint)
    • Line 44: warning: exported type DeleteBlueprintResult should have comment or be unexported (golint)
    • Line 50: warning: exported method Client.ListBlueprints should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.GetBlueprint should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.CreateBlueprint should have comment or be unexported (golint)
    • Line 79: warning: exported method Client.UpdateBlueprint should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.DeleteBlueprint should have comment or be unexported (golint)
    • Line 99: warning: comment on exported method Client.FindBlueprintByName should be of the form "FindBlueprintByName ..." (golint)
    • catalog_items.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 11: warning: exported var CatalogItemsPath should have comment or be unexported (golint)
    • Line 16: warning: exported type CatalogItem should have comment or be unexported (golint)
    • Line 28: warning: exported type ListCatalogItemsResult should have comment or be unexported (golint)
    • Line 33: warning: exported type GetCatalogItemResult should have comment or be unexported (golint)
    • Line 37: warning: exported type CreateCatalogItemResult should have comment or be unexported (golint)
    • Line 44: warning: exported type UpdateCatalogItemResult should have comment or be unexported (golint)
    • Line 48: warning: exported type DeleteCatalogItemResult should have comment or be unexported (golint)
    • Line 54: warning: exported method Client.ListCatalogItems should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.GetCatalogItem should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.CreateCatalogItem should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.UpdateCatalogItem should have comment or be unexported (golint)
    • Line 92: warning: exported method Client.DeleteCatalogItem should have comment or be unexported (golint)
    • Line 104: warning: exported method Client.FindCatalogItemByName should have comment or be unexported (golint)
    • clouds.go
    • Line 1: warning: package comment should be of the form "Package morpheus ..." (golint)
    • Line 12: warning: exported var CloudsPath should have comment or be unexported (golint)
    • Line 17: warning: exported type Cloud should have comment or be unexported (golint)
    • Line 31: warning: exported type CloudType should have comment or be unexported (golint)
    • Line 37: warning: exported type ListCloudsResult should have comment or be unexported (golint)
    • Line 42: warning: exported type GetCloudResult should have comment or be unexported (golint)
    • Line 46: warning: exported type CreateCloudResult should have comment or be unexported (golint)
    • Line 53: warning: exported type UpdateCloudResult should have comment or be unexported (golint)
    • Line 57: warning: exported type DeleteCloudResult should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.ListClouds should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.GetCloud should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.CreateCloud should have comment or be unexported (golint)
    • Line 91: warning: exported method Client.UpdateCloud should have comment or be unexported (golint)
    • Line 101: warning: exported method Client.DeleteCloud should have comment or be unexported (golint)
    • Line 113: warning: exported method Client.FindCloudByName should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.

    • client_test.go
    • Line 149: warning: ineffectual assignment to resp (ineffassign)
    • Line 161: warning: ineffectual assignment to resp (ineffassign)
    • Line 161: warning: ineffectual assignment to err (ineffassign)
    • Line 162: warning: ineffectual assignment to resp (ineffassign)
    • Line 162: warning: ineffectual assignment to err (ineffassign)
    • Line 163: warning: ineffectual assignment to resp (ineffassign)
    • Line 163: warning: ineffectual assignment to err (ineffassign)
    • Line 164: warning: ineffectual assignment to resp (ineffassign)

misspell98%

Misspell Finds commonly misspelled English words