Refactor: Remove file validation and add sample scripts #944
Annotations
3 errors
genaiscript pr-review-commit:
packages/cli/src/run.ts#L370
The `result.fileEdits` and `applyEdits` are not checked before calling `writeFileEdits`. This could lead to unexpected behavior if `result.fileEdits` is undefined or `applyEdits` is false.
|
genaiscript pr-review-commit:
packages/core/src/fileedits.ts#L293
The condition `!applyEdits && !validation?.valid` will never be true because if `applyEdits` is false, the function will not be called due to the missing check in `run.ts`. This could lead to unexpected behavior.
|
genaiscript pr-review-commit:
packages/sample/src/edits/fib.ts#L1
The function `fibonacci` is not implemented and will always return 0. This could lead to incorrect results.
|
Loading