code

package
v1.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSARIFJSONToIssues

func ConvertSARIFJSONToIssues(logger *zerolog.Logger, sarifJSON []byte, basePath string, includeIgnores bool) ([]types.IssueData, error)

ConvertSARIFJSONToIssues converts SARIF JSON output to Issues without requiring a full scanner instance This is a simplified version for use by MCP and other tools that need conversion without full scanner basePath is the absolute path where the scan was run (optional - if empty, paths remain relative)

func DecodePath

func DecodePath(encodedRelativePath string) (string, error)

func ToAbsolutePath

func ToAbsolutePath(baseDir types.FilePath, relativePath types.FilePath) string

Types

type IgnoreDetails

type IgnoreDetails struct {
	Category   string                           `json:"category"`
	Reason     string                           `json:"reason"`
	Expiration string                           `json:"expiration"`
	IgnoredOn  time.Time                        `json:"ignoredOn"`
	IgnoredBy  string                           `json:"ignoredBy"`
	Status     codeClientSarif.SuppresionStatus `json:"status"`
}

func GetIgnoreDetailsFromSuppressions

func GetIgnoreDetailsFromSuppressions(suppressions []codeClientSarif.Suppression) (bool, *IgnoreDetails)

type SarifConverter

type SarifConverter struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL