Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Oct 18, 2023
1 parent 4ba6853 commit 66c1e22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/enrichers/depsdev/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var (
annotation string
)

// Check is a deps.dev ScoreCardV2 check
type Check struct {
Name string `json:"name,omitempty"`
Documentation struct {
Expand All @@ -40,6 +41,8 @@ type Check struct {
Reason string `json:"reason,omitempty"`
Details []interface{} `json:"details,omitempty"`
}

// ScorecardV2 is a deps.dev ScoreCardV2 result
type ScorecardV2 struct {
Date string `json:"date,omitempty"`
Repo struct {
Expand All @@ -54,6 +57,8 @@ type ScorecardV2 struct {
Metadata []interface{} `json:"metadata,omitempty"`
Score float64 `json:"score,omitempty"`
}

// Project is a deps.dev project
type Project struct {
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
Expand All @@ -67,6 +72,8 @@ type Project struct {
Link string `json:"link,omitempty"`
ScorecardV2 ScorecardV2 `json:"scorecardV2,omitempty"`
}

// Project is a deps.dev version
type Version struct {
Version string `json:"version,omitempty"`
SymbolicVersions []interface{} `json:"symbolicVersions,omitempty"`
Expand Down

0 comments on commit 66c1e22

Please sign in to comment.