fix(tools): ignore comments and literals in progress scanning #2181
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2181"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ArjenS-LA on 2026-10-09T10:46:10Z.
What
The library progress scanner counted commented-out or quoted
APS5_VABIdefinitions and treated braces inside literals as function boundaries. For example, a"}"string beforeNotImplemented_nid_no_patchmade a pending export appear implemented.import_audit.pyuses the same scanner.Mask C++ comments, ordinary/raw strings and character literals before scanning definitions, bodies and local stub wrappers. Handle escaped newlines and match stub calls by complete name with optional whitespace/comments before
(, avoiding matches in longer identifiers or diagnostic text. Add regression coverage in the existing progress tests.Tested
Windows, Python 3.14.3:
python -m unittest discover -s tools/tests: 27 tests passed, including progress reporting and import audits.python tools/check_conventions.py --base origin/mainandgit diff --check origin/main...HEADpass.Open-PR changed-file checks were refreshed before implementation, during validation and before publication; no other PR changes
tools/progress.pyortools/tests/test_progress.py. Related #1323 changes the separate conventions checker.No C++ runtime changes; no title or hardware testing.
Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T11:28:28Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)tools/progress.pyL75Imported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T13:09:43Z.
Windows run (Windows 11 Pro 25H2, Python 3.14),
13e6aa2echerry-picked ontomaind70b8998:tools/tests/test_progress.py: 6/6 pass.tools/progress.pyreset tomainand the new tests kept:FAILED (failures=15), so the tests catch what the change fixes.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:09:40Z.
Closing: the full-tree scan in your description gives the same per-library counts as main, so nothing is miscounted today. Please reopen if a source file on main gets counted wrong.
Pull request closed