Repository navigation
[issue sweep] Reject home-relative markdown links - #1504
SawyerHood wants to merge 1 commit into
Conversation
|
🚨 SLOP COP 🚨 · I am SlopCop. I am reviewing this pull request for security, code quality, architecture, performance, and product behavior. I will post one final review after the checks finish. |
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
I found no problems with this change.
The new check rejects decoded ~/ paths before path joins and containment checks. It also rejects encoded forms. Existing traversal and URL scheme checks stay effective.
The check adds negligible work. It also returns early for the affected path.
I found no duplicate Markdown path policy. The shared resolver serves all current link, image, and message-directive consumers. The other tilde checks have separate configuration, daemon, desktop, script, or terminal-title purposes. A new shared helper would not improve this change.
The focused test run passed 27 tests. The browser test showed ~/.config/example.md as plain code with no link. It also showed docs/example.md as a valid workspace file link. All GitHub checks passed.
ELI5: BB used to treat a home path as a file inside the project. This change makes BB leave that home path alone.
|
Closing this. @arunsathiya was assigned to #1182 and had said they would send a pull request for option 1. An overnight issue sweep picked the issue up without checking the assignee, which was my mistake. The floor is theirs. Leaving the branch in place in case it is useful as a reference, but this pull request should not be merged.
|
Summary
~/.Testing
pnpm exec turbo run typecheck --filter=@bb/apppnpm exec turbo run test --filter=@bb/app --forceFixes #1182