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 Java BECs under src/becwright/becs/:
no-printstacktrace.bec.yaml — forbid .printStackTrace() (swallowed exceptions) in **/*.java.
no-system-out-println.bec.yaml — forbid System.out.println debugging in main sources (consider excluding **/test/**).
How
- Copy the format from
src/becwright/becs/no-debug-go.bec.yaml.
- Write a real
intent and why_it_matters.
- Use
check: "becwright run forbid --pattern '...'" with paths **/*.java.
- Add the entries to
src/becwright/becs/README.md.
Acceptance criteria
pytest green (test_catalog_bundles_are_valid covers bundle parsing).
becwright add no-printstacktrace 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 Java BECs under
src/becwright/becs/:no-printstacktrace.bec.yaml— forbid.printStackTrace()(swallowed exceptions) in**/*.java.no-system-out-println.bec.yaml— forbidSystem.out.printlndebugging in main sources (consider excluding**/test/**).How
src/becwright/becs/no-debug-go.bec.yaml.intentandwhy_it_matters.check: "becwright run forbid --pattern '...'"with paths**/*.java.src/becwright/becs/README.md.Acceptance criteria
pytestgreen (test_catalog_bundles_are_validcovers bundle parsing).becwright add no-printstacktraceinstalls it in a scratch repo.See
CONTRIBUTING.md→ "Adding a catalog BEC".