Angular Modernizer
    Preparing search index...

    God Object Rule (solid:god-object-violation) - detects classes that have grown too large and handle too many responsibilities.

    Detection patterns (violationType in the metadata):

    • too-many-methods: more than 30 methods
    • too-many-lines: more than 1000 lines
    • too-many-dependencies: more than 10 dependencies (constructor parameters and inject() fields)
    • mixed-architectural-concerns: multiple architectural concerns, derived from injected types, field types and called APIs (never from member names, so renaming a field or method does not change the result)
    // Violation: class takes on too many responsibilities
    class AppService {
    // 30+ methods spanning authentication, data fetching,
    // caching, UI state, and business logic
    }

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

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

    Rule category for grouping.

    description: "Detects classes that have grown too large and handle too many responsibilities" = 'Detects classes that have grown too large and handle too many responsibilities'

    Rule description explaining what it checks.

    id: "solid:god-object-violation" = 'solid:god-object-violation'

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

    name: "God Object Violation" = 'God Object Violation'

    Human-readable rule name.

    severity: "error" = 'error'

    Rule severity level.

    tags: string[] = ...

    Tags for filtering and search.

    Methods