Documentation
¶
Overview ¶
Package tier defines the 3-level analysis capability tiers and detects which tier is available based on the active backends.
Tiers:
- Basic (1): tree-sitter only — name-based symbol resolution
- Enhanced (2): tree-sitter + go/types — precise type-aware analysis
- Full (3): tree-sitter + go/types + VTA call graph — full call precision
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DegradationWarning ¶
type DegradationWarning struct {
Code string `json:"code" xml:"code"`
Message string `json:"message" xml:"message"`
CapabilityPct int `json:"capability_pct" xml:"capability_pct"`
}
DegradationWarning describes a capability reduction relative to Full tier.
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector determines the current analysis tier and associated warnings from a set of available backends.
func NewDetector ¶
NewDetector creates a Detector for the given backend availability and pre-computes the tier and any degradation warnings.
func (*Detector) ProvenanceFor ¶
func (d *Detector) ProvenanceFor(used ...string) Provenance
ProvenanceFor builds a Provenance record listing the active backends alongside any caller-supplied names (e.g. tool names, pass names).
func (*Detector) Warnings ¶
func (d *Detector) Warnings() []DegradationWarning
Warnings returns any capability degradation warnings for the current tier. Returns nil (not an empty slice) when the tier is Full.
type Provenance ¶
type Provenance struct {
Tier string `json:"tier" xml:"tier"`
Backends []string `json:"backends" xml:"backends"`
}
Provenance records which tier and backends were used for a given analysis.