sicua
Version:
A tool for analyzing project structure and dependencies
17 lines (16 loc) • 635 B
TypeScript
/**
* Utility for counting different types of lines in source code
*/
import { LineMetrics } from "../types/generalAnalyzer.types";
/**
* Counts lines of code, comments, and blank lines in file content
* @param content The file content as a string
* @returns LineMetrics object with counts
*/
export declare function countLines(content: string): LineMetrics;
/**
* Calculates the code-to-comment ratio
* @param lineMetrics The line metrics to calculate ratio from
* @returns The ratio of code lines to comment lines (0 if no comments)
*/
export declare function calculateCodeToCommentRatio(lineMetrics: LineMetrics): number;