Skip to content

P1B: Refactor (packages/ui/src/v2/components/badge-v2.tsx:8): Found 16 lines of similar code in 3 locations #99

Description

@plopopo

Uniqueness check

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

Full path to the Typescript file

packages/ui/src/v2/components/badge-v2.tsx

Function(s)/scope targeted

Tag(props: TagProps)

Relevant Qlty output

node ➜ /workspaces/opencode (main) $ qlty smells --no-snippets packages/ui/src/v2/components/badge-v2.tsx
     [0/3] 🔍  Analyzing 1 path... 0.01s
     [1/3] 👀  Checking structure of 1 files...  0.73s
     [2/3] 🤔  Looking for duplication across 1 files...  6.79s
     [3/3] ✨  Reporting...  

packages/ui/src/v2/components/badge-v2.tsx
   8  Found 16 lines of similar code in 3 locations (mass = 74)
        also found at packages/ui/src/components/tag.tsx
        also found at packages/ui/src/components/dock-surface.tsx

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