sicua
Version:
A tool for analyzing project structure and dependencies
52 lines (51 loc) • 1.47 kB
TypeScript
/**
* Constants for the General Analyzer - Magic Number Detection
*/
/**
* Common numbers that are typically not considered magic numbers
*/
export declare const COMMON_NUMBERS: Set<number>;
/**
* CSS property names (both camelCase and kebab-case)
*/
export declare const CSS_PROPERTIES: Set<string>;
/**
* Patterns for constant-style variable names
*/
export declare const CONSTANT_PATTERNS: RegExp[];
/**
* UI-related prop names commonly used in React components
*/
export declare const UI_PROPS: Set<string>;
/**
* Function names that typically receive UI-related numeric arguments
*/
export declare const UI_FUNCTIONS: Set<string>;
/**
* Additional animation and motion-related property patterns
*/
export declare const ANIMATION_PATTERNS: RegExp[];
/**
* Chart and visualization related properties
*/
export declare const CHART_PROPS: Set<string>;
/**
* Algorithm and mathematical constants that shouldn't be flagged
*/
export declare const ALGORITHM_CONSTANTS: Set<number>;
/**
* Additional patterns that indicate business/configuration data
*/
export declare const BUSINESS_DATA_PATTERNS: RegExp[];
/**
* Patterns for layout and positioning calculations
*/
export declare const LAYOUT_CALCULATION_PATTERNS: RegExp[];
/**
* Color system constants that shouldn't be flagged
*/
export declare const COLOR_CONSTANTS: Set<number>;
/**
* Context patterns that indicate non-magic number usage
*/
export declare const CONTEXT_PATTERNS: RegExp[];