Adding bitbucket cloud support #572
Annotations
9 errors
internal/scm/bitbucketcloud/custom_structs.go#L5
[golangci] reported by reviewdog 🐶
File is not `gofmt`-ed with `-s` (gofmt)
Raw Output:
internal/scm/bitbucketcloud/custom_structs.go:5: File is not `gofmt`-ed with `-s` (gofmt)
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L151
[golangci] reported by reviewdog 🐶
G601: Implicit memory aliasing in for loop. (gosec)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:151:76: G601: Implicit memory aliasing in for loop. (gosec)
convertedPr, err := bbc.convertPullRequest(bbc.workspaces[0], repoName, &pr)
^
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L173
[golangci] reported by reviewdog 🐶
G601: Implicit memory aliasing in for loop. (gosec)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:173:75: G601: Implicit memory aliasing in for loop. (gosec)
convertedPr, err := bbc.convertPullRequest(bbc.workspaces[0], repoName, &pr)
^
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L31
[golangci] reported by reviewdog 🐶
line is 231 characters (lll)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:31: line is 231 characters (lll)
func New(username string, token string, repositories []string, workspaces []string, users []string, fork bool, sshAuth bool, newOwner string, transportMiddleware func(http.RoundTripper) http.RoundTripper) (*BitbucketCloud, error) {
|
internal/scm/bitbucketcloud/custom_structs.go#L54
[golangci] reported by reviewdog 🐶
var-naming: struct field Html should be HTML (revive)
Raw Output:
internal/scm/bitbucketcloud/custom_structs.go:54:2: var-naming: struct field Html should be HTML (revive)
Html hrefLink `json:"html,omitempty"`
^
|
internal/scm/bitbucketcloud/custom_structs.go#L60
[golangci] reported by reviewdog 🐶
var-naming: struct field Html should be HTML (revive)
Raw Output:
internal/scm/bitbucketcloud/custom_structs.go:60:2: var-naming: struct field Html should be HTML (revive)
Html []hrefLink `json:"html,omitempty"`
^
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L55
[golangci] reported by reviewdog 🐶
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:55:46: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
func (bbc *BitbucketCloud) CreatePullRequest(ctx context.Context, repo scm.Repository, prRepo scm.Repository, newPR scm.NewPullRequest) (scm.PullRequest, error) {
^
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L218
[golangci] reported by reviewdog 🐶
unnecessary conversion (unconvert)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:218:20: unnecessary conversion (unconvert)
pr := pullRequest(repoPR)
^
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L202
[golangci] reported by reviewdog 🐶
(*BitbucketCloud).pullRequestStatus - result 1 (error) is always nil (unparam)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:202:89: (*BitbucketCloud).pullRequestStatus - result 1 (error) is always nil (unparam)
func (bbc *BitbucketCloud) pullRequestStatus(pr *bbPullRequest) (scm.PullRequestStatus, error) {
^
|
This job succeeded
Loading