Skip to content

fix(react-compiler): Rename TraceTree.Depth to TraceTree.depth - #121925

Open
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/trace-tree-depth-naming
Open

fix(react-compiler): Rename TraceTree.Depth to TraceTree.depth#121925
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/trace-tree-depth-naming

Conversation

@sentry

@sentry sentry Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Renames the static utility method TraceTree.Depth to TraceTree.depth across the codebase. This change addresses a no-capitalized-function-calls violation flagged by the React Compiler. The rule reserves capitalized function names for React components, and TraceTree.depth is a pure utility function that calculates node depth, not a component. Renaming it to camelCase aligns with React Compiler conventions and resolves the linting error.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes CODING-CONVENTIONS-1WH

@sentry
sentry Bot requested a review from a team as a code owner August 13, 2026 01:43
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 13, 2026
@ryan953 ryan953 added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant