Transformation that removes duplicate rules while preserving order. Also removes preceding comments when a duplicate rule is removed.
Uses a two-pass approach for clarity and performance:
- First pass: Build a Set of all actual rules (non-comments)
- Second pass: Filter rules, skipping duplicates and their preceding comments
readonly
name: string
Human-readable name of the transformation
readonly
type: TransformationType
The transformation type identifier
executeSync(rules: readonly string[]): readonly string[]
Executes the deduplication transformation synchronously.