mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1024] check_no_game_data: reject invalid explicit paths (CHECK-NO-GAME-DATA-EXPLICIT-PATHS) #1061
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1061
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1024
Author: @djrolfes
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:djrolfes/check-game-data-explicit-paths📝 Commits (1)
4895588check_no_game_data: refuse invalid explicitly named inputs📊 Changes
2 files changed (+99 additions, -9 deletions)
View changed files
📝
scripts/check_no_game_data.py(+15 -5)📝
tests/test_check_no_game_data.py(+84 -4)📄 Description
Claimed: CHECK-NO-GAME-DATA-EXPLICIT-PATHS (coordination).
Depends on: #922 (Git-enumeration error handling, now retained from main).
What and why
An explicitly named missing file or directory must not report a successful safety scan that checked nothing:
lstatexplicit inputs; reject missing, inaccessible and non-regular entries.git_errordiagnostics.Only the scanner and its synthetic tests change.
Tested rebase
Head
4895588a9, based on main490f5b9ec. Original reviewed headc26b99baeis preserved.git diff --check: passed.Linux / Python standard library; no GPU or game files. Native Windows not tested. FIFO/newline cases are platform-guarded; symlink tests skip if creation is unavailable.
The existing approval applies to the original head; reviewers may reassess this rebase. Hosted label checks are not full CI evidence.
AI-assisted: yes. No game content, keys or decryption.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.