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

29 lines 1.15 kB
import { ValueObject } from "./ValueObject"; import { NAMING_VIOLATION_TYPES } from "../../shared/constants/rules"; export type NamingViolationType = (typeof NAMING_VIOLATION_TYPES)[keyof typeof NAMING_VIOLATION_TYPES]; interface NamingViolationProps { readonly fileName: string; readonly violationType: NamingViolationType; readonly layer: string; readonly filePath: string; readonly expected: string; readonly actual: string; readonly suggestion?: string; } /** * Represents a naming convention violation found in source code */ export declare class NamingViolation extends ValueObject<NamingViolationProps> { private constructor(); static create(fileName: string, violationType: NamingViolationType, layer: string, filePath: string, expected: string, actual: string, suggestion?: string): NamingViolation; get fileName(): string; get violationType(): NamingViolationType; get layer(): string; get filePath(): string; get expected(): string; get actual(): string; get suggestion(): string | undefined; getMessage(): string; } export {}; //# sourceMappingURL=NamingViolation.d.ts.map