Discover Packages
github.com/WorldOccupier/trusty
internal
types
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jul 15, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type FileResult struct {
Path string `json:"path"`
Language string `json:"language"`
Findings []Finding `json:"findings"`
Score int `json:"score"`
}
type Finding struct {
Rule string `json:"rule"`
Severity Severity `json:"severity"`
Message string `json:"message"`
Line int `json:"line,omitempty"`
Column int `json:"column,omitempty"`
Suggestion string `json:"suggestion,omitempty"`
Category string `json:"category"`
}
type ScanResult struct {
Files []FileResult `json:"files"`
Summary ScanSummary `json:"summary"`
TrustScore int `json:"trust_score"`
Timestamp string `json:"timestamp"`
DurationMs int64 `json:"duration_ms"`
}
type ScanSummary struct {
TotalIssues int `json:"total_issues"`
Errors int `json:"errors"`
Warnings int `json:"warnings"`
Info int `json:"info"`
FilesScanned int `json:"files_scanned"`
Duration string `json:"duration"`
Status string `json:"status"`
MinScore int `json:"min_score"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.