package
1.7.13
Repository: https://github.com/checkmarx/kics.git
Documentation: pkg.go.dev

# Packages

Package mock is a generated GoMock package.
No description provided by the author
No description provided by the author
No description provided by the author
Package source (go:generate go run -mod=mod github.com/golang/mock/mockgen -package mock -source=./$GOFILE -destination=../mock/$GOFILE).

# Functions

NewInspector initializes a inspector, compiling and loading queries for scan and its tracker.
PtrStringToString - converts a pointer to string to a string.
ShouldSkipVulnerability verifies if the vulnerability in question should be ignored through comment commands.

# Constants

Default values for inspector.
Default values for inspector.
Default values for inspector.
Default values for inspector.
Default values for inspector.
Default values for inspector.
Default values for inspector.
Default values for inspector.

# Variables

DefaultVulnerabilityBuilder defines a vulnerability builder to execute default actions of scan.
ErrInvalidResult - error representing invalid result.
ErrNoResult - error representing when a query didn't return a result.

# Structs

No description provided by the author
Inspector represents a list of compiled queries, a builder for vulnerabilities, an information tracker a flag to enable coverage and the coverage report if it is enabled.
PreparedQuery includes the opaQuery and its metadata.
QueryContext contains the context where the query is executed, which scan it belongs, basic information of query, the query compiled and its payload.
QueryLoader is responsible for loading the queries for the inspector.
No description provided by the author

# Interfaces

Tracker wraps an interface that contain basic methods: TrackQueryLoad, TrackQueryExecution and FailedDetectLine TrackQueryLoad increments the number of loaded queries TrackQueryExecution increments the number of queries executed FailedDetectLine decrements the number of queries executed GetOutputLines returns the number of lines to be displayed in results outputs.

# Type aliases

VulnerabilityBuilder represents a function that will build a vulnerability.