Skip to content

Ensure exit code is properly reported to the shell #193

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

Closed

Conversation

TheFriendlyCoder
Copy link

Problem description:

When ANY failure happens within the SonarQube operation, the error status is NEVER reported to the calling context / shell. This means that the pysonar-scanner CLI tool always returns a successful result. This makes it impossible to detect failures at runtime.

Solution:
Ensure the return code from the scan() method is properly reported to the shell.

@ghislainpiot
Copy link
Contributor

ghislainpiot commented Apr 16, 2025

Hello,

Thanks for taking the time to use our scanner and providing feedback.
There is indeed a bug, I have created SCANPY-171 to track this issue.
We will make sure that the fix is included in the next release.

Have a great day,

@thomas-serre-sonarsource
Copy link
Contributor

Hey @TheFriendlyCoder ,
We have implemented the ticket corresponding to your suggestion : #227
We did an implementation very similar to what you suggested ;)

I close this PR. Thanks again for contributing !

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.

3 participants