Skip to main content

AggregatedPluginResult

Struct AggregatedPluginResult 

Source
pub struct AggregatedPluginResult {
Show 34 fields pub entry_patterns: Vec<(PathRule, String)>, pub replaced_entry_plugins: FxHashSet<String>, pub entry_point_roles: FxHashMap<String, EntryPointRole>, pub config_patterns: Vec<String>, pub always_used: Vec<(String, String)>, pub used_exports: Vec<PluginUsedExportRule>, pub used_class_members: Vec<UsedClassMemberRule>, pub framework_class_member_contracts: Vec<SemanticFrameworkContract>, pub referenced_dependencies: Vec<String>, pub package_referenced_dependencies: Vec<(PathBuf, String)>, pub discovered_always_used: Vec<(String, String)>, pub setup_files: Vec<(PathBuf, String)>, pub tooling_dependencies: Vec<String>, pub plugin_tooling: Vec<PluginToolingDependencies>, pub script_used_packages: FxHashSet<String>, pub dependency_binaries: DependencyBinaries, pub dev_dependency_names: FxHashSet<String>, pub virtual_module_prefixes: Vec<String>, pub virtual_package_suffixes: Vec<String>, pub generated_import_patterns: Vec<String>, pub generated_type_import_prefixes: Vec<String>, pub path_aliases: Vec<(String, String)>, pub auto_imports: Vec<AutoImportRule>, pub active_plugins: Vec<String>, pub fixture_patterns: Vec<(String, String)>, pub scss_include_paths: Vec<PathBuf>, pub static_dir_mappings: Vec<(PathBuf, String)>, pub framework_static_dir_mappings: Vec<(PathBuf, String)>, pub provided_dependencies: Vec<ProvidedDependencyRule>, pub config_diagnostics: Vec<PluginConfigDiagnostic>, pub federation_sources: Vec<FederationSource>, pub jsx_import_sources: Vec<JsxImportSourceRule>, pub jsx_package_credits: Vec<JsxImportSourceRule>, pub tsconfig_jsx_dirs: Vec<PathBuf>,
}
Expand description

Aggregated results from all active plugins for a project.

Fields§

§entry_patterns: Vec<(PathRule, String)>

All entry point patterns from active plugins: (rule, plugin_name).

§replaced_entry_plugins: FxHashSet<String>

Plugins whose config already replaced their static entry patterns. A later config of a plugin that sets accumulate_config_entry_patterns adds to the config patterns and does not remove them.

§entry_point_roles: FxHashMap<String, EntryPointRole>

Coverage role for each plugin contributing entry point patterns.

§config_patterns: Vec<String>

All config file patterns from active plugins.

§always_used: Vec<(String, String)>

All always-used file patterns from active plugins: (pattern, plugin_name).

§used_exports: Vec<PluginUsedExportRule>

All used export rules from active plugins.

§used_class_members: Vec<UsedClassMemberRule>

Class member rules contributed by active plugins that should never be flagged as unused. Extends the built-in Angular/React lifecycle allowlist with framework-invoked method names, optionally scoped by class heritage.

§framework_class_member_contracts: Vec<SemanticFrameworkContract>

Exact framework contracts with plugin and package provenance.

§referenced_dependencies: Vec<String>

Dependencies referenced in config files (should not be flagged unused).

§package_referenced_dependencies: Vec<(PathBuf, String)>

Dependencies referenced by package.json metadata, scoped to that package.json path.

§discovered_always_used: Vec<(String, String)>

Additional always-used files discovered from config parsing: (pattern, plugin_name).

§setup_files: Vec<(PathBuf, String)>

Setup files discovered from config parsing: (path, plugin_name).

§tooling_dependencies: Vec<String>

Tooling dependencies of every active plugin, whether or not the plugin found evidence that the project uses it. The unlisted-dependency and dev-dependency-in-production checks read this list.

§plugin_tooling: Vec<PluginToolingDependencies>

Tooling dependencies grouped by the active plugin that declares them, with the evidence that decides whether an unused devDependency check credits them. See PluginToolingDependencies.

§script_used_packages: FxHashSet<String>

Package names discovered as used in package.json scripts (binary invocations).

§dependency_binaries: DependencyBinaries

The binary names that the declared dependencies provide. Script analysis fills it for the root result; workspace results keep the default.

§dev_dependency_names: FxHashSet<String>

The names that the root and workspace manifests declare in devDependencies. Script analysis fills it for the root result, so the trace credits a dependency only where the unused devDependency check would.

§virtual_module_prefixes: Vec<String>

Import prefixes for virtual modules provided by active frameworks. Imports matching these prefixes should not be flagged as unlisted dependencies.

§virtual_package_suffixes: Vec<String>

Package name suffixes that identify virtual or convention-based specifiers. Extracted package names ending with any of these suffixes are not flagged as unlisted.

§generated_import_patterns: Vec<String>

Import suffixes for build-time generated relative imports. Unresolved imports ending with these suffixes are suppressed.

§generated_type_import_prefixes: Vec<String>

Import prefixes for build-time generated type-only relative imports. Unresolved type-only imports starting with these prefixes are suppressed.

§path_aliases: Vec<(String, String)>

Path alias mappings from active plugins (prefix → replacement directory). Used by the resolver to substitute import prefixes before re-resolving.

§auto_imports: Vec<AutoImportRule>

Convention-based auto-import rules from active plugins (Nuxt components). The resolver matches each file’s captured auto_import_candidates against these and synthesizes a graph edge to the rule’s source. See issue #704.

§active_plugins: Vec<String>

Names of active plugins.

§fixture_patterns: Vec<(String, String)>

Test fixture glob patterns from active plugins: (pattern, plugin_name).

§scss_include_paths: Vec<PathBuf>

Absolute directories contributed by plugins that should be searched when resolving SCSS/Sass @import/@use specifiers. Populated from Angular’s stylePreprocessorOptions.includePaths and equivalent framework settings. See issue #103.

§static_dir_mappings: Vec<(PathBuf, String)>

Static directory mappings contributed by plugins.

§framework_static_dir_mappings: Vec<(PathBuf, String)>

Mounts a framework serves for the whole project, so any HTML document reaches them, unlike the tool-scoped mounts above.

§provided_dependencies: Vec<ProvidedDependencyRule>

File-scoped dependency provider rules from active plugins.

§config_diagnostics: Vec<PluginConfigDiagnostic>

Advisories about the config files active plugins read. Converted to workspace diagnostics once, at the end of the plugin run, where the project root is known.

§federation_sources: Vec<FederationSource>

Where Module Federation configs expose files and declare remote aliases, for the trace output.

§jsx_import_sources: Vec<JsxImportSourceRule>

JSX import sources that bundler and test configs set, with the files each config transforms. The resolver adds the runtime edge to each matching module with jsx_runtime_from_config set.

§jsx_package_credits: Vec<JsxImportSourceRule>

Runtime packages that a JSX transform imports when its config sets no import source. The analysis credits a package only when a matching module has jsx_runtime_from_config set. These rules add no graph edge.

§tsconfig_jsx_dirs: Vec<PathBuf>

The directories of the tsconfig files that set the JSX runtime of TypeScript files, so Vite does not use the default react runtime for the TypeScript files below them.

Trait Implementations§

Source§

impl Clone for AggregatedPluginResult

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AggregatedPluginResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AggregatedPluginResult

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more