refactor: migrate naming convention detector to AST-based analysis

This commit is contained in:
imfozilbek
2025-11-27 19:26:43 +05:00
parent ce78183c6e
commit e8626dd03c
4 changed files with 95 additions and 247 deletions

View File

@@ -7,12 +7,14 @@ export interface INamingConventionDetector {
/**
* Detects naming convention violations for a given file
*
* @param content - Source code content to analyze
* @param fileName - Name of the file to check (e.g., "UserService.ts")
* @param layer - Architectural layer of the file (domain, application, infrastructure, shared)
* @param filePath - Relative file path for context
* @returns Array of naming convention violations
*/
detectViolations(
content: string,
fileName: string,
layer: string | undefined,
filePath: string,