probe lint has no way to fail CI on warnings (--fail-on-warning covers agent warnings only)

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
cli, testing

調査の方向性

Start by locating the probe lint command, its warning reporting and exit-status logic, then read the CLI reference and CI guides named in the acceptance criteria. Check how probe validate and the MCP lint tool expose lint warnings. Done means lint keeps exit 0 by default, --strict exits 1 on warnings with the same output, and the specified docs and changelog are updated.

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

説明

area/cli enhancement

What happens

probe lint reports warnings (since 0.26.0 this includes the unanchored count and zero-state text check, for example a see "250 ml" that also passes on "1250 ml") but exits 0 when it finds only warnings. A project with dozens of such warnings cannot make CI fail on new ones.

probe test --fail-on-warning does not help: its documented scope is agent warnings at run time (a tap that did nothing, press enter with no focus, go back at the root), and it does not look at lint results. The behaviour matches the docs; the gap is that no flag turns lint warnings into a failing exit status.

Found while running a real project's suite against 0.26.0-next.1: 30 lint warnings, exit status 0, and --fail-on-warning unchanged.

Proposal

  • Add probe lint --strict (or --fail-on-warning, same name as the test flag but documented for lint): exit non-zero when any warning is reported. Default unchanged.
  • Say in the CLI reference for probe test --fail-on-warning that it covers agent warnings only, and point to probe lint --strict for lint.
  • Optionally let probe test run the same check before the run (--lint-strict), so one command is enough in CI. Out of scope for the first change.

Acceptance

  • probe lint with warnings only: exit 0 (unchanged); with --strict: exit 1 and the same output.
  • probe validate and the MCP lint tool report the same warnings; the tool gains a strict option or says exit status is not applicable.
  • Docs: CLI reference (lint, test --fail-on-warning), the CI guides' lint step, CHANGELOG.
主要言語
Go
スター
6
フォーク
3
平均マージ
6時間 28分
マージ済み PR(30日)
362

環境構築

はじめの一歩

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

AlphaWaveSystems/flutter-probe のほかの issue

AlphaWaveSystems/flutter-probe の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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