Interface: RehearsalAnalyzer
Defined in: rehearsal/types.ts:200
Interface for operation-specific analyzers
Properties
category
readonly category: OperationCategory;
Defined in: rehearsal/types.ts:214
Category of operations this analyzer handles
id
readonly id: string;
Defined in: rehearsal/types.ts:204
Unique identifier for this analyzer
name
readonly name: string;
Defined in: rehearsal/types.ts:209
Human-readable name
patterns
readonly patterns: RegExp[];
Defined in: rehearsal/types.ts:219
Patterns that this analyzer can handle
Methods
analyze()
analyze(operation, context): Promise<RehearsalResult>;
Defined in: rehearsal/types.ts:229
Analyze the operation and return impact assessment
Parameters
| Parameter | Type |
|---|---|
operation | string |
context | RehearsalContext |
Returns
Promise<RehearsalResult>
canAnalyze()
canAnalyze(operation): boolean;
Defined in: rehearsal/types.ts:224
Check if this analyzer can handle the given operation
Parameters
| Parameter | Type |
|---|---|
operation | string |
Returns
boolean