Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Consider catching thrown errors from validators

オープン
#597 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
node.js, typescript
領域
cli

調査の方向性

この issue では、ファイル、テスト、エントリーポイントが指定されていません。まず、throw された validator エラーを捕捉すべきか、また CLI でどのように報告すべきかを明確にし、それを validator のバグを隠してしまうことと比較検討してください。完了には、合意された動作と、正常なバリデーション失敗および意図しない例外の両方をカバーするテストが必要です。

索引モデルが issue の本文から書いたものです。

説明

We currently do not catch thrown errors from validators since it is expected that you return an Error instead.

This is by design and is fine. It may be worth handling uncaught exceptions too, though, just so the CLI gracefully fails validation rather than exiting.

this is the validation implementor's fault at the end of the day, if it happens, but covering it up could give better DX.

thoughts?

the negative is that it could cover up unintentional errors. today it'll be very obvious the validator has a bug and that wouldn't be the case anymore.

主要言語
TypeScript
スター
8.1k
フォーク
218
平均マージ
1日 23時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bombshell-dev/clack のほかの issue

bombshell-dev/clack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。