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

Đang mở
#466 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Go
Star
6
Fork
3
Merge trung bình
6 giờ 28 phút
Pull request đã merge (30 ngày)
362

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AlphaWaveSystems/flutter-probe

Tất cả issue của AlphaWaveSystems/flutter-probe

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.