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 CreateCodeFlow(threadFlows ...*sarif.ThreadFlow) *sarif.CodeFlow
- func CreateDummyDriver(toolName, infoURI 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) 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) string
- func GetResultRuleId(result *sarif.Result) string
- func GetResultsLocationCount(runs ...*sarif.Run) (count int)
- func GetRuleFullDescriptionText(rule *sarif.ReportingDescriptor) string
- func GetRuleProperty(key string, 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 GetRunToolFullDescriptionMarkdown(run *sarif.Run) string
- func GetRunToolFullDescriptionText(run *sarif.Run) string
- func GetRunToolName(run *sarif.Run) string
- func GetRunsByWorkingDirectory(workingDirectory string, runs ...*sarif.Run) (filteredRuns []*sarif.Run)
- 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 ¶ added in v1.8.0
func ConvertRunsPathsToRelative ¶ added in v1.8.0
func CreateCodeFlow ¶
func CreateCodeFlow(threadFlows ...*sarif.ThreadFlow) *sarif.CodeFlow
func CreateDummyDriver ¶ added in v1.8.0
func CreateDummyDriver(toolName, infoURI string, rules ...*sarif.ReportingDescriptor) *sarif.ToolComponent
func CreateDummyLocationInPath ¶ added in v1.8.0
func CreateDummyLocationWithPathAndLogicalLocation ¶ added in v1.8.0
func CreateDummyResult ¶ added in v1.8.0
func CreateDummyResultInPath ¶ added in v1.8.0
func CreateDummyResultWithFingerprint ¶ added in v1.8.0
func CreateDummyResultWithPathAndLogicalLocation ¶ added in v1.8.0
func CreateLocation ¶
func CreateLogicalLocationWithProperty ¶ added in v1.8.0
func CreateLogicalLocationWithProperty(name, kind, property, value string) *sarif.LogicalLocation
func CreateResultWithDummyLocationAmdProperty ¶ added in v1.8.0
func CreateResultWithProperties ¶ added in v1.10.0
func CreateRunNameWithResults ¶ added in v1.8.0
func CreateRunWithDummyResultsInWd ¶ added in v1.8.0
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 GetLocationStartColumn ¶
func GetLocationStartLine ¶
func GetLogicalLocation ¶ added in v1.8.0
func GetLogicalLocation(kind string, location *sarif.Location) *sarif.LogicalLocation
func GetRelativeLocationFileName ¶
func GetRelativeLocationFileName(location *sarif.Location, invocations []*sarif.Invocation) string
func GetResultFileLocations ¶ added in v1.8.0
func GetResultFingerprint ¶ added in v1.8.1
func GetResultLevel ¶
func GetResultLocationSnippets ¶ added in v1.8.0
func GetResultMsgText ¶
func GetResultProperty ¶ added in v1.10.0
func GetResultRuleId ¶ added in v1.8.0
func GetResultsLocationCount ¶
func GetRuleFullDescriptionText ¶ added in v1.8.0
func GetRuleFullDescriptionText(rule *sarif.ReportingDescriptor) string
func GetRuleProperty ¶ added in v1.9.0
func GetRuleProperty(key string, rule *sarif.ReportingDescriptor) string
func GetRuleShortDescriptionText ¶ added in v1.8.0
func GetRuleShortDescriptionText(rule *sarif.ReportingDescriptor) string
func GetRulesPropertyCount ¶
func GetRunRules ¶
func GetRunRules(run *sarif.Run) []*sarif.ReportingDescriptor
func GetRunToolFullDescriptionMarkdown ¶ added in v1.8.0
func GetRunToolFullDescriptionText ¶ added in v1.8.0
func GetRunToolName ¶ added in v1.8.0
func IsFingerprintsExists ¶ added in v1.8.0
func IsResultKindNotPass ¶
func NewLogicalLocation ¶ added in v1.8.0
func NewLogicalLocation(name, kind string) *sarif.LogicalLocation
func NewPhysicalLocation ¶ added in v1.8.0
func NewPhysicalLocation(physicalPath string) *sarif.PhysicalLocation
func NewPhysicalLocationWithRegion ¶ added in v1.8.0
func NewPhysicalLocationWithRegion(physicalPath string, startRow, endRow, startCol, endCol int) *sarif.PhysicalLocation
func ReadScanRunsFromFile ¶
func SetLocationFileName ¶
func SetLocationSnippet ¶
func SetResultFingerprint ¶ added in v1.8.0
func SetResultMsgMarkdown ¶ added in v1.8.0
func SetRuleShortDescriptionText ¶ added in v1.8.0
func SetRuleShortDescriptionText(value string, rule *sarif.ReportingDescriptor)
func SetRunToolFullDescriptionMarkdown ¶ added in v1.8.0
func SetRunToolFullDescriptionText ¶ added in v1.8.0
func SetRunToolName ¶ added in v1.8.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.