Adding bitbucket cloud support #574
Annotations
8 errors
golangci-lint:
internal/scm/bitbucketcloud/bitbucket_cloud.go#L174
[golangci] reported by reviewdog 🐶
G601: Implicit memory aliasing in for loop. (gosec)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:174:80: G601: Implicit memory aliasing in for loop. (gosec)
convertedPr, err := bbc.convertPullRequest(bbc.workspaces[0], bbcRepo.name, &pr)
^
|
golangci-lint:
internal/scm/bitbucketcloud/bitbucket_cloud.go#L201
[golangci] reported by reviewdog 🐶
G601: Implicit memory aliasing in for loop. (gosec)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:201:75: G601: Implicit memory aliasing in for loop. (gosec)
convertedPr, err := bbc.convertPullRequest(bbc.workspaces[0], repoName, &pr)
^
|
golangci-lint:
internal/scm/bitbucketcloud/bitbucket_cloud.go#L32
[golangci] reported by reviewdog 🐶
line is 231 characters (lll)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:32: 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) {
|
golangci-lint:
internal/scm/bitbucketcloud/custom_structs.go#L59
[golangci] reported by reviewdog 🐶
var-naming: struct field Html should be HTML (revive)
Raw Output:
internal/scm/bitbucketcloud/custom_structs.go:59:2: var-naming: struct field Html should be HTML (revive)
Html hrefLink `json:"html,omitempty"`
^
|
golangci-lint:
internal/scm/bitbucketcloud/custom_structs.go#L65
[golangci] reported by reviewdog 🐶
var-naming: struct field Html should be HTML (revive)
Raw Output:
internal/scm/bitbucketcloud/custom_structs.go:65:2: var-naming: struct field Html should be HTML (revive)
Html []hrefLink `json:"html,omitempty"`
^
|
golangci-lint:
internal/scm/bitbucketcloud/bitbucket_cloud.go#L54
[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:54: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) {
^
|
golangci-lint:
internal/scm/bitbucketcloud/bitbucket_cloud.go#L245
[golangci] reported by reviewdog 🐶
unnecessary conversion (unconvert)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:245:20: unnecessary conversion (unconvert)
pr := pullRequest(repoPR)
^
|
golangci-lint:
internal/scm/bitbucketcloud/bitbucket_cloud.go#L210
[golangci] reported by reviewdog 🐶
(*BitbucketCloud).convertPullRequest - result 1 (error) is always nil (unparam)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:210:106: (*BitbucketCloud).convertPullRequest - result 1 (error) is always nil (unparam)
func (bbc *BitbucketCloud) convertPullRequest(project, repoName string, pr *bbPullRequest) (pullRequest, error) {
^
|