chore(review): check pattern classes and read multi-line fetch calls in review-levels.py #163

Merged
maximus merged 2 commits from issue-143-review-levels-check into master 2026-10-25 23:52:01 +00:00

2 commits

Author SHA1 Message Date
le king fu
d2212c3e68 chore(review): stop counting a removed network call as high
adds_network_call now reads only the new side of each hunk (context and
added lines): removing a fetch, a base URL constant or a config field no
longer makes a PR high. The Haut table only names an added call or a
change to what an existing call sends; the script was stricter.

Calibration replayed on #14-#161: same level for every PR.

Refs #143

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:26:55 -04:00
le king fu
074ee339b2 chore(review): check pattern classes and read multi-line fetch calls
review-levels.py --check now sorts each row of the Haut table by its
Condition column (always high when it starts with "toujours", conditional
otherwise) and compares each class with the script: a pattern that moves
from always to a condition on one side only fails the check.

adds_network_call reads each hunk with its context lines, on the new and
the old side: a fetch( split over two lines counts when either line is
changed, the neighbour being changed or context and not matching alone.

Calibration replayed on #14-#138: same level for every PR. Recorded in
REVIEW.md.

Fixes #143

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 17:46:45 -04:00