Documentation
¶
Index ¶
- func ConvertSARIFJSONToIssues(logger *zerolog.Logger, sarifJSON []byte, basePath string, includeIgnores bool) ([]types.IssueData, error)
- func DecodePath(encodedRelativePath string) (string, error)
- func ToAbsolutePath(baseDir types.FilePath, relativePath types.FilePath) string
- type IgnoreDetails
- type SarifConverter
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 ¶
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
}
Click to show internal directories.
Click to hide internal directories.