Versions in this module Expand all Collapse all v2 v2.1.3 Sep 30, 2024 v2.1.3-integrations Oct 1, 2024 v2.1.2 Aug 9, 2024 v2.1.2-integrations Aug 9, 2024 v2.1.1 Jul 1, 2024 v2.1.1-integrations Jul 1, 2024 v2.1.0 Jun 12, 2024 Changes in this version + const SeverityCritical + const SeverityHigh + const SeverityInfo + const SeverityLow + const SeverityMedium + const SeverityTrace + var AllIssueTypesAsString = []string + var AllSeverities = []Severity + var KICSCommentRgxp = regexp.MustCompile(`(^|\n)((/{2})|#|;)*\s*kics-scan\s*`) + var KICSCommentRgxpYaml = regexp.MustCompile(`((/{2})|#)*\s*kics-scan\s*(ignore-line|ignore-block)\s*\n*$`) + var KICSGetContentCommentRgxp = regexp.MustCompile(`(^|\n)((/{2})|#|;)*\s*kics-scan([^\n]*)\n`) + var NewIgnore = &Ignore + func GetIgnoreLines(file *FileMetadata) []int + func Range(start, end int) (lines []int) + func RemoveDuplicates(lines []int) []int + type AnalyzedPaths struct + Exc []string + ExpectedLOC int + Types []string + type CodeLine struct + Line string + Position int + type CommentCommand string + const IgnoreBlock + const IgnoreComment + const IgnoreLine + func ProcessCommands(commands []string) CommentCommand + type CommentsCommands map[string]string + type Counters struct + FailedSimilarityID int + FailedToExecuteQueries int + FailedToScanFiles int + IgnoredFilesLines int + ParsedFiles int + ParsedFilesLines int + ScannedFiles int + ScannedFilesLines int + TotalQueries int + type Document map[string]interface + func (m *Document) UnmarshalYAML(value *yaml.Node) error + type Documents struct + Documents []Document + type Extensions map[string]struct + func (e Extensions) Include(ext string) bool + func (e Extensions) MatchedFilesRegex() string + type ExtractedPathObject struct + LocalPath bool + Path string + type FileKind string + const KindBICEP + const KindBUILDAH + const KindCFG + const KindCOMMON + const KindDOCKER + const KindHELM + const KindINI + const KindJSON + const KindPROTO + const KindTerraform + const KindYAML + const KindYML + type FileMetadata struct + Commands CommentsCommands + Content string + Document Document + FilePath string + HelmID string + ID string + IDInfo map[int]interface{} + IsMinified bool + Kind FileKind + LineInfoDocument map[string]interface{} + LinesIgnore []int + LinesOriginalData *[]string + OriginalData string + ResolvedFiles map[string]ResolvedFile + ScanID string + type FileMetadatas []FileMetadata + func (m FileMetadatas) Combine(lineInfo bool) Documents + func (m FileMetadatas) ToMap() map[string]FileMetadata + type Ignore struct + Lines []int + func (i *Ignore) GetLines() []int + func (i *Ignore) Reset() + type IssueType string + const IssueTypeIncorrectValue + const IssueTypeMissingAttribute + const IssueTypeRedundantAttribute + type LineObject struct + Arr []map[string]*LineObject + Line int + type PathParameters struct + PathExtractionMap map[string]ExtractedPathObject + ScannedPaths []string + type QueryConfig struct + FileKind []FileKind + Platform string + type QueryMetadata struct + Aggregation int + CWE string + Content string + Experimental bool + InputData string + Metadata map[string]interface{} + Platform string + Query string + type QueryResult struct + CISBenchmarkName string + CISBenchmarkVersion string + CISDescriptionID string + CISDescriptionIDFormatted string + CISDescriptionText string + CISDescriptionTextFormatted string + CISDescriptionTitle string + CISRationaleText string + CWE string + Category string + CloudProvider string + Description string + DescriptionID string + Experimental bool + Files []VulnerableFile + Platform string + QueryID string + QueryName string + QueryURI string + Severity Severity + type QueryResultSlice []QueryResult + type ResolvedFile struct + Content []byte + LinesContent *[]string + Path string + type ResolvedFileSplit struct + Lines []string + Path string + type ResolvedFiles struct + Excluded []string + File []ResolvedHelm + type ResolvedHelm struct + Content []byte + FileName string + IDInfo map[int]interface{} + OriginalData []byte + SplitID string + type Severity string + type SeveritySummary struct + ScanID string + SeverityCounters map[Severity]int + TotalBOMResources int + TotalCounter int + type Summary struct + Bom QueryResultSlice + FilePaths map[string]string + LatestVersion Version + Queries QueryResultSlice + ScannedPaths []string + Version string + func CreateSummary(counters Counters, vulnerabilities []Vulnerability, scanID string, ...) Summary + type Times struct + End time.Time + Start time.Time + type Version struct + Latest bool + LatestVersionTag string + type VersionResponse struct + Latest bool + LatestVersionTag string + type Vulnerability struct + CWE string + Category string + CloudProvider string + Description string + DescriptionID string + Experimental bool + FileID string + FileName string + ID int + IssueType IssueType + KeyActualValue string + KeyExpectedValue string + Line int + OldSimilarityID string + Output string + Platform string + QueryID string + QueryName string + QueryURI string + Remediation string + RemediationType string + ResourceName string + ResourceType string + ScanID string + SearchKey string + SearchLine int + SearchValue string + Severity Severity + SimilarityID string + Value *string + VulnLines *[]CodeLine + type VulnerabilityLines struct + Line int + LineWithVulnerability string + ResolvedFile string + VulnLines *[]CodeLine + type VulnerableFile struct + FileName string + IssueType IssueType + KeyActualValue string + KeyExpectedValue string + Line int + OldSimilarityID string + Remediation string + RemediationType string + ResourceName string + ResourceType string + SearchKey string + SearchLine int + SearchValue string + SimilarityID string + Value *string + VulnLines *[]CodeLine v2.1.0-integrations Jun 12, 2024 Other modules containing this package github.com/Checkmarx/kics