CLI-1079 Harden change-set path handling - #797
Conversation
✅ Deploy Preview for sonarqube-cli canceled.
|
Code Review ✅ Approved 5 resolved / 5 findingsHardens change-set path handling by canonicalizing paths once and filtering out files that resolve outside the repository using ✅ 5 resolved✅ Quality: Out-of-repo change-set files vanish with no diagnostic
✅ Quality: New test has no positive control, passes if all files drop
✅ Performance: repoRoot re-canonicalized with a realpath syscall per file
✅ Bug: New symlink test asserts uncanonicalized path, fails on macOS
✅ Quality: outside-repository paths bypass POSIX normalization in reports
Implementation Status ✅ 2 of 2 objectives covered✅ CLI-1079 - 2 of 2 objectives coveredThis PR validates change-set inputs against the repository boundary before file inspection and adds regression coverage for paths resolving outside the repository. ✅ 2 covered here
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Summary by Gitar
toRelativePosixPathinsqaa-changeset.tsThis will update automatically on new commits.