Skip to content

sonar: exclude docs/** from analysis#21155

Merged
taratorio merged 1 commit into
mainfrom
sonar-exclude-docs
May 13, 2026
Merged

sonar: exclude docs/** from analysis#21155
taratorio merged 1 commit into
mainfrom
sonar-exclude-docs

Conversation

@taratorio

Copy link
Copy Markdown
Member

Summary

  • Add docs/** to sonar.exclusions in sonar-project.properties.

The docs/ directory contains only documentation (markdown, images, gitbook content). None of it is touched by the Erigon SonarCloud quality profile (Go/Python/JSON/YAML/TS/Docker/Shell), but the scanner still walks the tree and emits UTF-8 encoding warnings for every PNG / .sketch asset on every run. Excluding it cleans up the scan output without changing what's analysed.

Note: this does not measurably speed up the sonar job — indexing the whole repo takes ~330 ms either way, and the bulk of the wallclock is spent in make test-sonar-coverage. This is a hygiene change.

Test plan

  • CI sonar job runs and the UTF-8 warnings for docs/** PNG/SKETCH files no longer appear in the scan log

🤖 Generated with Claude Code

The docs/ directory contains only documentation (markdown, images,
gitbook content) — nothing the SonarCloud quality profile actually
analyses. Excluding it silences the UTF-8 encoding warnings emitted
for PNG/SKETCH assets in every scan.

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

@erigon-copilot erigon-copilot Bot left a comment

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.

[SharovBot] LGTM. Low-risk Sonar hygiene change; excluding docs/** from analysis matches the stated intent and should only remove scan noise from documentation assets.

@taratorio taratorio added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit ff7d56f May 13, 2026
59 checks passed
@taratorio taratorio deleted the sonar-exclude-docs branch May 13, 2026 03:11
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