Documentation ¶
Index ¶
- func AggregateMultipleRunsIntoSingle(runs []*sarif.Run, destination *sarif.Run)
- func CombineReports(reports ...*sarif.Report) (combined *sarif.Report, err error)
- func ConvertRunsPathsToRelative(runs ...*sarif.Run)
- func CopyLocation(location *sarif.Location) *sarif.Location
- func CopyResult(result *sarif.Result) *sarif.Result
- func CopyRules(rules ...*sarif.ReportingDescriptor) (copied []*sarif.ReportingDescriptor)
- func CopyRun(run *sarif.Run) *sarif.Run
- func CopyRunMetadata(run *sarif.Run) (copied *sarif.Run)
- func CreateCodeFlow(threadFlows ...*sarif.ThreadFlow) *sarif.CodeFlow
- func CreateDummyDriver(toolName string, rules ...*sarif.ReportingDescriptor) *sarif.ToolComponent
- func CreateDummyLocationInPath(fileName string) *sarif.Location
- func CreateDummyLocationWithPathAndLogicalLocation(fileName, logicalName, kind, property, value string) *sarif.Location
- func CreateDummyPassingResult(ruleId string) *sarif.Result
- func CreateDummyResult(markdown, msg, ruleId, level string) *sarif.Result
- func CreateDummyResultInPath(fileName string) *sarif.Result
- func CreateDummyResultWithFingerprint(markdown, msg, algorithm, value string, locations ...*sarif.Location) *sarif.Result
- func CreateDummyResultWithPathAndLogicalLocation(fileName, logicalName, kind, property, value string) *sarif.Result
- func CreateLocation(fileName string, startLine, startCol, endLine, endCol int, snippet string) *sarif.Location
- func CreateLogicalLocationWithProperty(name, kind, property, value string) *sarif.LogicalLocation
- func CreateResultWithDummyLocationAmdProperty(fileName, property, value string) *sarif.Result
- func CreateResultWithLocations(msg, ruleId, level string, locations ...*sarif.Location) *sarif.Result
- func CreateResultWithOneLocation(fileName string, startLine, startCol, endLine, endCol int, ...) *sarif.Result
- func CreateResultWithProperties(msg, ruleId, level string, properties map[string]string, ...) *sarif.Result
- func CreateRunNameWithResults(toolName string, results ...*sarif.Result) *sarif.Run
- func CreateRunWithDummyResultAndRuleProperties(result *sarif.Result, properties, values []string) *sarif.Run
- func CreateRunWithDummyResults(results ...*sarif.Result) *sarif.Run
- func CreateRunWithDummyResultsInWd(wd string, results ...*sarif.Result) *sarif.Run
- func CreateThreadFlow(locations ...*sarif.Location) *sarif.ThreadFlow
- func ExtractRelativePath(resultPath string, projectRoot string) string
- func GetFullLocationFileName(relative string, invocations []*sarif.Invocation) string
- func GetInvocationWorkingDirectory(invocation *sarif.Invocation) string
- func GetLocationEndColumn(location *sarif.Location) int
- func GetLocationEndLine(location *sarif.Location) int
- func GetLocationFileName(location *sarif.Location) string
- func GetLocationId(location *sarif.Location) string
- func GetLocationRelatedCodeFlowsFromResult(location *sarif.Location, result *sarif.Result) (codeFlows []*sarif.CodeFlow)
- func GetLocationSnippet(location *sarif.Location) *sarif.ArtifactContent
- func GetLocationSnippetText(location *sarif.Location) string
- func GetLocationStartColumn(location *sarif.Location) int
- func GetLocationStartLine(location *sarif.Location) int
- func GetLogicalLocation(kind string, location *sarif.Location) *sarif.LogicalLocation
- func GetRelativeLocationFileName(location *sarif.Location, invocations []*sarif.Invocation) string
- func GetResultFileLocations(result *sarif.Result) []string
- func GetResultFingerprint(result *sarif.Result) string
- func GetResultLevel(result *sarif.Result) string
- func GetResultLocationSnippets(result *sarif.Result) []string
- func GetResultMsgText(result *sarif.Result) string
- func GetResultProperty(key string, result *sarif.Result) (value string)
- func GetResultRuleId(result *sarif.Result) string
- func GetResultsLocationCount(runs ...*sarif.Run) (count int)
- func GetRuleById(run *sarif.Run, ruleId string) *sarif.ReportingDescriptor
- func GetRuleFullDescription(rule *sarif.ReportingDescriptor) string
- func GetRuleFullDescriptionMarkdown(rule *sarif.ReportingDescriptor) string
- func GetRuleFullDescriptionText(rule *sarif.ReportingDescriptor) string
- func GetRuleHelp(rule *sarif.ReportingDescriptor) string
- func GetRuleHelpMarkdown(rule *sarif.ReportingDescriptor) string
- func GetRuleProperty(key string, rule *sarif.ReportingDescriptor) string
- func GetRuleShortDescription(rule *sarif.ReportingDescriptor) string
- func GetRuleShortDescriptionText(rule *sarif.ReportingDescriptor) string
- func GetRulesPropertyCount(property, value string, runs ...*sarif.Run) (count int)
- func GetRunRules(run *sarif.Run) []*sarif.ReportingDescriptor
- func GetRunToolFullDescription(run *sarif.Run) string
- func GetRunToolFullDescriptionMarkdown(run *sarif.Run) string
- func GetRunToolFullDescriptionText(run *sarif.Run) string
- func GetRunToolFullName(run *sarif.Run) string
- func GetRunToolInformationURI(run *sarif.Run) string
- func GetRunToolName(run *sarif.Run) string
- func GetRunsByToolName(report *sarif.Report, toolName string) (filteredRuns []*sarif.Run)
- func GetRunsByWorkingDirectory(workingDirectory string, runs ...*sarif.Run) (filteredRuns []*sarif.Run)
- func GetToolVersion(run *sarif.Run) string
- func IsFingerprintsExists(result *sarif.Result) bool
- func IsResultKindNotPass(result *sarif.Result) bool
- func NewLogicalLocation(name, kind string) *sarif.LogicalLocation
- func NewPhysicalLocation(physicalPath string) *sarif.PhysicalLocation
- func NewPhysicalLocationWithRegion(physicalPath string, startRow, endRow, startCol, endCol int) *sarif.PhysicalLocation
- func NewReport() (*sarif.Report, error)
- func ReadScanRunsFromFile(fileName string) (sarifRuns []*sarif.Run, err error)
- func SetLocationFileName(location *sarif.Location, fileName string)
- func SetLocationSnippet(location *sarif.Location, snippet string)
- func SetResultFingerprint(algorithm, value string, result *sarif.Result)
- func SetResultMsgMarkdown(markdown string, result *sarif.Result)
- func SetRuleShortDescriptionText(value string, rule *sarif.ReportingDescriptor)
- func SetRunToolFullDescriptionMarkdown(markdown string, run *sarif.Run)
- func SetRunToolFullDescriptionText(txt string, run *sarif.Run)
- func SetRunToolName(toolName string, run *sarif.Run)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineReports ¶
func CopyRules ¶ added in v1.13.0
func CopyRules(rules ...*sarif.ReportingDescriptor) (copied []*sarif.ReportingDescriptor)
func CreateCodeFlow ¶
func CreateCodeFlow(threadFlows ...*sarif.ThreadFlow) *sarif.CodeFlow
func CreateDummyDriver ¶
func CreateDummyDriver(toolName string, rules ...*sarif.ReportingDescriptor) *sarif.ToolComponent
func CreateDummyResult ¶
func CreateDummyResultInPath ¶
func CreateLocation ¶
func CreateLogicalLocationWithProperty ¶
func CreateLogicalLocationWithProperty(name, kind, property, value string) *sarif.LogicalLocation
func CreateThreadFlow ¶
func CreateThreadFlow(locations ...*sarif.Location) *sarif.ThreadFlow
func ExtractRelativePath ¶
func GetFullLocationFileName ¶
func GetFullLocationFileName(relative string, invocations []*sarif.Invocation) string
func GetInvocationWorkingDirectory ¶
func GetInvocationWorkingDirectory(invocation *sarif.Invocation) string
func GetLocationEndColumn ¶
func GetLocationEndLine ¶
func GetLocationFileName ¶
func GetLocationId ¶
func GetLocationSnippet ¶
func GetLocationSnippet(location *sarif.Location) *sarif.ArtifactContent
func GetLocationSnippetText ¶
func GetLocationStartColumn ¶
func GetLocationStartLine ¶
func GetLogicalLocation ¶
func GetLogicalLocation(kind string, location *sarif.Location) *sarif.LogicalLocation
func GetRelativeLocationFileName ¶
func GetRelativeLocationFileName(location *sarif.Location, invocations []*sarif.Invocation) string
func GetResultFileLocations ¶
func GetResultFingerprint ¶
func GetResultLevel ¶
func GetResultMsgText ¶
func GetResultRuleId ¶
func GetResultsLocationCount ¶
func GetRuleById ¶
func GetRuleById(run *sarif.Run, ruleId string) *sarif.ReportingDescriptor
func GetRuleFullDescription ¶
func GetRuleFullDescription(rule *sarif.ReportingDescriptor) string
func GetRuleFullDescriptionMarkdown ¶
func GetRuleFullDescriptionMarkdown(rule *sarif.ReportingDescriptor) string
func GetRuleFullDescriptionText ¶
func GetRuleFullDescriptionText(rule *sarif.ReportingDescriptor) string
func GetRuleHelp ¶
func GetRuleHelp(rule *sarif.ReportingDescriptor) string
func GetRuleHelpMarkdown ¶
func GetRuleHelpMarkdown(rule *sarif.ReportingDescriptor) string
func GetRuleProperty ¶
func GetRuleProperty(key string, rule *sarif.ReportingDescriptor) string
func GetRuleShortDescription ¶
func GetRuleShortDescription(rule *sarif.ReportingDescriptor) string
func GetRuleShortDescriptionText ¶
func GetRuleShortDescriptionText(rule *sarif.ReportingDescriptor) string
func GetRulesPropertyCount ¶
func GetRunRules ¶
func GetRunRules(run *sarif.Run) []*sarif.ReportingDescriptor
func GetRunToolFullName ¶
func GetRunToolName ¶
func GetRunsByToolName ¶
func GetToolVersion ¶
func IsFingerprintsExists ¶
func IsResultKindNotPass ¶
func NewLogicalLocation ¶
func NewLogicalLocation(name, kind string) *sarif.LogicalLocation
func NewPhysicalLocation ¶
func NewPhysicalLocation(physicalPath string) *sarif.PhysicalLocation
func NewPhysicalLocationWithRegion ¶
func NewPhysicalLocationWithRegion(physicalPath string, startRow, endRow, startCol, endCol int) *sarif.PhysicalLocation
func ReadScanRunsFromFile ¶
func SetLocationFileName ¶
func SetLocationSnippet ¶
func SetResultFingerprint ¶
func SetResultMsgMarkdown ¶
func SetRuleShortDescriptionText ¶
func SetRuleShortDescriptionText(value string, rule *sarif.ReportingDescriptor)
func SetRunToolName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.