Skip to content

chore: analyse the docs directory in Sonar - #332

Merged
kurkle merged 1 commit into
mainfrom
chore/sonar-docs
Nov 21, 2026
Merged

kurkle merged 1 commit into
mainfrom
chore/sonar-docs

Conversation

@kurkle

@kurkle kurkle commented Nov 21, 2026

Copy link
Copy Markdown
Owner

SonarCloud analyses src/, scripts/ and .github/workflows, but not the documentation site in docs/, so its code was never scanned.

This adds docs/ to sonar.sources so it is analysed for issues, and makes two related exclusions:

  • docs/** is excluded from the coverage requirement (sonar.coverage.exclusions), because the site has no unit tests and would otherwise count against coverage on new lines.
  • docs/src/generated/** is excluded from analysis (sonar.exclusions). That file is written by docs/scripts/write-docs-version.cjs at build time. A stray trailing comma in the existing sonar.exclusions value is dropped.

Only sonar-project.properties changes. The Sonar analysis on this PR shows which files are picked up.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying chartjs-plugin-gradient with  Cloudflare Pages  Cloudflare Pages

Latest commit: e97be1f
Status: ✅  Deploy successful!
Preview URL: https://ceecbaf3.chartjs-plugin-gradient.pages.dev
Branch Preview URL: https://chore-sonar-docs.chartjs-plugin-gradient.pages.dev

View logs

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 12.7 kB

ℹ️ View Unchanged
Filename Size
dist/chartjs-plugin-gradient.cjs 3.63 kB
dist/chartjs-plugin-gradient.esm.js 3.47 kB
dist/chartjs-plugin-gradient.js 3.63 kB
dist/chartjs-plugin-gradient.min.js 2.02 kB

compressed-size-action

@kurkle
kurkle merged commit 71358f0 into main Nov 21, 2026
6 checks passed
@kurkle
kurkle deleted the chore/sonar-docs branch November 21, 2026 20:00
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