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.
Main analysis entry point that runs all data handling strategy checks.
This method orchestrates multiple detection strategies:
Each detection method uses functional programming patterns for better testability and maintainability.
Analysis context containing the source file to analyze
Array of violations found in the source file
Configures the rule with custom thresholds.
Partial configuration object to override defaults
Analysis rule
plugin-angular:data-handling-strategy: reports inefficient data handling in Angular components and recommends server-side alternatives.Detection patterns:
This rule identifies common performance anti-patterns where large datasets are processed client-side instead of server-side, which can cause:
The rule suggests moving operations like filtering, sorting, and pagination to the server when dealing with datasets above the thresholds of DataHandlingStrategyConfig. Components detected as offline-capable (offline libraries, paths, decorators or names) are not reported, since client-side processing is expected there.