Preparing report...

Report for github.com/sciutand/go-bitbucket

A    Great!    Found 16 issues across 22 files

Tweet

gofmt90%

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!


gocyclo95%

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.


golint36%

Golint is a linter for Go source code.

    • 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/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/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 Workspace.List should have comment or be unexported (golint)
    • Line 55: warning: exported method Workspace.Get should have comment or be unexported (golint)
    • Line 116: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • go-bitbucket/bitbucket.go
    • Line 94: warning: exported type RepositoriesOptions should have comment or be unexported (golint)
    • Line 99: warning: exported type RepositoryOptions should have comment or be unexported (golint)
    • Line 113: warning: exported type RepositoryForkOptions should have comment or be unexported (golint)
    • Line 129: warning: exported type RepositoryFilesOptions should have comment or be unexported (golint)
    • Line 136: warning: exported type RepositoryBlobOptions should have comment or be unexported (golint)
    • Line 143: warning: exported type RepositoryBranchOptions should have comment or be unexported (golint)
    • Line 154: warning: exported type RepositoryTagOptions should have comment or be unexported (golint)
    • Line 164: warning: exported type RepositoryTagCreationOptions should have comment or be unexported (golint)
    • Line 171: warning: exported type RepositoryTagTarget should have comment or be unexported (golint)
    • Line 175: warning: exported type PullRequestsOptions should have comment or be unexported (golint)
    • Line 194: warning: exported type CommitsOptions should have comment or be unexported (golint)
    • Line 204: warning: exported type CommitStatusOptions should have comment or be unexported (golint)
    • Line 212: warning: exported type BranchRestrictionsOptions should have comment or be unexported (golint)
    • Line 225: warning: exported type DiffOptions should have comment or be unexported (golint)
    • Line 231: warning: exported type WebhooksOptions should have comment or be unexported (golint)
    • Line 241: warning: exported type RepositoryPipelineOptions should have comment or be unexported (golint)
    • Line 247: warning: exported type RepositoryPipelineVariableOptions should have comment or be unexported (golint)
    • Line 256: warning: exported type RepositoryPipelineKeyPairOptions should have comment or be unexported (golint)
    • Line 263: warning: exported type RepositoryPipelineBuildNumberOptions should have comment or be unexported (golint)
    • Line 269: warning: exported type RepositoryBranchingModelOptions should have comment or be unexported (golint)
    • Line 274: warning: exported type DownloadsOptions should have comment or be unexported (golint)
    • Line 281: warning: exported type PageRes 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/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/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/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/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 27: warning: exported type Client should have comment or be unexported (golint)
    • Line 48: warning: comment on exported function NewOAuthClientCredentials should be of the form "NewOAuthClientCredentials ..." (golint)
    • Line 67: warning: exported function NewOAuth should have comment or be unexported (golint)
    • Line 117: warning: exported function NewOAuthbearerToken should have comment or be unexported (golint)
    • Line 122: warning: exported function NewBasicAuth should have comment or be unexported (golint)
    • Line 147: warning: exported method Client.GetApiBaseURL should have comment or be unexported (golint)
    • Line 151: warning: exported method Client.SetApiBaseURL should have comment or be unexported (golint)
    • Line 170: warning: exported method Client.Execute 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.GetComments should have comment or be unexported (golint)
    • Line 115: warning: exported method PullRequests.GetComment should have comment or be unexported (golint)
    • Line 120: warning: exported method PullRequests.Statuses should have comment or be unexported (golint)
    • go-bitbucket/repository.go
    • Line 17: warning: exported type Project should have comment or be unexported (golint)
    • Line 22: warning: exported type Repository should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; struct field Full_name should be FullName (golint)
    • Line 33: warning: don't use underscores in Go names; struct field Is_private should be IsPrivate (golint)
    • Line 34: warning: don't use underscores in Go names; struct field Has_issues should be HasIssues (golint)
    • Line 41: warning: exported type RepositoryFile should have comment or be unexported (golint)
    • Line 51: warning: exported type RepositoryBlob should have comment or be unexported (golint)
    • Line 55: warning: exported type RepositoryBranches should have comment or be unexported (golint)
    • Line 64: warning: exported type RepositoryBranch should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; struct field Default_Merge_Strategy should be DefaultMergeStrategy (golint)
    • Line 68: warning: don't use underscores in Go names; struct field Merge_Strategies should be MergeStrategies (golint)
    • Line 74: warning: exported type RepositoryTags should have comment or be unexported (golint)
    • Line 83: warning: exported type RepositoryTag should have comment or be unexported (golint)
    • Line 91: warning: exported type Pipeline should have comment or be unexported (golint)
    • Line 97: warning: exported type PipelineVariable should have comment or be unexported (golint)
    • Line 105: warning: exported type PipelineKeyPair should have comment or be unexported (golint)
    • Line 112: warning: exported type PipelineBuildNumber should have comment or be unexported (golint)
    • Line 117: warning: exported type BranchingModel should have comment or be unexported (golint)
    • Line 119: warning: don't use underscores in Go names; struct field Branch_Types should be BranchTypes (golint)
    • Line 124: warning: exported type BranchType should have comment or be unexported (golint)
    • Line 129: warning: exported type BranchModel should have comment or be unexported (golint)
    • Line 132: warning: don't use underscores in Go names; struct field Use_Mainbranch should be UseMainbranch (golint)
    • Line 135: warning: exported method Repository.Create should have comment or be unexported (golint)
    • Line 146: warning: exported method Repository.Fork should have comment or be unexported (golint)
    • Line 157: warning: exported method Repository.Get should have comment or be unexported (golint)
    • Line 167: warning: exported method Repository.ListFiles should have comment or be unexported (golint)
    • Line 178: warning: exported method Repository.GetFileBlob should have comment or be unexported (golint)
    • Line 196: warning: exported method Repository.ListBranches should have comment or be unexported (golint)
    • Line 232: warning: exported method Repository.GetBranch should have comment or be unexported (golint)
    • Line 249: warning: exported method Repository.ListTags should have comment or be unexported (golint)
    • Line 285: warning: exported method Repository.CreateTag should have comment or be unexported (golint)
    • Line 303: warning: exported method Repository.Delete should have comment or be unexported (golint)
    • Line 308: warning: exported method Repository.ListWatchers should have comment or be unexported (golint)
    • Line 313: warning: exported method Repository.ListForks should have comment or be unexported (golint)
    • Line 318: warning: exported method Repository.ListDefaultReviewers should have comment or be unexported (golint)
    • Line 323: warning: exported method Repository.UpdatePipelineConfig should have comment or be unexported (golint)
    • Line 334: warning: exported method Repository.AddPipelineVariable should have comment or be unexported (golint)
    • Line 346: warning: exported method Repository.AddPipelineKeyPair should have comment or be unexported (golint)
    • Line 358: warning: exported method Repository.UpdatePipelineBuildNumber should have comment or be unexported (golint)
    • Line 370: warning: exported method Repository.BranchingModel should have comment or be unexported (golint)
    • Line 582: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • Line 658: warning: don't use underscores in Go names; var max_depth should be maxDepth (golint)
    • go-bitbucket/repositories.go
    • Line 11: warning: exported type Repositories should have comment or be unexported (golint)
    • Line 23: warning: exported type RepositoriesRes should have comment or be unexported (golint)
    • Line 31: warning: exported method Repositories.ListForAccount should have comment or be unexported (golint)
    • Line 43: warning: exported method Repositories.ListForTeam should have comment or be unexported (golint)
    • Line 55: warning: exported method Repositories.ListPublic should have comment or be unexported (golint)
    • Line 89: 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/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)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign36%

IneffAssign detects ineffectual assignments in Go code.

    • go-bitbucket/commits.go
    • Line 15: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 20: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 25: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 30: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 35: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 40: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 45: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 50: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 60: warning: cm.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/pullrequests.go
    • Line 18: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 24: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 65: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 70: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 75: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 80: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 85: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 90: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 95: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 101: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 107: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 112: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 117: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 143: warning: p.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/teams.go
    • Line 9: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 14: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 19: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 24: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 29: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 34: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 39: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/webhooks.go
    • Line 41: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 47: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 52: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 58: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 63: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/workspaces.go
    • Line 37: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 47: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 57: warning: t.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/branchrestrictions.go
    • Line 16: warning: b.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 22: warning: b.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 27: warning: b.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 33: warning: b.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 38: warning: b.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/repositories.go
    • Line 36: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 57: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/repository.go
    • Line 138: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 149: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 159: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 170: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 305: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 310: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 315: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 320: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 326: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 338: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 350: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 362: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 372: warning: r.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/diff.go
    • Line 14: warning: d.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/user.go
    • Line 25: warning: u.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 35: warning: u.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • go-bitbucket/users.go
    • Line 10: warning: u.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 16: warning: c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 22: warning: u.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 28: warning: u.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)
    • Line 33: warning: u.c.execute undefined (type *Client has no field or method execute, but does have Execute) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!