UNPKG

@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

43 lines 1.36 kB
import { ValueObject } from "./ValueObject"; interface FrameworkLeakProps { readonly packageName: string; readonly filePath: string; readonly layer: string; readonly category: string; readonly line?: number; } /** * Represents a framework leak violation in the codebase * * A framework leak occurs when a domain layer file imports a framework-specific package, * creating tight coupling and violating Clean Architecture principles. * * @example * ```typescript * // Bad: Domain layer importing Prisma * const leak = FrameworkLeak.create( * '@prisma/client', * 'src/domain/User.ts', * 'domain', * 'ORM', * 5 * ) * * console.log(leak.getMessage()) * // "Domain layer imports framework-specific package "@prisma/client". Use interfaces and dependency injection instead." * ``` */ export declare class FrameworkLeak extends ValueObject<FrameworkLeakProps> { private constructor(); static create(packageName: string, filePath: string, layer: string, category: string, line?: number): FrameworkLeak; get packageName(): string; get filePath(): string; get layer(): string; get category(): string; get line(): number | undefined; getMessage(): string; getSuggestion(): string; getCategoryDescription(): string; } export {}; //# sourceMappingURL=FrameworkLeak.d.ts.map