Skip to main content

AggregatedPluginResult

Struct AggregatedPluginResult 

Source
pub struct AggregatedPluginResult {
Show 27 fields pub entry_patterns: Vec<(PathRule, 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 script_used_packages: 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>,
}
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).

§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 (should not be flagged as unused devDeps).

§script_used_packages: FxHashSet<String>

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

§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.

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