mirror of
https://github.com/ossf/scorecard.git
synced 2024-10-26 10:28:10 +03:00
Add new linter: makezero (#497)
I think this fixed a bug where pkg.RunScorecards was being run for empty repoURLs Co-authored-by: Azeem Shaikh <azeemshaikh38@gmail.com>
This commit is contained in:
parent
a89eedc471
commit
2d9a23b4bd
@ -40,6 +40,7 @@ linters:
|
|||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- lll
|
- lll
|
||||||
|
- makezero
|
||||||
- misspell
|
- misspell
|
||||||
- nakedret
|
- nakedret
|
||||||
- nestif
|
- nestif
|
||||||
|
@ -39,7 +39,7 @@ import (
|
|||||||
func processRequest(ctx context.Context,
|
func processRequest(ctx context.Context,
|
||||||
batchRequest *data.ScorecardBatchRequest, bucketURL string,
|
batchRequest *data.ScorecardBatchRequest, bucketURL string,
|
||||||
httpClient *http.Client, githubClient *github.Client, graphClient *githubv4.Client) error {
|
httpClient *http.Client, githubClient *github.Client, graphClient *githubv4.Client) error {
|
||||||
repoURLs := make([]repos.RepoURL, len(batchRequest.GetRepos()))
|
repoURLs := make([]repos.RepoURL, 0, len(batchRequest.GetRepos()))
|
||||||
var resultCh chan repos.RepoResult
|
var resultCh chan repos.RepoResult
|
||||||
var buffer bytes.Buffer
|
var buffer bytes.Buffer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user