Documentation
¶
Index ¶
- type AIAnalysis
- type AIIssue
- type AISlopResult
- type ASTResult
- type ArchChange
- type ArchResult
- type AuthorProfile
- type BlameLine
- type BlameResult
- type ChangeType
- type ClassifyResult
- type CoverageResult
- type CoverageStatus
- type CriticalPath
- type DirStat
- type FileContent
- type FileDiff
- type FuncChange
- type FuncCoverage
- type MissingScenario
- type PRData
- type PRInput
- type PRMetadata
- type PRReport
- type PatternHit
- type ReviewFocus
- type ReviewQuestion
- type Reviewer
- type RiskComment
- type RiskFlag
- type ScopeResult
- type Severity
- type TestVerdict
- type Verdict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIAnalysis ¶
type AIAnalysis struct {
Summary string
Before string
After string
Issues []AIIssue
ReviewQuestions []ReviewQuestion
TestVerdict TestVerdict
Verdict string
VerdictReason string
RiskCommentary []RiskComment
}
type AISlopResult ¶
type AISlopResult struct {
Verdict string // "ai-assisted", "inconclusive", "human"
Confidence int
Evidence []string
PatternHits []PatternHit
LLMVerdict string
}
type ASTResult ¶
type ASTResult struct {
Functions []FuncChange
NewExports []string
}
type ArchChange ¶
type ArchResult ¶
type ArchResult struct {
Before []ArchChange
After []ArchChange
DesignDecisions []string
NewDeps []string
NewPackages []string
}
type AuthorProfile ¶
type BlameResult ¶
type ChangeType ¶
type ChangeType string
const ( ChangeTypeFeature ChangeType = "Feature" ChangeTypeBugfix ChangeType = "Bugfix" ChangeTypeRefactor ChangeType = "Refactor" ChangeTypeDocs ChangeType = "Docs" ChangeTypeDeps ChangeType = "Deps" ChangeTypeTest ChangeType = "Test" ChangeTypeConfig ChangeType = "Config" ChangeTypeMixed ChangeType = "Mixed" )
type ClassifyResult ¶
type ClassifyResult struct {
Type ChangeType
Confidence string
}
type CoverageResult ¶
type CoverageResult struct {
TestRatio float64
TestLines int
ImplLines int
Functions []FuncCoverage
}
type CoverageStatus ¶
type CoverageStatus int
const ( CoverageCovered CoverageStatus = iota CoverageNotTested CoverageNoTestFile )
func (CoverageStatus) String ¶
func (c CoverageStatus) String() string
type CriticalPath ¶
type FileContent ¶
type FuncChange ¶
type FuncCoverage ¶
type FuncCoverage struct {
FuncName string
File string
TestFile string
TestFunc string
Status CoverageStatus
}
type MissingScenario ¶
type PRData ¶
type PRData struct {
Input PRInput
Meta PRMetadata
Diffs []FileDiff
BaseFiles []FileContent
HeadFiles []FileContent
Blames []BlameResult
Author AuthorProfile
}
type PRMetadata ¶
type PRReport ¶
type PRReport struct {
Input PRInput
Meta PRMetadata
Scope ScopeResult
Classify ClassifyResult
AST ASTResult
Coverage CoverageResult
Risks []RiskFlag
Reviewers []Reviewer
Architecture ArchResult
ReviewFocus []ReviewFocus
Verdict Verdict
VerdictNote string
Author AuthorProfile
AI *AIAnalysis
AISlop *AISlopResult
PersonaReview string
}
type PatternHit ¶
type ReviewFocus ¶
type ReviewQuestion ¶
type RiskComment ¶
type ScopeResult ¶
type TestVerdict ¶
type TestVerdict struct {
Sufficient bool
Summary string
CriticalUntested []CriticalPath
KeyTestFiles []string
MissingScenarios []MissingScenario
}
Click to show internal directories.
Click to hide internal directories.