Skip to content

refactor: name real argument groups instead of dodging max-params - #85

Merged
furedea merged 1 commit into
mainfrom
refactor/name-real-argument-groups
Oct 21, 2026
Merged

furedea merged 1 commit into
mainfrom
refactor/name-real-argument-groups

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

概要

max-params を回避するためだけの引数グルーピングを,名前付きの概念または構造の変更に置き換える.挙動は変更しない.

Refs furedea/dotfiles#247

変更内容

グルーピング 対応 理由
src/data/article.ts convertCaptions の (_match, ...captures) move(名前付きキャプチャグループ + matchAll) rest パラメータによる回避をやめ,alt / url / caption を名前付きグループから読み,HTML 生成を 3 引数の captionFigure に分離
tests/performance/performance_report.ts unitWithRange の匿名 { median, samples } real concept(Unit) 単位記号と整形関数は「単位」という実在の概念なので SECONDS / MILLISECONDS 定数にまとめ,median と samples は通常の引数に戻した

挙動の固定

  • * で囲んだ画像キャプションの変換テストを追加(後方参照 \k<marker> の確認)
  • Blocking time の範囲表示(88 ms (50–121))のテストを追加

いずれも変更前のコードで通過することを確認済み.

確認

  • pnpm check: 成功
  • lefthook run pre-commit --all-files: 成功
  • E2E はサンドボックスで実行不可のため CI に委ねる

🤖 Generated with Claude Code

Read caption parts from named regex groups via matchAll instead of a
rest parameter, and group the unit symbol and formatter into named
SECONDS and MILLISECONDS units instead of an anonymous median/samples
object.

Refs furedea/dotfiles#247

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying furedea-com with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3000fb3
Status: ✅  Deploy successful!
Preview URL: https://8ba121a8.furedea-com.pages.dev
Branch Preview URL: https://refactor-name-real-argument.furedea-com.pages.dev

View logs

@furedea
furedea merged commit 9071b45 into main Oct 21, 2026
16 checks passed
@furedea
furedea deleted the refactor/name-real-argument-groups branch October 21, 2026 08:20
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