sfcoe-ailabs
Version:
AI-powered code review tool with static analysis integration for comprehensive code quality assessment.
21 lines (20 loc) • 775 B
TypeScript
import { Log } from 'sarif';
import SCATProvider from './scatProvider.js';
export default class PMDCodeAnalyzer extends SCATProvider {
private readonly fileList;
/**
* Creates a new PMD Code Analyzer instance
*
* @param scanDirectory - The directory to scan for non-Salesforce code
* @param configFile - Configuration file path for PMD
* @param fileList - Array of specific files to analyze
*/
constructor(scanDirectory: string, configFile: string, fileList: string[]);
/**
* Runs the PMD analyzer on the specified files
*
* @param scanDirectory - Optional override for the scan directory
* @returns Promise that resolves to the SARIF analysis results
*/
run(scanDirectory?: string): Promise<Log>;
}