mirror of
https://github.com/ossf/scorecard.git
synced 2024-08-15 19:30:40 +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
|
||||
- ineffassign
|
||||
- lll
|
||||
- makezero
|
||||
- misspell
|
||||
- nakedret
|
||||
- nestif
|
||||
|
@ -39,7 +39,7 @@ import (
|
||||
func processRequest(ctx context.Context,
|
||||
batchRequest *data.ScorecardBatchRequest, bucketURL string,
|
||||
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 buffer bytes.Buffer
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user