Validate the `config` input before scanning

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, javascript
領域
ci-cd, tooling

調査の方向性

Read src/action.js and src/config.js to trace how parsed config reaches analyze, then inspect test/config.test.js and the core CLI’s validation for parity. Add coverage for the listed invalid inputs and a valid config; done when invalid configs exit 2 with clear messages and the valid config remains unchanged. Run npm test -- test/config.test.js.

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

説明

enhancement wave

Context

The action parses the config with JSON.parse and passes the result to analyze. An unknown key or an inverted range is accepted silently, unlike the core CLI, which validates it.

Scope

  • src/action.js
  • src/config.js
  • test/config.test.js

Acceptance criteria

  • Unknown keys, inverted ranges, non-integer bounds and unknown ignore ids exit 2 with a clear message.
  • The validation logic matches codepact-core and is covered by parity tests.
  • A valid config is unchanged.

Verification

npm test -- test/config.test.js

Complexity

Medium (3-4 hours)

Part of Stellar Wave. Comment to claim this issue before starting.

主要言語
JavaScript
スター
0
フォーク
0
平均マージ
7時間 28分
マージ済み PR(30日)
10

環境構築

はじめの一歩

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

codepacct/codepact-action のほかの issue

codepacct/codepact-action の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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