Documentation
¶
Index ¶
- func FormatAggregated(agg *AggregatedReport) string
- type AggregatedReport
- type Formatter
- type FormatterOptions
- type InvocationInfo
- type SARIFArtifact
- type SARIFArtifactLocation
- type SARIFConfiguration
- type SARIFDriver
- type SARIFFormatter
- type SARIFInvocation
- type SARIFLocation
- type SARIFMessage
- type SARIFNotification
- type SARIFPhysicalLocation
- type SARIFReport
- type SARIFResult
- type SARIFRule
- type SARIFRun
- type SARIFTool
- type TextFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAggregated ¶
func FormatAggregated(agg *AggregatedReport) string
Types ¶
type AggregatedReport ¶
type AggregatedReport struct {
Upgrades map[string]map[string]map[string]bool // compiler name -> version -> paths
Flags map[string]map[string]bool // flag -> paths
PassedAll []string
}
func AggregateFindings ¶
func AggregateFindings(report *analyzer.Report, rules []rule.ELFRule) *AggregatedReport
func NewAggregatedReport ¶
func NewAggregatedReport() *AggregatedReport
type Formatter ¶
func GetFormatter ¶
func GetFormatter(format string, opts FormatterOptions) (Formatter, error)
type FormatterOptions ¶
type FormatterOptions struct {
IncludePassed bool
IncludeSkipped bool
Invocation *InvocationInfo
}
type InvocationInfo ¶
type SARIFArtifact ¶
type SARIFArtifact struct {
Location SARIFArtifactLocation `json:"location"`
Hashes map[string]string `json:"hashes,omitempty"`
}
type SARIFArtifactLocation ¶
type SARIFArtifactLocation struct {
URI string `json:"uri"`
}
type SARIFConfiguration ¶
type SARIFConfiguration struct {
Level string `json:"level"`
}
type SARIFDriver ¶
type SARIFFormatter ¶
type SARIFFormatter struct {
IncludePassed bool
IncludeSkipped bool
Invocation *InvocationInfo
}
type SARIFInvocation ¶
type SARIFInvocation struct {
CommandLine string `json:"commandLine,omitempty"`
Arguments []string `json:"arguments,omitempty"`
ExecutionSuccessful bool `json:"executionSuccessful"`
StartTimeUtc string `json:"startTimeUtc,omitempty"`
EndTimeUtc string `json:"endTimeUtc,omitempty"`
WorkingDirectory *SARIFArtifactLocation `json:"workingDirectory,omitempty"`
ToolExecutionNotifications []SARIFNotification `json:"toolExecutionNotifications,omitempty"`
}
type SARIFLocation ¶
type SARIFLocation struct {
PhysicalLocation SARIFPhysicalLocation `json:"physicalLocation"`
}
type SARIFMessage ¶
type SARIFMessage struct {
Text string `json:"text"`
}
type SARIFNotification ¶
type SARIFNotification struct {
Level string `json:"level"`
Message SARIFMessage `json:"message"`
Locations []SARIFLocation `json:"locations,omitempty"`
}
type SARIFPhysicalLocation ¶
type SARIFPhysicalLocation struct {
ArtifactIndex int `json:"artifactIndex"`
}
type SARIFReport ¶
type SARIFResult ¶
type SARIFResult struct {
RuleIndex int `json:"ruleIndex"`
Kind string `json:"kind,omitempty"`
Level string `json:"level,omitempty"`
Message SARIFMessage `json:"message"`
Locations []SARIFLocation `json:"locations,omitempty"`
}
type SARIFRule ¶
type SARIFRule struct {
ID string `json:"id"`
Name string `json:"name"`
HelpUri string `json:"helpUri,omitempty"`
FullDescription SARIFMessage `json:"fullDescription,omitempty"`
DefaultConfiguration SARIFConfiguration `json:"defaultConfiguration"`
}
type SARIFRun ¶
type SARIFRun struct {
Tool SARIFTool `json:"tool"`
Invocations []SARIFInvocation `json:"invocations,omitempty"`
Results []SARIFResult `json:"results"`
Artifacts []SARIFArtifact `json:"artifacts,omitempty"`
}
type SARIFTool ¶
type SARIFTool struct {
Driver SARIFDriver `json:"driver"`
}
Click to show internal directories.
Click to hide internal directories.