Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildIssue ¶
type BuildIssue struct {
File string `json:"file"`
Line int `json:"line"`
Column int `json:"column,omitempty"`
Severity LintSeverity `json:"severity"`
Message string `json:"message"`
Code string `json:"code,omitempty"`
}
BuildIssue represents a compiler error or warning.
type BuildResult ¶
type BuildResult struct {
Status BuildStatus `json:"status"`
Errors int `json:"errors"`
Warnings int `json:"warnings"`
Duration float64 `json:"duration_ms"`
Issues []BuildIssue `json:"issues,omitempty"`
RawOutput string `json:"raw_output,omitempty"`
Tool string `json:"tool"`
}
BuildResult represents the result of a build command.
func (*BuildResult) IsSuccess ¶
func (r *BuildResult) IsSuccess() bool
IsSuccess returns true if the build succeeded.
type BuildStatus ¶
type BuildStatus string
BuildStatus represents the outcome of a build.
const ( BuildSuccess BuildStatus = "success" BuildFailed BuildStatus = "failed" BuildWarning BuildStatus = "warning" )
type DepInfo ¶
type DepInfo struct {
Name string `json:"name"`
Version string `json:"version"`
Latest string `json:"latest,omitempty"`
Outdated bool `json:"outdated"`
Direct bool `json:"direct"`
}
DepInfo represents a single dependency.
type DepResult ¶
type DepResult struct {
Total int `json:"total"`
Outdated int `json:"outdated"`
Direct int `json:"direct"`
Transitive int `json:"transitive"`
Deps []DepInfo `json:"deps,omitempty"`
Tool string `json:"tool"`
}
DepResult represents the result of a dependency listing.
type LintIssue ¶
type LintIssue struct {
File string `json:"file"`
Line int `json:"line"`
Column int `json:"column,omitempty"`
EndLine int `json:"end_line,omitempty"`
EndCol int `json:"end_column,omitempty"`
Severity LintSeverity `json:"severity"`
Rule string `json:"rule"`
Message string `json:"message"`
Fix string `json:"fix,omitempty"`
}
LintIssue represents a single lint finding.
type LintResult ¶
type LintResult struct {
Total int `json:"total"`
Errors int `json:"errors"`
Warnings int `json:"warnings"`
Infos int `json:"infos"`
Fixable int `json:"fixable"`
Duration float64 `json:"duration_ms"`
Issues []LintIssue `json:"issues,omitempty"`
RawOutput string `json:"raw_output,omitempty"`
Tool string `json:"tool"`
}
LintResult represents the aggregated result of a lint run.
func (*LintResult) IsClean ¶
func (r *LintResult) IsClean() bool
IsClean returns true if no issues were found.
func (*LintResult) Summary ¶
func (r *LintResult) Summary() string
Summary returns a human-readable summary of lint results.
type LintSeverity ¶
type LintSeverity string
LintSeverity represents the severity of a lint issue.
const ( LintError LintSeverity = "error" LintWarning LintSeverity = "warning" LintInfo LintSeverity = "info" LintHint LintSeverity = "hint" )
type TestCase ¶
type TestCase struct {
Name string `json:"name"`
Package string `json:"package,omitempty"`
Status TestStatus `json:"status"`
Duration float64 `json:"duration_ms"`
Message string `json:"message,omitempty"`
File string `json:"file,omitempty"`
Line int `json:"line,omitempty"`
}
TestCase represents a single test case result.
type TestResult ¶
type TestResult struct {
Total int `json:"total"`
Passed int `json:"passed"`
Failed int `json:"failed"`
Skipped int `json:"skipped"`
Errors int `json:"errors"`
Duration float64 `json:"duration_ms"`
Cases []TestCase `json:"cases,omitempty"`
RawOutput string `json:"raw_output,omitempty"`
Tool string `json:"tool"`
}
TestResult represents the aggregated result of a test run.
func (*TestResult) IsSuccess ¶
func (r *TestResult) IsSuccess() bool
IsSuccess returns true if all tests passed.
func (*TestResult) Summary ¶
func (r *TestResult) Summary() string
Summary returns a human-readable summary of test results.
type TestStatus ¶
type TestStatus string
TestStatus represents the outcome of a test case.
const ( TestPass TestStatus = "pass" TestFail TestStatus = "fail" TestSkip TestStatus = "skip" TestError TestStatus = "error" TestPanic TestStatus = "panic" TestFlaky TestStatus = "flaky" )