Angular Modernizer
    Preparing search index...

    Analysis Rule - examines code and reports findings.

    Analysis rules are READ-ONLY. They must never modify code. Their purpose is to identify patterns, violations, and opportunities.

    interface AnalysisRule {
        category: string;
        description: string;
        id: string;
        name: string;
        severity: "error" | "warning" | "info";
        tags?: string[];
        analyze(context: AnalysisContext): Promise<AnalysisResult[]>;
    }

    Implemented by

    Index

    Properties

    category: string

    Rule category for grouping.

    description: string

    Rule description explaining what it checks.

    id: string

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

    name: string

    Human-readable rule name.

    severity: "error" | "warning" | "info"

    Rule severity level.

    tags?: string[]

    Tags for filtering and search.

    Methods