sfcoe-ailabs
Version:
AI-powered code review tool with static analysis integration for comprehensive code quality assessment.
38 lines (37 loc) • 1.08 kB
TypeScript
/**
* File utility functions for common operations
*/
export declare class FileUtils {
/**
* Extract filename from a file path
*/
static getFileName(filePath: string): string;
/**
* Get file extension from a file path
*/
static getFileExtension(filePath: string): string;
/**
* Check if a file is a JavaScript/TypeScript file
*/
static isJavaScriptFile(filePath: string): boolean;
/**
* Check if a file is an Apex file
*/
static isApexFile(filePath: string): boolean;
/**
* Check if a file is a test file based on filename or content
*/
static isTestFile(filePath: string, content?: string): boolean;
/**
* Normalize file path for consistent comparison
*/
static normalizePath(filePath: string): string;
/**
* Create a unique entry key for deduplication
*/
static createEntryKey(fileName: string, ruleId: string, lineNumber: number): string;
/**
* Remove file extension from filename
*/
static removeExtension(fileName: string): string;
}