Adding bitbucket cloud support #573
Annotations
10 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#L162
[golangci] reported by reviewdog 🐶
G601: Implicit memory aliasing in for loop. (gosec)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:162:80: G601: Implicit memory aliasing in for loop. (gosec)
convertedPr, err := bbc.convertPullRequest(bbc.workspaces[0], bbcRepo.name, &pr)
^
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L189
[golangci] reported by reviewdog 🐶
G601: Implicit memory aliasing in for loop. (gosec)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:189:75: G601: Implicit memory aliasing in for loop. (gosec)
convertedPr, err := bbc.convertPullRequest(bbc.workspaces[0], repoName, &pr)
^
|
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) {
|
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#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) {
^
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L140
[golangci] reported by reviewdog 🐶
unused-parameter: parameter 'branchName' seems to be unused, consider removing or renaming it as _ (revive)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:140:65: unused-parameter: parameter 'branchName' seems to be unused, consider removing or renaming it as _ (revive)
func (bbc *BitbucketCloud) GetPullRequests(ctx context.Context, branchName string) ([]scm.PullRequest, error) {
^
|
internal/scm/bitbucketcloud/bitbucket_cloud.go#L233
[golangci] reported by reviewdog 🐶
unnecessary conversion (unconvert)
Raw Output:
internal/scm/bitbucketcloud/bitbucket_cloud.go:233:20: unnecessary conversion (unconvert)
pr := pullRequest(repoPR)
^
|
reviewdog: Too many results (annotations) in diff.
You may miss some annotations due to GitHub limitation for annotation created by logging command.
Please check GitHub Actions log console to see all results.
Limitation:
- 10 warning annotations and 10 error annotations per step
- 50 annotations per job (sum of annotations from all the steps)
- 50 annotations per run (separate from the job annotations, these annotations aren't created by users)
Source: https://github.com/orgs/community/discussions/26680#discussioncomment-3252835
|
This job failed
Loading