Esc

COMARK0429 · warning

comark/charts/end-before-start

End every bar of a gantt after it starts

A bar ends after it starts. An end before its start is usually two cells swapped, or a typo in one. The chart still draws the bar between them, so the mistake is easy to miss.

Incorrect

::chart{type="gantt" title="Duckling season"}
| stage | start | end |
| --- | --- | --- |
| nesting | 2026-04-01 | 2026-04-20 |
| hatching | 2026-05-18 | 2026-04-20 |
| first swim | 2026-05-19 | 2026-05-19 |
::
md
lint-comark example.mdexample.md:1:1 comark/charts/end-before-start::chart 1: row 2 ends at 2026-04-20, before it starts at 2026-05-18.Swap them, or fix the end.✖ 1 problem

Correct

::chart{type="gantt" title="Duckling season"}
| stage | start | end |
| --- | --- | --- |
| nesting | 2026-04-01 | 2026-04-20 |
| hatching | 2026-04-20 | 2026-05-18 |
| first swim | 2026-05-19 | 2026-05-19 |
::
md
lint-comark example.md✔ No problems