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

26 lines 1.1 kB
import { FrameworkLeak } from "../value-objects/FrameworkLeak"; /** * Interface for detecting framework-specific imports in domain layer * * Framework leaks occur when domain layer imports framework-specific packages, * violating Clean Architecture principles by creating tight coupling to external frameworks. */ export interface IFrameworkLeakDetector { /** * Detects framework leaks in the given file * * @param imports - Array of import paths from the file * @param filePath - Path to the file being analyzed * @param layer - The architectural layer of the file (domain, application, infrastructure, shared) * @returns Array of detected framework leaks */ detectLeaks(imports: string[], filePath: string, layer: string | undefined): FrameworkLeak[]; /** * Checks if a specific import is a framework package * * @param importPath - The import path to check * @returns True if the import is a framework package */ isFrameworkPackage(importPath: string): boolean; } //# sourceMappingURL=IFrameworkLeakDetector.d.ts.map