Development record
ultra-v0.6.8 C5: internal/core/memory/schema.go checks licence with lic == "" in validateSourceEntry (the sources[] shape) but strings.TrimSpace(lic) == "" in the single-source branch. The YAML reader trims unquoted scalars but keeps interior whitespace in quoted ones, so licence: " " passes on a sources[] entry and is refused on the single-source shape; hasLicence in lint.go already trims. Fix: one shared requireLicence next to requireClass/requireCitation/requireDate, used by both branches.
issueresolvednitpickiss-2608291814563403
ultra-v0.6.8 C5: internal/core/memory/schema.go checks licence with lic == "" in validateSourceEntry (the sources[] shape) but strings.TrimSpace(lic) == "" in the single-source branch. The YAML reader trims unquoted scalars but keeps interior whitespace in quoted ones, so licence: " " passes on a sources[] entry and is refused on the single-source shape; hasLicence in lint.go already trims. Fix: one shared requireLicence next to requireClass/requireCitation/requireDate, used by both branches.
Frontmatter
| id | iss-2608291814563403 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | nitpick |
.abcd/work/issues/resolved/iss-2608291814563403-licence-whitespace-check-differs-between.md
open on GitHub ↗ · commit history ↗