Angular Modernizer
    Preparing search index...

    ISP Violation Rule (solid:isp-violation) - detects Interface Segregation Principle violations.

    Detection patterns (violationType in the metadata):

    • too-many-methods: interfaces with more than 5 methods
    • mixed-concerns: interfaces whose members mix concerns (UI, data, business logic) by name keywords
    • too-many-interfaces: classes implementing more than 3 interfaces
    • unused-interface-methods: classes that implement an interface but declare no methods
    // Violation: interface forces implementations to define unrelated methods
    interface IWorker {
    work(): void;
    eat(): void; // Irrelevant for robots
    sleep(): void; // Irrelevant for robots
    }

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    category: "solid-violation" = 'solid-violation'

    Rule category for grouping.

    description: "Detects interfaces that are too large or have mixed responsibilities" = 'Detects interfaces that are too large or have mixed responsibilities'

    Rule description explaining what it checks.

    id: "solid:isp-violation" = 'solid:isp-violation'

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

    name: "Interface Segregation Principle Violation" = 'Interface Segregation Principle Violation'

    Human-readable rule name.

    severity: "warning" = 'warning'

    Rule severity level.

    tags: string[] = ...

    Tags for filtering and search.

    Methods