Skip to content

Commit

Permalink
chore: added provider to json output
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
  • Loading branch information
AlexsJones committed May 16, 2023
1 parent d5dfcf0 commit 1658fc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/analysis/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const (
)

type JsonOutput struct {
Provider string `json:"provider"`
Errors AnalysisErrors `json:"errors"`
Status AnalysisStatus `json:"status"`
Problems int `json:"problems"`
Expand Down
1 change: 1 addition & 0 deletions pkg/analysis/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (a *Analysis) jsonOutput() ([]byte, error) {
}

result := JsonOutput{
Provider: a.AnalysisAIProvider,
Problems: problems,
Results: a.Results,
Errors: a.Errors,
Expand Down

0 comments on commit 1658fc2

Please sign in to comment.