3cc53a8c69
- regen-readme.py: use `python` not the broken `python3` Store alias in the generated note and docstring; --check now also fails when a module header's "Open findings" count disagrees with finding statuses or a finding has an unrecognised Status (find_inconsistencies) - REVIEW-PROCESS.md: rewritten for mxaccessgw (was describing ScadaLink) — MxGateway.* modules, "mxaccessgw conventions" checklist category, gateway.md/docs/ design context, `python` command - scripts/check-code-reviews-readme.ps1: CI/pre-commit wrapper for regen-readme.py --check - code-reviews/test_regen_readme.py: dependency-free parser tests - code-reviews/README.md: regenerated Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
21 lines
737 B
PowerShell
21 lines
737 B
PowerShell
# Verifies code-reviews/README.md is regenerated from, and consistent with, the
|
|
# per-module findings.md files. Intended as a CI / pre-commit gate.
|
|
#
|
|
# Exits non-zero when README.md is stale, when a module header's "Open findings"
|
|
# count disagrees with its finding statuses, or when a finding carries an
|
|
# unrecognised Status value. See REVIEW-PROCESS.md section 5.
|
|
|
|
[CmdletBinding()]
|
|
param()
|
|
|
|
Set-StrictMode -Version Latest
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..")
|
|
$script = Join-Path $repoRoot "code-reviews/regen-readme.py"
|
|
|
|
# The bare `python3` alias on this platform resolves to the Windows Store stub;
|
|
# `python` is the real interpreter.
|
|
& python $script --check
|
|
exit $LASTEXITCODE
|