indent (actions/run-analyzer.ts)

salesforcecli/mcp · packages/mcp-provider-code-analyzer/src/actions/run-analyzer.ts · typescript · Apache-2.0
crm

Implements a run analyzer action for Salesforce code analysis, handling config, telemetry, and results.

// Source: https://github.com/salesforcecli/mcp | License: Apache-2.0 | Copyright 2025 Salesforce, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import os from "node:os";
import path from "node:path";
import fs from "node:fs";
import {
    CodeAnalyzer,
    OutputFormat,
    RuleSelection,
    RunResults,
    SeverityLevel,
    Workspace
} from "@salesforce/code-analyzer-core";
import type { ViolationCounts } from "@salesforce/code-analyzer-core/output-formats";
import {EnginePlugin} from "@salesforce/code-analyzer-engine-api";
import {getErrorMessage} from "../utils.js";
import {getMessage} from "../messages.js";
import {CodeAnalyzerConfigFactory} from "../factories/CodeAnalyzerConfigFactory.js";
import {EnginePluginsFactory} from "../factories/EnginePluginsFactory.

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key