Skip to content

refactor: resolve the Sonar findings in the source - #335

Merged
kurkle merged 1 commit into
mainfrom
chore/sonar-src
Nov 22, 2026
Merged

kurkle merged 1 commit into
mainfrom
chore/sonar-src

Conversation

@kurkle

@kurkle kurkle commented Nov 21, 2026

Copy link
Copy Markdown
Owner

What

Resolves the remaining SonarCloud finding on main.

  • src/helpers.js (S7773): parseFloat(value) becomes Number.parseFloat(value). They are the same function object, so behaviour is identical.

Verification

  • npm run build and npm test pass (96 fixture tests and 5 integration tests).
  • Built dist compared before and after: only the parseFloat to Number.parseFloat token changes in the cjs, esm, umd and min bundles (and the source embedded in the source map). The generated type declarations are unchanged.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying chartjs-plugin-gradient with  Cloudflare Pages  Cloudflare Pages

Latest commit: c1a703a
Status: ✅  Deploy successful!
Preview URL: https://b2ae275d.chartjs-plugin-gradient.pages.dev
Branch Preview URL: https://chore-sonar-src.chartjs-plugin-gradient.pages.dev

View logs

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Size Change: +3 B (+0.02%)

Total Size: 12.7 kB

📦 View Changed
Filename Size Change
dist/chartjs-plugin-gradient.cjs 3.63 kB +1 B (+0.03%)
dist/chartjs-plugin-gradient.esm.js 3.47 kB +1 B (+0.03%)
dist/chartjs-plugin-gradient.js 3.63 kB +1 B (+0.03%)
ℹ️ View Unchanged
Filename Size
dist/chartjs-plugin-gradient.min.js 2.02 kB

compressed-size-action

@kurkle
kurkle merged commit a460a0c into main Nov 22, 2026
6 checks passed
@kurkle
kurkle deleted the chore/sonar-src branch November 22, 2026 04:40
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