P1B: Refactor (packages/app/src/context/file/path.ts:58): Deeply nested control flow (level = 5)
Open
@chenalex1 is already working on this.
Since Aug 28, 2026.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Description
Uniqueness check
- I have searched open issues and confirmed this file + smell is not already taken.
Full path to the Typescript file
packages/app/src/context/file/path.ts
Function(s)/scope targeted
unquoteGitPath(input: string) -> const escaped = ....
Relevant Qlty output
packages/app/src/context/file/path.ts
104 Function with many returns (count = 6): createPathHelpers
58 Deeply nested control flow (level = 5)
1 High total complexity (count = 80)
19 Function with high complexity (count = 54): unquoteGitPath
25 Found 46 lines of identical code in 2 locations (mass = 222)
also found at packages/opencode/src/session/summary.ts
specifically, line 58.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.