Watch
0
0
Fork
You've already forked hyperhive
0

review-classifier: check that a commit message's claimed changes are in the diff

message-claims-match-diff is the reverse of one-purpose: a README, doc
page, test or rename the message names must be in the diff. The rules
file then holds the ten-rule cap, so the new-rule merge test appends to
the file minus its last entry and no longer depends on how many rules the
file holds.
This commit is contained in:
argus 2026-11-01 12:05:01 +01:00 • committed by mara
commit 7aa8441aa1

View file

@ -82,3 +82,12 @@ classifications:
does, and nothing unrelated is bundled in.
polarity: positive
threshold: 65
- name: message-claims-match-diff
description: >-
Everything a commit message says it changes in a file is in the diff:
a doc page, a README, a test, a rename or a removal that it names.
This is the reverse of one-purpose, which checks that the diff has
nothing the messages do not mention. A commit message that names no
such change makes the question not applicable.
polarity: positive
threshold: 65