frontend-standards-checker
Version:
A comprehensive frontend standards validation tool with TypeScript support
25 lines • 1.65 kB
TypeScript
import { IValidationError } from '../types/index.js';
export declare const isConfigOrConstantsFile: (filePath: string) => boolean;
export declare function shouldProcessFile(filePath: string): boolean;
export declare function findFunctionMatch(content: string): {
functionName: string;
lineNumber: number;
} | null;
export declare function validateFunctionName(functionName: string, dirName: string, isPascalCase: boolean, filePath: string, lineNumber: number): IValidationError | null;
export declare function createNameMismatchError(functionName: string, dirName: string, filePath: string, lineNumber: number): IValidationError;
export declare function createNoFunctionError(dirName: string, filePath: string): IValidationError;
export declare function shouldSkipLine(trimmedLine: string): boolean;
export declare function detectFunctionDeclaration(trimmedLine: string): RegExpMatchArray | null;
export declare function getFunctionName(functionMatch: RegExpMatchArray): string | null;
export declare function shouldSkipFunction(trimmedLine: string, _functionName: string): boolean;
export declare function analyzeFunctionComplexity(lines: string[], startIndex: number, content: string): {
complexityScore: number;
linesInFunction: number;
isComplex: boolean;
};
export declare function hasProperComments(lines: string[], functionLineIndex: number, _content: string): boolean;
export declare function createCommentError(functionName: string, analysis: {
complexityScore: number;
linesInFunction: number;
}, filePath: string, lineNumber: number): IValidationError;
//# sourceMappingURL=additionalValidators.helper.d.ts.map