DRAW-49 Placeholder left in a note, a text or a field¶
| Severity | Status | Implementation |
|---|---|---|
| warning | runs in better_erc | easy, depends on NET-26 |
Data it needs: drawing geometry.
Looks at. The schematic drawing (geometry), fields.
A note copied from a template keeps its blanks until someone fills them in: Unregulated, x V .. y V followed by an empty Max current: reads as a fact on a printed sheet. The check reads every text, text box and table cell of each sheet, and every field of each part except its Reference and its Value (BOM-5 checks the value, NAME-12 an unannotated reference). It reports a text or field that holds one of these:
- the word
TBD,TBC,TODO,FIXMEorCALC, case ignored, the same wordsBOM-5looks for in a value; - a word made of question marks alone (
?,???); a question such asWhy?is not one; - a letter
x,yorz(either case) where a number belongs: before a unit (x V,y mA) or with the unit joined to it (xV); - a label left empty: a line that ends with a colon and has nothing after it but blank lines,
--rules or other empty labels (Max current:as the last line).
A field value is also a placeholder by the value rule of BOM-5: it starts or ends with ?.
A note headed by one of those words is open itself. The heading is the first word of a bold free text, such as the one grouped with a note box (DRAW-32), or the first word of a text or box when a colon ends it (TODO:). Each such note is reported once:
- its body (the rest of the text, and any text box or table grouped with the heading) holds a placeholder: the body is reported, the heading word is not;
- its body holds none (
TODOoverFit the test points): the heading is reported.
A heading without such a word (Information) is never reported for itself.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DRAW-49 reports on it.
draw-49_placeholders¶
warning DRAW-49 #nvp text "Ripple TBD" holds the placeholder `TBD`
sheet /, item text "Ripple TBD"
fix: fill in the value, or delete the line if it does not apply
warning DRAW-49 #jv1 text box "Information:" holds the placeholder `x V`, `y V`, `Max current:`
sheet /, item text box "Information:"
fix: fill in the value, or delete the line if it does not apply
warning DRAW-49 #qap R1 has a placeholder in Mpn1 `???`
part R1
fix: fill in the field, or clear it