Angular Modernizer
    Preparing search index...

    Component Complexity Rule (architecture:component-complexity) - detects Angular components that have become too complex.

    Detection patterns (violationType in the metadata):

    • too-many-methods: components with more than 10 methods
    • mixed-responsibilities: components handling more than 2 concerns
    • missing-onpush: components without ChangeDetectionStrategy.OnPush
    // Violation: component exceeds complexity thresholds
    

    @Component({ selector: 'app-dashboard' }) class DashboardComponent { // 10+ methods spanning data loading, form handling and navigation }

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    category: "architecture-violation" = 'architecture-violation'

    Rule category for grouping.

    description: "Detects Angular components that have become too complex with too many methods or mixed responsibilities" = 'Detects Angular components that have become too complex with too many methods or mixed responsibilities'

    Rule description explaining what it checks.

    id: "architecture:component-complexity" = 'architecture:component-complexity'

    Unique rule identifier (scoped to plugin). Format: "plugin-name:rule-name" (e.g., "angular-standalone:component-not-standalone")

    name: "Component Complexity" = 'Component Complexity'

    Human-readable rule name.

    severity: "warning" = 'warning'

    Rule severity level.

    tags: string[] = ...

    Tags for filtering and search.

    Methods