Skip to content

SCANPY-104 Update the package and script name to "pysonar"#174

Merged
guillaume-dequenne merged 3 commits intomasterfrom
SCANPY-104
Mar 31, 2025
Merged

SCANPY-104 Update the package and script name to "pysonar"#174
guillaume-dequenne merged 3 commits intomasterfrom
SCANPY-104

Conversation

@guillaume-dequenne
Copy link
Copy Markdown
Contributor

@guillaume-dequenne guillaume-dequenne commented Mar 31, 2025

Copy link
Copy Markdown
Contributor

@Seppli11 Seppli11 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for doing the renaming.

I've left a few very minor nitpicks

Comment thread README.md Outdated

```
pysonar-scanner -Dtoml.path="path/to/pyproject.toml"
pysonar -Dtoml.path="path/to/pyproject.toml"
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.

nitpick: wouldn't make sense to use the pythonic param names here?

Suggested change
pysonar -Dtoml.path="path/to/pyproject.toml"
pysonar --toml-path "path/to/pyproject.toml"

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.

I made the change. Note that the README still mentions the following:

Analysis properties can be provided as CLI arguments to the `pysonar` command.
They follow the same convention as when running the SonarScanner CLI directly 
(see [documentation](https://docs.sonarsource.com/sonarqube/9.9/analyzing-source-code/scanners/sonarscanner/#running-from-zip-file)).
This means that analysis properties provided that way should be prepended with `-D`, for instance:

Which should probably be tackled in the SONARPY-156 about updating documentation.

Comment thread README.md Outdated

```
pysonar-scanner -Dsonar.projectHome="path/to/projectHome"
pysonar -Dsonar.projectHome="path/to/projectHome"
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.

same thing here:

Suggested change
pysonar -Dsonar.projectHome="path/to/projectHome"
pysonar --sonar-project-home "path/to/projectHome"

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.

nitpick: This file should probably be pysonar-debug now.

@sonarqube-next
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed for 'Python Scanner'

Issues
0 New issues
0 Fixed issues
0 Accepted issues

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

See analysis details on SonarQube

@guillaume-dequenne guillaume-dequenne merged commit 76acbf4 into master Mar 31, 2025
13 checks passed
@guillaume-dequenne guillaume-dequenne deleted the SCANPY-104 branch March 31, 2025 13:44
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