Skip to content

Commit

Permalink
back out cron/internal/format/json changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashearin committed Aug 13, 2024
1 parent 51505be commit 163482d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cron/internal/format/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ type jsonCheckDocumentationV2 struct {

//nolint:govet
type jsonCheckResultV2 struct {
Doc jsonCheckDocumentationV2 `json:"documentation"`
Reason string `json:"reason"`
Name string `json:"name"`
Details []string `json:"details"`
Score int `json:"score"`
ID uint `json:"id"`
Reason string `json:"reason"`
Name string `json:"name"`
Doc jsonCheckDocumentationV2 `json:"documentation"`
}

type jsonRepoV2 struct {
Expand Down Expand Up @@ -149,7 +148,6 @@ func AsJSON2(r *scorecard.Result, showDetails bool,
}

tmpResult := jsonCheckResultV2{
ID: doc.GetID(),
Name: checkResult.Name,
Doc: jsonCheckDocumentationV2{
URL: doc.GetDocumentationURL(r.Scorecard.CommitSHA),
Expand Down

0 comments on commit 163482d

Please sign in to comment.