P1B: Refactor (packages/codemode/src/openapi/runtime.ts:155): Function with high complexity (count = 44): applyCredentials
Open
@emre0gencer is already working on this.
Since Sep 6, 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/codemode/src/openapi/runtime.ts
Function(s)/scope targeted
applyCredentials
Relevant Qlty output
packages/codemode/src/openapi/runtime.ts
54 Function with many returns (count = 7): buildRequest
155 Function with many returns (count = 8): applyCredentials
251 Function with many returns (count = 8): serializeQuery
288 Function with many returns (count = 7): readResponseBody
1 High total complexity (count = 244)
11 Function with high complexity (count = 30): invoke
54 Function with high complexity (count = 56): buildRequest
116 Function with high complexity (count = 24): resolveAuth
155 Function with high complexity (count = 44): applyCredentials
200 Function with high complexity (count = 18): buildUrl
251 Function with high complexity (count = 42): serializeQuery
288 Function with high complexity (count = 20): readResponseBody
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.