COMARK0428 · warning
comark/charts/start-and-end
Give every row of a gantt a start and an end
A gantt draws each row as a bar from where it starts to where it ends, so its table needs two columns of numbers or of dates, and every row needs both. A row with only one isn't drawn. A milestone, a moment rather than a span, ends where it starts.
Incorrect
::chart{type="gantt" title="Pond cleanup (days)"}
| task | days |
| --- | --: |
| drain the pond | 2 |
| fish out the shopping carts | 3 |
| refill | 1 |
:: lint-comark example.mdexample.md:1:1 comark/charts/start-and-endAdd a column for where each row starts and one for where it ends.✖ 1 problem
Correct
::chart{type="gantt" title="Pond cleanup (days)"}
| task | start | end |
| --- | --: | --: |
| drain the pond | 0 | 2 |
| fish out the shopping carts | 2 | 5 |
| refill | 5 | 6 |
| ducks return | 6 | 6 |
:: lint-comark example.md✔ No problems