Preparing report...

Report for github.com/cloudfoundry-community/go-cfclient

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


golint55%

Golint is a linter for Go source code.

    • go-cfclient/app_usage_events.go
    • Line 11: warning: exported type AppUsageEvent should have comment or be unexported (golint)
    • Line 36: warning: exported type AppUsageEventsResponse should have comment or be unexported (golint)
    • Line 43: warning: exported type AppUsageEventResource should have comment or be unexported (golint)
    • go-cfclient/client.go
    • Line 28: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 53: warning: exported type LoginHint should have comment or be unexported (golint)
    • Line 81: warning: exported function DefaultEndpoint should have comment or be unexported (golint)
    • Line 292: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 413: warning: exported method Client.GetToken should have comment or be unexported (golint)
    • Line 427: warning: exported var ErrPreventRedirect should have comment or be unexported (golint)
    • Line 429: warning: exported method Client.GetSSHCode should have comment or be unexported (golint)
    • go-cfclient/metadata.go
    • Line 14: warning: exported type MetadataHolder should have comment or be unexported (golint)
    • Line 18: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 23: warning: exported method Metadata.AddAnnotation should have comment or be unexported (golint)
    • Line 30: warning: exported method Metadata.RemoveAnnotation should have comment or be unexported (golint)
    • Line 37: warning: exported method Metadata.AddLabel should have comment or be unexported (golint)
    • Line 48: warning: exported method Metadata.RemoveLabel should have comment or be unexported (golint)
    • Line 59: warning: exported method Metadata.Clear should have comment or be unexported (golint)
    • Line 73: warning: exported method Client.UpdateOrgMetadata should have comment or be unexported (golint)
    • Line 93: warning: exported method Client.UpdateSpaceMetadata should have comment or be unexported (golint)
    • Line 113: warning: exported method Client.OrgMetadata should have comment or be unexported (golint)
    • Line 123: warning: exported method Client.SpaceMetadata should have comment or be unexported (golint)
    • Line 133: warning: exported method Client.RemoveOrgMetadata should have comment or be unexported (golint)
    • Line 141: warning: exported method Client.RemoveSpaceMetadata should have comment or be unexported (golint)
    • go-cfclient/service_usage_events.go
    • Line 11: warning: exported type ServiceUsageEvent should have comment or be unexported (golint)
    • Line 28: warning: exported type ServiceUsageEventsResponse should have comment or be unexported (golint)
    • Line 35: warning: exported type ServiceUsageEventResource should have comment or be unexported (golint)
    • go-cfclient/v3spaces.go
    • Line 12: warning: exported type V3Space should have comment or be unexported (golint)
    • Line 22: warning: exported type CreateV3SpaceRequest should have comment or be unexported (golint)
    • Line 28: warning: exported type UpdateV3SpaceRequest should have comment or be unexported (golint)
    • Line 33: warning: exported method Client.CreateV3Space should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.GetV3SpaceByGUID should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.DeleteV3Space should have comment or be unexported (golint)
    • Line 104: warning: exported method Client.UpdateV3Space should have comment or be unexported (golint)
    • Line 140: warning: exported method Client.ListV3SpacesByQuery should have comment or be unexported (golint)
    • go-cfclient/buildpacks.go
    • Line 17: warning: exported type BuildpackResponse should have comment or be unexported (golint)
    • Line 24: warning: exported type BuildpackResource should have comment or be unexported (golint)
    • Line 29: warning: exported type Buildpack should have comment or be unexported (golint)
    • Line 42: warning: exported type BuildpackRequest should have comment or be unexported (golint)
    • Line 53: warning: exported method Client.CreateBuildpack should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.ListBuildpacks should have comment or be unexported (golint)
    • Line 90: warning: exported method Client.DeleteBuildpack should have comment or be unexported (golint)
    • Line 128: warning: exported method Client.GetBuildpackByGuid should have comment or be unexported (golint)
    • Line 151: warning: exported method Buildpack.Upload should have comment or be unexported (golint)
    • Line 208: warning: exported method Buildpack.Update should have comment or be unexported (golint)
    • Line 226: warning: exported method BuildpackRequest.Lock should have comment or be unexported (golint)
    • Line 230: warning: exported method BuildpackRequest.Unlock should have comment or be unexported (golint)
    • Line 234: warning: exported method BuildpackRequest.Enable should have comment or be unexported (golint)
    • Line 238: warning: exported method BuildpackRequest.Disable should have comment or be unexported (golint)
    • Line 242: warning: exported method BuildpackRequest.SetPosition should have comment or be unexported (golint)
    • Line 245: warning: exported method BuildpackRequest.SetName should have comment or be unexported (golint)
    • Line 248: warning: exported method BuildpackRequest.SetStack should have comment or be unexported (golint)
    • go-cfclient/org_quotas.go
    • Line 14: warning: exported type OrgQuotasResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type OrgQuotasResource should have comment or be unexported (golint)
    • Line 26: warning: exported type OrgQuotaRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type OrgQuota should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.ListOrgQuotasByQuery should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.ListOrgQuotas should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.GetOrgQuotaByName should have comment or be unexported (golint)
    • Line 119: warning: exported method Client.CreateOrgQuota should have comment or be unexported (golint)
    • Line 136: warning: exported method Client.UpdateOrgQuota should have comment or be unexported (golint)
    • Line 153: warning: exported method Client.DeleteOrgQuota should have comment or be unexported (golint)
    • go-cfclient/routes.go
    • Line 14: warning: exported type RoutesResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type RoutesResource should have comment or be unexported (golint)
    • Line 26: warning: exported type RouteRequest should have comment or be unexported (golint)
    • Line 34: warning: exported type Route should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.GetRouteByGuid should have comment or be unexported (golint)
    • Line 100: warning: exported method Client.ListRoutesByQuery should have comment or be unexported (golint)
    • Line 126: warning: exported method Client.ListRoutes should have comment or be unexported (golint)
    • Line 130: warning: exported method Route.Domain should have comment or be unexported (golint)
    • Line 190: warning: exported method Client.DeleteRoute should have comment or be unexported (golint)
    • go-cfclient/services.go
    • Line 11: warning: exported type ServicesResponse should have comment or be unexported (golint)
    • Line 18: warning: exported type ServicesResource should have comment or be unexported (golint)
    • Line 23: warning: exported type Service should have comment or be unexported (golint)
    • Line 43: warning: exported type ServiceSummary should have comment or be unexported (golint)
    • Line 63: warning: exported type MaintenanceInfo should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.GetServiceByGuid should have comment or be unexported (golint)
    • Line 91: warning: exported method Client.ListServicesByQuery should have comment or be unexported (golint)
    • Line 125: warning: exported method Client.ListServices should have comment or be unexported (golint)
    • go-cfclient/user_provided_service_instances.go
    • Line 14: warning: exported type UserProvidedServiceInstancesResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type UserProvidedServiceInstanceResource should have comment or be unexported (golint)
    • Line 26: warning: exported type UserProvidedServiceInstance should have comment or be unexported (golint)
    • Line 43: warning: exported type UserProvidedServiceInstanceRequest should have comment or be unexported (golint)
    • Line 52: warning: exported method Client.ListUserProvidedServiceInstancesByQuery should have comment or be unexported (golint)
    • Line 88: warning: exported method Client.ListUserProvidedServiceInstances should have comment or be unexported (golint)
    • Line 92: warning: exported method Client.GetUserProvidedServiceInstanceByGuid should have comment or be unexported (golint)
    • Line 115: warning: exported method Client.UserProvidedServiceInstanceByGuid should have comment or be unexported (golint)
    • Line 119: warning: exported method Client.CreateUserProvidedServiceInstance should have comment or be unexported (golint)
    • Line 137: warning: exported method Client.DeleteUserProvidedServiceInstance should have comment or be unexported (golint)
    • Line 148: warning: exported method Client.UpdateUserProvidedServiceInstance should have comment or be unexported (golint)
    • go-cfclient/v3build.go
    • Line 11: warning: exported type V3Build should have comment or be unexported (golint)
    • Line 25: warning: exported type V3CreatedBy should have comment or be unexported (golint)
    • Line 31: warning: exported method Client.GetV3BuildByGUID should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.CreateV3Build should have comment or be unexported (golint)
    • go-cfclient/environmentvariablegroups.go
    • Line 9: warning: exported type EnvironmentVariableGroup should have comment or be unexported (golint)
    • Line 11: warning: exported method Client.GetRunningEnvironmentVariableGroup should have comment or be unexported (golint)
    • Line 15: warning: exported method Client.GetStagingEnvironmentVariableGroup should have comment or be unexported (golint)
    • Line 37: warning: exported method Client.SetRunningEnvironmentVariableGroup should have comment or be unexported (golint)
    • Line 41: warning: exported method Client.SetStagingEnvironmentVariableGroup should have comment or be unexported (golint)
    • go-cfclient/error.go
    • Line 9: warning: exported type CloudFoundryError should have comment or be unexported (golint)
    • Line 15: warning: exported type CloudFoundryErrorsV3 should have comment or be unexported (golint)
    • Line 19: warning: exported type CloudFoundryErrorV3 should have comment or be unexported (golint)
    • Line 25: warning: comment on exported function NewCloudFoundryErrorFromV3Errors should be of the form "NewCloudFoundryErrorFromV3Errors ..." (golint)
    • Line 46: warning: exported type CloudFoundryHTTPError should have comment or be unexported (golint)
    • go-cfclient/service_brokers.go
    • Line 14: warning: exported type ServiceBrokerResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type ServiceBrokerResource should have comment or be unexported (golint)
    • Line 26: warning: exported type UpdateServiceBrokerRequest should have comment or be unexported (golint)
    • Line 33: warning: exported type CreateServiceBrokerRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type ServiceBroker should have comment or be unexported (golint)
    • Line 52: warning: exported method Client.DeleteServiceBroker should have comment or be unexported (golint)
    • Line 66: warning: exported method Client.UpdateServiceBroker should have comment or be unexported (golint)
    • Line 96: warning: exported method Client.CreateServiceBroker should have comment or be unexported (golint)
    • Line 127: warning: exported method Client.ListServiceBrokersByQuery should have comment or be unexported (golint)
    • Line 149: warning: exported method Client.ListServiceBrokers should have comment or be unexported (golint)
    • Line 153: warning: exported method Client.GetServiceBrokerByGuid should have comment or be unexported (golint)
    • Line 175: warning: exported method Client.GetServiceBrokerByName should have comment or be unexported (golint)
    • go-cfclient/users.go
    • Line 14: warning: exported type UserRequest should have comment or be unexported (golint)
    • Line 19: warning: exported type Users should have comment or be unexported (golint)
    • Line 21: warning: exported type User should have comment or be unexported (golint)
    • Line 39: warning: exported type UserResource should have comment or be unexported (golint)
    • Line 44: warning: exported type UserResponse should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.ListUsersByQuery should have comment or be unexported (golint)
    • Line 94: warning: exported method Client.ListUsers should have comment or be unexported (golint)
    • Line 98: warning: exported method Client.ListUserSpaces should have comment or be unexported (golint)
    • Line 102: warning: exported method Client.ListUserAuditedSpaces should have comment or be unexported (golint)
    • Line 106: warning: exported method Client.ListUserManagedSpaces should have comment or be unexported (golint)
    • Line 110: warning: exported method Client.ListUserOrgs should have comment or be unexported (golint)
    • Line 114: warning: exported method Client.ListUserManagedOrgs should have comment or be unexported (golint)
    • Line 118: warning: exported method Client.ListUserAuditedOrgs should have comment or be unexported (golint)
    • Line 122: warning: exported method Client.ListUserBillingManagedOrgs should have comment or be unexported (golint)
    • Line 126: warning: exported method Client.CreateUser should have comment or be unexported (golint)
    • Line 156: warning: exported method Client.DeleteUser should have comment or be unexported (golint)
    • Line 167: warning: exported method Users.GetUserByUsername should have comment or be unexported (golint)
    • go-cfclient/v3packages.go
    • Line 12: warning: exported type V3PackageState should have comment or be unexported (golint)
    • Line 15: warning: exported const AwaitingUpload should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type V3Package should have comment or be unexported (golint)
    • Line 34: warning: exported method V3Package.BitsData should have comment or be unexported (golint)
    • Line 47: warning: exported method V3Package.DockerData should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.ListPackagesForAppV3 should have comment or be unexported (golint)
    • go-cfclient/domains.go
    • Line 14: warning: exported type DomainsResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type SharedDomainsResponse should have comment or be unexported (golint)
    • Line 28: warning: exported type DomainResource should have comment or be unexported (golint)
    • Line 33: warning: exported type SharedDomainResource should have comment or be unexported (golint)
    • Line 38: warning: exported type Domain should have comment or be unexported (golint)
    • Line 49: warning: exported type SharedDomain should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.ListDomainsByQuery should have comment or be unexported (golint)
    • Line 94: warning: exported method Client.ListDomains should have comment or be unexported (golint)
    • Line 98: warning: exported method Client.ListSharedDomainsByQuery should have comment or be unexported (golint)
    • Line 132: warning: exported method Client.ListSharedDomains should have comment or be unexported (golint)
    • Line 136: warning: exported method Client.GetSharedDomainByGuid should have comment or be unexported (golint)
    • Line 147: warning: exported method Client.CreateSharedDomain should have comment or be unexported (golint)
    • Line 147: warning: don't use underscores in Go names; method parameter router_group_guid should be routerGroupGUID (golint)
    • Line 170: warning: exported method Client.DeleteSharedDomain should have comment or be unexported (golint)
    • Line 181: warning: exported method Client.GetDomainByName should have comment or be unexported (golint)
    • Line 194: warning: exported method Client.GetDomainByGuid should have comment or be unexported (golint)
    • Line 205: warning: exported method Client.GetSharedDomainByName should have comment or be unexported (golint)
    • Line 218: warning: exported method Client.CreateDomain should have comment or be unexported (golint)
    • Line 234: warning: exported method Client.DeleteDomain should have comment or be unexported (golint)
    • go-cfclient/secgroups.go
    • Line 16: warning: exported type SecGroupResponse should have comment or be unexported (golint)
    • Line 23: warning: exported type SecGroupCreateResponse should have comment or be unexported (golint)
    • Line 29: warning: exported type SecGroupResource should have comment or be unexported (golint)
    • Line 34: warning: exported type SecGroup should have comment or be unexported (golint)
    • Line 49: warning: exported type SecGroupRule should have comment or be unexported (golint)
    • Line 59: warning: exported var MinStagingSpacesVersion should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.ListSecGroups should have comment or be unexported (golint)
    • Line 113: warning: exported method Client.ListRunningSecGroups should have comment or be unexported (golint)
    • Line 149: warning: exported method Client.ListStagingSecGroups should have comment or be unexported (golint)
    • Line 185: warning: exported method Client.GetSecGroupByName should have comment or be unexported (golint)
    • Line 216: warning: exported method SecGroup.ListSpaceResources should have comment or be unexported (golint)
    • Line 236: warning: exported method SecGroup.ListStagingSpaceResources should have comment or be unexported (golint)
    • Line 353: warning: comment on exported method Client.BindStagingSecGroupToSpace should be of the form "BindStagingSecGroupToSpace ..." (golint)
    • go-cfclient/service_plans.go
    • Line 13: warning: exported type ServicePlansResponse should have comment or be unexported (golint)
    • Line 20: warning: exported type ServicePlanResource should have comment or be unexported (golint)
    • Line 25: warning: exported type ServicePlan should have comment or be unexported (golint)
    • Line 43: warning: exported method Client.ListServicePlansByQuery should have comment or be unexported (golint)
    • Line 76: warning: exported method Client.ListServicePlans should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.GetServicePlanByGUID should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.MakeServicePlanPublic should have comment or be unexported (golint)
    • Line 115: warning: exported method Client.MakeServicePlanPrivate should have comment or be unexported (golint)
    • go-cfclient/stacks.go
    • Line 12: warning: exported type StacksResponse should have comment or be unexported (golint)
    • Line 19: warning: exported type StacksResource should have comment or be unexported (golint)
    • Line 24: warning: exported type Stack should have comment or be unexported (golint)
    • Line 33: warning: exported method Client.ListStacksByQuery should have comment or be unexported (golint)
    • Line 56: warning: exported method Client.ListStacks should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.GetStackByGuid should have comment or be unexported (golint)
    • go-cfclient/v3types.go
    • Line 19: warning: exported type V3ToOneRelationship should have comment or be unexported (golint)
    • Line 23: warning: exported type V3Relationship should have comment or be unexported (golint)
    • Line 27: warning: exported type V3Metadata should have comment or be unexported (golint)
    • go-cfclient/service_bindings.go
    • Line 13: warning: exported type ServiceBindingsResponse should have comment or be unexported (golint)
    • Line 20: warning: exported type ServiceBindingResource should have comment or be unexported (golint)
    • Line 25: warning: exported type ServiceBinding should have comment or be unexported (golint)
    • Line 43: warning: exported method Client.ListServiceBindingsByQuery should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.ListServiceBindings should have comment or be unexported (golint)
    • Line 84: warning: exported method Client.GetServiceBindingByGuid should have comment or be unexported (golint)
    • Line 107: warning: exported method Client.ServiceBindingByGuid should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.DeleteServiceBinding should have comment or be unexported (golint)
    • Line 122: warning: exported method Client.CreateServiceBinding should have comment or be unexported (golint)
    • Line 138: warning: exported method Client.CreateRouteServiceBinding should have comment or be unexported (golint)
    • Line 150: warning: exported method Client.DeleteRouteServiceBinding should have comment or be unexported (golint)
    • go-cfclient/service_plan_visibilities.go
    • Line 14: warning: exported type ServicePlanVisibilitiesResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type ServicePlanVisibilityResource should have comment or be unexported (golint)
    • Line 26: warning: exported type ServicePlanVisibility should have comment or be unexported (golint)
    • Line 37: warning: exported method Client.ListServicePlanVisibilitiesByQuery should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.ListServicePlanVisibilities should have comment or be unexported (golint)
    • Line 75: warning: exported method Client.GetServicePlanVisibilityByGuid should have comment or be unexported (golint)
    • Line 84: warning: comment on exported method Client.CreateServicePlanVisibilityByUniqueId should be of the form "CreateServicePlanVisibilityByUniqueId ..." (golint)
    • Line 95: warning: exported method Client.CreateServicePlanVisibility should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.DeleteServicePlanVisibilityByPlanAndOrg should have comment or be unexported (golint)
    • Line 125: warning: exported method Client.DeleteServicePlanVisibility should have comment or be unexported (golint)
    • Line 137: warning: exported method Client.UpdateServicePlanVisibility should have comment or be unexported (golint)
    • go-cfclient/spaces.go
    • Line 15: warning: exported type SpaceRequest should have comment or be unexported (golint)
    • Line 28: warning: exported type SpaceResponse should have comment or be unexported (golint)
    • Line 35: warning: exported type SpaceResource should have comment or be unexported (golint)
    • Line 40: warning: exported type ServicePlanEntity should have comment or be unexported (golint)
    • Line 50: warning: exported type ServiceOfferingExtra should have comment or be unexported (golint)
    • Line 56: warning: exported type ServiceOfferingEntity should have comment or be unexported (golint)
    • Line 66: warning: exported type ServiceOfferingResource should have comment or be unexported (golint)
    • Line 71: warning: exported type ServiceOfferingResponse should have comment or be unexported (golint)
    • Line 79: warning: exported type SpaceUserResponse should have comment or be unexported (golint)
    • Line 86: warning: exported type Space should have comment or be unexported (golint)
    • Line 100: warning: exported type SpaceSummary should have comment or be unexported (golint)
    • Line 107: warning: exported type SpaceRoleResponse should have comment or be unexported (golint)
    • Line 114: warning: exported type SpaceRoleResource should have comment or be unexported (golint)
    • Line 119: warning: exported type SpaceRole should have comment or be unexported (golint)
    • Line 136: warning: exported method Space.Org should have comment or be unexported (golint)
    • Line 155: warning: exported method Space.Quota should have comment or be unexported (golint)
    • Line 182: warning: exported method Space.Summary should have comment or be unexported (golint)
    • Line 202: warning: exported method Space.Roles should have comment or be unexported (golint)
    • Line 223: warning: exported method Client.CreateSpace should have comment or be unexported (golint)
    • Line 240: warning: exported method Client.UpdateSpace should have comment or be unexported (golint)
    • Line 245: warning: exported method Client.DeleteSpace should have comment or be unexported (golint)
    • Line 256: warning: exported method Client.ListSpaceManagersByQuery should have comment or be unexported (golint)
    • Line 260: warning: exported method Client.ListSpaceManagers should have comment or be unexported (golint)
    • Line 264: warning: exported method Client.ListSpaceAuditorsByQuery should have comment or be unexported (golint)
    • Line 268: warning: exported method Client.ListSpaceAuditors should have comment or be unexported (golint)
    • Line 272: warning: exported method Client.ListSpaceDevelopersByQuery should have comment or be unexported (golint)
    • Line 295: warning: exported method Client.ListSpaceDevelopers should have comment or be unexported (golint)
    • Line 299: warning: exported method Client.AssociateSpaceDeveloper should have comment or be unexported (golint)
    • Line 304: warning: exported method Client.AssociateSpaceDeveloperByUsername should have comment or be unexported (golint)
    • Line 309: warning: exported method Client.AssociateSpaceDeveloperByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 314: warning: exported method Client.RemoveSpaceDeveloper should have comment or be unexported (golint)
    • Line 319: warning: exported method Client.RemoveSpaceDeveloperByUsername should have comment or be unexported (golint)
    • Line 324: warning: exported method Client.RemoveSpaceDeveloperByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 329: warning: exported method Client.AssociateSpaceAuditor should have comment or be unexported (golint)
    • Line 334: warning: exported method Client.AssociateSpaceAuditorByUsername should have comment or be unexported (golint)
    • Line 339: warning: exported method Client.AssociateSpaceAuditorByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 344: warning: exported method Client.RemoveSpaceAuditor should have comment or be unexported (golint)
    • Line 349: warning: exported method Client.RemoveSpaceAuditorByUsername should have comment or be unexported (golint)
    • Line 354: warning: exported method Client.RemoveSpaceAuditorByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 359: warning: exported method Client.AssociateSpaceManager should have comment or be unexported (golint)
    • Line 364: warning: exported method Client.AssociateSpaceManagerByUsername should have comment or be unexported (golint)
    • Line 369: warning: exported method Client.AssociateSpaceManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 374: warning: exported method Client.RemoveSpaceManager should have comment or be unexported (golint)
    • Line 379: warning: exported method Client.RemoveSpaceManagerByUsername should have comment or be unexported (golint)
    • Line 384: warning: exported method Client.RemoveSpaceManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 389: warning: exported method Space.AssociateDeveloper should have comment or be unexported (golint)
    • Line 393: warning: exported method Space.AssociateDeveloperByUsername should have comment or be unexported (golint)
    • Line 397: warning: exported method Space.AssociateDeveloperByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 401: warning: exported method Space.RemoveDeveloper should have comment or be unexported (golint)
    • Line 405: warning: exported method Space.RemoveDeveloperByUsername should have comment or be unexported (golint)
    • Line 409: warning: exported method Space.RemoveDeveloperByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 413: warning: exported method Space.AssociateAuditor should have comment or be unexported (golint)
    • Line 417: warning: exported method Space.AssociateAuditorByUsername should have comment or be unexported (golint)
    • Line 421: warning: exported method Space.AssociateAuditorByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 425: warning: exported method Space.RemoveAuditor should have comment or be unexported (golint)
    • Line 429: warning: exported method Space.RemoveAuditorByUsername should have comment or be unexported (golint)
    • Line 433: warning: exported method Space.RemoveAuditorByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 437: warning: exported method Space.AssociateManager should have comment or be unexported (golint)
    • Line 441: warning: exported method Space.AssociateManagerByUsername should have comment or be unexported (golint)
    • Line 445: warning: exported method Space.AssociateManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 449: warning: exported method Space.RemoveManager should have comment or be unexported (golint)
    • Line 453: warning: exported method Space.RemoveManagerByUsername should have comment or be unexported (golint)
    • Line 456: warning: exported method Space.RemoveManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 539: warning: exported method Client.ListSpaceSecGroups should have comment or be unexported (golint)
    • Line 544: warning: exported method Space.ListSecGroups should have comment or be unexported (golint)
    • Line 587: warning: exported method Space.GetServiceOfferings should have comment or be unexported (golint)
    • Line 610: warning: exported method Space.Update should have comment or be unexported (golint)
    • Line 627: warning: exported method Client.ListSpacesByQuery should have comment or be unexported (golint)
    • Line 631: warning: exported method Client.ListSpacesByOrgGuid should have comment or be unexported (golint)
    • Line 635: warning: exported method Client.ListSpaces should have comment or be unexported (golint)
    • Line 657: warning: exported method Client.GetSpaceByName should have comment or be unexported (golint)
    • Line 674: warning: exported method Client.GetSpaceByGuid should have comment or be unexported (golint)
    • Line 746: warning: exported method ServiceOfferingExtra.UnmarshalJSON should have comment or be unexported (golint)
    • Line 768: warning: exported method Client.IsolationSegmentForSpace should have comment or be unexported (golint)
    • Line 772: warning: exported method Client.ResetIsolationSegmentForSpace should have comment or be unexported (golint)
    • go-cfclient/v3deployments.go
    • Line 11: warning: exported type CreateV3DeploymentOptionalParameters should have comment or be unexported (golint)
    • Line 25: warning: exported type V3DeploymentRevision should have comment or be unexported (golint)
    • Line 30: warning: exported type V3ProcessReference should have comment or be unexported (golint)
    • Line 35: warning: exported type V3DeploymentStatus should have comment or be unexported (golint)
    • Line 41: warning: exported type V3Deployment should have comment or be unexported (golint)
    • Line 57: warning: exported method Client.GetV3Deployment should have comment or be unexported (golint)
    • Line 77: warning: exported method Client.CreateV3Deployment should have comment or be unexported (golint)
    • Line 119: warning: exported method Client.CancelV3Deployment should have comment or be unexported (golint)
    • go-cfclient/info.go
    • Line 29: warning: exported type V3Version should have comment or be unexported (golint)
    • Line 55: warning: exported method Client.SupportsMetadataAPI should have comment or be unexported (golint)
    • go-cfclient/isolationsegments.go
    • Line 15: warning: exported type IsolationSegment should have comment or be unexported (golint)
    • Line 23: warning: exported type IsolationSegementResponse should have comment or be unexported (golint)
    • Line 41: warning: exported type ListIsolationSegmentsResponse should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.CreateIsolationSegment should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.GetIsolationSegmentByGUID should have comment or be unexported (golint)
    • Line 101: warning: exported method Client.ListIsolationSegmentsByQuery should have comment or be unexported (golint)
    • Line 147: warning: exported method Client.ListIsolationSegments should have comment or be unexported (golint)
    • Line 155: warning: exported method Client.DeleteIsolationSegmentByGUID should have comment or be unexported (golint)
    • Line 166: warning: exported method IsolationSegment.Delete should have comment or be unexported (golint)
    • Line 170: warning: exported method Client.AddIsolationSegmentToOrg should have comment or be unexported (golint)
    • Line 175: warning: exported method Client.RemoveIsolationSegmentFromOrg should have comment or be unexported (golint)
    • Line 180: warning: exported method Client.AddIsolationSegmentToSpace should have comment or be unexported (golint)
    • Line 185: warning: exported method Client.RemoveIsolationSegmentFromSpace should have comment or be unexported (golint)
    • Line 190: warning: exported method IsolationSegment.AddOrg should have comment or be unexported (golint)
    • Line 211: warning: exported method IsolationSegment.RemoveOrg should have comment or be unexported (golint)
    • Line 226: warning: exported method IsolationSegment.AddSpace should have comment or be unexported (golint)
    • Line 244: warning: exported method IsolationSegment.RemoveSpace should have comment or be unexported (golint)
    • go-cfclient/orgs.go
    • Line 14: warning: exported type OrgResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type OrgResource should have comment or be unexported (golint)
    • Line 26: warning: exported type OrgUserResponse should have comment or be unexported (golint)
    • Line 33: warning: exported type Org should have comment or be unexported (golint)
    • Line 44: warning: exported type OrgSummary should have comment or be unexported (golint)
    • Line 51: warning: exported type OrgSummarySpaces should have comment or be unexported (golint)
    • Line 60: warning: exported type OrgRequest should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.ListOrgsByQuery should have comment or be unexported (golint)
    • Line 86: warning: exported method Client.ListOrgs should have comment or be unexported (golint)
    • Line 90: warning: exported method Client.GetOrgByName should have comment or be unexported (golint)
    • Line 104: warning: exported method Client.GetOrgByGuid should have comment or be unexported (golint)
    • Line 123: warning: exported method Client.OrgSpaces should have comment or be unexported (golint)
    • Line 127: warning: exported method Org.Summary should have comment or be unexported (golint)
    • Line 147: warning: exported method Org.Quota should have comment or be unexported (golint)
    • Line 174: warning: exported method Client.ListOrgUsersByQuery should have comment or be unexported (golint)
    • Line 193: warning: exported method Client.ListOrgUsers should have comment or be unexported (golint)
    • Line 216: warning: exported method Client.ListOrgManagersByQuery should have comment or be unexported (golint)
    • Line 220: warning: exported method Client.ListOrgManagers should have comment or be unexported (golint)
    • Line 224: warning: exported method Client.ListOrgAuditorsByQuery should have comment or be unexported (golint)
    • Line 228: warning: exported method Client.ListOrgAuditors should have comment or be unexported (golint)
    • Line 232: warning: exported method Client.ListOrgBillingManagersByQuery should have comment or be unexported (golint)
    • Line 236: warning: exported method Client.ListOrgBillingManagers should have comment or be unexported (golint)
    • Line 240: warning: exported method Client.AssociateOrgManager should have comment or be unexported (golint)
    • Line 245: warning: exported method Client.AssociateOrgManagerByUsername should have comment or be unexported (golint)
    • Line 250: warning: exported method Client.AssociateOrgManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 255: warning: exported method Client.AssociateOrgUser should have comment or be unexported (golint)
    • Line 260: warning: exported method Client.AssociateOrgAuditor should have comment or be unexported (golint)
    • Line 265: warning: exported method Client.AssociateOrgUserByUsername should have comment or be unexported (golint)
    • Line 270: warning: exported method Client.AssociateOrgUserByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 275: warning: exported method Client.AssociateOrgAuditorByUsername should have comment or be unexported (golint)
    • Line 280: warning: exported method Client.AssociateOrgAuditorByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 285: warning: exported method Client.AssociateOrgBillingManager should have comment or be unexported (golint)
    • Line 290: warning: exported method Client.AssociateOrgBillingManagerByUsername should have comment or be unexported (golint)
    • Line 295: warning: exported method Client.AssociateOrgBillingManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 300: warning: exported method Client.RemoveOrgManager should have comment or be unexported (golint)
    • Line 305: warning: exported method Client.RemoveOrgManagerByUsername should have comment or be unexported (golint)
    • Line 310: warning: exported method Client.RemoveOrgManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 315: warning: exported method Client.RemoveOrgUser should have comment or be unexported (golint)
    • Line 320: warning: exported method Client.RemoveOrgAuditor should have comment or be unexported (golint)
    • Line 325: warning: exported method Client.RemoveOrgUserByUsername should have comment or be unexported (golint)
    • Line 330: warning: exported method Client.RemoveOrgUserByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 335: warning: exported method Client.RemoveOrgAuditorByUsername should have comment or be unexported (golint)
    • Line 340: warning: exported method Client.RemoveOrgAuditorByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 345: warning: exported method Client.RemoveOrgBillingManager should have comment or be unexported (golint)
    • Line 350: warning: exported method Client.RemoveOrgBillingManagerByUsername should have comment or be unexported (golint)
    • Line 355: warning: exported method Client.RemoveOrgBillingManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 360: warning: exported method Client.ListOrgSpaceQuotas should have comment or be unexported (golint)
    • Line 365: warning: exported method Client.ListOrgPrivateDomains should have comment or be unexported (golint)
    • Line 370: warning: exported method Client.ShareOrgPrivateDomain should have comment or be unexported (golint)
    • Line 375: warning: exported method Client.UnshareOrgPrivateDomain should have comment or be unexported (golint)
    • Line 380: warning: exported method Org.ListSpaceQuotas should have comment or be unexported (golint)
    • Line 399: warning: exported method Org.ListPrivateDomains should have comment or be unexported (golint)
    • Line 418: warning: exported method Org.SharePrivateDomain should have comment or be unexported (golint)
    • Line 431: warning: exported method Org.UnsharePrivateDomain should have comment or be unexported (golint)
    • Line 480: warning: exported method Org.AssociateManager should have comment or be unexported (golint)
    • Line 484: warning: exported method Org.AssociateManagerByUsername should have comment or be unexported (golint)
    • Line 488: warning: exported method Org.AssociateManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 492: warning: exported method Org.AssociateUser should have comment or be unexported (golint)
    • Line 505: warning: exported method Org.AssociateAuditor should have comment or be unexported (golint)
    • Line 509: warning: exported method Org.AssociateAuditorByUsername should have comment or be unexported (golint)
    • Line 513: warning: exported method Org.AssociateAuditorByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 517: warning: exported method Org.AssociateBillingManager should have comment or be unexported (golint)
    • Line 521: warning: exported method Org.AssociateBillingManagerByUsername should have comment or be unexported (golint)
    • Line 524: warning: exported method Org.AssociateBillingManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 528: warning: exported method Org.AssociateUserByUsername should have comment or be unexported (golint)
    • Line 532: warning: exported method Org.AssociateUserByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 602: warning: exported method Org.RemoveManager should have comment or be unexported (golint)
    • Line 606: warning: exported method Org.RemoveManagerByUsername should have comment or be unexported (golint)
    • Line 609: warning: exported method Org.RemoveManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 613: warning: exported method Org.RemoveAuditor should have comment or be unexported (golint)
    • Line 617: warning: exported method Org.RemoveAuditorByUsername should have comment or be unexported (golint)
    • Line 620: warning: exported method Org.RemoveAuditorByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 624: warning: exported method Org.RemoveBillingManager should have comment or be unexported (golint)
    • Line 628: warning: exported method Org.RemoveBillingManagerByUsername should have comment or be unexported (golint)
    • Line 632: warning: exported method Org.RemoveBillingManagerByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 636: warning: exported method Org.RemoveUser should have comment or be unexported (golint)
    • Line 649: warning: exported method Org.RemoveUserByUsername should have comment or be unexported (golint)
    • Line 653: warning: exported method Org.RemoveUserByUsernameAndOrigin should have comment or be unexported (golint)
    • Line 686: warning: exported method Client.CreateOrg should have comment or be unexported (golint)
    • Line 703: warning: exported method Client.UpdateOrg should have comment or be unexported (golint)
    • Line 720: warning: exported method Client.DeleteOrg should have comment or be unexported (golint)
    • Line 808: warning: exported method Client.DefaultIsolationSegmentForOrg should have comment or be unexported (golint)
    • Line 812: warning: exported method Client.ResetDefaultIsolationSegmentForOrg should have comment or be unexported (golint)
    • go-cfclient/service_instances.go
    • Line 15: warning: exported type ServiceInstancesResponse should have comment or be unexported (golint)
    • Line 22: warning: exported type ServiceInstanceRequest should have comment or be unexported (golint)
    • Line 30: warning: exported type ServiceInstanceResource should have comment or be unexported (golint)
    • Line 35: warning: exported type ServiceInstance should have comment or be unexported (golint)
    • Line 57: warning: exported type LastOperation should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.ListServiceInstancesByQuery should have comment or be unexported (golint)
    • Line 98: warning: exported method Client.ListServiceInstances should have comment or be unexported (golint)
    • Line 102: warning: exported method Client.GetServiceInstanceParams should have comment or be unexported (golint)
    • Line 120: warning: exported method Client.GetServiceInstanceByGuid should have comment or be unexported (golint)
    • Line 139: warning: exported method Client.ServiceInstanceByGuid should have comment or be unexported (golint)
    • Line 151: warning: exported method Client.CreateServiceInstance should have comment or be unexported (golint)
    • Line 185: warning: exported method Client.UpdateServiceInstance should have comment or be unexported (golint)
    • Line 198: warning: exported method Client.DeleteServiceInstance should have comment or be unexported (golint)
    • go-cfclient/service_keys.go
    • Line 14: warning: exported type ServiceKeysResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type ServiceKeyResource should have comment or be unexported (golint)
    • Line 26: warning: exported type CreateServiceKeyRequest should have comment or be unexported (golint)
    • Line 32: warning: exported type ServiceKey should have comment or be unexported (golint)
    • Line 43: warning: exported method Client.ListServiceKeysByQuery should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.GetServiceKeyByGuid should have comment or be unexported (golint)
    • Line 103: warning: exported method Client.ListServiceKeys should have comment or be unexported (golint)
    • Line 107: warning: exported method Client.GetServiceKeyByName should have comment or be unexported (golint)
    • go-cfclient/space_quotas.go
    • Line 14: warning: exported type SpaceQuotasResponse should have comment or be unexported (golint)
    • Line 21: warning: exported type SpaceQuotasResource should have comment or be unexported (golint)
    • Line 26: warning: exported type SpaceQuotaRequest should have comment or be unexported (golint)
    • Line 40: warning: exported type SpaceQuota should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.ListSpaceQuotasByQuery should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.ListSpaceQuotas should have comment or be unexported (golint)
    • Line 85: warning: exported method Client.GetSpaceQuotaByName should have comment or be unexported (golint)
    • Line 117: warning: exported method Client.AssignSpaceQuota should have comment or be unexported (golint)
    • Line 129: warning: exported method Client.CreateSpaceQuota should have comment or be unexported (golint)
    • Line 146: warning: exported method Client.UpdateSpaceQuota should have comment or be unexported (golint)
    • go-cfclient/app_update.go
    • Line 13: warning: exported type UpdateResponse should have comment or be unexported (golint)
    • Line 18: warning: exported type AppUpdateResource should have comment or be unexported (golint)
    • Line 41: warning: exported type UpdateResponseEntity should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.UpdateApp should have comment or be unexported (golint)
    • Line 112: warning: exported method Client.RestageApp should have comment or be unexported (golint)
    • go-cfclient/route_mappings.go
    • Line 14: warning: exported type RouteMappingRequest should have comment or be unexported (golint)
    • Line 20: warning: exported type RouteMappingResponse should have comment or be unexported (golint)
    • Line 27: warning: exported type RouteMapping should have comment or be unexported (golint)
    • Line 39: warning: exported type RouteMappingResource should have comment or be unexported (golint)
    • Line 44: warning: exported method Client.MappingAppAndRoute should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.ListRouteMappings should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.ListRouteMappingsByQuery should have comment or be unexported (golint)
    • Line 103: warning: exported method Client.GetRouteMappingByGuid should have comment or be unexported (golint)
    • Line 127: warning: exported method Client.DeleteRouteMapping should have comment or be unexported (golint)
    • go-cfclient/v3apps.go
    • Line 12: warning: exported type V3App should have comment or be unexported (golint)
    • Line 24: warning: exported type V3Lifecycle should have comment or be unexported (golint)
    • Line 29: warning: exported type V3BuildpackLifecycle should have comment or be unexported (golint)
    • Line 34: warning: exported type CreateV3AppRequest should have comment or be unexported (golint)
    • Line 42: warning: exported type UpdateV3AppRequest should have comment or be unexported (golint)
    • Line 48: warning: exported method Client.CreateV3App should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.GetV3AppByGUID should have comment or be unexported (golint)
    • Line 110: warning: exported method Client.StartV3App should have comment or be unexported (golint)
    • Line 130: warning: exported method Client.DeleteV3App should have comment or be unexported (golint)
    • Line 145: warning: exported method Client.UpdateV3App should have comment or be unexported (golint)
    • Line 184: warning: exported method Client.ListV3AppsByQuery should have comment or be unexported (golint)
    • Line 236: warning: exported type V3AppEnvironment should have comment or be unexported (golint)
    • Line 244: warning: exported method Client.GetV3AppEnvironment should have comment or be unexported (golint)
    • go-cfclient/v3droplet.go
    • Line 40: warning: exported type V3DetectedBuildpack should have comment or be unexported (golint)
    • Line 47: warning: exported type CurrentDropletV3Response should have comment or be unexported (golint)
    • Line 52: warning: exported method Client.SetCurrentDropletForV3App should have comment or be unexported (golint)
    • Line 74: warning: exported method Client.GetCurrentDropletForV3App should have comment or be unexported (golint)
    • Line 94: warning: exported method Client.DeleteDroplet should have comment or be unexported (golint)
    • go-cfclient/apps.go
    • Line 21: warning: exported type AppResponse should have comment or be unexported (golint)
    • Line 28: warning: exported type AppResource should have comment or be unexported (golint)
    • Line 33: warning: exported type AppState should have comment or be unexported (golint)
    • Line 36: warning: exported const APP_STOPPED should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type HealthCheckType should have comment or be unexported (golint)
    • Line 43: warning: exported const HEALTH_HTTP should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type DockerCredentials should have comment or be unexported (golint)
    • Line 53: warning: exported type AppCreateRequest should have comment or be unexported (golint)
    • Line 83: warning: exported type App should have comment or be unexported (golint)
    • Line 118: warning: exported type AppInstance should have comment or be unexported (golint)
    • Line 123: warning: exported type AppStats should have comment or be unexported (golint)
    • Line 143: warning: exported type AppSummary should have comment or be unexported (golint)
    • Line 170: warning: exported type AppEnv should have comment or be unexported (golint)
    • Line 228: warning: exported method App.Space should have comment or be unexported (golint)
    • Line 248: warning: exported method App.Summary should have comment or be unexported (golint)
    • Line 275: warning: exported method Client.ListAppsByQuery should have comment or be unexported (golint)
    • Line 306: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 314: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 322: warning: exported method Client.ListApps should have comment or be unexported (golint)
    • Line 328: warning: exported method Client.ListAppsByRoute should have comment or be unexported (golint)
    • Line 332: warning: exported method Client.ListAppsBySpaceGuid should have comment or be unexported (golint)
    • Line 374: warning: exported method Client.GetAppInstances should have comment or be unexported (golint)
    • Line 395: warning: exported method Client.GetAppEnv should have comment or be unexported (golint)
    • Line 416: warning: exported method Client.GetAppRoutes should have comment or be unexported (golint)
    • Line 420: warning: exported method Client.GetAppStats should have comment or be unexported (golint)
    • Line 441: warning: exported method Client.KillAppInstance should have comment or be unexported (golint)
    • Line 455: warning: exported method Client.GetAppByGuid should have comment or be unexported (golint)
    • Line 475: warning: exported method Client.AppByGuid should have comment or be unexported (golint)
    • Line 644: warning: exported method Client.StartApp should have comment or be unexported (golint)
    • Line 656: warning: exported method Client.StopApp should have comment or be unexported (golint)
    • Line 668: warning: exported method Client.DeleteApp should have comment or be unexported (golint)
    • Line 679: warning: exported method Client.RestartApp should have comment or be unexported (golint)

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!