UNPKG

ccguard

Version:

Automated enforcement of net-negative LOC, complexity constraints, and quality standards for Claude code

38 lines 1.06 kB
import { FileSnapshot } from './types'; export declare class FileScanner { private gitIgnoreParser; private rootDir; private ignoreEmptyLines; private maxFileSizeBytes; private static readonly DEFAULT_MAX_FILE_SIZE; constructor(rootDir: string, ignoreEmptyLines?: boolean, maxFileSizeBytes?: number); /** * Scan all files in the project (excluding those in .gitignore) */ scanProject(): Promise<Map<string, FileSnapshot>>; /** * Scan specific files */ scanFiles(filePaths: string[]): Promise<Map<string, FileSnapshot>>; /** * Scan a single file */ private scanFile; /** * Count lines using wc -l command */ private countLinesWithWc; /** * Calculate hash of file content */ private calculateHash; /** * Simple heuristic to detect binary files */ private isBinaryFile; /** * Get files that would be affected by an operation */ getAffectedFiles(operation: any): string[]; } //# sourceMappingURL=FileScanner.d.ts.map