Repository navigation
Do not report the Unicode data files licence name as a tracker key - #19
Conversation
cf2dfd9 to
570ae63
Compare
Claude review: approveSummaryThe change adds I followed both regexes by hand for each test line:
The new comment gives a reason for the exception, not a recorded state, so it is fine. The statement that "the licence case fails without the change" is in the commit message, which is the right place for it. Findings
What I checked and what I didn'tChecked:
Not checked:
DeclinedNone. full review of |
Claude review: approveSummaryThe change adds Since the last review, the branch was rewritten into one commit. The only change to the content is that the fixture key I followed both regexes by hand against the scan loop at
The new comment gives a reason (the SPDX name must be spelled exactly), not a recorded state. The note that "the licence case fails without the change" is in the commit message, which is the right place for it. Findings
What I checked and what I didn'tChecked:
Not checked:
DeclinedNone. No replies declined any earlier finding. full review of |
Unicode-DFS-2016 is the SPDX name of the licence Unicode's data files are under, and a Debian copyright file for a binary that links crates carrying Unicode tables must name it exactly. Its DFS-2016 has a tracker key's shape, so the check failed every pull request touching such a file. A match cannot see what comes before it, so adding DFS-\d+ to the list of external standards would also have let through every key of a project whose prefix is DFS. The check instead reads the text just before the match, and lets it through only after "Unicode-". New tests load the shipped script and check that the licence name and three of the existing exceptions are not reported, and that a key - DFS-2016 itself, alone or after a word ending in Unicode - still is. The keys are assembled at run time, so the file holds none for the check to find. The two licence cases fail without the change. The script's loader moves to conftest.py, shared with the Slack tests. Signed-off-by: Gavin Lucas <Gavin@L337.org>
0e67a22 to
4d94630
Compare
Claude review: approveResolved
Still open
DeclinedNone. New
I found no recorded-state claims in the new or edited comments. They state rules and reasons. Checked:
Not checked: I could not run pytest, because the command was not approved. The results above come from reading the code and tracing the regexes by hand. delta review of |
|
On the review of 570ae63, everything is in 4d94630:
All 89 tests pass locally. With the checker change stashed, the two licence cases fail and the other five pass. |
Claude review: approveThis is a full review of Findings
Recorded state: none of the new or edited comments and docstrings make recorded-state claims. They state rules and reasons: why Checked:
Not checked: I could not run pytest or a Python snippet, because neither command was approved. Everything above comes from reading the code and tracing the regexes by hand. DeclinedNone. full review of |
Moving the loader to conftest.py left an unused importlib import and a one-line wrapper around it. Signed-off-by: Gavin Lucas <Gavin@L337.org>
Claude review: approveClaude review: approveThis is a delta review of Resolved
Still open
Declined New delta review of |
Signed-off-by: Gavin Lucas <Gavin@L337.org>
Claude review: approveThis delta covers Resolved
Still open
Declined
New
delta review of |
The exception read only what came before a key, so Unicode-XY-22 would have been let through as well as Unicode-DFS-2016, though the comment said only that name was. It now matches the line up to the key's end against Unicode-DFS- and a number, and a test of a key after Unicode- fails without the change. Signed-off-by: Gavin Lucas <Gavin@L337.org>
|
On the full review of 4d94630:
Separately, ccc6291 sorts the tests' imports as ruff's default isort rule does. |
Claude review: approveResolved
Still open
Declined
New
delta review of |
The hygiene check reports
DFS-2016inUnicode-DFS-2016as a tracker key.Unicode-DFS-2016is the SPDX name of the licence Unicode's data files are under. A Debian copyright file must spell it exactly when the binary links crates that carry Unicode tables, as quaffed's now does through Ruff. So every pull request touching that file fails the check.What changes
DFS-\d+joinsNOT_A_TRACKER_KEY, the list of external standards the check does not report, with a comment saying what it is.tests/test_internal_references.pyloads the shipped script. It checks that the licence name and two existing exceptions are not reported, and thatXY-22andABC-1still are.Tested
Unicode-DFS-2016cases fail and the other three pass.Not done, or open
DFSwould now go unreported. The check matches only theDFS-2016part, so it cannot see theUnicode-in front.v2tag moves to include it.