fix(tools): keep line comments from hiding export bodies in the conve… #2457
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2457"
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 SwazNaj7 on 2026-10-09T21:51:20Z.
What
Fix
function_bodyintools/check_conventions.py. The//comment pattern usedre.S, so.also matched newlines. A line comment inside an exported function therefore madefunction_bodyreturnNone, and the silent-stub and duplicate-export checks skipped that function. Line comments now stop at the end of the line.Adds
tools/tests/test_check_conventions.pycoveringfunction_body(own-line, trailing and block comments, comment markers inside strings, prototypes) and stub detection.Tested
Windows, Python 3,
tools/tests:python -m unittest test_check_conventionsfails 5 of 11 tests (the line-comment cases).python tools/check_conventions.py --base upstream/mainreports no findings on this branch.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T22:03:09Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Pull request closed