Skip to main content

Crate vue_vet_core

Crate vue_vet_core 

Source
Expand description

Vue Vet-owned diagnostics, spans, edits, and reactivity fact contracts.

Parser adapters and the reactivity tracer produce these types; rules, reporters, cache, and the CLI consume them. Vize and Oxc AST types never appear in this crate.

Modules: [diagnostics], [facts], [rule], plus identity/edits/source helpers.

Structs§

Assessment
Vue Vet-owned migration assessment record (JSON v1 additive).
AssessmentCheck
One named check inside an Assessment.
AttachedEffectScopeFact
Proven detached child scope that joins parent pause with valid stop ownership.
ByteRange
CachedResultDemandFact
Cached memoize / controlled-computed result fails a later native demand.
CancelledFilterPromiseDemandFact
Default-debounce cancellation fulfills the earlier promise with undefined.
ConditionalWatchSourceFact
Proven array-source watch that keeps an idle computed producer live.
CustomRefLostNotificationFact
Closed-local customRef whose primitive slot cannot notify a proven consumer.
DefineExposeFact
defineExpose({ name }) keys in setup.
DerivationPracticeFacts
Closed derivation-practice opportunities collected beside source contracts.
DetachedEffectScopeWithoutStopFact
Detached effectScope(true) that created a live watcher and was discarded.
Diagnostic
EditPlan
EvidenceGap
Counted evidence gap suitable for machine consumers.
EvidenceSummary
Evidence status and its deterministic gap list.
ExtractedReactiveCollectionMethodFact
Bare call of a method extracted from a proven reactive Map/Set/array.
FactKinds
Interest set for the single facts pass (oxlint NODE_TYPES analogue).
FileId
Stable workspace-relative identity for one analyzed source file.
FindingExplain
Domain payload for explaining one concrete finding.
IgnorableAsyncIgnoreWindowFact
Post-await source write after a proven synchronous ignoreUpdates window.
InactiveScopeResultFact
effectScope().stop() then scope.run whose result is used as an object.
InjectSameInstanceDemandFact
Same-setup provide does not supply inject; the fallback fails a native demand.
InstanceMemberDemandFact
Native member demand through a template-ref instance chain.
InstancePathWriteFact
Write through a template-ref instance chain that changes a primitive path.
InvalidCustomRefInterfaceFact
customRef factory missing/noncallable get or set plus a demanded .value.
JsonCloneLossyTypeFact
Default JSON useCloned output is a string, then a Date method is demanded.
KeyedMapDependencyFact
Reactive Map.forEach selecting one literal string key inside computed / watchEffect.
LateCancellationGuardFact
A cancellation flag is registered after source-dependent suspension, so an earlier invalidation can still write this run’s result.
LateScopeDisposeFact
onScopeDispose after await in a proven async effectScope().run callback.
LateWatcherCleanupFact
onWatcherCleanup after a proven await or deferred callback.
LazyComputedAsyncFact
Proven eager computedAsync whose startup work is superseded before first demand.
LineIndex
Precomputed line starts for one source buffer.
MemoBlockedRefDemandFact
Proven after-tick demand of a memo-blocked conditional template ref.
MissingToRefsKeyFact
toRefs of a closed reactive object, then a missing key is dereferenced.
ModelDefaultFact
Child defineModel default producer.
ModelDemandFileFacts
Per-file joined model-demand findings (project → file rules).
ModelValueWriteFact
Child model assignment that would emit (model.value = changed).
ModuleId
Stable identity for one JavaScript/TypeScript module surface.
MountedMemberDemandFact
Unguarded native member demand inside a proven onMounted callback.
NestedWatchWithoutCleanupFact
Inner watcher created by a repeating outer callback with a discarded stop handle.
NotificationBypassFact
OrdinaryRefInitFact
Ordinary ref / shallowRef initializer in setup.
OrphanedScopeWatcherFact
Watcher created after await inside a proven effectScope().run callback whose stop handle is unused.
PhysicalPath
Physical filesystem location used only at discovery and I/O boundaries.
PreFlushTemplateRefDemandFact
Proven pre-flush demand of a still-null conditional template ref.
QueuedWatchFlushFact
Proven flush: 'sync' watch whose sink is only observed after nextTick.
RawProxyMapKeyFact
Native Map stores one of a raw/proxy pair and later gets the other.
ReactiveBindingFact
ReactiveDependencyEdge
ReactiveGuardFact
ReactivePrivateFieldAccessFact
Native private-field access through a Vue reactive proxy receiver.
ReactiveReadFact
ReactiveSourceViewFact
ReactiveWriteFact
ReactivityEffectFact
Legacy projection of effect-family tracking scopes.
ReactivityGraph
ReactivityLifetimeFacts
Domain facts for watcher/effect-scope lifetime contracts.
Recommendation
Optional ecosystem API recommendation attached to a finding (JSON v1 additive).
RefHistorySnapshotAliasFact
Identity history snapshot aliased by a later in-place nested write.
ReturnedWatcherCleanupFact
A watcher callback that returns a function Vue will not register as cleanup.
RuleContext
RuleEnvironment
Per-file analysis capabilities derived from the nearest package.json.
RuleExplain
Domain payload for explaining one rule. Reporters only render this model.
RuleGroupDescriptor
Canonical group identity for inventory JSON.
RuleInventory
Versioned inventory document. Independent of project configuration.
RuleInventoryCounts
Counts taken from the composed inventory (after optional group filter).
RuleInventoryRow
One composed-registry row for --list-rules.
RuleMeta
RuleRegistry
ScanSummary
SchedulingPracticeFacts
Closed scheduling-practice opportunities collected beside source contracts.
ScopeExplain
Static explanation of what a tracking scope depends on (and what it does not).
ScopeExplainDep
One dependency line in a ScopeExplain.
ScriptBindingFact
ScriptBlockFacts
ScriptCallFact
ScriptDestructureFact
ScriptFacts
ScriptImportFact
ScriptMemberWriteFact
ScriptOperandFact
Identifier used as an operand where a ref object’s object-identity is almost certainly a mistake (arithmetic / comparison / unary), not a .value read.
SfcFacts
SharedComposableFirstInstanceArgsFact
Later shared-state demand that the first initializer cannot satisfy.
SharedDefaultCrossInstanceDemandFact
Joined finding: sibling instance demand after a shared-default write.
SharedObjectBindingFact
Module-owned object used as a shared default identity.
SourceContext
One source buffer with a precomputed LineIndex.
SourceContractFacts
Proven Vue API contract sites collected from Oxc semantics.
SourceContractSiteFact
One call/argument site with a proven contract failure.
SourceSpan
Byte offset plus derived line/column. Four usizes; pass by copy.
StableComputedIdentityFact
Proven computed identity churn with an established identity consumer.
SyncRefOneWayFact
Proven default two-way syncRef whose right side is a closed sink.
TemplateAllocationFact
Parent / memo / condition / ref relations for one template element.
TemplateAttributeFact
TemplateConditionRelation
Innermost v-if / v-else-if that allocates this node.
TemplateDirectiveFact
TemplateElementFact
TemplateExpressionFact
One template expression surface that may read script bindings.
TemplateFacts
TemplateMemoRelation
Innermost v-memo that caches this node’s subtree.
TemplateReactiveReadFact
TemplateRefDemandFacts
Joined template-ref demand facts for one script block.
TextEdit
ToRefIgnoredKeyFact
Proven toRef(source, key) overload that ignores a static key.
TrackingScopeFact
UnsyncedModelParentDemandFact
Joined finding: parent demand before the child default initializes it.
UntilTimeoutUnmatchedDemandFact
until(ref).toBe(expected, { timeout }) fulfills the unmatched source value.
VueVersion
WatchCallbackContractFact
Proven watch-callback contract failure (once/immediate discard or root identity).
WatchCleanupCurrentSourceFact
Per-run EventTarget acquisition/release identity mismatch.
WatchIgnoredOptionFact
One ignored watch / watch*Effect options property.
WatchReplacedObjectSourceFact
watch(objectMember) plus a later same-identity property replacement.
WatchSignatureMismatchFact
One watch-family argument in the wrong slot.
WorkspaceRoot
Physical root that defines the namespace for FileId values.

Enums§

CacheRejection
Why a cache lookup could not reuse persisted work.
Confidence
Convertible
Can this component be converted to Vapor at all?
CustomRefCapability
Demanded customRef factory capability.
CustomRefLostNotificationReason
Missing track in get versus missing trigger in set. One rule ID.
EditApplicability
EditPlanError
EvidenceGapCode
Stable reason code for a bounded evidence gap.
EvidenceStatus
Coverage level for the facts that support a scan result.
FactRef
One fact in the single pass over Vue Vet-owned surfaces (not dependency AST).
InjectSameInstanceDemandReason
Why a same-instance provide/inject pair fails a later capability demand.
LateCancellationGuardKind
Why a run-local cancellation guard still leaves an invalidation window.
LateWatcherCleanupKind
Why onWatcherCleanup lost the active watcher.
ModelDefaultOrigin
How a defineModel default is produced.
ModelPrimitiveKind
Proven primitive kind for a model default or ref initializer.
NotificationBypassKind
OptIn
Opt-in source of a Vapor migration assessment.
PrimitiveValueKind
Proven primitive kind retained by a cache entry or later source write.
ReactiveBindingKind
ReactiveDependencyKind
ReactiveGuardRole
ReactiveReadKind
ReactiveViewKind
RefInitKind
Current ordinary-ref initializer kind (not a Vue API result).
RuleGroupId
Canonical product groups for inventory and scan selection.
ScopeTrackReason
Why a scope tracks (or does not track) a dependency — multi-consumer contract.
ScriptKind
Severity
StableComputedIdentityReason
Why a computed result is a measured identity-stability opportunity.
ToRefIgnoredKeyReason
Runtime toRef branch that discards the key argument.
TrackingScopeKind
Verdict
Assessment check / aggregate verdict.
WatchCallbackContractReason
Why a watch callback is proven useless for later value-dependent work.
WatchCleanupCurrentSourceKind
Why watcher cleanup targeted the live source instead of the acquired receiver.
WatchIgnoredOptionReason
Why a watch-family options key is ignored by Vue 3.5.
WatchSignatureMismatchReason
Why a watch-family argument is the wrong slot.
WatcherApiKind
Vue watcher API whose callback/cleanup contract is shared across aliases.

Constants§

MIGRATION_CATEGORY
Category for opt-in migration assessment (excluded from score and CI exit).
PRACTICE_CATEGORY
Category for ecosystem / best-practice suggestions (excluded from score and CI exit).
REACTIVITY_GRAPH_VERSION
Wire format version for ReactivityGraph. Bump when consumers must distinguish shape or semantic changes in serialized facts.
RULE_INVENTORY_KIND
RULE_INVENTORY_SCHEMA_VERSION

Traits§

Rule
Built-in rule contract (oxlint-style pass hooks over stable facts).

Functions§

content_digest
Hex-encoded SHA-256 digest of raw bytes.
density_score
Maps severity weights to a 0–100 score by finding density, not absolute count.
diagnostic_id
Builds the stable, opaque identity used by machine-readable report consumers.
finding_id
Stable finding identity using the diagnostic’s normalized FileId.
qualify_dependency_to_id
Build a span-qualified dependency identity, optionally module-prefixed (graph v8).
serde_digest
Hex-encoded SHA-256 digest of a JSON-stable serde serialization.