Skip to content

SCANPY-234 Fix help suggestions displayed when invoking pysonar without arguments#299

Merged
marc-jasper-sonarsource merged 1 commit intomasterfrom
MJ/SCANPY-234
Mar 17, 2026
Merged

SCANPY-234 Fix help suggestions displayed when invoking pysonar without arguments#299
marc-jasper-sonarsource merged 1 commit intomasterfrom
MJ/SCANPY-234

Conversation

@marc-jasper-sonarsource
Copy link
Contributor

No description provided.

@sonar-review-alpha
Copy link

sonar-review-alpha bot commented Mar 16, 2026

Summary

This PR fixes inaccuracies in the help message shown when pysonar is invoked without required arguments

What reviewers should know

Summary

This PR fixes inaccuracies in the help message shown when pysonar is invoked without required arguments:

  1. Corrects CLI syntax: Updates the command-line example from --sonar.projectKey=myproject to --sonar-project-key=myproject (CLI args use hyphens, not dots)
  2. Adds missing method: Documents the -D parameter approach for specifying analysis parameters (e.g., -Dsonar.projectKey=myproject), which wasn't previously mentioned

These changes ensure users receive accurate guidance on all available configuration methods when the scanner fails due to missing required properties.


  • Generate Walkthrough
  • Generate Diagram

🗣️ Give feedback

@hashicorp-vault-sonar-prod
Copy link

hashicorp-vault-sonar-prod bot commented Mar 16, 2026

SCANPY-234

@sonarqube-next
Copy link

Quality Gate passed Quality Gate passed for 'Python Scanner'

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
0 Dependency risks
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube

Copy link
Contributor

@thomas-serre-sonarsource thomas-serre-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM!

@marc-jasper-sonarsource marc-jasper-sonarsource merged commit 06a25ce into master Mar 17, 2026
20 of 21 checks passed
@marc-jasper-sonarsource marc-jasper-sonarsource deleted the MJ/SCANPY-234 branch March 17, 2026 12:50
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.

2 participants