Skip to content

Commit

Permalink
feat: add field dependencies_count to --json & idea output
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Apr 8, 2022
1 parent 5cab1a3 commit 6f7c002
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/idea_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type PluginOutput struct {
TotalContributors int `json:"total_contributors"`
ProjectId string `json:"project_id"`
InspectErrors []base.InspectorError `json:"inspect_errors,omitempty"`
DependenciesCount int `json:"dependencies_count"`
}
type PluginComp struct {
CompName string `json:"comp_name"`
Expand Down Expand Up @@ -86,6 +87,7 @@ func generatePluginOutput(ctx *inspector.ScanContext) *PluginOutput {
InspectErrors: ctx.InspectorError,
TotalContributors: ctx.TotalContributors,
ProjectId: ctx.ProjectId,
DependenciesCount: ctx.ScanResult.DependenciesCount,
}
// merge module comps
rs := map[id]PluginComp{}
Expand Down

0 comments on commit 6f7c002

Please sign in to comment.