@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
75 lines • 2.23 kB
TypeScript
/**
* Default file scanning options
*/
export declare const DEFAULT_EXCLUDES: readonly ["node_modules", "dist", "build", "coverage", ".git", ".puaros", "tests", "test", "__tests__", "examples"];
export declare const DEFAULT_EXTENSIONS: readonly [".ts", ".tsx", ".js", ".jsx"];
/**
* Allowed numbers that are not considered magic numbers
*/
export declare const ALLOWED_NUMBERS: Set<number>;
/**
* Default context extraction size (characters)
*/
export declare const CONTEXT_EXTRACT_SIZE = 30;
/**
* String length threshold for magic string detection
*/
export declare const MIN_STRING_LENGTH = 3;
/**
* Single character limit for string detection
*/
export declare const SINGLE_CHAR_LIMIT = 1;
/**
* Git defaults
*/
export declare const GIT_DEFAULTS: {
readonly REMOTE: "origin";
readonly BRANCH: "main";
};
/**
* Tree-sitter node types for function detection
*/
export declare const TREE_SITTER_NODE_TYPES: {
readonly FUNCTION_DECLARATION: "function_declaration";
readonly ARROW_FUNCTION: "arrow_function";
readonly FUNCTION_EXPRESSION: "function_expression";
};
/**
* Detection keywords for hardcode analysis
*/
export declare const DETECTION_KEYWORDS: {
readonly TIMEOUT: "timeout";
readonly DELAY: "delay";
readonly RETRY: "retry";
readonly LIMIT: "limit";
readonly MAX: "max";
readonly MIN: "min";
readonly PORT: "port";
readonly INTERVAL: "interval";
readonly TEST: "test";
readonly DESCRIBE: "describe";
readonly CONSOLE_LOG: "console.log";
readonly CONSOLE_ERROR: "console.error";
readonly HTTP: "http";
readonly API: "api";
};
/**
* Code patterns for detecting exported constants
*/
export declare const CODE_PATTERNS: {
readonly EXPORT_CONST: "export const ";
readonly EXPORT: "export ";
readonly IMPORT: "import ";
readonly AS_CONST: " as const";
readonly AS_CONST_OBJECT: "} as const";
readonly AS_CONST_ARRAY: "] as const";
readonly AS_CONST_END_SEMICOLON_OBJECT: "};";
readonly AS_CONST_END_SEMICOLON_ARRAY: "];";
readonly OBJECT_START: "= {";
readonly ARRAY_START: "= [";
};
/**
* File encoding
*/
export declare const FILE_ENCODING: "utf-8";
//# sourceMappingURL=defaults.d.ts.map