Repository navigation
ci: run a SonarQube scan on pushes to main - #5435
Merged
Merged
Conversation
Generates Robocop, ruff and mypy reports for import alongside native analysis. The scan is skipped when SONAR_TOKEN is empty and the job stays out of publish_nightly's needs, so it stays advisory. The report formats were checked with a local SonarQube Community Build scan of a clean checkout: all 268 Robocop, 70 ruff and 22 mypy findings imported. The organization is marketsquare-1, which owns the project on SonarQube Cloud. .github is a source so that workflows are analysed. Refs MarketSquare#5427 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5427
Summary
Differences from the properties in #5418:
marketsquare-1is the organization that owns the project on SonarQube Cloud..githubis needed for GitHub Actions findings.browser_batteriesis part of the library. mypy also needs it to resolve an import.inv lint: ruff includesatest, and mypy includesatest/library.utestis left out of mypy because it makes mypy exit 2.Evidence
After: a local SonarQube Community Build scan of a clean checkout imported every finding, and the
.githubYAML files were indexed.That scan ran before
browser_batterieswas added. Ruff was rerun with it and still reports 70 findings, none of them inbrowser_batteries.Not proven yet:
main.actionlintpasses.main.Merge Danger
Door: two-way
Reverting the commit removes the job. Analyses already sent to SonarQube Cloud stay in its history.
Blast Radius: CI-only
The job is advisory, and a failure here cannot hold back the nightly. A failure would still mark the
mainrun red. The dashboard gains about 360 linter findings, and the 268 from Robocop are new becauseinv lint-robotonly formats.🤖 Generated with Claude Code