checked
How many boxes in a checkbox list may (or must) be ticked.
Captain: A ticked box is a promise. Show me the work behind it.
Quick reference
| Written as | Fails with | Applies to |
|---|---|---|
checked. | too-few-checked warn | list |
checked. | too-many-checked warn | list |
checked. | need-exactly-one error | list |
Examples
checked. min
Require at least N checked boxes — mirrors checked.max, e.g. a checklist that must be partly done.
<!-- mdv: section -->
## Changes
<!-- mdv: list checked.min=1 -->
- [x] Launch weather clear
- [ ] Spare antenna packed
- [ ] Droid tools labeled
<!-- mdv: endlist -->
<!-- mdv: endsection --><!-- mdv: section -->
## Changes
<!-- mdv: list checked.min=2 -->
- [x] Oxygen tanks topped
- [x] Flight plan signed
- [ ] Crew quarters inspected
<!-- mdv: endlist -->
<!-- mdv: endsection -->checked. max
Allow at most N checked boxes — useful to bound a multi-select choice.
Two picks out of three passes
<!-- mdv: section required -->
## Priorities
<!-- mdv: list checked.max=2 -->
- [ ] Repair nav beacon
- [ ] Calibrate rover arm
- [ ] Polish droid casing## Priorities
- [x] Repair nav beacon
- [x] Calibrate rover arm
- [ ] Polish droid casing✓ passes
checked. eq=1
Require exactly one checked box — a single-select choice such as a change type.
A single-select with two ticks fails
<!-- mdv: section required -->
## Approach
<!-- mdv: list checked.eq=1 -->
- [ ] Autopilot
- [ ] Manual## Approach
- [x] Autopilot
- [x] Manual✗ need-exactly-one error · line 3
Range
Both bounds at once, inclusive (a. or . for one side):
<!-- mdv: section checked.range=20..200 -->
## Summary
<!-- mdv: endsection -->