P1B: Refactor (packages/web/src/components/Share.tsx:121): Function with high complexity (count = 21): onmessage
Open
@afeies is already working on this.
Since Sep 3, 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/web/src/components/Share.tsx
Function(s)/scope targeted
onmessage()
Relevant Qlty output
[0/3] 🔍 Analyzing 1 path... 0.01s
[1/3] 👀 Checking structure of 1 files... 1.46s
[2/3] 🤔 Looking for duplication across 1 files... 5.53s
[3/3] ✨ Reporting...
packages/web/src/components/Share.tsx
24 Function with many returns (count = 6): getStatusText
41 Function with many returns (count = 8): Share
1 High total complexity (count = 170)
41 Function with high complexity (count = 136): Share
101 Function with high complexity (count = 31): setupWebSocket
121 Function with high complexity (count = 21): onmessage
503 Function with high complexity (count = 32): fromV1
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.