Skip to content

Exclude tests, docs and tooling from SonarQube Cloud analysis - #47

Merged
saudzahirr merged 1 commit into
masterfrom
fix/sonar-exclude-non-source
Aug 5, 2026
Merged

Exclude tests, docs and tooling from SonarQube Cloud analysis#47
saudzahirr merged 1 commit into
masterfrom
fix/sonar-exclude-non-source

Conversation

@saudzahirr

Copy link
Copy Markdown
Collaborator

SonarQube Cloud was analysing paths that are never shipped in the published
package. Findings in tests, build tooling, documentation and CI definitions
counted against the quality gate without describing any risk to users.

sonar.exclusions=.github/**,tests/**,docs/**

Every path above was verified to exist in this repository. Directories this
project does not have are omitted rather than copied from a sibling repo, so
the config stays accurate and readable.

This also covers githubactions:S8541, which asks for uv's --no-build — a
flag no source-built project can use, since uv refuses with can't be installed because it is marked as --no-build but has no binary distribution.

Note the filename: this project runs Automatic Analysis, which reads
.sonarcloud.properties. sonar-project.properties is only read by CI-based
analysis and is silently ignored.

🤖 Generated with Claude Code

Analysis covered paths that are never shipped in the published package,
so findings in tests, build tooling, documentation and CI definitions
counted against the quality gate without describing risk to users.

Excluded (each verified to exist here): .github tests docs

Directories this project does not have are omitted rather than copied
from a sibling repo, so the config stays readable and accurate.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@saudzahirr
saudzahirr merged commit 4b3fb30 into master Aug 5, 2026
17 checks passed
@saudzahirr
saudzahirr deleted the fix/sonar-exclude-non-source branch August 5, 2026 11:23
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