Skip to content

Adding bitbucket cloud support #572

Adding bitbucket cloud support

Adding bitbucket cloud support #572

Triggered via pull request June 21, 2024 16:13
Status Success
Total duration 25s
Artifacts

linting.yaml

on: pull_request
golangci-lint
14s
golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

9 errors
golangci-lint: 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)
golangci-lint: 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) ^
golangci-lint: 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) ^
golangci-lint: 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) {
golangci-lint: 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"` ^
golangci-lint: 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"` ^
golangci-lint: 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) { ^
golangci-lint: 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) ^
golangci-lint: 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) { ^