Expand description
Plugin system for framework-aware codebase analysis.
Plugins read JS, TS and JSON config files with the Oxc parser and walk the
AST. They never run JavaScript. Each plugin implements the Plugin trait
with static defaults (entry patterns, config file patterns, used exports)
and reads config files for entries, dependencies and setup files.
Re-exports§
pub use registry::AggregatedPluginResult;pub use registry::PluginRegistry;pub use registry::PluginToolingDependencies;pub use registry::PluginToolingEvidence;
Modules§
- config_
parser - AST-based config file parser utilities.
- manifest_
entries - Evaluation of external-plugin
manifestEntriesrules. - registry
- Plugin registry: discovers active plugins, collects patterns, parses configs.
Structs§
- Federation
Source - What a Module Federation config declares, and where, for the trace output.
- Path
Rule - A file-pattern rule with optional exclusion globs plus path-level or segment-level regex filters.
- Plugin
Config Diagnostic - One advisory about a config file a plugin read, before it becomes a
fallow_config::WorkspaceDiagnostic. - Plugin
Result - Result of resolving a plugin’s config file.
- Plugin
Used Export Rule - A used-export rule tagged with the plugin that contributed it.
- Provided
Dependency Rule - A file-scoped dependency provider rule contributed by a framework plugin.
- Used
Export Names - The plugin used-export rules of one plugin run, compiled for path lookups.
- Used
Export Rule - A used-export rule bound to a file-pattern rule.
Enums§
- Export
Credits - Which plugin export credits the trace provenance records.
- Federation
Source Target - The thing a
FederationSourcenames. - Plugin
Config Effect - Which workspace diagnostic kind a plugin-stage advisory becomes.
Constants§
- CONFIG_
ONLY_ EXPORT_ NAMES - Export names that frameworks read as configuration, not as code.
Traits§
- Plugin
- A framework/tool plugin that contributes to dead code analysis.
Functions§
- build_
trace_ provenance - Collect the trace provenance of one analysis, with the seeds of the peer-dependency closures.
- federation_
trace_ provenance - Match the Module Federation sources of one analysis against the discovered files, for the trace output.
- push_
tooling_ trace_ credits - Record why the unused devDependency check credits each plugin tooling
dependency, so
--trace-dependencyexplains the credit instead of calling the dependency unused. - types_
package_ target - The package that a
@types/package types, by the DefinitelyTyped naming convention:@types/nodetypesnode,@types/scope__pkgtypes@scope/pkg.Nonefor a name outside the@types/scope.