use gh api #7
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (1)
internal/git/gogit/git.go|108 col 49| empty-block: this block is empty, you can remove it (revive)
Filtered Findings (21)
internal/scm/gitlab/gitlab.go|272 col 18| var-naming: method getUserIds should be getUserIDs (revive)
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)
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)
internal/multigitter/run.go|230 col 1| cyclomatic complexity 34 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)
cmd/cmd-root.go|15 col 47| unused-parameter: parameter 'args' 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/logging.go|24 col 56| 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)
Annotations
Check failure on line 108 in internal/git/gogit/git.go
github-actions / golangci
[golangci] internal/git/gogit/git.go#L108
empty-block: this block is empty, you can remove it (revive)
Raw output
internal/git/gogit/git.go:108:49: empty-block: this block is empty, you can remove it (revive)
} else if s == git.Renamed || s == git.Copied {
// Skipping this case for now, but we should handle it
}