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

Improve error message when the YAML config file is empty

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
tooling

調査の方向性

スタックトレースに示されている loadConfig エントリーポイントから開始し、--config-file を通して空のファイルを渡して失敗を再現します。Runner と Action が解析結果をどのように処理するかを確認します。空の YAML 設定が、示されている TypeError をスローするのではなく、有用な警告を出して処理を続行すれば完了です。

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

説明

Using the Runner with --config-file <path to an empty file> leads to the following error. Looking at the code I expect the same applies to the Action.
This is admittedly an unusual case, but it has appeared in at least one support request, so we should provide a more helpful warning and carry on, rather than crashing.

TypeError: Cannot use 'in' operator to search for 'name' in undefined
    at loadConfig (/snapshot/dist/codeql-runner.js)
    at Object.initConfig (/snapshot/dist/codeql-runner.js)
    at Object.initConfig (/snapshot/dist/codeql-runner.js)
    at Command.<anonymous> (/snapshot/dist/codeql-runner.js)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
主要言語
TypeScript
スター
1.6k
フォーク
493
平均マージ
1日 13時間
マージ済み PR(30日)
44

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

github/codeql-action のほかの issue

github/codeql-action の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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