UNPKG

sfcoe-ailabs

Version:

AI-powered code review tool with static analysis integration for comprehensive code quality assessment.

26 lines (25 loc) 926 B
import { Log } from 'sarif'; import SCATProvider from './scatProvider.js'; export default class SFCodeAnalyzer extends SCATProvider { /** * Creates a new Salesforce Code Analyzer instance * * @param scanDirectory - The directory to scan for Salesforce code * @param configFile - Optional configuration file path for the analyzer */ constructor(scanDirectory: string, configFile?: string); /** * Runs the Salesforce Code Analyzer on the specified directory * * @param scanDirectory - Optional override for the scan directory * @returns Promise that resolves to the SARIF analysis results */ run(scanDirectory?: string): Promise<Log>; /** * Ensures the log directory exists. * Creates the directory if it doesn't exist. * * @returns Promise that resolves when directory is ensured to exist */ private ensureLogDirectoryExists; }