Documentation
¶
Index ¶
Constants ¶
const WorkLogPath = "spec/18_WORK_LOG.md"
Variables ¶
This section is empty.
Functions ¶
func PrintReport ¶ added in v0.1.1
PrintReport renders report for CLI output and reports whether the caller should exit non-zero. The analysis behind report is identical regardless of advisory; advisory only changes how findings are presented, since fork PR contributors aren't expected to close out spec/work-log bookkeeping themselves — the maintainer does that at merge (AD-8).
Strict mode (advisory false) is byte-identical to the pre-advisory behavior: a passing report prints a one-line summary to stdout, and a failing report prints "spec drift check failed:" plus each finding to stderr and asks the caller to exit 1.
Advisory mode never asks for a non-zero exit. A passing report prints the same one-line summary. A report with findings prints one GitHub Actions "::warning::" annotation per finding to stdout, so each finding surfaces in the Actions UI, followed by the same human-readable finding list.