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
Component Complexity Rule (
architecture:component-complexity) - detects Angular components that have become too complex.Detection patterns (
violationTypein the metadata):too-many-methods: components with more than 10 methodsmixed-responsibilities: components handling more than 2 concernsmissing-onpush: components withoutChangeDetectionStrategy.OnPushExample
@Component({ selector: 'app-dashboard' }) class DashboardComponent { // 10+ methods spanning data loading, form handling and navigation }