OptionalchangeNumber of lines changed (additions + deletions)
OptionalfilePath to the file that was transformed
Human-readable message about the transformation
OptionalmetadataOptional metadata about the transformation
Additional metadata
Optionalduration?: numberTime taken to transform (milliseconds)
OptionalfalsePositivesFiltered?: numberNumber of false positives filtered
OptionalparserStrategy?: stringParser strategy used
OptionalpathAliasesResolved?: numberNumber of path aliases resolved
OptionalsyntaxErrors?: string[]Syntax errors after transformation
Whether the file was modified
Rule ID that produced this result
Transformation result from parser.
This interface represents the result of applying transformation rules to an AST. It includes the modified source code, metadata about the transformation, and any errors encountered.
Note: This is a simplified version for the parser strategy interface. The full TransformResult interface is defined in transformation-coordinator.ts.
Example