Skip to content

fix query

fix query #25

GitHub Actions / golangci completed Jul 17, 2024 in 1s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (2)

internal/multigitter/run.go|344| line is 211 characters (lll)
internal/multigitter/run.go|346| line is 216 characters (lll)

Filtered Findings (21)

internal/scm/gitlab/gitlab.go|272 col 18| var-naming: method getUserIds should be getUserIDs (revive)
internal/multigitter/run.go|228 col 1| cyclomatic complexity 31 of func (*Runner).runSingleRepo is high (> 25) (gocyclo)
cmd/cmd-run.go|81 col 1| cyclomatic complexity 33 of func run is high (> 25) (gocyclo)
internal/scm/github/retry_test.go|112 col 17| unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
internal/scm/github/retry_test.go|135 col 15| unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
cmd/cmd-root.go|15 col 47| unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
cmd/cmd-run.go|61 col 63| unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
cmd/logging.go|19 col 55| unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
cmd/git.go|19 col 54| unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|229 col 65| unused-parameter: parameter 'runData' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|261 col 65| unused-parameter: parameter 'runData' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|292 col 65| unused-parameter: parameter 'runData' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|638 col 19| unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|645 col 31| unused-parameter: parameter 'vcMock' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|652 col 19| unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|659 col 31| unused-parameter: parameter 'vcMock' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|666 col 19| unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
tests/table_test.go|673 col 31| unused-parameter: parameter 'vcMock' seems to be unused, consider removing or renaming it as _ (revive)
cmd/cmd-root.go|31 col 2| SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
internal/scm/github/github.go|48 col 17| SA1019: github.NewEnterpriseClient is deprecated: Use NewClient(httpClient).WithEnterpriseURLs(baseURL, uploadURL) instead. (staticcheck)
internal/scm/github/github.go|285 col 11| SA1019: g.ghClient.Repositories.List is deprecated: Use RepositoriesService.ListByUser or RepositoriesService.ListByAuthenticatedUser instead. (staticcheck)

Annotations

Check failure on line 344 in internal/multigitter/run.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] internal/multigitter/run.go#L344

line is 211 characters (lll)
Raw output
internal/multigitter/run.go:344: line is 211 characters (lll)
			CommitAndPushThoughGraphQL(ctx context.Context, headline string, featureBranch string, cloneURL string, oldHash string, additions map[string]string, deletions []string, forcePush bool, branchExist bool) error

Check failure on line 346 in internal/multigitter/run.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] internal/multigitter/run.go#L346

line is 216 characters (lll)
Raw output
internal/multigitter/run.go:346: line is 216 characters (lll)
			err = ghapi.CommitAndPushThoughGraphQL(ctx, r.CommitMessage, r.FeatureBranch, repo.CloneURL(), sourceController.OldHash(), sourceController.Additions(), sourceController.Deletions(), forcePush, featureBranchExist)