Skip to content

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

Merged
maksim-grebeniuk-sonarsource merged 1 commit intomasterfrom
SCANPY-168
Jun 13, 2025
Merged

SCANPY-168 Limit size of output on wrong argument#217
maksim-grebeniuk-sonarsource merged 1 commit intomasterfrom
SCANPY-168

Conversation

@maksim-grebeniuk-sonarsource
Copy link
Copy Markdown
Contributor

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

SCANPY-168

Part of

@sonarqube-next
Copy link
Copy Markdown

Copy link
Copy Markdown
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



class PyScannerHelpFormatter(argparse.HelpFormatter):
recommended_args = {"help", "token", "sonar_project_key"}
Copy link
Copy Markdown
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
Copy Markdown
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