Optionalconfig: LibraryExtractionRuleConfigRule config from .angular-modernizer.json
ReadonlycategoryRule category for grouping.
ReadonlydescriptionRule description explaining what it checks.
ReadonlyidUnique rule identifier (scoped to plugin). Format: "plugin-name:rule-name" (e.g., "angular-standalone:component-not-standalone")
ReadonlynameHuman-readable rule name.
ReadonlyseverityRule severity level.
ReadonlytagsTags for filtering and search.
Analyze a source file and return findings.
Analysis context with file, project, and API access
Promise resolving to array of analysis results
Library Extraction Opportunity Rule (
architecture:library-extraction-opportunity).Scans the project for cohesive artifact groups in shared folders that qualify for extraction into dedicated Angular libraries with secondary entry points. All detection logic lives in LibraryExtractionScanner.
The scan covers the whole project but the rule is called per file: it scans once per project and file count, and reports each opportunity only once (at its primary file).
Example