meaningful() now depends on the file extension: in .rs, .ts, .tsx and .js
only a line that starts with // is a comment (// @ts- and /// <reference
stay code, and so do #[ and #!); in .toml, .yml and .sh a # line, except a
#! shebang; nothing in .json, .md or any other file. The old rule took any
# or // line of any file for a comment, so an attribute added to lib.rs
came out normal.
A lock origin is judged on its canonical form instead of its host: a
Cargo source other than the crates.io index, or an npm resolved other than
https://registry.npmjs.org/<name>/-/<short name>-<version>.tgz for the key
and version that package-lock.json gives at the PR head (read from the
API only when the diff adds a resolved line). A tarball of another package
on registry.npmjs.org, or another index on github.com, used to pass.
CONSENT_FILES adds the Feedback Hub consent (LogViewerCard.tsx,
FeedbackConsentDialog.tsx), and a fetchPrice( added outside
PriceFetchControl.tsx and the tests is high. is_test() replaces the
substring match on "test", which also skipped DownloadLatestButton.tsx.
PROBES take the hunks of a synthetic diff: one probe per "toujours"
pattern that no PR of #344-#452 exercises, an attribute and a comment
added to lib.rs, both lock origins and a canonical bump, both new consent
files, a new fetchPrice caller and a test that calls it. A lock probe's
hunk covers the whole file, its post-image being the lock at the head.
The docstring lists what the script does not model, and says that a PR's
level is read in REVIEW.md, never in its output.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>