From 31154b5bebdfcda8290ed8fc9b4537bd753c744f Mon Sep 17 00:00:00 2001 From: Allen Shearin Date: Tue, 13 Aug 2024 15:05:15 -0600 Subject: [PATCH] back out cron/internal/format/json changes Signed-off-by: Allen Shearin --- cron/internal/format/json.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cron/internal/format/json.go b/cron/internal/format/json.go index f9810624de5..a313b48ff3c 100644 --- a/cron/internal/format/json.go +++ b/cron/internal/format/json.go @@ -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 { @@ -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),