Repository Analysis

recharts/recharts

Redefined chart library built with React and D3

0.5 Likely human-written View on GitHub
0.5
Adjusted Score
0.5
Raw Score
100%
Time Factor
2026-05-30
Last Push
27,185
Stars
TypeScript
Language
226,922
Lines of Code
1242
Files
118
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 118

Pattern Findings

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

Hyper-Verbose Identifiers106 hits · 110 pts
SeverityFileLineSnippet
LOWtest-vr/tests/www/RangedAreaTemplate.tsx39function RangedAreaTemplateWithChartBaseValue({
LOWtest-vr/tests/www/RangedAreaTemplate.tsx56export function AreaRangeViaBaseValueNumber() {
LOWtest-vr/tests/www/RangedAreaTemplate.tsx74export function AreaRangeViaChartBaseValueNumber() {
LOWtest-vr/tests/www/RangedAreaTemplate.tsx91export function AreaRangeViaBaseValueDataMin() {
LOWtest-vr/tests/www/RangedAreaTemplate.tsx109export function AreaRangeViaChartBaseValueDataMax() {
LOWtest-vr/tests/www/RangedAreaTemplate.tsx126export function AreaRangeViaBaseValueDataMax() {
LOWtest-vr/tests/ReferenceLine/ReferenceLineComponents.tsx5export function IfOverflowTestWithSegment(props: { ifOverflow: IfOverflow | undefined }) {
LOWtest/cartesian/GraphicalItemClipPath.spec.tsx198 const { spy } = renderTestCase(function useNeedsClipNumericalOverflow() {
LOWtest/cartesian/Bar.zeroDimensionFiltering.spec.tsx15function generateSparseStackedData(totalCategories: number, nonZeroCount: number) {
LOWtest/cartesian/Scatter.animation.spec.tsx93function getAllScatterPointPathsDs(container: Element): ReadonlyArray<string | null> {
LOWtest/cartesian/CartesianGrid.spec.tsx47function expectHorizontalGridLines(container: Element, expectedLines: ReadonlyArray<ExpectedHorizontalLine>) {
LOWtest/cartesian/Area.animation.spec.tsx133async function expectAreaCurveDoesNotChange(container: Element, animationManager: MockAnimationManager) {
LOWtest/cartesian/Area.animation.spec.tsx198async function expectLabelsHideDuringAnimation(container: Element, animationManager: MockAnimationManager) {
LOWtest/cartesian/Area.animation.spec.tsx214async function horizontalClipPathAnimation(
LOWtest/cartesian/Funnel.animation.spec.tsx20async function expectAnimatedFunnelPaths(
LOWtest/polar/PolarGrid.spec.tsx875 function RadialBarChartWithMultipleAxesWrapper({ children }: { children: React.ReactNode }) {
LOWtest/polar/Radar.animation.spec.tsx42async function expectAnimatedRadarPolygons(
LOWtest/polar/PolarAngleAxis/PolarAngleAxis.spec.tsx67function expectAngleAxisTickLabels(container: Element, expectedLabels: ReadonlyArray<ExpectedAxisTickLabel>) {
LOWtest/polar/RadialBar/RadialBar.animation.spec.tsx17async function expectAnimatedRadialBarPaths(
LOWtest/shape/Rectangle.animation.spec.tsx87async function expectAnimatedStrokeDasharray(container: HTMLElement, animationManager: MockAnimationManager) {
LOWtest/chart/PieChart.spec.tsx134 function assertActiveShapeInteractions(container: HTMLElement, selectors: string) {
LOWtest/chart/RadialBarChart.spec.tsx13function assertActiveShapeInteractions(container: HTMLElement) {
LOWtest/chart/ScatterChart.spec.tsx401function assertActiveShapeInteractions(container: HTMLElement) {
LOWtest/chart/AccessibilityLayer.spec.tsx63function assertNoKeyboardInteractions(container: HTMLElement) {
LOWtest/chart/BarChart.spec.tsx67function assertActiveBarInteractions(container: HTMLElement) {
LOWtest/animation/legacyAnimationLengthChange.spec.tsx257function renderChartWithSelectorSpy(chart: ChartWrapper) {
LOWtest/animation/legacyAnimationLengthChange.spec.tsx277async function completeLengthChangeAnimation(renderResult: ReturnType<typeof renderChartWithSelectorSpy>) {
LOWtest/component/Legend.itemSorter.spec.tsx391 function MyLegendHidingLineChartTestCase({ children }: { children: ReactNode }) {
LOWtest/component/Legend.itemSorter.spec.tsx468 function MyLegendHidingAreaChartTestCase({ children }: { children: ReactNode }) {
LOWtest/component/Tooltip/tooltipTestHelpers.tsx97export function showTooltipOnCoordinateTouch(
LOW…electors/combiners/combineDisplayedStackedData.spec.ts21function createMockBaseCartesianAxis(partialBaseAxis: Partial<BaseCartesianAxis>): BaseCartesianAxis {
LOWtest/hooks/useAxisScale.spec.tsx226 function useCartesianScaleNumerical() {
LOWtest/helper/selectorTestHelpers.tsx9export function shouldReturnUndefinedOutOfContext(selector: Selector<RechartsRootState, unknown, never>): void {
LOWtest/helper/consoleWarningToError.ts78export function setupConsoleWarningToError(): void {
LOWtest/helper/logAllReduxActionsMiddleware.ts1export function logAllReduxActionsMiddleware(actionsThatLogPayload?: RegExp) {
LOWtest/helper/mockGetBoundingClientRect.ts34export function mockGetBoundingClientRect(rect: Partial<DOMRect>, mockClientHeightWidth = true): void {
LOWtest/helper/mockGetBoundingClientRect.ts52export function mockSequenceOfGetBoundingClientRect(
LOWtest/helper/mockHTMLElementProperty.ts15export function restoreHTMLElementProperties() {
LOWtest/helper/createSelectorTestCase.tsx194export function createSynchronisedSelectorTestCase(
LOWtest/helper/expectScale.ts49export function expectLastCalledWithScale(spy: Mock<(scale: RechartsScale) => unknown>, expected: ExpectedScale) {
LOWtest/helper/expectStackGroups.ts65function rechartsStackedDataMatcher(
LOWtest/helper/expectStackGroups.ts85function rechartsStackedSeriesMatcher(
LOWtest/helper/expectStackGroups.ts105function rechartsStackedSeriesPointMatcher(received: StackDataPoint, expected: StackDataPoint): SyncExpectationResult {
LOWtest/helper/expectStackGroups.ts157export function expectGraphicalItemSettings(expected: MaybeStackedGraphicalItem): MaybeStackedGraphicalItem {
LOWtest/helper/mockTouchingElement.ts30export function mockTouchingUnrelatedElement(): void {
LOWwww/src/navigation.ts138export function normalizePathnameToLocale(pathname: string) {
LOW…alBarChart/RadialBarChartClickToFocusLegendExample.tsx72export default function RadialBarChartClickToFocusLegendExample() {
LOW…pleComponents/PieChart/PieChartWithCustomizedLabel.tsx37export default function PieChartWithCustomizedLabel({ isAnimationActive = true }: { isAnimationActive?: boolean }) {
LOW…ampleComponents/PieChart/CustomActiveShapePieChart.tsx70export default function CustomActiveShapePieChart({
LOW…ineChart/LineChartNegativeValuesWithReferenceLines.tsx56export default function LineChartNegativeValuesWithReferenceLines() {
LOW…mpleComponents/AreaChart/AreaChartWithCustomEvents.tsx17export default function AreaChartWithCustomEvents() {
LOW…exampleComponents/SunburstChart/BundleSizeSunburst.tsx261function loadGeneratedBundleVisualizationEntry(): Promise<BundleVisualizationEntry | null> {
LOW…exampleComponents/SunburstChart/BundleSizeSunburst.tsx274function useBundleVisualizationEntry(forceFallbackData: boolean = false): BundleVisualizationLoadState {
LOW…c/docs/exampleComponents/TreeMap/BundleSizeTreemap.tsx264function loadGeneratedBundleVisualizationEntry(): Promise<BundleVisualizationEntry | null> {
LOW…c/docs/exampleComponents/TreeMap/BundleSizeTreemap.tsx277function useBundleVisualizationEntry(forceFallbackData: boolean = false): BundleVisualizationLoadState {
LOW…c/docs/exampleComponents/TreeMap/BundleSizeTreemap.tsx479function renderCustomizedTreemapNode(props: CustomizedTreemapNode) {
LOW…GuideView/DomainAndTicks/MassBarChartCustomYDomain.tsx85export default function MassBarChartCustomYDomain() {
LOW…iew/ChartSizing/ResponsiveContainerResponsiveChart.tsx4export default function ResponsiveContainerResponsiveChart() {
LOW…GuideView/Customize/CustomizeLegendAndTooltipStyle.tsx52export default function CustomizeLegendAndTooltipStyle() {
LOWwww/src/components/color-mode/defineColorModeStore.ts64function subscribeToStorageAndSystemChanges(onChange: () => void) {
46 more matches not shown…
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippet
LOWstorybook/css.d.ts1// Ambient CSS module declaration for Vite-bundled storybook.
LOWtest-vr/playwright/index.tsx1// Import styles, initialize component theme here.
LOWtest/cartesian/Bar/Bar.typed.spec.tsx141 expectBars(container, []);
LOWtest/cartesian/Bar/Bar.typed.spec.tsx161 // it('should allow when Bar data is matching Bar dataKey as function', () => {
LOWtest/cartesian/Bar/Bar.typed.spec.tsx181 // * TypeScript can show errors here.
LOWtest/component/Tooltip/Tooltip.sync.spec.tsx241// <XAxis dataKey="uv" name="stature" unit="cm" />
LOWtest/component/Tooltip/Tooltip.sync.spec.tsx261// TODO: support synchronization in Sankey, Sunburst, Treemap
LOWtest/component/Tooltip/Tooltip.sync.spec.tsx281// expectedTransform: 'transform: translate(285px, 210px);',
LOWsrc/polar/Radar.tsx321}: {
LOWsrc/util/resolveDefaultProps.tsx101 // - Pick<T, Extract<...>>: Selects these specific properties from T. At this stage, they still retain their origina
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWscripts/check-build-diff.sh5# How to use:
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOW.github/workflows/sync-playwright-versions.yml66 # Check if there are changes to commit before creating a commit.