mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 06:32:03 +00:00
Comments used to open with the identifier of the work item that produced them. The identifiers point into notes that never ship, so a reader meets something that looks like a reference and leads nowhere. eslint-plugins/healthlog/planning-tags.js defines the shape once: a head of tag codes and planning words before an em dash, optionally after a release version. The version and any issue reference stay; the tag goes. A line without a version must carry a code that is neither domain vocabulary (B12, PM2.5, UTF-8) nor used in the file's code. scripts/strip-planning-tags.mjs locates comments with the TypeScript parser, rewrites only their text, and refuses any file whose comment-free printout changes. The healthlog/no-planning-tags rule uses the same matcher, with an autofix; it is enabled together with the sweep.