Skip to content

Comments

ref: Simplify repetitive column width calculations in logs#209

Draft
dcramer wants to merge 1 commit intomainfrom
warden-sweep/1984f16e/code-simplifier-36a025b2
Draft

ref: Simplify repetitive column width calculations in logs#209
dcramer wants to merge 1 commit intomainfrom
warden-sweep/1984f16e/code-simplifier-36a025b2

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Feb 22, 2026

Replace 9 repetitive Math.max column width calculations with a dynamic Object.keys iteration.

The logs list command had 9 identical Math.max(...) lines, one per column. Refactored to derive widths dynamically from the headers keys, so adding a new column only requires updating headers and Row, not a separate width calculation.

Automated fix for Warden finding code-simplifier-36a025b2 (medium, detected by code-simplifier).

This PR was auto-generated by a Warden Sweep (run 1984f16e).
The finding has been validated through automated deep tracing,
but human confirmation is requested as this is batch work.

Warden finding code-simplifier-36a025b2
Severity: medium

Co-Authored-By: Warden <noreply@getsentry.com>
@dcramer dcramer added the warden Automated fix from Warden Sweep label Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

warden Automated fix from Warden Sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant