feat(DEP0164): handle non-integer codes passed to process.exit & process.exitCode#413
Conversation
process.exit & process.exitCode
|
Given the mere moments between opening this PR and your #405 (comment), it's fairly clear this was fully AI-generated. Could you please confirm what you used to generate it, how much of it, and which specific pieces you reviewed of the generated code. |
|
Thanks for calling this out, yes, I used AI assistance (GitHub Copilot Chat in VS Code) to speed up drafting. What was AI-assisted: What I manually reviewed and adjusted: You are right that I should have disclosed this in the PR description from the start. |
|
aslo for you info you have to use this structure of testing Codemod leverages a
Use the Single-file fixtures option. |
|
AugustinMauroy
left a comment
There was a problem hiding this comment.
Better but still something to improve
Summary
This PR adds a new codemod recipe to handle DEP0164 by coercing unsupported values passed to process.exit(code) and assigned to process.exitCode into integer-compatible values.
Closes #405.
What this adds
Transformation behavior
The codemod applies explicit and safe coercions aligned with the issue requirements:
Safety and scope
Tests
Added fixture coverage for the 10 scenarios from the issue plus additional edge cases:
Validation run: