@samiyev/guardian
Version:
Research-backed code quality guardian for AI-assisted development. Detects hardcodes, secrets, circular deps, framework leaks, entity exposure, and 9 architecture violations. Enforces Clean Architecture/DDD principles. Works with GitHub Copilot, Cursor, W
20 lines • 774 B
TypeScript
import Parser from "tree-sitter";
import { NamingViolation } from "../../../domain/value-objects/NamingViolation";
/**
* AST-based analyzer for detecting interface naming violations
*
* Analyzes interface declaration nodes to ensure proper naming conventions:
* - Domain layer: Repository interfaces must start with 'I' (e.g., IUserRepository)
* - All layers: Interfaces should be PascalCase
*/
export declare class AstInterfaceNameAnalyzer {
/**
* Analyzes an interface declaration node
*/
analyze(node: Parser.SyntaxNode, layer: string, filePath: string, _lines: string[]): NamingViolation | null;
/**
* Checks domain layer interface naming
*/
private checkDomainInterface;
}
//# sourceMappingURL=AstInterfaceNameAnalyzer.d.ts.map