Skip to content

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

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

Exclude tests, docs and tooling from SonarQube Cloud analysis#32
saudzahirr merged 1 commit into
mainfrom
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/**,bin/**,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 bin 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>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@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 733975f into main Aug 5, 2026
24 checks passed
@saudzahirr
saudzahirr deleted the fix/sonar-exclude-non-source branch August 5, 2026 12:12
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