Skip to content

P1B: Refactor (packages/core/src/integration.ts:230): Function with many returns (count = 7) #70

Description

@smalinka

Uniqueness check

  • I have searched open issues and confirmed this file + smell is not already taken.

Full path to the Typescript file

packages/core/src/integration.ts

Function(s)/scope targeted

(line 230) - the State.create draft factory, specifically the two findIndex comparator callbacks inside method.update and method.remove

Relevant Qlty output

packages/core/src/integration.ts
 230  Function with many returns (count = 7): draft
   1  High total complexity (count = 90)
 230  Function with high complexity (count = 39): draft

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