Repository Analysis

chartjs/Chart.js

Simple HTML5 Charts using the <canvas> tag

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
2026-05-27
Last Push
67,458
Stars
JavaScript
Language
88,231
Lines of Code
394
Files
27
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 3HIGH 0MEDIUM 1LOW 23

Pattern Findings

27 matches across 4 categories. Click a row to expand file-level details.

Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippet
CRITICALtest/specs/plugin.tooltip.tests.js26 var label = Chart.defaults.plugins.tooltip.callbacks.label(tooltipItem);
CRITICALtest/specs/plugin.tooltip.tests.js30 label = Chart.defaults.plugins.tooltip.callbacks.label(tooltipItem);
CRITICALdocs/samples/legend/html.md38 const items = chart.options.plugins.legend.labels.generateLabels(chart);
Hyper-Verbose Identifiers16 hits · 16 pts
SeverityFileLineSnippet
LOWtest/specs/core.scale.tests.js821 function getChartWithScaleTitleStroke() {
LOWtest/specs/core.scale.tests.js851 function getChartWithoutScaleTitleStroke() {
LOWsrc/core/core.layouts.js14function filterDynamicPositionByAxis(array, axis) {
LOWsrc/core/core.config.js11function getAxisFromDefaultScaleID(id, indexAxis) {
LOWsrc/core/core.config.js21function getDefaultScaleIDFromAxis(axis, indexAxis) {
LOWsrc/core/core.datasetController.js136function getOrCreateStack(stacks, stackKey, indexValue) {
LOWsrc/plugins/plugin.legend.js577function calculateLegendItemHeight(legendItem, fontLineHeight) {
LOWsrc/plugins/plugin.colors.ts70function containsColorsDefinitions(
LOWsrc/plugins/plugin.colors.ts90function containsDefaultColorsDefenitions() {
LOWsrc/plugins/plugin.decimation.js176function getStartAndCountOfVisiblePointsSimplified(meta, points) {
LOWsrc/plugins/plugin.tooltip.js447function invokeCallbackWithFallback(callbacks, name, ctx, arg) {
LOWsrc/platform/platform.dom.js177function listenDevicePixelRatioChanges(chart, resize) {
LOWsrc/platform/platform.dom.js184function unlistenDevicePixelRatioChanges(chart) {
LOWsrc/scales/scale.time.js87function determineUnitForAutoTicks(minUnit, min, max, capacity) {
LOWsrc/scales/scale.time.js111function determineUnitForFormatting(scale, numTicks, minUnit, min, max) {
LOWsrc/controllers/controller.bar.js89function computeFlexCategoryTraits(index, ruler, options, stackCount) {
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippet
LOWdocs/configuration/tooltip.md361 caretX: number,
LOWsrc/types/index.d.ts2661 width: number;
LOWsrc/core/core.layouts.js361 box.beforeLayout();
LOWsrc/core/core.controller.js1201 // The `replay`:
LOWsrc/plugins/plugin.legend.js661 color: (ctx) => ctx.chart.options.color,
LOWsrc/platform/platform.dom.js201 // If the container size shrank during chart resize, let's assume
LOWsrc/scales/scale.radialLinear.js61 // Where it does, we store that angle and that index.
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMsrc/core/core.layouts.js365 // Essentially we now have any number of boxes on each of the 4 sides.