Skip to content

baseline-grew

Rung history · correctness · default error

The lint baseline has an entry that neither the base’s baseline nor the merge-base’s has, or one of those cannot be read: the baseline may only shrink, so fix the finding instead.

A baseline lets a project adopt Gantry with existing findings recorded and tolerated, on the understanding that the list only ever shrinks. If a change adds a finding to the baseline, the baseline has become a way to silence new problems. Comparing it with the base ref’s baseline keeps the debt from growing under the same file that records it. An entry the branch started with (the merge-base’s) is not growth, even if the base has fixed it since. A base or merge-base baseline that cannot be read is a finding, because a check that read nothing must not pass.

Fix the finding instead of adding it to the baseline. Baseline entries may be removed, never added. If the base baseline is unreadable, repair the file on the base branch.

Terminal window
$ gantry lint --base origin/main
.gantry/lint.baseline.json: error baseline-grew: the baseline gained ruling-cell-blank at docs/design/rulings/tabs.md (cells.ios): cells.ios is blank; write the answer, or n/a: <reason>. The baseline may only shrink; fix the finding instead of baselining it (entries[0])