Preparing report...

Report for github.com/transactcampus/go-octopusdeploy

A+    Excellent!    Found 233 issues across 460 files

Tweet

gofmt92%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


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.


golint57%

Golint is a linter for Go source code.

    • go-octopusdeploy/octopusdeploy/project.go
    • Line 7: warning: exported type Project should have comment or be unexported (golint)
    • Line 38: warning: exported type Projects should have comment or be unexported (golint)
    • Line 43: warning: exported function NewProject should have comment or be unexported (golint)
    • go-octopusdeploy/integration/utilities.go
    • Line 28: warning: exported function IsEqualLinks should have comment or be unexported (golint)
    • Line 106: warning: exported function Bool should have comment or be unexported (golint)
    • Line 107: warning: exported function Int should have comment or be unexported (golint)
    • Line 108: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 109: warning: exported function String should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/interruption.go
    • Line 7: warning: exported type Interruptions should have comment or be unexported (golint)
    • Line 12: warning: exported type Interruption should have comment or be unexported (golint)
    • Line 30: warning: exported function NewInterruption should have comment or be unexported (golint)
    • Line 36: warning: exported const ManualInterverventionApprove should have comment or be unexported (golint)
    • Line 37: warning: exported const ManualInterventionDecline should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/account_resource.go
    • Line 47: warning: comment on exported function NewAccountResource should be of the form "NewAccountResource ..." (golint)
    • Line 67: warning: exported method AccountResource.GetEnvironmentIDs should have comment or be unexported (golint)
    • Line 81: warning: exported method AccountResource.GetTenantedDeploymentMode should have comment or be unexported (golint)
    • Line 85: warning: exported method AccountResource.GetTenantIDs should have comment or be unexported (golint)
    • Line 89: warning: exported method AccountResource.GetTenantTags should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/endpoint_resource.go
    • Line 9: warning: exported type EndpointResource should have comment or be unexported (golint)
    • Line 55: warning: exported type EndpointResources should have comment or be unexported (golint)
    • Line 60: warning: comment on exported function NewEndpointResource should be of the form "NewEndpointResource ..." (golint)
    • go-octopusdeploy/octopusdeploy/package.go
    • Line 5: warning: exported type Package should have comment or be unexported (golint)
    • Line 21: warning: exported type Packages should have comment or be unexported (golint)
    • Line 26: warning: exported function NewPackage should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/queries.go
    • Line 12: warning: exported type ActionTemplateLogoQuery should have comment or be unexported (golint)
    • Line 25: warning: exported type ActionTemplateVersionedLogoQuery should have comment or be unexported (golint)
    • Line 31: warning: exported type APIQuery should have comment or be unexported (golint)
    • Line 36: warning: exported type ArtifactsQuery should have comment or be unexported (golint)
    • Line 45: warning: exported type BuildInformationQuery should have comment or be unexported (golint)
    • Line 54: warning: exported type BuildInformationBulkQuery should have comment or be unexported (golint)
    • Line 58: warning: exported type CertificateConfigurationQuery should have comment or be unexported (golint)
    • Line 65: warning: exported type CertificatesQuery should have comment or be unexported (golint)
    • Line 77: warning: exported type ChannelsQuery should have comment or be unexported (golint)
    • Line 84: warning: exported type CloudTemplateQuery should have comment or be unexported (golint)
    • Line 89: warning: exported type CommunityActionTemplatesQuery should have comment or be unexported (golint)
    • Line 95: warning: exported type DashboardQuery should have comment or be unexported (golint)
    • Line 104: warning: exported type DashboardDynamicQuery should have comment or be unexported (golint)
    • Line 110: warning: exported type DeploymentProcessesQuery should have comment or be unexported (golint)
    • Line 116: warning: exported type DeploymentQuery should have comment or be unexported (golint)
    • Line 121: warning: exported type DeploymentsQuery should have comment or be unexported (golint)
    • Line 133: warning: exported type DiscoverMachineQuery should have comment or be unexported (golint)
    • Line 140: warning: exported type DiscoverWorkerQuery should have comment or be unexported (golint)
    • Line 147: warning: exported type EnvironmentsQuery should have comment or be unexported (golint)
    • Line 155: warning: exported type EnvironmentsSummaryQuery should have comment or be unexported (golint)
    • Line 169: warning: exported type EventCategoriesQuery should have comment or be unexported (golint)
    • Line 173: warning: exported type EventGroupsQuery should have comment or be unexported (golint)
    • Line 177: warning: exported type EventsQuery should have comment or be unexported (golint)
    • Line 207: warning: exported type ExternalUserSearchQuery should have comment or be unexported (golint)
    • Line 211: warning: exported type FeedsQuery should have comment or be unexported (golint)
    • Line 219: warning: exported type InterruptionsQuery should have comment or be unexported (golint)
    • Line 227: warning: exported type IssueTrackersQuery should have comment or be unexported (golint)
    • Line 234: warning: exported type LibraryVariablesQuery should have comment or be unexported (golint)
    • Line 242: warning: exported type LifecyclesQuery should have comment or be unexported (golint)
    • Line 249: warning: exported type MachinePoliciesQuery should have comment or be unexported (golint)
    • Line 256: warning: exported type MachinesQuery should have comment or be unexported (golint)
    • Line 274: warning: exported type OctopusServerNodesQuery should have comment or be unexported (golint)
    • Line 281: warning: exported type PackageDeltaSignatureQuery should have comment or be unexported (golint)
    • Line 286: warning: exported type PackageDeltaUploadQuery should have comment or be unexported (golint)
    • Line 293: warning: exported type PackageMetadataQuery should have comment or be unexported (golint)
    • Line 302: warning: exported type PackageNotesListQuery should have comment or be unexported (golint)
    • Line 306: warning: exported type PackagesQuery should have comment or be unexported (golint)
    • Line 315: warning: exported type PackagesBulkQuery should have comment or be unexported (golint)
    • Line 319: warning: exported type PackageUploadQuery should have comment or be unexported (golint)
    • Line 324: warning: exported type UserQuery should have comment or be unexported (golint)
    • Line 329: warning: exported type ProjectGroupsQuery should have comment or be unexported (golint)
    • Line 336: warning: exported type ProjectPulseQuery should have comment or be unexported (golint)
    • Line 340: warning: exported type ProjectsQuery should have comment or be unexported (golint)
    • Line 350: warning: exported type ProjectsExperimentalSummariesQuery should have comment or be unexported (golint)
    • Line 354: warning: exported type ProjectTriggersQuery should have comment or be unexported (golint)
    • Line 361: warning: exported type ProxiesQuery should have comment or be unexported (golint)
    • Line 368: warning: exported type ReleaseQuery should have comment or be unexported (golint)
    • Line 374: warning: exported type ReleasesQuery should have comment or be unexported (golint)
    • Line 381: warning: exported type RunbookProcessesQuery should have comment or be unexported (golint)
    • Line 387: warning: exported type RunbookRunsQuery should have comment or be unexported (golint)
    • Line 399: warning: exported type RunbooksQuery should have comment or be unexported (golint)
    • Line 408: warning: exported type RunbookSnapshotsQuery should have comment or be unexported (golint)
    • Line 415: warning: exported type ScheduledProjectTriggersQuery should have comment or be unexported (golint)
    • Line 421: warning: exported type SchedulerQuery should have comment or be unexported (golint)
    • Line 426: warning: exported type ScopedUserRolesQuery should have comment or be unexported (golint)
    • Line 435: warning: exported type SearchPackagesQuery should have comment or be unexported (golint)
    • Line 441: warning: exported type SignInQuery should have comment or be unexported (golint)
    • Line 445: warning: exported type SpaceHomeQuery should have comment or be unexported (golint)
    • Line 449: warning: exported type SpacesQuery should have comment or be unexported (golint)
    • Line 457: warning: exported type SubscriptionsQuery should have comment or be unexported (golint)
    • Line 465: warning: exported type TagSetsQuery should have comment or be unexported (golint)
    • Line 472: warning: exported type TasksQuery should have comment or be unexported (golint)
    • Line 492: warning: exported type TeamMembershipQuery should have comment or be unexported (golint)
    • Line 498: warning: exported type TeamsQuery should have comment or be unexported (golint)
    • Line 507: warning: exported type TenantsQuery should have comment or be unexported (golint)
    • Line 519: warning: exported type TenantsMissingVariablesQuery should have comment or be unexported (golint)
    • Line 526: warning: exported type TenantVariablesQuery should have comment or be unexported (golint)
    • Line 530: warning: exported type UserRolesQuery should have comment or be unexported (golint)
    • Line 537: warning: exported type UsersQuery should have comment or be unexported (golint)
    • Line 544: warning: exported type VariableNamesQuery should have comment or be unexported (golint)
    • Line 550: warning: exported type VariablePreviewQuery should have comment or be unexported (golint)
    • Line 561: warning: exported type VariablesQuery should have comment or be unexported (golint)
    • Line 565: warning: exported type VersionRuleTestQuery should have comment or be unexported (golint)
    • Line 572: warning: exported type WorkerPoolsQuery should have comment or be unexported (golint)
    • Line 580: warning: exported type WorkerPoolsSummaryQuery should have comment or be unexported (golint)
    • Line 591: warning: exported type WorkersQuery should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/utilities.go
    • Line 171: warning: exported function PrettyJSON should have comment or be unexported (golint)
    • Line 239: warning: exported function Bool should have comment or be unexported (golint)
    • Line 240: warning: exported function Int should have comment or be unexported (golint)
    • Line 241: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 242: warning: exported function String should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/account_utilities.go
    • Line 5: warning: exported function ToAccount should have comment or be unexported (golint)
    • Line 53: warning: exported function ToAccounts should have comment or be unexported (golint)
    • Line 60: warning: exported function ToAccountResource should have comment or be unexported (golint)
    • Line 74: warning: exported function ToAccountArray should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/interfaces.go
    • Line 5: warning: exported type IAccount should have comment or be unexported (golint)
    • Line 19: warning: exported type IDeploymentTarget should have comment or be unexported (golint)
    • Line 26: warning: exported type IDynamicWorkerPool should have comment or be unexported (golint)
    • Line 39: warning: exported type IEndpointWithAccount should have comment or be unexported (golint)
    • Line 43: warning: exported type IEndpointWithFingerprint should have comment or be unexported (golint)
    • Line 47: warning: exported type IEndpointWithHostname should have comment or be unexported (golint)
    • Line 51: warning: exported type IEndpointWithProxy should have comment or be unexported (golint)
    • Line 56: warning: exported type IFeed should have comment or be unexported (golint)
    • Line 64: warning: exported type IHasName should have comment or be unexported (golint)
    • Line 69: warning: exported type IHasSpace should have comment or be unexported (golint)
    • Line 74: warning: exported type IKubernetesAuthentication should have comment or be unexported (golint)
    • Line 93: warning: exported type IWorkerPool should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/property_value.go
    • Line 7: warning: exported type PropertyValue should have comment or be unexported (golint)
    • Line 13: warning: exported function NewPropertyValue should have comment or be unexported (golint)
    • Line 27: warning: exported method PropertyValue.MarshalJSON should have comment or be unexported (golint)
    • Line 36: warning: receiver name d should be consistent with previous receiver name p for PropertyValue (golint)
    • go-octopusdeploy/octopusdeploy/listening_tentacle_deployment_target.go
    • Line 3: warning: exported type ListeningTentacleDeploymentTarget should have comment or be unexported (golint)
    • Line 28: warning: exported function NewListeningTentacleDeploymentTarget should have comment or be unexported (golint)
    • Line 45: warning: exported method ListeningTentacleDeploymentTarget.GetEndpoint should have comment or be unexported (golint)
    • Line 49: warning: exported method ListeningTentacleDeploymentTarget.GetHealthStatus should have comment or be unexported (golint)
    • Line 53: warning: exported method ListeningTentacleDeploymentTarget.GetIsDisabled should have comment or be unexported (golint)
    • Line 57: warning: exported method ListeningTentacleDeploymentTarget.GetName should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/lifecycle.go
    • Line 9: warning: exported type Lifecycles should have comment or be unexported (golint)
    • Line 14: warning: exported type Lifecycle should have comment or be unexported (golint)
    • Line 26: warning: exported const RetentionUnitDays should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported function NewLifecycle should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/feed_resource.go
    • Line 5: warning: exported type FeedResource should have comment or be unexported (golint)
    • Line 27: warning: exported type FeedResources should have comment or be unexported (golint)
    • Line 32: warning: exported function NewFeedResource should have comment or be unexported (golint)
    • Line 40: warning: exported method FeedResource.GetFeedType should have comment or be unexported (golint)
    • Line 44: warning: exported method FeedResource.GetName should have comment or be unexported (golint)
    • Line 48: warning: exported method FeedResource.SetName should have comment or be unexported (golint)
    • go-octopusdeploy/uritemplates/uritemplates.go
    • Line 192: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 209: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 214: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 228: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 276: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 287: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 295: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 324: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-octopusdeploy/octopusdeploy/util.go
    • Line 53: warning: exported function ValidateRequiredUUID should have comment or be unexported (golint)
    • Line 69: warning: exported function ValidateRequiredSensitiveValue should have comment or be unexported (golint)
    • Line 105: warning: exported function ValidateSemanticVersion should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/feed_utilities.go
    • Line 5: warning: exported function ToFeed should have comment or be unexported (golint)
    • Line 39: warning: exported function ToFeeds should have comment or be unexported (golint)
    • Line 46: warning: exported function ToFeedResource should have comment or be unexported (golint)
    • Line 61: warning: exported function ToFeedArray should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/kubernetes_endpoint.go
    • Line 12: warning: exported type KubernetesEndpoint should have comment or be unexported (golint)
    • Line 43: warning: receiver name k should be consistent with previous receiver name s for KubernetesEndpoint (golint)
    • Line 48: warning: receiver name k should be consistent with previous receiver name s for KubernetesEndpoint (golint)
    • Line 54: warning: receiver name k should be consistent with previous receiver name s for KubernetesEndpoint (golint)
    • Line 59: warning: receiver name k should be consistent with previous receiver name s for KubernetesEndpoint (golint)
    • Line 64: warning: receiver name k should be consistent with previous receiver name s for KubernetesEndpoint (golint)
    • Line 95: warning: receiver name k should be consistent with previous receiver name s for KubernetesEndpoint (golint)
    • Line 210: warning: receiver name k should be consistent with previous receiver name s for KubernetesEndpoint (golint)
    • go-octopusdeploy/octopusdeploy/deployment_target.go
    • Line 18: warning: exported type DeploymentTarget should have comment or be unexported (golint)
    • Line 29: warning: exported function NewDeploymentTarget should have comment or be unexported (golint)
    • Line 67: warning: receiver name resource should be consistent with previous receiver name d for DeploymentTarget (golint)
    • go-octopusdeploy/octopusdeploy/project_trigger.go
    • Line 3: warning: exported type ProjectTriggers should have comment or be unexported (golint)
    • Line 8: warning: exported type ProjectTrigger should have comment or be unexported (golint)
    • Line 20: warning: exported method ProjectTrigger.AddEventGroups should have comment or be unexported (golint)
    • Line 24: warning: exported method ProjectTrigger.AddEventCategories should have comment or be unexported (golint)
    • Line 28: warning: exported function NewProjectDeploymentTargetTrigger should have comment or be unexported (golint)
    • go-octopusdeploy/octopusdeploy/deployment_process.go
    • Line 3: warning: exported type DeploymentProcesses should have comment or be unexported (golint)
    • Line 8: warning: exported type DeploymentProcess should have comment or be unexported (golint)
    • Line 27: warning: exported const PackageAcquisitionLocationServer should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words