in sapp/analysis_output.py [0:0]
def merge(self, o: "Metadata") -> "Metadata":
return Metadata(
analysis_root=self.analysis_root,
repo_roots=self.repo_roots + o.repo_roots,
repository_name=self.repository_name or o.repository_name,
tool=self.tool or o.tool,
analysis_tool_version=self.analysis_tool_version or o.analysis_tool_version,
commit_hash=self.commit_hash or o.commit_hash,
job_instance=self.job_instance or o.job_instance,
project=self.project or o.project,
rules={**self.rules, **o.rules},
type_intervals={**self.type_intervals, **o.type_intervals},
)