Angular Modernizer
    Preparing search index...

    Analysis rule angular:static-class-detection: reports classes with only public static members (methods and readonly properties) that can become module-level functions and constants.

    Skips .d.ts files and classes with Angular decorators, extends, abstract, constructor logic, instance members, mutable static properties, private or protected members, or member names that are not valid identifiers. The same criteria are used by StaticClassTransformRule.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    category: "code-quality" = 'code-quality'

    Rule category for grouping.

    description: "Detects static-only classes that should be refactored to module-level functions and constants" = 'Detects static-only classes that should be refactored to module-level functions and constants'

    Rule description explaining what it checks.

    id: "angular:static-class-detection" = 'angular:static-class-detection'

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

    name: "Static Class Detection" = 'Static Class Detection'

    Human-readable rule name.

    severity: "warning" = ...

    Rule severity level.

    tags: string[] = ...

    Tags for filtering and search.

    Methods