Skip to content

ci: keep tests out of SonarQube Cloud analysis - #75

Merged
somethingwithproof merged 1 commit into
mainfrom
chore/sonar-exclude-tests
Nov 15, 2026
Merged

somethingwithproof merged 1 commit into
mainfrom
chore/sonar-exclude-tests

Conversation

@somethingwithproof

Copy link
Copy Markdown
Owner

Summary

Adds .sonarcloud.properties, so SonarQube Cloud's automatic analysis covers the plugin code and leaves out tests/.

The test scripts build fixture SQL, start fake servers and run disposable installs. The production rules flag those; one example is "SQL queries should not be dynamically formatted" on a test helper. That fails the quality gate on changes that don't touch any shipped code.

  • sonar.sources=. analyzes the whole repository, as today.
  • sonar.exclusions=tests leaves out the test tree. Automatic analysis takes plain paths, not wildcards.

The file carries SPDX headers, so REUSE stays compliant.

Testing

  • No code changes.
  • The SonarQube Cloud check on this PR is the first run with the new configuration.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e16a8d70-e33a-4f4b-bb60-d31ff93da480
Commits

Reviewing files that changed from the base of the PR and between eb9ffa1 and 1b9070f.

Files selected for processing: 1

  • .sonarcloud.properties
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@gitar-bot

gitar-bot Bot commented Nov 15, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@somethingwithproof
somethingwithproof merged commit 0e7f33d into main Nov 15, 2026
18 checks passed
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.

1 participant