Skip to content

SCANPY-168 Limit size of output on wrong argument #217

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

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

maksim-grebeniuk-sonarsource
Copy link
Contributor

@maksim-grebeniuk-sonarsource maksim-grebeniuk-sonarsource commented Jun 12, 2025

SCANPY-168

Part of

Copy link

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,
I only left a small renaming hint

@@ -24,6 +24,14 @@
from pysonar_scanner.exceptions import UnexpectedCliArgument


class PyScannerHelpFormatter(argparse.HelpFormatter):
recommended_args = {"help", "token", "sonar_project_key"}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit It is minimal or mandatory args, not recommended args in my opinion

Suggested change
recommended_args = {"help", "token", "sonar_project_key"}
mandatory_args = {"help", "token", "sonar_project_key"}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technically they are not mandatory, as I understand it will work for instance if them will be specified in toml file or env variable

@maksim-grebeniuk-sonarsource maksim-grebeniuk-sonarsource merged commit f99db57 into master Jun 13, 2025
19 checks passed
@maksim-grebeniuk-sonarsource maksim-grebeniuk-sonarsource deleted the SCANPY-168 branch June 13, 2025 12:19
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