Skip to content

P1B: Refactor (packages/app/src/context/file/path.ts:58): Deeply nested control flow (level = 5) #13

Description

@RobbyTato

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()

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions