Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPropertyTag ¶
func AddPropertyTag(properties sarif.Properties, tagName, tagValue string) sarif.Properties
func GenerateSarifReport ¶
func GenerateSarifReport(sarifInformation *SarifReportInformation) (*sarif.Report, error)
func WriteSarifContentAtomic ¶ added in v0.0.19
WriteSarifContentAtomic writes the report to a temp file in the same directory as output and atomically renames it into place, so a reader (or a kill mid-write) never observes a partially written file.
Types ¶
type SarifReportInformation ¶
type SarifReportInformation struct {
Violations []model.Violation
InputTokens int32
OutputTokens int32
FilesAnalyzed []string
FileResults []model.FileResult
Rules []api.AiPrompt
}
func GenerateSarifInformation ¶
func GenerateSarifInformation(opts *model.AnalysisOptions, filesResults []model.FileResult) SarifReportInformation
Generate the information to process the SARIF file. Also, make sure that we filter the files analyzed in case the datadog driver is present.
Click to show internal directories.
Click to hide internal directories.