Part of #25 (one language per PR). No code required — a catalog BEC is a single YAML file using the generic forbid check.
Task
Add ready-to-import Ruby BECs under src/becwright/becs/:
no-binding-pry.bec.yaml — forbid binding.pry / binding.irb left in committed Ruby code.
no-puts-debugging.bec.yaml — forbid stray puts/pp debugging in **/*.rb (consider excluding specs).
How
- Copy the format from
src/becwright/becs/no-debug-go.bec.yaml.
- Write a real
intent and why_it_matters (a BEC carries its why — that's the point).
- Use
check: "becwright run forbid --pattern '...'" with paths **/*.rb.
- Add the entries to
src/becwright/becs/README.md.
Acceptance criteria
pytest green — test_catalog_bundles_are_valid already validates every bundle parses.
becwright add no-binding-pry installs it in a scratch repo.
See CONTRIBUTING.md → "Adding a catalog BEC".
Part of #25 (one language per PR). No code required — a catalog BEC is a single YAML file using the generic
forbidcheck.Task
Add ready-to-import Ruby BECs under
src/becwright/becs/:no-binding-pry.bec.yaml— forbidbinding.pry/binding.irbleft in committed Ruby code.no-puts-debugging.bec.yaml— forbid strayputs/ppdebugging in**/*.rb(consider excluding specs).How
src/becwright/becs/no-debug-go.bec.yaml.intentandwhy_it_matters(a BEC carries its why — that's the point).check: "becwright run forbid --pattern '...'"with paths**/*.rb.src/becwright/becs/README.md.Acceptance criteria
pytestgreen —test_catalog_bundles_are_validalready validates every bundle parses.becwright add no-binding-pryinstalls it in a scratch repo.See
CONTRIBUTING.md→ "Adding a catalog BEC".