Skip to content

Commit

Permalink
back out cron/internal changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashearin committed Aug 13, 2024
1 parent 51505be commit 9f1ee2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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
4 changes: 0 additions & 4 deletions cron/internal/format/mock_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ type mockCheck struct {
ID uint
}

func (c *mockCheck) GetID() uint {
return c.ID
}

func (c *mockCheck) GetName() string {
return c.name
}
Expand Down

0 comments on commit 9f1ee2b

Please sign in to comment.