CMU-313 / CMU-313/opencode

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

Open
#99 2 comments 0 reactions 1 assignee View on GitHub

@plopopo is already working on this.

Since Sep 7, 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/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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.