Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCANNPM-39 exit parent process w correct exit code #153

Merged
merged 5 commits into from
Jul 19, 2024

Conversation

lucas-paulger-sonarsource

No description provided.

src/scanner-engine.ts Outdated Show resolved Hide resolved
src/scanner-engine.ts Outdated Show resolved Hide resolved
Copy link
Member

@7PH 7PH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize now that adding process.exit(..) either on top-level or the one when running the Scanner Engine will break the JS API, eg an user who calls

await scan({ .. })
scanWithCallback({..}, (error) => { .. })

Will have his program shutting down immediately, but that's not what we want to do! - See runner.ts

src/scan.ts Outdated Show resolved Hide resolved
src/scanner-engine.ts Outdated Show resolved Hide resolved
Copy link
Member

@7PH 7PH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with FV ✅

Copy link

@lucas-paulger-sonarsource lucas-paulger-sonarsource merged commit 744dc70 into master Jul 19, 2024
6 checks passed
@lucas-paulger-sonarsource lucas-paulger-sonarsource deleted the fix/fail-w-exit-code branch July 19, 2024 11:48
@maks-rafalko
Copy link

Hello, thanks for fixing this issue.

Could you please create a release and publish a new version to NPM? (asking, because 4.1.0 wasn't published on NPM)

@maks-rafalko
Copy link

Could you please share your plans about when it will be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants