Strict assertions: make exact text matching easy and warn when a check can pass vacuously

Đang mở
#413 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
flutter, go
Lĩnh vực
testing-qa, tooling

Hướng nghiên cứu

Read the parser, lint implementation, grammar documentation, conformance tests, MCP tool descriptions, mcp.md, VS Code extension surfaces, dictionary, see documentation, and CHANGELOG. First confirm the exact-text form with the maintainer in the PR description, then trace how see and wait until ... appears text is parsed and linted. Done means the additive exact-text guidance and suppressible warning meet the acceptance criteria, with parser, conformance, and positive and negative lint tests 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

Problem

Text selectors match substrings. A zero-state check such as see "0 ml" also passes on "250 ml"-style text that contains it, or on any widget whose text includes the string, so the check can pass without testing what the author meant. Users have hit this in real suites. The workaround today is an anchored regex (see "0 ml" matching "^0 ml$"), which is hard to discover.

Constraints

  • Additive only: existing grammar, probe.yaml and report JSON keep working. Exact-by-default would change the meaning of existing tests, so it is not an option for 0.x.
  • Any parser change updates the complete EBNF in the grammar docs and the conformance test (hard rule).
  • Every new keyword or flag also updates the MCP tool descriptions, mcp.md, the VS Code extension surfaces and the dictionary.

Acceptance criteria

  • A documented, discoverable way to assert exact text (either a new additive form such as see exact "X", or a documented matching "^...$" idiom with an example on the see page). Maintainer to confirm the form in the PR description before implementing.
  • A probe lint warning when a see or wait until ... appears text looks like a zero-state or short numeric string (for example matches ^[0-9]+( [a-z]+)?$), pointing to the exact form. Warning only, never an error, with a way to silence it.
  • The see and dictionary docs say that text selectors match substrings and that exact is preferred for zero-state and count checks.
  • Tests: parser and conformance, lint warning positive and negative cases.
  • CHANGELOG entry (additive).
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.