Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 22 additions & 20 deletions types/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ type FileMeta struct {
}

type AnalysisReport struct {
Issues []Issue `json:"issues"`
Metrics []Metric `json:"metrics,omitempty"`
IsPassed bool `json:"is_passed"`
Errors []AnalysisError `json:"errors"`
FileMeta FileMeta `json:"file_meta"`
ExtraData interface{} `json:"extra_data"`
Issues []Issue `json:"issues"`
Metrics []Metric `json:"metrics,omitempty"`
IsPassed bool `json:"is_passed"`
Errors []AnalysisError `json:"errors"`
FileMeta FileMeta `json:"file_meta"`
BranchFileMeta FileMeta `json:"branch_file_meta"` // File meta for the branch against previous completed run commit.
ExtraData interface{} `json:"extra_data"`
}

type AnalysisResult struct {
Expand Down Expand Up @@ -115,20 +116,21 @@ type CancelCheckResultCeleryTask struct {

//proteus:generate
type MarvinAnalysisConfig struct {
RunID string `toml:"runID"`
RunSerial string `toml:"runSerial"`
CheckSeq string `toml:"checkSeq"`
AnalyzerShortcode string `toml:"analyzerShortcode"`
AnalyzerCommand string `toml:"analyzerCommand"`
AnalyzerType string `toml:"analyzerType"`
BaseOID string `toml:"baseOID"`
CheckoutOID string `toml:"checkoutOID"`
Repository string `toml:"repository"`
IsFullRun bool `toml:"is_full_run"`
IsForDefaultAnalysisBranch bool `toml:"isForDefaultAnalysisBranch"`
DSConfigUpdated bool `toml:"dsConfigUpdated"`
Processors []string `toml:"processors"`
DiffMetaCommits []DiffMetaCommit `toml:"diffMetaCommits"`
RunID string `toml:"runID"`
RunSerial string `toml:"runSerial"`
CheckSeq string `toml:"checkSeq"`
AnalyzerShortcode string `toml:"analyzerShortcode"`
AnalyzerCommand string `toml:"analyzerCommand"`
AnalyzerType string `toml:"analyzerType"`
BaseOID string `toml:"baseOID"`
CheckoutOID string `toml:"checkoutOID"`
Repository string `toml:"repository"`
IsFullRun bool `toml:"is_full_run"`
IsForDefaultAnalysisBranch bool `toml:"isForDefaultAnalysisBranch"`
DSConfigUpdated bool `toml:"dsConfigUpdated"`
Processors []string `toml:"processors"`
DiffMetaCommits []DiffMetaCommit `toml:"diffMetaCommits"`
PreviousCompletedRunCommitOID string `toml:"previousCompletedRunCommitOID"`
}

//proteus:generate
Expand Down
48 changes: 25 additions & 23 deletions types/atlas_reception.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ type Artifact struct {
//
//proteus:generate
type AnalysisRunVCSMeta struct {
RemoteURL string `json:"remote_url"`
BaseBranch string `json:"base_branch"`
BaseOID string `json:"base_oid"`
CheckoutOID string `json:"checkout_oid"`
RepositoryName string `json:"repository_name"`
IsForDefaultAnalysisBranch bool `json:"is_for_default_analysis_branch"`
CloneSubmodules bool `json:"clone_submodules"`
SparseCheckoutPath string `json:"sparse_checkout_path"`
RemoteURL string `json:"remote_url"`
BaseBranch string `json:"base_branch"`
BaseOID string `json:"base_oid"`
CheckoutOID string `json:"checkout_oid"`
RepositoryName string `json:"repository_name"`
IsForDefaultAnalysisBranch bool `json:"is_for_default_analysis_branch"`
CloneSubmodules bool `json:"clone_submodules"`
SparseCheckoutPath string `json:"sparse_checkout_path"`
PreviousCompletedRunCommitOID string `json:"previous_completed_run_commit_oid"` // Previous completed run commit OID.
}

//proteus:generate
Expand Down Expand Up @@ -77,12 +78,12 @@ type AnalyzerMeta struct {

//proteus:generate
type Check struct {
CheckSeq string `json:"check_seq"`
Artifacts []Artifact `json:"artifacts"`
AnalyzerMeta AnalyzerMeta `json:"analyzer_meta"`
Processors []string `json:"processors"`
DiffMetaCommits []DiffMetaCommit `json:"diff_meta_commits"`
AIIssuesURL string `json:"ai_issues_url"` // Previous AI issues for deduplication.
CheckSeq string `json:"check_seq"`
Artifacts []Artifact `json:"artifacts"`
AnalyzerMeta AnalyzerMeta `json:"analyzer_meta"`
Processors []string `json:"processors"`
DiffMetaCommits []DiffMetaCommit `json:"diff_meta_commits"`
ExistingAIIssuesURL string `json:"existing_ai_issues_url"` // Previous AI issues for deduplication.
}

type DiffMetaCommit struct {
Expand All @@ -92,15 +93,16 @@ type DiffMetaCommit struct {

//proteus:generate
type AnalysisRun struct {
RunID string `json:"run_id"`
RunSerial string `json:"run_serial"`
Config DSConfig `json:"config"`
DSConfigUpdated bool `json:"ds_config_updated"`
IsFullRun bool `json:"is_full_run"`
VCSMeta AnalysisRunVCSMeta `json:"vcs_meta"`
Keys Keys `json:"keys"`
Checks []Check `json:"checks"`
Meta map[string]string `json:"_meta"`
RunID string `json:"run_id"`
RunSerial string `json:"run_serial"`
Config DSConfig `json:"config"`
DSConfigUpdated bool `json:"ds_config_updated"`
IsFullRun bool `json:"is_full_run"`
VCSMeta AnalysisRunVCSMeta `json:"vcs_meta"`
Keys Keys `json:"keys"`
Checks []Check `json:"checks"`
Meta map[string]string `json:"_meta"`
PreviousCompletedRunCommitOID string `json:"previous_completed_run_commit_oid"` // Previous completed run commit OID for deduplication.
}

//proteus:generate
Expand Down