arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
55 lines • 1.55 kB
TypeScript
/**
* Standards Module
* Defines and checks standards for:
* - Security (input validation, auth, crypto)
* - UX (accessibility, performance, responsiveness)
* - Architecture (modularity, dependencies, coupling)
* - Performance (caching, optimization, memory)
*/
export type StandardCategory = 'security' | 'ux' | 'architecture' | 'performance';
export type Severity = 'critical' | 'warning' | 'info';
export interface StandardViolation {
id: string;
standard: string;
category: StandardCategory;
severity: Severity;
location: string;
description: string;
refactorProposal: string;
priority: number;
}
export interface StandardsCheckResult {
violations: StandardViolation[];
passedChecks: string[];
score: {
security: number;
ux: number;
architecture: number;
performance: number;
overall: number;
};
}
/**
* Define all standards
*/
declare const SECURITY_STANDARDS: {
id: string;
name: string;
description: string;
patterns: RegExp[];
check: (content: string) => boolean;
}[];
/**
* Check code against all standards
*/
export declare function checkStandards(content: string, filePath: string): StandardsCheckResult;
/**
* Get all standards for a category
*/
export declare function getStandardsForCategory(category: StandardCategory): typeof SECURITY_STANDARDS;
/**
* Generate severity color for CLI output
*/
export declare function getSeverityIcon(severity: Severity): string;
export {};
//# sourceMappingURL=standards.d.ts.map