ccguard
Version:
Automated enforcement of net-negative LOC, complexity constraints, and quality standards for Claude code
25 lines • 935 B
TypeScript
import { BashInput, LocChange } from '../contracts';
export declare class BashLocTracker {
private locCounter;
private parser;
constructor(options?: {
ignoreEmptyLines?: boolean;
});
/**
* Calculate LOC change for a bash command
* This requires checking file state before the command executes
*/
calculateBashChange(input: BashInput, preOperationCheck?: boolean): Promise<LocChange>;
/**
* Calculate LOC change after bash command execution
* Used in snapshot mode to compare before/after states
*/
calculatePostBashChange(input: BashInput, fileStatesBefore: Map<string, number>, fileStatesAfter: Map<string, number>): Promise<LocChange>;
/**
* Get files that would be affected by a bash command
*/
getAffectedFiles(input: BashInput): string[];
private countFileLines;
private resolveFilePath;
}
//# sourceMappingURL=bashLocTracker.d.ts.map