Preparing report...

Report for github.com/btsteve/go-bitbucket

A    Great!    Found 15 issues across 25 files

Tweet

gofmt88%

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!


golint40%

Golint is a linter for Go source code.

    • go-bitbucket/diff.go
    • Line 3: warning: exported type Diff should have comment or be unexported (golint)
    • Line 7: warning: exported method Diff.GetDiff should have comment or be unexported (golint)
    • Line 12: warning: exported method Diff.GetPatch should have comment or be unexported (golint)
    • go-bitbucket/repository.go
    • Line 18: warning: exported type Project should have comment or be unexported (golint)
    • Line 23: warning: exported type Repository should have comment or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; struct field Full_name should be FullName (golint)
    • Line 34: warning: don't use underscores in Go names; struct field Is_private should be IsPrivate (golint)
    • Line 35: warning: don't use underscores in Go names; struct field Has_issues should be HasIssues (golint)
    • Line 43: warning: exported type RepositoryFile should have comment or be unexported (golint)
    • Line 53: warning: exported type RepositoryBlob should have comment or be unexported (golint)
    • Line 57: warning: exported type RepositoryBranches should have comment or be unexported (golint)
    • Line 66: warning: exported type RepositoryBranch should have comment or be unexported (golint)
    • Line 69: warning: don't use underscores in Go names; struct field Default_Merge_Strategy should be DefaultMergeStrategy (golint)
    • Line 70: warning: don't use underscores in Go names; struct field Merge_Strategies should be MergeStrategies (golint)
    • Line 76: warning: exported type RepositoryTags should have comment or be unexported (golint)
    • Line 85: warning: exported type RepositoryTag should have comment or be unexported (golint)
    • Line 93: warning: exported type Pipeline should have comment or be unexported (golint)
    • Line 99: warning: exported type PipelineVariables should have comment or be unexported (golint)
    • Line 108: warning: exported type PipelineVariable should have comment or be unexported (golint)
    • Line 116: warning: exported type PipelineKeyPair should have comment or be unexported (golint)
    • Line 123: warning: exported type PipelineBuildNumber should have comment or be unexported (golint)
    • Line 128: warning: exported type BranchingModel should have comment or be unexported (golint)
    • Line 130: warning: don't use underscores in Go names; struct field Branch_Types should be BranchTypes (golint)
    • Line 135: warning: exported type BranchType should have comment or be unexported (golint)
    • Line 140: warning: exported type BranchModel should have comment or be unexported (golint)
    • Line 143: warning: don't use underscores in Go names; struct field Use_Mainbranch should be UseMainbranch (golint)
    • Line 146: warning: exported type Environments should have comment or be unexported (golint)
    • Line 155: warning: exported type EnvironmentType should have comment or be unexported (golint)
    • Line 161: warning: exported type Environment should have comment or be unexported (golint)
    • Line 169: warning: exported type DeploymentVariables should have comment or be unexported (golint)
    • Line 178: warning: exported type DeploymentVariable should have comment or be unexported (golint)
    • Line 186: warning: exported method Repository.Create should have comment or be unexported (golint)
    • Line 197: warning: exported method Repository.Fork should have comment or be unexported (golint)
    • Line 208: warning: exported method Repository.Get should have comment or be unexported (golint)
    • Line 218: warning: exported method Repository.ListFiles should have comment or be unexported (golint)
    • Line 229: warning: exported method Repository.GetFileBlob should have comment or be unexported (golint)
    • Line 247: warning: exported method Repository.WriteFileBlob should have comment or be unexported (golint)
    • Line 268: warning: exported method Repository.ListBranches should have comment or be unexported (golint)
    • Line 304: warning: exported method Repository.GetBranch should have comment or be unexported (golint)
    • Line 321: warning: exported method Repository.ListTags should have comment or be unexported (golint)
    • Line 357: warning: exported method Repository.CreateTag should have comment or be unexported (golint)
    • Line 375: warning: exported method Repository.Delete should have comment or be unexported (golint)
    • Line 380: warning: exported method Repository.ListWatchers should have comment or be unexported (golint)
    • Line 385: warning: exported method Repository.ListForks should have comment or be unexported (golint)
    • Line 390: warning: exported method Repository.ListDefaultReviewers should have comment or be unexported (golint)
    • Line 395: warning: exported method Repository.UpdatePipelineConfig should have comment or be unexported (golint)
    • Line 406: warning: exported method Repository.ListPipelineVariables should have comment or be unexported (golint)
    • Line 442: warning: exported method Repository.AddPipelineVariable should have comment or be unexported (golint)
    • Line 454: warning: exported method Repository.DeletePipelineVariable should have comment or be unexported (golint)
    • Line 459: warning: exported method Repository.GetPipelineVariable should have comment or be unexported (golint)
    • Line 468: warning: exported method Repository.UpdatePipelineVariable should have comment or be unexported (golint)
    • Line 478: warning: exported method Repository.AddPipelineKeyPair should have comment or be unexported (golint)
    • Line 490: warning: exported method Repository.UpdatePipelineBuildNumber should have comment or be unexported (golint)
    • Line 502: warning: exported method Repository.BranchingModel should have comment or be unexported (golint)
    • Line 511: warning: exported method Repository.ListEnvironments should have comment or be unexported (golint)
    • Line 527: warning: exported method Repository.AddEnvironment should have comment or be unexported (golint)
    • Line 538: warning: exported method Repository.DeleteEnvironment should have comment or be unexported (golint)
    • Line 543: warning: exported method Repository.GetEnvironment should have comment or be unexported (golint)
    • Line 553: warning: exported method Repository.ListDeploymentVariables should have comment or be unexported (golint)
    • Line 588: warning: exported method Repository.AddDeploymentVariable should have comment or be unexported (golint)
    • Line 600: warning: exported method Repository.DeleteDeploymentVariable should have comment or be unexported (golint)
    • Line 605: warning: exported method Repository.UpdateDeploymentVariable should have comment or be unexported (golint)
    • Line 850: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • Line 926: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • Line 994: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • Line 1117: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • Line 1194: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • go-bitbucket/client.go
    • Line 24: warning: exported const DEFAULT_PAGE_LENGTH should have comment or be unexported (golint)
    • Line 25: warning: exported const DEFAULT_MAX_DEPTH should have comment or be unexported (golint)
    • Line 26: warning: exported const DEFAULT_BITBUCKET_API_BASE_URL should have comment or be unexported (golint)
    • Line 37: warning: exported type Client should have comment or be unexported (golint)
    • Line 58: warning: comment on exported function NewOAuthClientCredentials should be of the form "NewOAuthClientCredentials ..." (golint)
    • Line 77: warning: exported function NewOAuth should have comment or be unexported (golint)
    • Line 127: warning: exported function NewOAuthbearerToken should have comment or be unexported (golint)
    • Line 132: warning: exported function NewBasicAuth should have comment or be unexported (golint)
    • Line 158: warning: exported method Client.GetApiBaseURL should have comment or be unexported (golint)
    • Line 162: warning: exported method Client.SetApiBaseURL should have comment or be unexported (golint)
    • go-bitbucket/repositories.go
    • Line 11: warning: exported type Repositories should have comment or be unexported (golint)
    • Line 24: warning: exported type RepositoriesRes should have comment or be unexported (golint)
    • Line 32: warning: exported method Repositories.ListForAccount should have comment or be unexported (golint)
    • Line 44: warning: exported method Repositories.ListForTeam should have comment or be unexported (golint)
    • Line 56: warning: exported method Repositories.ListPublic should have comment or be unexported (golint)
    • Line 90: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • go-bitbucket/teams.go
    • Line 3: warning: exported type Teams should have comment or be unexported (golint)
    • Line 7: warning: exported method Teams.List should have comment or be unexported (golint)
    • Line 12: warning: exported method Teams.Profile should have comment or be unexported (golint)
    • Line 17: warning: exported method Teams.Members should have comment or be unexported (golint)
    • Line 22: warning: exported method Teams.Followers should have comment or be unexported (golint)
    • Line 27: warning: exported method Teams.Following should have comment or be unexported (golint)
    • Line 32: warning: exported method Teams.Repositories should have comment or be unexported (golint)
    • Line 37: warning: exported method Teams.Projects should have comment or be unexported (golint)
    • go-bitbucket/users.go
    • Line 3: warning: exported type Users should have comment or be unexported (golint)
    • Line 7: warning: exported method Users.Get should have comment or be unexported (golint)
    • Line 13: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 19: warning: exported method Users.Followers should have comment or be unexported (golint)
    • Line 25: warning: exported method Users.Following should have comment or be unexported (golint)
    • Line 30: warning: exported method Users.Repositories should have comment or be unexported (golint)
    • go-bitbucket/branchrestrictions.go
    • Line 10: warning: exported type BranchRestrictions should have comment or be unexported (golint)
    • Line 14: warning: exported method BranchRestrictions.Gets should have comment or be unexported (golint)
    • Line 19: warning: exported method BranchRestrictions.Create should have comment or be unexported (golint)
    • Line 25: warning: exported method BranchRestrictions.Get should have comment or be unexported (golint)
    • Line 30: warning: exported method BranchRestrictions.Update should have comment or be unexported (golint)
    • Line 36: warning: exported method BranchRestrictions.Delete should have comment or be unexported (golint)
    • Line 73: warning: don't use underscores in Go names; struct field Display_name should be DisplayName (golint)
    • Line 75: warning: don't use underscores in Go names; struct field Created_on should be CreatedOn (golint)
    • go-bitbucket/workspaces.go
    • Line 7: warning: exported type Workspace should have comment or be unexported (golint)
    • Line 16: warning: don't use underscores in Go names; struct field Is_Private should be IsPrivate (golint)
    • Line 20: warning: exported type WorkspaceList should have comment or be unexported (golint)
    • Line 29: warning: exported type Permission should have comment or be unexported (golint)
    • Line 35: warning: exported method Permission.GetUserPermissions should have comment or be unexported (golint)
    • Line 45: warning: exported method Permission.GetUserPermissionsByUuid should have comment or be unexported (golint)
    • Line 55: warning: exported method Workspace.List should have comment or be unexported (golint)
    • Line 65: warning: exported method Workspace.Get should have comment or be unexported (golint)
    • Line 75: warning: exported method Workspace.Members should have comment or be unexported (golint)
    • Line 75: warning: receiver name w should be consistent with previous receiver name t for Workspace (golint)
    • Line 80: warning: exported method Workspace.Projects should have comment or be unexported (golint)
    • Line 80: warning: receiver name w should be consistent with previous receiver name t for Workspace (golint)
    • Line 136: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • go-bitbucket/bitbucket.go
    • Line 112: warning: exported type RepositoriesOptions should have comment or be unexported (golint)
    • Line 117: warning: exported type RepositoryOptions should have comment or be unexported (golint)
    • Line 131: warning: exported type RepositoryForkOptions should have comment or be unexported (golint)
    • Line 147: warning: exported type RepositoryFilesOptions should have comment or be unexported (golint)
    • Line 154: warning: exported type RepositoryBlobOptions should have comment or be unexported (golint)
    • Line 161: warning: comment on exported type RepositoryBlobWriteOptions should be of the form "RepositoryBlobWriteOptions ..." (with optional leading article) (golint)
    • Line 172: warning: exported type RepositoryBranchOptions should have comment or be unexported (golint)
    • Line 183: warning: exported type RepositoryTagOptions should have comment or be unexported (golint)
    • Line 193: warning: exported type RepositoryTagCreationOptions should have comment or be unexported (golint)
    • Line 200: warning: exported type RepositoryTagTarget should have comment or be unexported (golint)
    • Line 204: warning: exported type PullRequestsOptions should have comment or be unexported (golint)
    • Line 223: warning: exported type CommitsOptions should have comment or be unexported (golint)
    • Line 233: warning: exported type CommitStatusOptions should have comment or be unexported (golint)
    • Line 241: warning: exported type BranchRestrictionsOptions should have comment or be unexported (golint)
    • Line 254: warning: exported type DiffOptions should have comment or be unexported (golint)
    • Line 260: warning: exported type WebhooksOptions should have comment or be unexported (golint)
    • Line 270: warning: exported type RepositoryPipelineOptions should have comment or be unexported (golint)
    • Line 276: warning: exported type RepositoryPipelineVariablesOptions should have comment or be unexported (golint)
    • Line 286: warning: exported type RepositoryPipelineVariableOptions should have comment or be unexported (golint)
    • Line 295: warning: exported type RepositoryPipelineVariableDeleteOptions should have comment or be unexported (golint)
    • Line 301: warning: exported type RepositoryPipelineKeyPairOptions should have comment or be unexported (golint)
    • Line 308: warning: exported type RepositoryPipelineBuildNumberOptions should have comment or be unexported (golint)
    • Line 314: warning: exported type RepositoryBranchingModelOptions should have comment or be unexported (golint)
    • Line 319: warning: exported type DownloadsOptions should have comment or be unexported (golint)
    • Line 326: warning: exported type PageRes should have comment or be unexported (golint)
    • Line 333: warning: exported type PipelinesOptions should have comment or be unexported (golint)
    • Line 343: warning: exported type RepositoryEnvironmentsOptions should have comment or be unexported (golint)
    • Line 348: warning: exported type RepositoryEnvironmentTypeOption should have comment or be unexported (golint)
    • Line 351: warning: exported const Test should have comment (or a comment on this block) or be unexported (golint)
    • Line 360: warning: exported type RepositoryEnvironmentOptions should have comment or be unexported (golint)
    • Line 369: warning: exported type RepositoryEnvironmentDeleteOptions should have comment or be unexported (golint)
    • Line 375: warning: exported type RepositoryDeploymentVariablesOptions should have comment or be unexported (golint)
    • Line 386: warning: exported type RepositoryDeploymentVariableOptions should have comment or be unexported (golint)
    • Line 396: warning: exported type RepositoryDeploymentVariableDeleteOptions should have comment or be unexported (golint)
    • go-bitbucket/commits.go
    • Line 8: warning: exported type Commits should have comment or be unexported (golint)
    • Line 12: warning: exported method Commits.GetCommits should have comment or be unexported (golint)
    • Line 18: warning: exported method Commits.GetCommit should have comment or be unexported (golint)
    • Line 23: warning: exported method Commits.GetCommitComments should have comment or be unexported (golint)
    • Line 28: warning: exported method Commits.GetCommitComment should have comment or be unexported (golint)
    • Line 33: warning: exported method Commits.GetCommitStatuses should have comment or be unexported (golint)
    • Line 38: warning: exported method Commits.GetCommitStatus should have comment or be unexported (golint)
    • Line 43: warning: exported method Commits.GiveApprove should have comment or be unexported (golint)
    • Line 48: warning: exported method Commits.RemoveApprove should have comment or be unexported (golint)
    • Line 54: warning: exported method Commits.CreateCommitStatus should have comment or be unexported (golint)
    • go-bitbucket/downloads.go
    • Line 3: warning: exported type Downloads should have comment or be unexported (golint)
    • Line 7: warning: exported method Downloads.Create should have comment or be unexported (golint)
    • Line 12: warning: exported method Downloads.List should have comment or be unexported (golint)
    • go-bitbucket/error.go
    • Line 9: warning: exported type BitbucketError should have comment or be unexported (golint)
    • Line 14: warning: exported function DecodeError should have comment or be unexported (golint)
    • go-bitbucket/pipelines.go
    • Line 9: warning: exported type Pipelines should have comment or be unexported (golint)
    • Line 13: warning: exported method Pipelines.List should have comment or be unexported (golint)
    • Line 52: warning: exported method Pipelines.Get should have comment or be unexported (golint)
    • Line 57: warning: exported method Pipelines.ListSteps should have comment or be unexported (golint)
    • Line 96: warning: exported method Pipelines.GetStep should have comment or be unexported (golint)
    • Line 101: warning: exported method Pipelines.GetLog should have comment or be unexported (golint)
    • go-bitbucket/pullrequests.go
    • Line 11: warning: exported type PullRequests should have comment or be unexported (golint)
    • Line 15: warning: exported method PullRequests.Create should have comment or be unexported (golint)
    • Line 21: warning: exported method PullRequests.Update should have comment or be unexported (golint)
    • Line 27: warning: exported method PullRequests.Gets should have comment or be unexported (golint)
    • Line 68: warning: exported method PullRequests.Get should have comment or be unexported (golint)
    • Line 73: warning: exported method PullRequests.Activities should have comment or be unexported (golint)
    • Line 78: warning: exported method PullRequests.Activity should have comment or be unexported (golint)
    • Line 83: warning: exported method PullRequests.Commits should have comment or be unexported (golint)
    • Line 88: warning: exported method PullRequests.Patch should have comment or be unexported (golint)
    • Line 93: warning: exported method PullRequests.Diff should have comment or be unexported (golint)
    • Line 98: warning: exported method PullRequests.Merge should have comment or be unexported (golint)
    • Line 104: warning: exported method PullRequests.Decline should have comment or be unexported (golint)
    • Line 110: warning: exported method PullRequests.Approve should have comment or be unexported (golint)
    • Line 115: warning: exported method PullRequests.UnApprove should have comment or be unexported (golint)
    • Line 120: warning: exported method PullRequests.RequestChanges should have comment or be unexported (golint)
    • Line 125: warning: exported method PullRequests.UnRequestChanges should have comment or be unexported (golint)
    • Line 130: warning: exported method PullRequests.GetComments should have comment or be unexported (golint)
    • Line 135: warning: exported method PullRequests.GetComment should have comment or be unexported (golint)
    • Line 140: warning: exported method PullRequests.PostComment should have comment or be unexported (golint)
    • Line 145: warning: exported method PullRequests.Statuses should have comment or be unexported (golint)
    • go-bitbucket/webhooks.go
    • Line 10: warning: exported type Webhooks should have comment or be unexported (golint)
    • Line 39: warning: exported method Webhooks.Gets should have comment or be unexported (golint)
    • Line 44: warning: exported method Webhooks.Create should have comment or be unexported (golint)
    • Line 50: warning: exported method Webhooks.Get should have comment or be unexported (golint)
    • Line 55: warning: exported method Webhooks.Update should have comment or be unexported (golint)
    • Line 61: warning: exported method Webhooks.Delete should have comment or be unexported (golint)

gocyclo96%

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!