Angular Modernizer
    Preparing search index...
    • Analyze an Angular project using all registered analysis rules.

      Coordinates the kernel and plugins; the analysis itself happens inside the plugin rules.

      Steps:

      1. Creates and initializes a Kernel with the AnalyzerPlugin
      2. Retrieves all analysis rules from the registered plugins
      3. Runs all rules concurrently. Each rule gets an analysis context whose sourceFile is the first source file of the project; rules that look at the whole project use context.project.
      4. Returns the collected results

      A rule that throws does not stop the run: it yields one result with the message Rule execution failed: ... and metadata.error: true.

      Parameters

      Returns Promise<AnalysisResult[]>

      The results of all rules, in rule order.

      If the project path is empty or the project has no source files.

      import { analyzeProject } from '@angular-modernizer/orchestration';

      const results = await analyzeProject({
      projectPath: '/path/to/tsconfig.json',
      });