Documentation ¶
Index ¶
- func NewCLIScanner(instrumentor performance.Instrumentor, ...) khulnasoft.ProductScanner
- type CLIScanner
- func (cliScanner *CLIScanner) ClearInlineValues(path string)
- func (cliScanner *CLIScanner) GetInlineValues(path string, myRange khulnasoft.Range) (result []khulnasoft.InlineValue, err error)
- func (cliScanner *CLIScanner) IsEnabled() bool
- func (cliScanner *CLIScanner) Product() product.Product
- func (cliScanner *CLIScanner) Scan(ctx context.Context, path string, _ string) (issues []khulnasoft.Issue, err error)
- func (cliScanner *CLIScanner) ScanPackages(ctx context.Context, config *config.Config, path string, content string)
- type DefaultFinder
- type Insights
- type NpmRangeFinder
- type RangeFinder
- type VulnerabilityCountInformation
- type VulnerabilityCountInformationMap
- type VulnerabilityCountService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCLIScanner ¶
func NewCLIScanner(instrumentor performance.Instrumentor, errorReporter error_reporting.ErrorReporter, analytics ux2.Analytics, cli cli.Executor, learnService learn.Service, notifier noti.Notifier, c *config.Config, ) khulnasoft.ProductScanner
Types ¶
type CLIScanner ¶
type CLIScanner struct {
// contains filtered or unexported fields
}
func (*CLIScanner) ClearInlineValues ¶
func (cliScanner *CLIScanner) ClearInlineValues(path string)
func (*CLIScanner) GetInlineValues ¶
func (cliScanner *CLIScanner) GetInlineValues(path string, myRange khulnasoft.Range) (result []khulnasoft.InlineValue, err error)
func (*CLIScanner) IsEnabled ¶
func (cliScanner *CLIScanner) IsEnabled() bool
func (*CLIScanner) Product ¶
func (cliScanner *CLIScanner) Product() product.Product
func (*CLIScanner) Scan ¶
func (cliScanner *CLIScanner) Scan(ctx context.Context, path string, _ string) (issues []khulnasoft.Issue, err error)
func (*CLIScanner) ScanPackages ¶
type DefaultFinder ¶
type DefaultFinder struct {
// contains filtered or unexported fields
}
type NpmRangeFinder ¶
type NpmRangeFinder struct {
// contains filtered or unexported fields
}
type RangeFinder ¶
type RangeFinder interface {
// contains filtered or unexported methods
}
type VulnerabilityCountInformation ¶
type VulnerabilityCountInformation struct {
// contains filtered or unexported fields
}
func (*VulnerabilityCountInformation) Path ¶
func (v *VulnerabilityCountInformation) Path() string
func (*VulnerabilityCountInformation) Range ¶
func (v *VulnerabilityCountInformation) Range() khulnasoft.Range
func (*VulnerabilityCountInformation) String ¶
func (v *VulnerabilityCountInformation) String() string
func (*VulnerabilityCountInformation) Text ¶
func (v *VulnerabilityCountInformation) Text() string
type VulnerabilityCountInformationMap ¶
type VulnerabilityCountInformationMap map[string]map[khulnasoft.Range]*VulnerabilityCountInformation
type VulnerabilityCountService ¶
type VulnerabilityCountService interface {
DetermineVulnerabilityCounts(issues []khulnasoft.Issue) (VulnerabilityCountInformationMap, error)
}
func NewVulnerabilityCountService ¶
func NewVulnerabilityCountService(c *config.Config) VulnerabilityCountService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.