Public report of usebruno/bruno, published 13 November 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.3). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 13 November 2026, 19:26 UTC · Survey ID cd_9b0f12dec1f84f8b85713ff28ed69948

usebruno/bruno

Measured 13 November 2026, 19:22 UTC, at code version 09625f6

Supply-chain provenance & signing is not measured: Supply-chain provenance is not scored (this pipeline releases no artifact), but its build steps or GitHub Actions workflows have integrity defects, or nothing watches its dependency set for published advisories.

CAI score 41out of 100 At risk Up 2 since the last survey

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A large codebase: 263,166 lines of product code in 17 projects, tests not counted · Estimated rebuild effort: about 2.7 person-years · Weakest lens: Production Readiness, 31

Findings by how serious they are

113 critical 2122 serious 619 minor

7 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
13 November 2026, 19:22 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that implements it, and today the Canine Code Analyzer is the only one that does.

A critical security finding is open, such as a library with a known critical vulnerability or a password or key found in the code. The score itself is unchanged, but its band shows At risk until the finding is fixed. See the Security and Compliance lens.

The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

79of 79 dimensions measured by tools.
2706of 2854 findings point to an exact file and line, so you can open each one in the code. The other 148 concern the repository as a whole, such as missing documentation.
79dimensions across 7 lenses, read from 263,166 lines of product code in 17 projects.
Chapters

Executive summary

usebruno/bruno is rated At risk because critical security findings are open, most of them in the build pipeline. Its score is held back in part because it has uses of packages that aren't listed. It scores 41 out of 100, which the At risk rating leaves unchanged.

Production Readiness, at 31, is the weakest lens and counts most in the score. The best first step is replacing the nine deprecated dependencies, worth about 7 points. Tidying the declared packages would lift Production Readiness itself, worth about 5 points. Raising Production Readiness to 70 would lift the score to about 49.

Forty-two pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Seven places in the code run text as code, which an attacker could use, and six known security holes in the packages the code depends on can be used by attackers. Pinning each tool to an exact version, replacing text run as code with direct calls and updating the vulnerable packages would close these risks. Hashing passwords with a password-hashing function such as Argon2, bcrypt or PBKDF2 would fix the five places where passwords are scrambled with a fast general-purpose hash, and fixing the weaknesses the scanner points to would deal with the five security weaknesses in the code. The 22 uses of packages that aren't listed need adding to the project's list of dependencies.

The product code is 263,166 lines, about €400,000 to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Production Readiness 31 · counts for 46%Security and Compliance 41 · counts for 25%Code Health 48 · counts for 14%Accessibility 55 · counts for 8%Performance 69 · counts for 4%Architecture 69 · counts for 2%Maturity 76 · counts for 1%

If Production Readiness rose from 31 to 70, the lowest score rated Strong, the score would rise from 41 to about 49.

Code composition: what the lines of code are
Product code 56%Tests 44%
New since the last survey: 231 findings

These 231 critical or serious findings weren't in the previous survey, on 24 October 2026. The first 100 are listed here, and the findings file in the download package lists them all.

  • Cyclomatic Complexity · handler (cyclomatic 136) packages/bruno-cli/src/commands/run.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 81) packages/bruno-app/src/components/CodeMirrorSearch/index.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 75) packages/bruno-app/src/ui/MenuDropdown/index.js
  • Cyclomatic Complexity · actions.switchWorkspace.<returned closure> (cyclomatic 47) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js
  • Cyclomatic Complexity · actions.handleMultipleCollectionItemsDrop.<returned closure> (cyclomatic 42) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cyclomatic Complexity · handleMultipleCollectionItemsDrop (cyclomatic 42) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 42) packages/bruno-electron/src/index.js
  • Cyclomatic Complexity · getParameterEntries (cyclomatic 37) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cyclomatic Complexity · OAuth1 (cyclomatic 34) packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js
  • Cyclomatic Complexity · index.SetAsVariablePopover (cyclomatic 32) packages/bruno-app/src/components/SetAsVariablePopover/index.js
  • Cyclomatic Complexity · index.TagPicker (cyclomatic 30) packages/bruno-app/src/components/TagPicker/index.jsx
  • Cyclomatic Complexity · actions.updateVariableInScope.<returned closure> (cyclomatic 29) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cyclomatic Complexity · schema-composition.mergeSchemas (cyclomatic 29) packages/bruno-converters/src/openapi/schema-composition.js
  • Cyclomatic Complexity · openapi-sync.mergeFieldListPreserving (cyclomatic 29) packages/bruno-electron/src/ipc/openapi-sync.js
  • Cyclomatic Complexity · setupAiAutocomplete (cyclomatic 29) packages/bruno-app/src/utils/codemirror/aiGhostText.js
  • Cyclomatic Complexity · openapi-to-bruno.buildCollectionAuth (cyclomatic 27) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cyclomatic Complexity · openapi-to-bruno.parseOpenApiCollection (cyclomatic 24) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cyclomatic Complexity · index.SensitiveWarningPopover (cyclomatic 22) packages/bruno-app/src/components/SensitiveFieldWarning/SensitiveWarningPopover/index.js
  • Cyclomatic Complexity · chat.sendAiMessage.<returned closure> (cyclomatic 22) packages/bruno-app/src/providers/ReduxStore/slices/chat.js
  • Cyclomatic Complexity · sendAiMessage (cyclomatic 22) packages/bruno-app/src/providers/ReduxStore/slices/chat.js
  • Cyclomatic Complexity · mergeScriptVarsIntoEnvList (cyclomatic 21) packages/bruno-cli/src/utils/persist-variables.js
  • Cyclomatic Complexity · openapi-sync.mergeJsonValues (cyclomatic 19) packages/bruno-electron/src/ipc/openapi-sync.js
  • Cyclomatic Complexity · schema-composition.conflicts (cyclomatic 18) packages/bruno-converters/src/openapi/schema-composition.js
  • Cyclomatic Complexity · index.normalizeRequestItem (cyclomatic 18) packages/bruno-io/src/writeCollection/index.ts
  • Cyclomatic Complexity · index.EdgeGridAuth (cyclomatic 17) packages/bruno-app/src/components/RequestPane/Auth/EdgeGridAuth/index.tsx
  • Cyclomatic Complexity · OAuth2Implicit (cyclomatic 17) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js
  • Cyclomatic Complexity · index.EdgeGridAuth (cyclomatic 16) packages/bruno-app/src/components/CollectionSettings/Auth/EdgeGridAuth/index.tsx
  • Cyclomatic Complexity · actions.newHttpRequest.<returned closure> (cyclomatic 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cyclomatic Complexity · sensitive-fields.collectSensitiveFieldValues (cyclomatic 16) packages/bruno-app/src/utils/sensitive-fields.js
  • Cyclomatic Complexity · schema-composition.applyNot (cyclomatic 16) packages/bruno-converters/src/openapi/schema-composition.js
  • Cyclomatic Complexity · swagger2-to-bruno.parseSwagger2Collection (cyclomatic 16) packages/bruno-converters/src/openapi/swagger2-to-bruno.js
  • Cognitive Complexity · handler (cognitive 213) packages/bruno-cli/src/commands/run.js
  • Cognitive Complexity · RequestTabPanel (cognitive 201) packages/bruno-app/src/components/RequestTabPanel/index.js
  • Cognitive Complexity · (anonymous) (cognitive 84) packages/bruno-app/src/ui/MenuDropdown/index.js
  • Cognitive Complexity · VisualDiffBody.VisualDiffBody (cognitive 81) packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffBody.js
  • Cognitive Complexity · (anonymous) (cognitive 79) packages/bruno-app/src/components/CodeMirrorSearch/index.js
  • Cognitive Complexity · actions.handleMultipleCollectionItemsDrop.<returned closure> (cognitive 56) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · handleMultipleCollectionItemsDrop (cognitive 56) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · (anonymous) (cognitive 50) packages/bruno-electron/src/index.js
  • Cognitive Complexity · actions.switchWorkspace.<returned closure> (cognitive 47) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js
  • Cognitive Complexity · actions.updateVariableInScope.<returned closure> (cognitive 35) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · openapi-to-bruno.buildCollectionAuth (cognitive 35) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cognitive Complexity · mergeSchemas (cognitive 35) packages/bruno-converters/src/openapi/schema-composition.js
  • Cognitive Complexity · OAuth1 (cognitive 33) packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js
  • Cognitive Complexity · openapi-sync.mergeJsonValues (cognitive 30) packages/bruno-electron/src/ipc/openapi-sync.js
  • Cognitive Complexity · index.TagPicker (cognitive 29) packages/bruno-app/src/components/TagPicker/index.jsx
  • Cognitive Complexity · openapi-to-bruno.parseOpenApiCollection (cognitive 26) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cognitive Complexity · mergeFieldListPreserving (cognitive 25) packages/bruno-electron/src/ipc/openapi-sync.js
  • Cognitive Complexity · index.AppView (cognitive 23) packages/bruno-app/src/components/AppView/index.js
  • Cognitive Complexity · applyNot (cognitive 23) packages/bruno-converters/src/openapi/schema-composition.js
  • Cognitive Complexity · mergeScriptVarsIntoEnvList (cognitive 23) packages/bruno-cli/src/utils/persist-variables.js
  • Cognitive Complexity · index.SensitiveWarningPopover (cognitive 22) packages/bruno-app/src/components/SensitiveFieldWarning/SensitiveWarningPopover/index.js
  • Cognitive Complexity · actions.newHttpRequest.<returned closure> (cognitive 22) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · chat.sendAiMessage.<returned closure> (cognitive 21) packages/bruno-app/src/providers/ReduxStore/slices/chat.js
  • Cognitive Complexity · actions.closeTabs.<returned closure> (cognitive 20) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · closeTabs (cognitive 20) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · FileTab.FileTab::handleMultipleFiles (cognitive 19) REDACTED
  • Cognitive Complexity · actions.sendRequest.<returned closure> (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · actions.pasteItem.<returned closure> (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · postman-script-report.countPmApiUsages::visit (cognitive 18) packages/bruno-converters/src/postman/postman-script-report.js
  • Cognitive Complexity · schema-composition.selectAlternative (cognitive 18) packages/bruno-converters/src/openapi/schema-composition.js
  • Cognitive Complexity · swagger2-to-bruno.parseSwagger2Collection (cognitive 18) packages/bruno-converters/src/openapi/swagger2-to-bruno.js
  • Cognitive Complexity · send-request.createSendRequest.<returned closure> (cognitive 18) packages/bruno-requests/src/scripting/send-request.ts
  • Cognitive Complexity · OAuth2PasswordCredentials (cognitive 18) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js
  • Cognitive Complexity · OAuth2ClientCredentials (cognitive 18) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js
  • Cognitive Complexity · index.EdgeGridAuth (cognitive 17) packages/bruno-app/src/components/RequestPane/Auth/EdgeGridAuth/index.tsx
  • Cognitive Complexity · index.useTabsOverflow.calculate (cognitive 17) packages/bruno-app/src/components/Tabs/useTabsOverflow/index.js
  • Cognitive Complexity · index.normalizeRequestItem (cognitive 17) packages/bruno-io/src/writeCollection/index.ts
  • Cognitive Complexity · HeaderList.assimilate (cognitive 17) packages/bruno-js/src/header-list.js
  • Cognitive Complexity · actions.openCollectionEvent.<returned closure> (cognitive 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · extractServerVars (cognitive 16) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cognitive Complexity · OAuth2Implicit (cognitive 16) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js
  • God Classes · FunctionTooLong: index.TagPicker packages/bruno-app/src/components/TagPicker/index.jsx
  • God Classes · FunctionTooLong: actions.switchWorkspace.<returned closure> packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js
  • God Classes · FileTooLong: openapi/openapi-common.js packages/bruno-converters/src/openapi/openapi-common.js
  • God Classes · FunctionTooLong: index.SensitiveWarningPopover packages/bruno-app/src/components/SensitiveFieldWarning/SensitiveWarningPopover/index.js
  • God Classes · FileTooLong: mock-server/mock-server.js packages/bruno-electron/src/app/mock-server/mock-server.js
  • Test Quality · Skipped test: (unnamed test) tests/set-as-variable/set-as-variable.spec.ts
  • Test Quality · No assertions: does not offer the menu on a WebSocket request URL tests/set-as-variable/set-as-variable.spec.ts
  • Test Quality · No assertions: does not offer the menu in a gRPC bulk-edit box, which passes no request of its own tests/set-as-variable/set-as-variable.spec.ts
  • Test Quality · No assertions: does not offer the menu in the GraphQL query editor tests/set-as-variable/set-as-variable.spec.ts
  • Test Quality · No assertions: does not offer the menu in the Settings tags input tests/set-as-variable/set-as-variable.spec.ts
  • Test Quality · No assertions: app runner passes every request tests/scripting/crlf-line-comment/crlf-line-comment.spec.ts
  • Test Quality · No assertions: Client secret cannot be edited tests/auth/inherited-auth/inherited-auth-view-actions.spec.ts
  • Dependency Hygiene · Deprecated: rimraf packages/bruno-io/package.json
  • License Compliance · Banned license: ua-parser-js REDACTED
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-electron/src/ipc/openapi-sync.js packages/bruno-electron/src/ipc/openapi-sync.js
  • Churn × Complexity Hotspots · Hotspot: REDACTED REDACTED
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/OpenAPISyncTab/OverviewSection/index.js packages/bruno-app/src/components/OpenAPISyncTab/OverviewSection/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js
  • Churn × Complexity Hotspots · Hotspot: REDACTED REDACTED
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-js/src/bru.js packages/bruno-js/src/bru.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/CollectionSettings/ProxySettings/index.js packages/bruno-app/src/components/CollectionSettings/ProxySettings/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/Sidebar/ApiSpecs/ApiSpecItem/index.js packages/bruno-app/src/components/Sidebar/ApiSpecs/ApiSpecItem/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/ui/ResponsiveTabs/index.js packages/bruno-app/src/ui/ResponsiveTabs/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/SetAsVariablePopover/index.js packages/bruno-app/src/components/SetAsVariablePopover/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/CollectionSettings/Auth/EdgeGridAuth/index.tsx packages/bruno-app/src/components/CollectionSettings/Auth/EdgeGridAuth/index.tsx
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/TagPicker/index.jsx packages/bruno-app/src/components/TagPicker/index.jsx
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/ShareCollection/index.js packages/bruno-app/src/components/ShareCollection/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/providers/SetAsVariable/index.js packages/bruno-app/src/providers/SetAsVariable/index.js

We compare every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.

Fixed since the last survey: 2374 findings

These 2374 critical or serious findings were in the previous survey, on 24 October 2026, and are gone from this one. The first 100 are listed here.

  • Cyclomatic Complexity · run.handler (cyclomatic 132) packages/bruno-cli/src/commands/run.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 84) packages/bruno-app/src/components/CodeMirrorSearch/index.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 69) packages/bruno-app/src/ui/MenuDropdown/index.js
  • Cyclomatic Complexity · actions.handleMultipleCollectionItemsDrop (cyclomatic 42) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 40) packages/bruno-electron/src/index.js
  • Cyclomatic Complexity · SetAsVariablePopover (cyclomatic 39) packages/bruno-app/src/components/SetAsVariablePopover/index.js
  • Cyclomatic Complexity · openapi-to-bruno.getParameterEntries (cyclomatic 36) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cyclomatic Complexity · OAuth1 (cyclomatic 35) packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js
  • Cyclomatic Complexity · index.DocsTagList (cyclomatic 30) packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/DocsTagList/index.jsx
  • Cyclomatic Complexity · aiGhostText.setupAiAutocomplete (cyclomatic 29) packages/bruno-app/src/utils/codemirror/aiGhostText.js
  • Cyclomatic Complexity · openapi-to-bruno.parseOpenApiCollection::buildCollectionAuth (cyclomatic 27) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cyclomatic Complexity · send-request.createSendRequest (cyclomatic 24) packages/bruno-requests/src/scripting/send-request.ts
  • Cyclomatic Complexity · index.ConnectionSettingsModal (cyclomatic 22) packages/bruno-app/src/components/OpenAPISyncTab/ConnectionSettingsModal/index.js
  • Cyclomatic Complexity · chat.sendAiMessage (cyclomatic 22) packages/bruno-app/src/providers/ReduxStore/slices/chat.js
  • Cyclomatic Complexity · persist-variables.mergeScriptVarsIntoEnvList (cyclomatic 21) packages/bruno-cli/src/utils/persist-variables.js
  • Cyclomatic Complexity · index.RunnerTags (cyclomatic 19) packages/bruno-app/src/components/RunnerResults/RunnerTags/index.jsx
  • Cyclomatic Complexity · openapi-common.getDefaultValueForSchema (cyclomatic 19) packages/bruno-converters/src/openapi/openapi-common.js
  • Cyclomatic Complexity · import.readOpenApiFile (cyclomatic 18) packages/bruno-cli/src/commands/import.js
  • Cyclomatic Complexity · index.normalizeRequestItem (cyclomatic 18) packages/bruno-filestore/src/writeCollectionToDisk/index.ts
  • Cyclomatic Complexity · useSearchBarHandle.useSearchBarHandle (cyclomatic 17) packages/bruno-app/src/components/CodeMirrorSearch/useSearchBarHandle.js
  • Cyclomatic Complexity · index.useOverflowCollapse (cyclomatic 16) packages/bruno-app/src/hooks/useOverflowCollapse/index.js
  • Cyclomatic Complexity · openapi-common.getExampleFromSchema (cyclomatic 16) packages/bruno-converters/src/openapi/openapi-common.js
  • Cognitive Complexity · handler (cognitive 208) packages/bruno-cli/src/commands/run.js
  • Cognitive Complexity · index.RequestTabPanel (cognitive 205) packages/bruno-app/src/components/RequestTabPanel/index.js
  • Cognitive Complexity · VisualDiffBody (cognitive 96) packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffBody.js
  • Cognitive Complexity · (anonymous) (cognitive 83) packages/bruno-app/src/components/CodeMirrorSearch/index.js
  • Cognitive Complexity · (anonymous) (cognitive 78) packages/bruno-app/src/ui/MenuDropdown/index.js
  • Cognitive Complexity · actions.handleMultipleCollectionItemsDrop (cognitive 56) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · (anonymous) (cognitive 46) packages/bruno-electron/src/index.js
  • Cognitive Complexity · FileTab.FileTab (cognitive 44) REDACTED
  • Cognitive Complexity · openapi-to-bruno.parseOpenApiCollection::buildCollectionAuth (cognitive 35) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Cognitive Complexity · OAuth1 (cognitive 34) packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js
  • Cognitive Complexity · index.DocsTagList (cognitive 29) packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/DocsTagList/index.jsx
  • Cognitive Complexity · index.ConnectionSettingsModal (cognitive 28) packages/bruno-app/src/components/OpenAPISyncTab/ConnectionSettingsModal/index.js
  • Cognitive Complexity · openapi-common.getDefaultValueForSchema (cognitive 28) packages/bruno-converters/src/openapi/openapi-common.js
  • Cognitive Complexity · send-request.createSendRequest (cognitive 28) packages/bruno-requests/src/scripting/send-request.ts
  • Cognitive Complexity · import.readOpenApiFile (cognitive 27) packages/bruno-cli/src/commands/import.js
  • Cognitive Complexity · index.RunnerTags (cognitive 24) packages/bruno-app/src/components/RunnerResults/RunnerTags/index.jsx
  • Cognitive Complexity · AppView (cognitive 24) packages/bruno-app/src/components/AppView/index.js
  • Cognitive Complexity · persist-variables.mergeScriptVarsIntoEnvList (cognitive 23) packages/bruno-cli/src/utils/persist-variables.js
  • Cognitive Complexity · openapi-common.getExampleFromSchema (cognitive 22) packages/bruno-converters/src/openapi/openapi-common.js
  • Cognitive Complexity · actions.closeTabs (cognitive 20) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Cognitive Complexity · import.readWSDLFile (cognitive 19) packages/bruno-cli/src/commands/import.js
  • Cognitive Complexity · useSearchBarHandle.useSearchBarHandle (cognitive 18) packages/bruno-app/src/components/CodeMirrorSearch/useSearchBarHandle.js
  • Cognitive Complexity · index.normalizeRequestItem (cognitive 17) packages/bruno-filestore/src/writeCollectionToDisk/index.ts
  • Cognitive Complexity · mergeJsonValues (cognitive 17) packages/bruno-electron/src/ipc/openapi-sync.js
  • Cognitive Complexity · remove (cognitive 17) packages/bruno-js/src/header-list.js
  • God Classes · FunctionTooLong: index.DocsTagList packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/DocsTagList/index.jsx
  • God Classes · FunctionTooLong: index.ConnectionSettingsModal packages/bruno-app/src/components/OpenAPISyncTab/ConnectionSettingsModal/index.js
  • God Classes · FunctionTooLong: actions.newHttpRequest packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • God Classes · FunctionTooLong: actions.updateVariableInScope packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • Code Coverage · Low coverage: packages/bruno-cli/src/utils/filesystem.js packages/bruno-cli/src/utils/filesystem.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/ipc/network/interpolate-string.js packages/bruno-electron/src/ipc/network/interpolate-string.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/ipc/network/ws-event-handlers.js packages/bruno-electron/src/ipc/network/ws-event-handlers.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/utils/proxy-util.js packages/bruno-electron/src/utils/proxy-util.js
  • Code Coverage · Low coverage: packages/bruno-js/src/sandbox/node-vm/console.js packages/bruno-js/src/sandbox/node-vm/console.js
  • Code Coverage · Low coverage: packages/bruno-js/src/sandbox/quickjs/shims/local-module.js packages/bruno-js/src/sandbox/quickjs/shims/local-module.js
  • Code Coverage · Low coverage: packages/bruno-js/src/sandbox/quickjs/shims/require.js packages/bruno-js/src/sandbox/quickjs/shims/require.js
  • Code Coverage · Low coverage: packages/bruno-js/src/sandbox/quickjs/shims/lib/uuid.js packages/bruno-js/src/sandbox/quickjs/shims/lib/uuid.js
  • Code Coverage · Low coverage: packages/bruno-js/src/sandbox/quickjs/utils/index.js packages/bruno-js/src/sandbox/quickjs/utils/index.js
  • Code Coverage · Low coverage: packages/bruno-cli/src/commands/import.js packages/bruno-cli/src/commands/import.js
  • Code Coverage · Low coverage: packages/bruno-cli/src/runner/interpolate-string.js packages/bruno-cli/src/runner/interpolate-string.js
  • Code Coverage · Low coverage: REDACTED REDACTED
  • Code Coverage · Low coverage: REDACTED REDACTED
  • Code Coverage · Low coverage: packages/bruno-cli/src/store/tokenStore.js packages/bruno-cli/src/store/tokenStore.js
  • Code Coverage · Low coverage: packages/bruno-cli/src/utils/bru.js packages/bruno-cli/src/utils/bru.js
  • Code Coverage · Low coverage: packages/bruno-cli/src/utils/form-data.js packages/bruno-cli/src/utils/form-data.js
  • Code Coverage · Low coverage: packages/bruno-cli/src/utils/proxy-util.js packages/bruno-cli/src/utils/proxy-util.js
  • Code Coverage · Low coverage: packages/bruno-cli/src/utils/sanitize-results.js packages/bruno-cli/src/utils/sanitize-results.js
  • Code Coverage · Low coverage: packages/bruno-common/src/runner/reports/html/template.ts packages/bruno-common/src/runner/reports/html/template.ts
  • Code Coverage · Low coverage: packages/bruno-common/src/runner/utils/index.ts packages/bruno-common/src/runner/utils/index.ts
  • Code Coverage · Low coverage: packages/bruno-common/src/utils/string.ts packages/bruno-common/src/utils/string.ts
  • Code Coverage · Low coverage: packages/bruno-common/src/utils/type-helpers.ts packages/bruno-common/src/utils/type-helpers.ts
  • Code Coverage · Low coverage: packages/bruno-converters/src/opencollection/common/assertions.ts packages/bruno-converters/src/opencollection/common/assertions.ts
  • Code Coverage · Low coverage: packages/bruno-converters/src/opencollection/common/auth.ts packages/bruno-converters/src/opencollection/common/auth.ts
  • Code Coverage · Low coverage: packages/bruno-converters/src/opencollection/common/body.ts packages/bruno-converters/src/opencollection/common/body.ts
  • Code Coverage · Low coverage: packages/bruno-converters/src/opencollection/common/params.ts packages/bruno-converters/src/opencollection/common/params.ts
  • Code Coverage · Low coverage: packages/bruno-electron/src/app/mock-server/mock-server-store.js packages/bruno-electron/src/app/mock-server/mock-server-store.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/app/mock-server/mock-server.js packages/bruno-electron/src/app/mock-server/mock-server.js
  • Code Coverage · Low coverage: REDACTED REDACTED
  • Code Coverage · Low coverage: packages/bruno-electron/src/store/cookies.js packages/bruno-electron/src/store/cookies.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/store/default-workspace.js packages/bruno-electron/src/store/default-workspace.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/utils/encryption.js packages/bruno-electron/src/utils/encryption.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/utils/filesystem.js packages/bruno-electron/src/utils/filesystem.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/utils/git.js packages/bruno-electron/src/utils/git.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/utils/workspace-config.js packages/bruno-electron/src/utils/workspace-config.js
  • Code Coverage · Low coverage: packages/bruno-electron/src/utils/workspace-lock.js packages/bruno-electron/src/utils/workspace-lock.js
  • Code Coverage · Low coverage: packages/bruno-filestore/src/index.ts packages/bruno-filestore/src/index.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/common/actions.ts packages/bruno-filestore/src/formats/yml/common/actions.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/common/app.ts packages/bruno-filestore/src/formats/yml/common/app.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/common/assertions.ts packages/bruno-filestore/src/formats/yml/common/assertions.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/common/auth.ts packages/bruno-filestore/src/formats/yml/common/auth.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/items/parseApp.ts packages/bruno-filestore/src/formats/yml/items/parseApp.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/items/parseScript.ts packages/bruno-filestore/src/formats/yml/items/parseScript.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/items/stringifyApp.ts packages/bruno-filestore/src/formats/yml/items/stringifyApp.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/formats/yml/items/stringifyScript.ts packages/bruno-filestore/src/formats/yml/items/stringifyScript.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/workers/index.ts packages/bruno-filestore/src/workers/index.ts
  • Code Coverage · Low coverage: packages/bruno-filestore/src/workers/WorkerQueue/index.ts packages/bruno-filestore/src/workers/WorkerQueue/index.ts
  • Code Coverage · Low coverage: packages/bruno-js/src/bruno-response.js packages/bruno-js/src/bruno-response.js
Rebuild cost: about €400,000 · Estimate
Cost to rebuild€130,000 to €670,000, for 2,214 to 7,024 hours of work, about 2.7 person-years for 1 to 6 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 41. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeLarge: 263,166 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Resolve the 9 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (9).
Raises the score by about 7 points · Low effort · Dependency Hygiene
2
Resolve the 2 No assertions (empty test) finding(s) in Test Quality — start with utils-results.spec.js (2).
Raises the score by about 5 points · Low effort · Test Quality
3
Resolve the 1 Banned license finding(s) in License Compliance — start with REDACTED.
Raises the score by about 5 points · Low effort · License Compliance

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Files that change often carry extra risk · Combined risk
One file is changed often and is hard to read, which makes it the likeliest place for a mistake. It also has under half its code tested, or was written almost entirely by one person, so a mistake there is less likely to be caught, or only one person knows the code well enough to avoid it. A change to this file therefore carries more risk than the overall score suggests.
Based on: Churn × Complexity Hotspots (40 files) · Code Coverage (12 files under half tested) · Bus Factor (0 files written almost entirely by one person) · The files: folder.ts
What to do: Add tests to these files and have a second person review every change to them, starting with folder.ts.
Where the investment is most exposed · Value at risk
This code would cost about €400,000 to build again, about 2.7 person-years of work. Its weakest lens is Production Readiness, at 31 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Resolve the 9 Deprecated finding(s) in Dependency Hygiene. Of all the actions in this report, it raises the score most for the work it takes: about 7 points for low effort, because it clears the 9 Dependency Hygiene findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 4.7 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 8% to 19% on every change. The history of the code shows how much it changes: about 158,469 lines over the last 90 days, which is about 642,680 lines a year. At that pace, the extra work comes to an estimated 133.9 to 803.3 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

Architecture — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.

arch @usebruno/app app @usebruno/common common @usebruno/app->@usebruno/common @usebruno/graphql-docs graphql-docs @usebruno/app->@usebruno/graphql-docs @usebruno/schema schema @usebruno/app->@usebruno/schema @usebruno/cli cli @usebruno/cli->@usebruno/common @usebruno/converters converters @usebruno/cli->@usebruno/converters @usebruno/filestore filestore @usebruno/cli->@usebruno/filestore @usebruno/io io @usebruno/cli->@usebruno/io @usebruno/js js @usebruno/cli->@usebruno/js @usebruno/lang lang @usebruno/cli->@usebruno/lang @usebruno/requests requests @usebruno/cli->@usebruno/requests @usebruno/converters->@usebruno/common @usebruno/converters->@usebruno/schema @usebruno/docs docs @usebruno/filestore->@usebruno/common @usebruno/filestore->@usebruno/lang @usebruno/io->@usebruno/common @usebruno/io->@usebruno/filestore @usebruno/js->@usebruno/common @usebruno/query query @usebruno/js->@usebruno/query @usebruno/js->@usebruno/requests @usebruno/requests->@usebruno/common @usebruno/schema-types schema-types @usebruno/sqlite sqlite @usebruno/toml toml bruno bruno bruno->@usebruno/common bruno->@usebruno/converters bruno->@usebruno/filestore bruno->@usebruno/js bruno->@usebruno/lang bruno->@usebruno/requests bruno->@usebruno/schema bruno->@usebruno/sqlite

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

389 modules, with 55 dependencies between them. Every module uses only modules listed above it, so there are no loops.

The table shows the 40 modules with the most connections; 349 more are left out to keep it readable.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 bruno-app.src.components.CollectionSettings.Auth.EdgeGridAuth2 bruno-common.src.generate-code3 bruno-common.src.generate-code.har.edgegrid4 bruno-common.src.utils.datatype5 bruno-common.src.utils.url6 bruno-converters.src.opencollection.common.variables7 bruno-converters.src.opencollection.types8 bruno-filestore.src.formats.bru.utils.oauth2-additional-params9 bruno-filestore.src.formats.bru.utils.redact-large-text-blocks10 bruno-filestore.src.formats.yml.items.parseApp11 bruno-filestore.src.formats.yml.mockServerTypes12 bruno-filestore.src.types13 bruno-filestore.src.workers.WorkerQueue14 bruno-graphql-docs.src.components.DocExplorer15 bruno-js.src.readonly-property-list16 bruno-requests.src.auth17 bruno-requests.src.network.system-proxy.types18 bruno-schema-types.src.collection.folder19 bruno-schema-types.src.requests.grpc20 bruno-schema-types.src.requests.http21 bruno-schema-types.src.requests.websocket22 bruno-sqlite.src.node.statements23 bruno-common.src.generate-code.har24 bruno-common.src.utils25 bruno-converters.src.opencollection.common.datatype26 bruno-converters.src.opencollection.items27 bruno-filestore.src.formats.bru.utils28 bruno-filestore.src.formats.yml.common.datatype29 bruno-filestore.src.formats.yml.items30 bruno-filestore.src.formats.yml.parseCollection31 bruno-filestore.src.workers32 bruno-io.src.types33 bruno-sqlite.src.node.files34 bruno-converters.src.opencollection35 bruno-converters.src.opencollection.common36 bruno-filestore37 bruno-filestore.src.formats.yml38 bruno-filestore.src.formats.yml.common39 bruno-io.src40 bruno-sqlite.src.node
1 bruno-app.src.components.CollectionSettings.Auth.EdgeGridAuth
2 bruno-common.src.generate-code
3 bruno-common.src.generate-code.har.edgegrid
4 bruno-common.src.utils.datatype
5 bruno-common.src.utils.url
6 bruno-converters.src.opencollection.common.variables
7 bruno-converters.src.opencollection.types
8 bruno-filestore.src.formats.bru.utils.oauth2-additional-params
9 bruno-filestore.src.formats.bru.utils.redact-large-text-blocks
10 bruno-filestore.src.formats.yml.items.parseApp
11 bruno-filestore.src.formats.yml.mockServerTypes
12 bruno-filestore.src.types
13 bruno-filestore.src.workers.WorkerQueue
14 bruno-graphql-docs.src.components.DocExplorer
15 bruno-js.src.readonly-property-list
16 bruno-requests.src.auth
17 bruno-requests.src.network.system-proxy.types
18 bruno-schema-types.src.collection.folder
19 bruno-schema-types.src.requests.grpc
20 bruno-schema-types.src.requests.http
21 bruno-schema-types.src.requests.websocket
22 bruno-sqlite.src.node.statements
23 bruno-common.src.generate-code.har11
24 bruno-common.src.utils12
25 bruno-converters.src.opencollection.common.datatype1
26 bruno-converters.src.opencollection.items111
27 bruno-filestore.src.formats.bru.utils41
28 bruno-filestore.src.formats.yml.common.datatype1
29 bruno-filestore.src.formats.yml.items1111
30 bruno-filestore.src.formats.yml.parseCollection1
31 bruno-filestore.src.workers22
32 bruno-io.src.types1
33 bruno-sqlite.src.node.files1
34 bruno-converters.src.opencollection21
35 bruno-converters.src.opencollection.common11
36 bruno-filestore21
37 bruno-filestore.src.formats.yml621
38 bruno-filestore.src.formats.yml.common11
39 bruno-io.src11
40 bruno-sqlite.src.node11
Uses a module listed above itPart of a loopThe module itself
1 bruno-app.src.components.CollectionSettings.Auth.EdgeGridAuth2 bruno-common.src.generate-code3 bruno-common.src.generate-code.har.edgegrid4 bruno-common.src.utils.datatype5 bruno-common.src.utils.url6 bruno-converters.src.opencollection.common.variables7 bruno-converters.src.opencollection.types8 bruno-filestore.src.formats.bru.utils.oauth2-additional-params9 bruno-filestore.src.formats.bru.utils.redact-large-text-blocks10 bruno-filestore.src.formats.yml.items.parseApp11 bruno-filestore.src.formats.yml.mockServerTypes12 bruno-filestore.src.types13 bruno-filestore.src.workers.WorkerQueue14 bruno-graphql-docs.src.components.DocExplorer15 bruno-js.src.readonly-property-list16 bruno-requests.src.auth17 bruno-requests.src.network.system-proxy.types18 bruno-schema-types.src.collection.folder19 bruno-schema-types.src.requests.grpc20 bruno-schema-types.src.requests.http21 bruno-schema-types.src.requests.websocket22 bruno-sqlite.src.node.statements23 bruno-common.src.generate-code.har24 bruno-common.src.utils25 bruno-converters.src.opencollection.common.datatype26 bruno-converters.src.opencollection.items27 bruno-filestore.src.formats.bru.utils28 bruno-filestore.src.formats.yml.common.datatype29 bruno-filestore.src.formats.yml.items30 bruno-filestore.src.formats.yml.parseCollection31 bruno-filestore.src.workers32 bruno-io.src.types33 bruno-sqlite.src.node.files34 bruno-converters.src.opencollection35 bruno-converters.src.opencollection.common36 bruno-filestore37 bruno-filestore.src.formats.yml38 bruno-filestore.src.formats.yml.common39 bruno-io.src40 bruno-sqlite.src.nodebruno-app.src.components.CollectionSettings.Auth.EdgeGridAuth1bruno-common.src.generate-code2bruno-common.src.generate-code.har.edgegrid3bruno-common.src.utils.datatype4bruno-common.src.utils.url5bruno-converters.src.opencollection.common.variables6bruno-converters.src.opencollection.types7bruno-filestore.src.formats.bru.utils.oauth2-additional-params8bruno-filestore.src.formats.bru.utils.redact-large-text-blocks9bruno-filestore.src.formats.yml.items.parseApp10bruno-filestore.src.formats.yml.mockServerTypes11bruno-filestore.src.types12bruno-filestore.src.workers.WorkerQueue13bruno-graphql-docs.src.components.DocExplorer14bruno-js.src.readonly-property-list15bruno-requests.src.auth16bruno-requests.src.network.system-proxy.types17bruno-schema-types.src.collection.folder18bruno-schema-types.src.requests.grpc19bruno-schema-types.src.requests.http20bruno-schema-types.src.requests.websocket21bruno-sqlite.src.node.statements22bruno-common.src.generate-code.har23bruno-common.src.utils24bruno-converters.src.opencollection.common.datatype25bruno-converters.src.opencollection.items26bruno-filestore.src.formats.bru.utils27bruno-filestore.src.formats.yml.common.datatype28bruno-filestore.src.formats.yml.items29bruno-filestore.src.formats.yml.parseCollection30bruno-filestore.src.workers31bruno-io.src.types32bruno-sqlite.src.node.files33bruno-converters.src.opencollection34bruno-converters.src.opencollection.common35bruno-filestore36bruno-filestore.src.formats.yml37bruno-filestore.src.formats.yml.common38bruno-io.src39bruno-sqlite.src.node4011121111411111112211211121621111111+349 more modules (most-connected shown)

At a glance — Code Health · 48% · Weak · gated by D1, D2, R1 ·

At a glance — Architecture · 69% · Adequate · gated by AX8 ·

At a glance — Maturity · 76% · Strong ·

At a glance — Readiness · 31% · Weak · gated by R5, R8, P3, P7 ·

At a glance — Security · 41% · Weak · gated by D29, S1 ·

At a glance — Accessibility · 55% · Adequate · gated by AC4 ·

At a glance — Performance · 69% · Adequate ·

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A05:2025 — Injection138High / Critical
A03:2025 — Software Supply Chain Failures20High / Critical
A02:2025 — Security Misconfiguration2Medium
A08:2025 — Software or Data Integrity Failures1High / Critical

Roadmap

Top priorities: Resolve the 12 Outdated (npm) finding(s) in Dependency Hygiene — start with REDACTED (12); Resolve the 9 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (9); Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Resolve the 9 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (9).+6.5 ptsLowDependency Hygiene
Resolve the 2 No assertions (empty test) finding(s) in Test Quality — start with utils-results.spec.js (2).+4.6 ptsLowTest Quality
Resolve the 1 Banned license finding(s) in License Compliance — start with REDACTED.+4.6 ptsLowLicense Compliance
Resolve the 12 Outdated (npm) finding(s) in Dependency Hygiene — start with REDACTED (12).+7.4 ptsMediumDependency Hygiene
Resolve the 1 Malicious package finding(s) in Malicious Dependencies — start with REDACTED.+3.0 ptsLowMalicious Dependencies
Resolve the 3 One package at two majors across the workspace finding(s) in Dependency Hygiene.+2.8 ptsLowDependency Hygiene
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+4.8 ptsMediumDependency Hygiene
Stop accepting every TLS certificate: delete `rejectUnauthorized: false` / `NODE_TLS_REJECT_UNAUTHORIZED=0` so the chain, hostname and expiry are verified, and trust a self-signed or private server by passing its CA (`ca`, or `NODE_EXTRA_CA_CERTS`) — never by switching verification off.+4.0 ptsMediumWeb-Security Posture

File quality

Per-file score 0–10 — a quality signature. Of 625 files carrying findings, judged against the Production bar: 1% slop · 64% mixed · 35% near-clean.

FileScoreBandWorst signal
REDACTED0.0SlopLicense Compliance: Banned license: ua-parser-js
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.0SlopStatic Analysis (SAST): High: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
packages/bruno-js/tests/utils-results.spec.js4.1MixedTest Quality: No assertions (empty test): awaited directly
REDACTED4.2MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.2MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.6MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.8MixedDependency Vulnerabilities: Critical CVE: REDACTED
packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js4.9MixedChange Coupling: Boundary-crossing change coupling: REDACTED ↔ collectionBruToJson.js
REDACTED5.0MixedStatic Analysis (SAST): Medium: REDACTED

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 113

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 2122

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 619

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 7

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 79 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.

Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.

What we checked — 79 dimensions across the health lenses
D1D2D3D5D6D8D10D12D13D14D15D16D17D19D20D21D23D24D26D28D29D30D31D34D35D43D44AC2AC3AC4AC5AC6AX10AX3AX4AX6AX8C2GD1IC1M1M2M3M4P1P10P2P3P4P6P7PF1PF3R1R10R11R2R3R4R5R6R7R8R9S1X1X12X14X16X17X19X2X21X24X28X29X3X30X5

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 2706 of 2854 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Canine Code Analyzer duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic

Every finding is locatable in findings.md. Run 01a1d65c-4a84-70cd-a601-0ebc96382b99.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D8 Code Coverage — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 1069 test file(s) failed while being loaded here, so none of their cases ran (typically a native addon or generated module the package's install scripts build, which the analyzer's scripts-off install does not run). The 66 production file(s) those files import that read under half covered are unmeasured in this run, not untested, so their figures are left out of the per-file rows and the 77.6% rather than published as low coverage. You can widen what we reach: optional: commit the lcov report of a run where those test files load, and their modules are read from it.
  • D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability not included — the JavaScript/TypeScript suite (jest via `npm ci --ignore-scripts` in the repository root (2490 tests); jest via `npm ci --ignore-scripts` in packages/bruno-app/ (0 tests); jest via `npm ci --ignore-scripts` in packages/bruno-cli/ (409 tests); jest via `npm ci --ignore-scripts` in packages/bruno-common/ (748 tests); jest via `npm ci --ignore-scripts` in packages/bruno-converters/ (2075 tests); jest via `npm ci --ignore-scripts` in packages/bruno-electron/ (762 tests); jest via `npm ci --ignore-scripts` in packages/bruno-filestore/ (278 tests); jest via `npm ci --ignore-scripts` in packages/bruno-graphql-docs/ (2 tests); jest via `npm ci --ignore-scripts` in packages/bruno-io/ (31 tests); jest via `npm ci --ignore-scripts` in packages/bruno-js/ (719 tests); jest via `npm ci --ignore-scripts` in packages/bruno-lang/ (503 tests); jest via `npm ci --ignore-scripts` in packages/bruno-query/ (20 tests)) did not finish re-running within its budget: too large to re-run within its budget.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22's deterministic call-shape rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
  • D23 Boundary Type-Coupling — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind measured 0/40 valid on a seeded held-out sample of its rows on 98 C# repositories (docs/plans/deterministic-engine/adjudication/P5c-D23-units.md, "Version 1 ON MAIN"): the noise rows were dependencies on layer folders, shared cores and grouping folders read as contexts. By the pre-registered fallback (PREREGISTRATION v37) it publishes no row until version 4 passes its gate. The candidates are counted here, not reported as findings, and the score does not include them.
  • D31 IaC & Container Security — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Checkov ran but its report could not be read (checkov produced no output — not a clean result). Every misconfiguration only checkov reports — most of its Terraform, CloudFormation, Bicep and Ansible policies — is absent from this card, so its absence here is not evidence those resources are configured correctly.
  • D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `packages/bruno-common/src/api-docs/index.ts`, `packages/bruno-converters/src/openapi/openapi-common.js` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • AX1 Captive dependencies — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository defines its own container in packages/bruno-js/src/readonly-property-list.js, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • AXB2 Runtime readiness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. The dev server exited, and its output does not match a cause we recognise. (rule: unrecognised-exit). The renderer reported: the dev server (`npm run dev`) exited before it served a page. Likely cause (not identified): the dev server exited, and its output does not match a cause we recognise. Last output: "at TracingChannel.traceSync (node:diagnostics_channel:322:14) / at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) / at Module.require (node:internal/modules/cjs/loader:1335:12) / at require (node:internal/modules/helpers:136:16) / Node.js v22.13.0 / npm error Lifecycle script `dev` failed with error: / npm error code 1 / npm error path <repo>/packages/bruno-electron / npm error workspace bruno@2.0.0 / npm error location <repo>/packages/bruno-electron / npm error command failed / npm error command sh -c electron . / ℹ Electron process exited with code 1" No runtime evidence was gathered.
  • AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DevServer (dev). the dev server (`npm run dev`) exited before it served a page. Likely cause (not identified): the dev server exited, and its output does not match a cause we recognise. Last output: "at TracingChannel.traceSync (node:diagnostics_channel:322:14) / at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) / at Module.require (node:internal/modules/cjs/loader:1335:12) / at require (node:internal/modules/helpers:136:16) / Node.js v22.13.0 / npm error Lifecycle script `dev` failed with error: / npm error code 1 / npm error path <repo>/packages/bruno-electron / npm error workspace bruno@2.0.0 / npm error location <repo>/packages/bruno-electron / npm error command failed / npm error command sh -c electron . / ℹ Electron process exited with code 1" No runtime evidence was gathered.
  • IC1 Incompleteness & stubs — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 27 further occurrence(s) are not listed individually; the score already reflects all 67.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 reads a prose claim (a path, a setting, a variable, a route, a version, a project, an install, a bare project name in a command) only in text identified as English: the cues that tell a claim from an absence, the past, a plan or an example are an English lexicon, and on other text they would let a false claim through. Links, image targets, fenced commands with an explicit path or a package-manager script, and env-fence variables are checked in every language. 'und' is text the identifier could not name (too short, mixed script, no function words).
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • PF3 Async & latency hygiene — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 17 further occurrence(s) are not listed individually; the score already reflects all 57.
  • R10 Code Duplication — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 1026 further occurrence(s) are not listed individually; the score already reflects all 1066.
  • R2 Cyclomatic Complexity — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 608 further occurrence(s) are not listed individually; the score already reflects all 648.
  • R3 Large Files — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 89 further occurrence(s) are not listed individually; the score already reflects all 129.
  • R4 Test Coverage — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 758 further occurrence(s) are not listed individually; the score already reflects all 798.
  • R7 Dead Code — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 168 further occurrence(s) are not listed individually; the score already reflects all 208.
  • R8 Dependency Hygiene — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 4 further occurrence(s) are not listed individually; the score already reflects all 44.
  • X10 Duplicated predicate — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 272 further occurrence(s) are not listed individually; the score already reflects all 312.
  • X3 Exception handling — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 126 further occurrence(s) are not listed individually; the score already reflects all 166.
  • X4 Structured logging — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D8 Code Coverage: Coverage is measured by building and running the test suite inside our isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
  • D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

653 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was registerRendererEventHandlers at 378. A further 6 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being SpecialTab.SpecialTab::getTabInfo at 19 — they are counted neither in the figure above nor in this dimension's score. 5 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: packages/bruno-app/src/components/RequestTabs/RequestTab/SpecialTab.js (SpecialTab.SpecialTab::getTabInfo at 19), packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyRenderer/index.js (index.ResponseExampleBodyRenderer at 19), packages/bruno-app/src/utils/curl/parse-curl.js (handleFlagCategory at 18), packages/bruno-app/src/utils/curl/parse-curl.js (parse-curl.handleFlagCategory at 18), packages/bruno-app/src/components/FolderSettings/Auth/index.js (index.Auth at 17). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

(anonymous)::o (cyclomatic 28) · ×6packages/bruno-app/public/static/diff2Html.js:512
registerOpenAPISyncIpc::(anonymous)::compareSpecs (cyclomatic 21) · ×4packages/bruno-electron/src/ipc/openapi-sync.js:1126
index.VarsTable (cyclomatic 22) · ×3packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js:21
index.EnvironmentList (cyclomatic 128) · ×2packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44
authOAuth2 (cyclomatic 77) · ×2packages/bruno-lang/v2/src/bruToJson.js:865

+ 467 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 57 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with registerRendererEventHandlers (cyclomatic 378), jsonToBru (cyclomatic 311), openapi-sync.registerOpenAPISyncIpc (cyclomatic 251). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 57 together lifts Cyclomatic Complexity from 2.0 to about 3.3/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

755 method(s) exceeded the cognitive complexity threshold of 15; the worst was collection.registerRendererEventHandlers at 491.

(anonymous)::o (cognitive 47) · ×10packages/bruno-app/public/static/diff2Html.js:512
registerOpenAPISyncIpc::(anonymous)::findAndRemoveRequest (cognitive 35) · ×3packages/bruno-electron/src/ipc/openapi-sync.js:1719
index.VarsTable (cognitive 23) · ×3packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js:21
(anonymous) (cognitive 20) · ×3packages/bruno-app/public/static/diff2Html.js:2322
index.EnvironmentList (cognitive 136) · ×2packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44

+ 532 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 223 bodies over 30 down to 30 or less in Cognitive Complexity — start with collection.registerRendererEventHandlers (cognitive 491), openapi-sync.registerOpenAPISyncIpc (cognitive 410), jsonToBru (cognitive 362). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 223 together lifts Cognitive Complexity from 2.0 to about 5.6/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes5.3 / 10Adequate✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: Documented → Verified → Prevented · effective 5.3 / 10 · rule-coverage 100% · ceiling Prevented

272 god class(es) detected.

FunctionTooLong: index.registerNetworkIpc · ×219REDACTED:474
FileTooLong: collections/index.js · ×46packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js
MethodTooLong: AssertRuntime.runAssertions · ×3REDACTED:410
ClassTooLong: jsonToBru · ×3packages/bruno-lang/v2/src/jsonToBru.js:1
TooManyMethods: Brupackages/bruno-js/src/bru.js:126

What to do

  1. Resolve the 219 FunctionTooLong finding(s) in God Classes — start with REDACTED (161), index.jsx (5), prepare-request.js (3). — One of this dimension's main actionable groups (219 warning-level).
  2. Resolve the 46 FileTooLong finding(s) in God Classes — start with REDACTED (17), actions.js (2), REDACTED (2). — One of this dimension's main actionable groups (46 warning-level).
  3. Resolve the 3 MethodTooLong finding(s) in God Classes — start with REDACTED, REDACTED, script-runtime.js. — One of this dimension's main actionable groups (3 warning-level).

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D5 · Coupling9.5 / 10Stronggated by 1 serious finding✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Prevented

17 production modules (npm), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 2 module(s) off the main sequence, with abstractness counted on 7 of the 17 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

Off the main sequence: @usebruno/query
Off the main sequence: @usebruno/common

What to do

  1. Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.

D6 · Cohesion (LCOM4)10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 53 classes have LCOM4 above 3.

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.md.

D8 · Code Coverage9.9 / 10Stronggated by 12 serious findings✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from the analyzer's own run of the suite, computed per-file with structured exclusions for generated, trivial, and glue code. A coverage report found in the repository is never read. When the suite can't be built/run in-image, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Verified

Line coverage 77.6% — 70 file(s) below 50%. Measured from the JavaScript/TypeScript suite (jest via `npm ci --ignore-scripts` in the repository root; jest in packages/bruno-app/: not run; jest via `npm ci --ignore-scripts` in packages/bruno-cli/; jest via `npm ci --ignore-scripts` in packages/bruno-common/; jest via `npm ci --ignore-scripts` in packages/bruno-converters/; jest via `npm ci --ignore-scripts` in packages/bruno-electron/; jest via `npm ci --ignore-scripts` in packages/bruno-filestore/; jest via `npm ci --ignore-scripts` in packages/bruno-graphql-docs/; jest via `npm ci --ignore-scripts` in packages/bruno-io/; jest via `npm ci --ignore-scripts` in packages/bruno-js/; jest via `npm ci --ignore-scripts` in packages/bruno-lang/; jest via `npm ci --ignore-scripts` in packages/bruno-query/).

Low coverage: packages/bruno-electron/src/ipc/ai/script-prompts.js · ×12packages/bruno-electron/src/ipc/ai/script-prompts.js:1

What to do

  1. Resolve the 12 Low coverage finding(s) in Code Coverage — start with script-prompts.js, test-helpers.js, environment.ts. — One of this dimension's main actionable groups (12 warning-level).

Detailed fixes: d8_recommendation.md · top locations in Appendix A, every location in findings.md.

D10 · Test Quality9.8 / 10Adequategated by 2 critical findings✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Prevented

15 skipped (1 with a documented reason), 100 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 11476 tests.

No assertions (empty test): awaited directly · ×2packages/bruno-js/tests/utils-results.spec.js:80
No assertions: copies a value to the clipboard · ×98tests/variables-tab/variables-tab.spec.ts:149
Skipped test: (unnamed test) · ×14tests/set-as-variable/set-as-variable.spec.ts:687
Mock-dominated test: passes TLS options to https.Agent for HTTPS pac URLs · ×77packages/bruno-requests/src/utils/pac-resolver.spec.ts:100
Skipped (documented): a test() call whose underlying promise rejectspackages/bruno-js/tests/utils-results.spec.js:198

What to do

  1. Resolve the 2 No assertions (empty test) finding(s) in Test Quality — start with utils-results.spec.js (2). — One of this dimension's main actionable groups (2 issue-level).
  2. Resolve the 98 No assertions finding(s) in Test Quality — start with utils-results.spec.js (5), set-as-variable.spec.ts (4), headerList.spec.ts (4). — One of this dimension's main actionable groups (98 warning-level).
  3. Resolve the 14 Skipped test finding(s) in Test Quality — start with symlinks.spec.ts (3), system-pac-proxy.spec.ts (2), clone-branch-selection.spec.ts (2). — One of this dimension's main actionable groups (14 warning-level).

Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.

D12 · Dependency Hygiene4.2 / 10Weak✓ Tool-verified

What it measures: Whether dependencies are current, not deprecated, and not bloated. Known vulnerabilities are D30's.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (capped-linear for deprecation, prerelease and outdated) per KLoC. Known-vulnerable packages are D30's and are not charged here (rubric-2026.11.2). Exhaustive.

Maturity: Documented → Verified → Prevented · effective 4.2 / 10 · rule-coverage 100% · ceiling Verified

119 outdated direct production npm dependency(ies) of 184 graded, 3 pinning defect(s), across 22 REDACTED (22 of them the product) and 5 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 6 direct dependency(ies) — production, development or optional — are marked DEPRECATED by their publisher (the registry's per-version mark, or the lockfile's copy of it when the registry could not be asked); deprecated transitive packages are listed but not charged. Whether any is UNMAINTAINED is not graded — the registry publishes no maintenance status, and release age does not stand in for one. Whether any is UNUSED is not graded either: that is a source question, and the frontend dependency lens (R8) answers it in this same run. Known CVEs in this dependency graph are D30's question, read from the manifest there.

Deprecated: eslint · ×9REDACTED:43
One package at two majors across the workspace: @faker-js/faker · ×3
Outdated (npm): chalk · ×12packages/bruno-cli/package.json:62
Deprecated: glob · ×4REDACTED:10834
Outdated (npm): @ai-sdk/anthropic · ×107

What to do

  1. Resolve the 12 Outdated (npm) finding(s) in Dependency Hygiene — start with REDACTED (12). — One of this dimension's main actionable groups (12 recommendation-level).
  2. Resolve the 9 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (9). — One of this dimension's main actionable groups (9 warning-level).
  3. Resolve the 3 One package at two majors across the workspace finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (3 warning-level).

Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance8.0 / 10Adequategated by 1 critical finding✓ Tool-verified

What it measures: Whether the licenses of third-party packages are compatible with your policy.

Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.

Maturity: Documented → Verified → Prevented · effective 8.0 / 10 · rule-coverage 100% · ceiling Verified

1 of 1096 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 1096 package(s) this repository's committed lockfile installs for a consumer — its 185 production, optional and peer dependency(ies), across 22 product REDACTED manifest(s), and everything those install in turn. Its 199 `devDependencies` declaration(s), and every package only they reach, are excluded: a consumer installs none of them. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. 3 of them publish no licence this pass can read on registry.npmjs.org — an absent field, `UNLICENSED`, or a `SEE LICENSE IN <file>` pointer into a tarball this pass does not download; that is missing data, not a violation, and none of them is charged. This repository publishes itself under MIT, which is its own choice and is not judged here.

Banned license: ua-parser-jsREDACTED:31080

What to do

  1. Resolve the 1 Banned license finding(s) in License Compliance — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d14_recommendation.md · top locations in Appendix A, every location in findings.md.

D15 · Churn × Complexity Hotspots9.0 / 10Strong✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: packages/bruno-electron/src/ipc/collection.js (10×373=3730); REDACTED (15×221=3315); REDACTED (11×145=1595) Repeated repair below the complexity floor: packages/bruno-app/src/utils/mock-server/mock-responses/editor.js (4 of 5 changes were fixes); packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/index.jsx (4 of 5 changes were fixes); REDACTED (3 of 3 changes were fixes)

Hotspot: packages/bruno-electron/src/ipc/collection.js · ×121packages/bruno-electron/src/ipc/collection.js:193
Repeated repair: packages/bruno-app/src/utils/mock-server/mock-responses/editor.js · ×3packages/bruno-app/src/utils/mock-server/mock-responses/editor.js:19

What to do

  1. Resolve the 121 Hotspot finding(s) in Churn × Complexity Hotspots — start with REDACTED (75), index.jsx (4), REDACTED (2). — One of this dimension's main actionable groups (121 warning-level).
  2. Resolve the 3 Repeated repair finding(s) in Churn × Complexity Hotspots — start with editor.js, index.jsx, REDACTED. — One of this dimension's main actionable groups (3 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D16 · Bus Factor9.0 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

Maturity: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

85 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is packages/bruno-electron/src/ipc/yml-migration.js. Counted over 853 of the 1793 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Off-boarding risk: anonymized user #1 · ×10
Further sole-owners (lower concentration)

✓ On the Gold path — maintain.

Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt9.8 / 10Stronggated by 20 serious findings✓ Tool-verified

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Prevented

20 deducted task-comment markers across 19771 LoC (0.1/KLoC) → score 9.8. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

TodoComment · ×20tests/websockets/persistence.spec.ts:9

What to do

  1. Resolve the 20 TodoComment finding(s) in Explicit Debt — start with folder.ts (3), websocket.ts (2), persistence.spec.ts. — One of this dimension's main actionable groups (20 warning-level).

Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.

D19 · Documentation Quality8.8 / 10Strong✓ Tool-verified

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 8.8 / 10 · rule-coverage 100% · ceiling Documented

1 of 2 documentation facets pass in full; short on: F2 example. 78 document(s) read across 24 unit(s).

Documentation: no build, run or usage example · ×4packages/bruno-docs/readme.md:1

What to do

  1. Resolve the 4 Documentation finding(s) in Documentation Quality — start with readme.md (4). — One of this dimension's main actionable groups (4 recommendation-level).

Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.

D20 · ADR Quality0.0 / 10Critical✓ Tool-verified

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

No architecture decision records were found.

No ADRs foundpackages/bruno-tests/package.json:15

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d20_recommendation.md · top locations in Appendix A, every location in findings.md.

D21 · Naming Consistency9.3 / 10Exemplary✓ Tool-verified

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.

Maturity: Documented → Verified → Prevented · effective 9.3 / 10 · rule-coverage 100% · ceiling Verified

3 naming inconsistencies among 410 declarations measured against a convention their peers follow.

`getOsClass` spells `Os` where 12 names in the project spell it `OS`packages/bruno-app/src/components/AppTitleBar/index.js:29
`getSessionID` spells `ID` where 93 names in the project spell it `Id`packages/bruno-app/src/utils/terminal.js:30
`generateUID` spells `UID` where 302 names in the project spell it `Uid`packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:2

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md · top locations in Appendix A, every location in findings.md.

D23 · Boundary Type-Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether domain types (IDs, enums, value objects) leak across bounded-context boundaries.

Method: Cross-context domain-type leakage via Roslyn structural classification (strongly-typed IDs / value objects) over every public surface. Exhaustive, deterministic, type-level aggregate-boundary check.

Coverage: Bounded contexts derived from NAMESPACE prefix (or graph-inferred where available); cross-boundary domain-type leakage then checked exhaustively over every public member of every type.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

1 domain type(s) cross context boundaries across 17 contexts; they are measured and withheld (not published, not scored). Contexts: bruno-app, bruno-cli, bruno-common, bruno-converters, bruno-electron, bruno-filestore, bruno-graphql-docs, bruno-io, bruno-js, bruno-lang, bruno-query, bruno-requests and 5 more.

✓ On the Gold path — maintain.

Detailed fixes: d23_recommendation.md.

D24 · Comment Value7.2 7.1 / 10Strong✓ Tool-verified

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 7.1 / 10 · rule-coverage 98% · ceiling Documented

258 of 9166 judged comments only repeat the code they sit on (2.8 %). 185 comment(s) in another language or script were not judged.

redundant comment · ×220packages/bruno-app/src/components/AppTitleBar/index.js:36
doc comments repeat the names · ×9packages/bruno-app/src/components/SingleLineEditor/index.js:317

What to do

  1. Resolve the 220 redundant comment finding(s) in Comment Value — start with REDACTED (35), actions.js (5), brunoVarInfo.js (4). — One of this dimension's main actionable groups (220 recommendation-level).

Detailed fixes: d24_recommendation.md · top locations in Appendix A, every location in findings.md.

D26 · Project Cohesion5.4 / 10Adequate✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic.

Maturity: Documented → Verified → Prevented · effective 5.4 / 10 · rule-coverage 100% · ceiling Documented

4 of 17 build units (npm) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion

What to do

  1. Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)0.0 / 10Critical✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

140 finding(s): 0 critical, 56 high, 82 medium, 2 low. 41 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 21 file(s) — `packages/bruno-app/public/static/diff2Html.js`, `packages/bruno-app/src/components/EnvironmentVariablesTable/index.js`, `packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js`, `packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js`, `packages/bruno-app/src/utils/collections/index.js`, … (+16 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 5 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 16 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 1 REDACTED finding(s) charged to Static Analysis (SAST) — the other 41 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once. — One of this dimension's main actionable groups (42 issue-level, 1 of them charged here).
  2. Resolve the 7 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (7 issue-level).
  3. Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D30 · Dependency Vulnerabilities3.5 / 10Weak✓ Tool-verified

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 3.5 / 10 · rule-coverage 100% · ceiling Documented

20 finding(s): 1 critical, 5 high, 10 medium, 4 low.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 9 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (9). — One of this dimension's main actionable groups (9 warning-level).
  2. Resolve the 5 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (5). — One of this dimension's main actionable groups (5 issue-level).
  3. Resolve the 1 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.

D31 · IaC & Container Security9.8 / 10Stronggated by 2 serious findings✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (REDACTED/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Documented

2 finding(s): 0 critical, 0 high, 2 medium, 0 low.

REDACTED

What to do

  1. Resolve the 2 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).

Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness9.7 / 10Adequategated by 1 critical finding✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented → Verified → Prevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Documented

22 of 853 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is packages/bruno-app/public/static/diff2Html.js. Counted over 853 of the 1793 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned knowledgepackages/bruno-app/public/static/diff2Html.js:1
Orphaned file · ×21packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffContent/StyledWrapper.js:1
Further orphaned files (smaller)

What to do

  1. Resolve the 1 Orphaned knowledge finding(s) in Knowledge Freshness — start with diff2Html.js. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 21 Orphaned file finding(s) in Knowledge Freshness — start with REDACTED (7), StyledWrapper.js, VisualDiffBody.js. — One of this dimension's main actionable groups (21 recommendation-level).
  3. Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.

D35 · Change Coupling9.9 / 10Adequategated by 1 critical finding✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: script-runtime.js↔test-runtime.js 76%; test-runtime.js↔vars-runtime.js 69%; script-runtime.js↔vars-runtime.js 69%

Boundary-crossing change coupling: REDACTED ↔ collectionBruToJson.jspackages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js:1
Change coupling: script-runtime.js ↔ test-runtime.js · ×4packages/bruno-js/src/runtime/script-runtime.js:1
Change-coupling hub: vars-runtime.js → REDACTED, script-runtime.js, test-runtime.jspackages/bruno-js/src/runtime/vars-runtime.js

What to do

  1. Resolve the 1 Boundary-crossing change coupling finding(s) in Change Coupling — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 4 Change coupling finding(s) in Change Coupling — start with REDACTED (2), script-runtime.js, SpecialTab.js. — One of this dimension's main actionable groups (4 warning-level).
  3. Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with vars-runtime.js. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D43 · Malicious Dependencies0.0 / 10Critical✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

1 finding(s): 1 critical, 0 high, 0 medium, 0 low.

REDACTED

What to do

  1. Resolve the 1 Malicious package finding(s) in Malicious Dependencies — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d43_recommendation.md · top locations in Appendix A, every location in findings.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 2 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AC2 · Forms & labels5.8 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. — packages/bruno-app/src/components/RunnerResults/index.jsx:270
  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label. (×2) — packages/bruno-app/src/components/RunnerResults/index.jsx:271, packages/bruno-app/src/themes/DesignSystem/Overview.jsx:563

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.

Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AC4 · Keyboard semantics1.0 / 10Critical✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".

  • This <div> binds double-click and nothing else. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native <button> or <a href>. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role + tabIndex={0} + a key handler alongside the double-click. — packages/bruno-app/src/components/MarkDown/index.jsx:28
  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler. (×6) — packages/bruno-app/src/components/RunnerResults/RunConfigurationPanel/index.jsx:155, packages/bruno-app/src/components/RunnerResults/index.jsx:430, packages/bruno-app/src/components/RunnerResults/index.jsx:436, …
  • This <div> carries tabIndex={0}, so it is in the tab order and a keyboard user will land on it — but its only behaviour is bound to mousedown, pointer gestures a keyboard cannot produce, and there is no key handler. The tab stop leads nowhere. Bind the same behaviour to a key handler, or provide an equivalent control elsewhere. Give it a role as well, so assistive tech can announce what it is. (×2) — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:752, packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:575
  • An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. (×2) — REDACTED:82, packages/bruno-graphql-docs/src/components/DocExplorer/TypeDoc.tsx:186
  • An <a href="#"> (or javascript:) with a click handler is a button dressed as a link — it announces the wrong role and stops working without JS. Use a <button> for an action. — packages/bruno-graphql-docs/src/components/DocExplorer/TypeLink.tsx:43

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.

Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AC6 · Visual & motion safety7.5 / 10Strong✓ Tool-verified

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator. — packages/bruno-app/src/themes/DesignSystem/Overview.jsx:563
  • `.graphql-docs-container .doc-deprecation` sets color: #867f70 on background-color: #fffae8 — 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — packages/bruno-graphql-docs/src/index.css:195
  • `.graphql-docs-container .search-box .search-box-clear` sets color: #fff on background-color: #d0d0d0 — 1.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — packages/bruno-graphql-docs/src/index.css:260
  • `.graphql-docs-container .search-box > input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — packages/bruno-graphql-docs/src/index.css:281

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

AX6 · Interface segregation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.

AX8 · Test isolation2.5 / 10Weak✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

  • `@usebruno/cli` ships in a production host and references `chai`, a package that exists only to test. It puts a test framework, double or assertion library into the shipped product. Move the code that uses it into a test project, or replace it with production code. If `@usebruno/cli` is itself a plugin, matcher or preset of the test framework, declare the framework under `peerDependencies` (and `devDependencies`) instead of `dependencies`. — packages/bruno-cli/package.json:61
  • `@usebruno/js` ships in a production host and references `chai`, a package that exists only to test. It puts a test framework, double or assertion library into the shipped product. Move the code that uses it into a test project, or replace it with production code. If `@usebruno/js` is itself a plugin, matcher or preset of the test framework, declare the framework under `peerDependencies` (and `devDependencies`) instead of `dependencies`. — packages/bruno-js/package.json:27
  • `bruno` ships in a production host and references `chai`, a package that exists only to test. It puts a test framework, double or assertion library into the shipped product. Move the code that uses it into a test project, or replace it with production code. If `bruno` is itself a plugin, matcher or preset of the test framework, declare the framework under `peerDependencies` (and `devDependencies`) instead of `dependencies`. — REDACTED:56

What to do

  • Remove every production → test project reference: extract any shared test helper into a production support library (which the tests reference), or invert the dependency so the test project depends on production — not the reverse.
C2 · Access Controls7.0 / 10Strong✓ Tool-verified

Other · Security — Whether access is authorized by default — a framework authorization attribute/decorator or policy, or imperative guard methods (throw-on-violation) called from handlers.

Method: Roslyn scan: [Authorize] usage and authorization policies, plus imperative throw-on-violation guard methods detected via syntax. Deterministic.

  • Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) — this is NOT a claim that endpoints are unprotected. What's missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can't be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect. — packages/bruno-app/src/components/CollectionSettings/ProxySettings/index.js:65

What to do

  • Name the access rules — roles/permissions declared once (a @Roles/@Permissions decorator with its guard, a CASL ability, a casbin model, or Supabase CREATE POLICY) and consulted where access is checked, so the rule set is reviewable and testable on its own.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unreviewed-generation residue in this repository's JavaScript/TypeScript: functions whose whole body still throws a "not implemented" error, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings and JSX of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

IC1 · Incompleteness & stubs5.9 / 10Adequate✓ Tool-verified

Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's JavaScript/TypeScript: functions that only throw a "not implemented" error, functions that take inputs and return a constant or do nothing, async functions that never await, dead `if (false)` branches, and skeleton classes most of whose methods are holes.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • The guard above `return 'none';` also returns `'none'`, so no input can make it matter. Implement the distinction that was intended, or delete the guard. — packages/bruno-app/src/components/Git/VisualDiffViewer/utils/bruUtils.js:33
  • `onEdit` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. — packages/bruno-app/src/components/MockServer/MockResponse/MockResponseTryResult/index.js:24
  • `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. (×14) — packages/bruno-app/src/components/MockServer/MockResponse/MockResponseTryResult/index.js:25, packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyRenderer/index.js:74, packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFileBody/index.js:163, …
  • `onChange` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. (×3) — packages/bruno-app/src/components/MockServer/MockServerDashboard/RequestLog/index.js:377, packages/bruno-app/src/components/MockServer/MockServerDashboard/RouteTable/index.js:168, packages/bruno-app/src/components/RequestPane/QueryParams/index.js:222
  • `onDoubleClick` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. — packages/bruno-app/src/components/Notifications/NotificationsModal/NotificationDetail.js:47
  • `handleConnect` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/bruno-app/src/components/RequestPane/WsQueryUrl/index.js:66
  • `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. (×11) — packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFileBody/index.js:158, packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFormUrlEncodedParams/index.js:77, packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:87, …
  • The guard above `return IconFile;` also returns `IconFile`, so no input can make it matter. Implement the distinction that was intended, or delete the guard. — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemDragPreview/index.js:57
  • `openDevtoolsAndSwitchToTerminal` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/bruno-app/src/utils/terminal.js:10
  • `builder` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/bruno-cli/src/commands/run.js:89
  • `makeHtmlOutput` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/bruno-cli/src/reporters/html.js:5
  • `makeJUnitOutput` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/bruno-cli/src/reporters/junit.js:6
  • `saveCredential` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/bruno-cli/src/store/tokenStore.js:6
  • `deleteCredential` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/bruno-cli/src/store/tokenStore.js:20
  • `unlinkEnvironmentFile` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — packages/bruno-electron/src/app/collection-watcher.js:203

What to do

  • Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
  • Clear the softer debt: re-enable or delete skipped tests, decide whether each empty function is a deliberate no-op (and say so in a comment), and replace blanket `eslint-disable` / `@ts-nocheck` with targeted, justified suppressions.
M1 · Documentation (README)9.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

M2 · Architecture documentation5.0 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy8.2 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.

Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.

  • docs/readme/readme_nl.md links to `docs/readme/readme_ua.md`, but `docs/readme/docs/readme/readme_ua.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_ru.md`, but `docs/readme/docs/readme/readme_ru.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_tr.md`, but `docs/readme/docs/readme/readme_tr.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_de.md`, but `docs/readme/docs/readme/readme_de.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_fr.md`, but `docs/readme/docs/readme/readme_fr.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_pt_br.md`, but `docs/readme/docs/readme/readme_pt_br.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_kr.md`, but `docs/readme/docs/readme/readme_kr.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_bn.md`, but `docs/readme/docs/readme/readme_bn.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_es.md`, but `docs/readme/docs/readme/readme_es.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_it.md`, but `docs/readme/docs/readme/readme_it.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_ro.md`, but `docs/readme/docs/readme/readme_ro.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_pl.md`, but `docs/readme/docs/readme/readme_pl.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_cn.md`, but `docs/readme/docs/readme/readme_cn.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_zhtw.md`, but `docs/readme/docs/readme/readme_zhtw.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_ar.md`, but `docs/readme/docs/readme/readme_ar.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `docs/readme/readme_ja.md`, but `docs/readme/docs/readme/readme_ja.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:13
  • docs/readme/readme_nl.md links to `contributing.md`, but `docs/readme/contributing.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/readme/readme_nl.md:138

What to do

  • Reconcile the README with reality: docs/readme/readme_nl.md links to `docs/readme/readme_ua.md`, but `docs/readme/docs/readme/readme_ua.md` does not exist; docs/readme/readme_nl.md links to `docs/readme/readme_ru.md`, but `docs/readme/docs/readme/readme_ru.md` does not exist; docs/readme/readme_nl.md links to `docs/readme/readme_tr.md`, but `docs/readme/docs/readme/readme_tr.md` does not exist; docs/readme/readme_nl.md links to `docs/readme/readme_de.md`, but `docs/readme/docs/readme/readme_de.md` does not exist; docs/readme/readme_nl.md links to `docs/readme/readme_fr.md`, but `docs/readme/docs/readme/readme_fr.md` does not exist.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.

P2 · Observability5.6 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • Only 1/5 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `packages/bruno-app`, `packages/bruno-cli`, `packages/bruno-electron`, `packages/bruno-tests`.
  • `packages/bruno-requests/src/ws/ws-client.js` reports through `console.*` at line 26 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/ws/ws-client.js:26
  • `packages/bruno-requests/src/ws/ws-client.js` reports through `console.*` at line 143 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/ws/ws-client.js:143
  • `REDACTED` reports through `console.*` at line 33 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — REDACTED:33
  • `packages/bruno-requests/src/utils/ca-cert.ts` reports through `console.*` at line 65 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/utils/ca-cert.ts:65
  • `packages/bruno-requests/src/utils/ca-cert.ts` reports through `console.*` at line 118 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/utils/ca-cert.ts:118
  • `packages/bruno-requests/src/utils/ca-cert.ts` reports through `console.*` at line 157 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/utils/ca-cert.ts:157
  • `packages/bruno-requests/src/utils/http-https-agents.ts` reports through `console.*` at line 296 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/utils/http-https-agents.ts:296
  • `packages/bruno-requests/src/utils/http-https-agents.ts` reports through `console.*` at line 308 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/utils/http-https-agents.ts:308
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 67 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:67
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 250 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:250
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 266 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:266
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 372 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:372
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 490 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:490
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 705 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:705
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 763 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:763
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 856 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:856
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 972 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:972
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 1048 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpc-client.js:1048
  • `packages/bruno-requests/src/grpc/grpcMessageGenerator.js` reports through `console.*` at line 102 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpcMessageGenerator.js:102
  • `packages/bruno-requests/src/grpc/grpcMessageGenerator.js` reports through `console.*` at line 129 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/grpc/grpcMessageGenerator.js:129
  • `REDACTED` reports through `console.*` at line 395 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — REDACTED:395
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 37 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:37
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 40 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:40
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 60 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:60
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 61 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:61
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 76 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:76
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 80 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:80
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 86 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:86
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 105 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:105
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 108 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:108
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 135 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/digestauth-helper.js:135
  • `packages/bruno-requests/src/auth/edgegrid-helper.js` reports through `console.*` at line 116 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — packages/bruno-requests/src/auth/edgegrid-helper.js:116

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
  • Route service-code `console.*` output through the module's structured logger (with named fields), so delivery outcomes and failures reach the log pipeline with a level.
P3 · Security & performance tooling3.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

  • No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 7 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner. — REDACTED:9

What to do

  • Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback7.0 / 10Strong✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.

Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.

  • `axios.create(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — packages/bruno-electron/src/ipc/network/axios-instance.js:122
  • `fetch(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — packages/bruno-electron/src/ipc/notifications.js:7

What to do

  • Bound every outbound call: pass `signal: AbortSignal.timeout(ms)` to `fetch`, set `timeout` on the axios instance (`axios.create({ timeout })`), and add retries with back-off (`axios-retry`, `p-retry`) and a breaker (`opossum`, `cockatiel`) around dependencies that fail.
PF1 · Benchmark discipline8.0 / 10Strong✓ Tool-verified

Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.

Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.

PF3 · Async & latency hygiene6.0 / 10Adequate✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

  • `existsSync` in `callback to currentPaths.map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-app/src/hooks/useMissingFileCheck/index.js:43
  • `fs.mkdirSync` in `handler` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/docs/generate.js:137
  • `fs.writeFileSync` in `handler` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/docs/generate.js:138
  • `fs.readFileSync` in `readOpenApiFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/import.js:174
  • `fs.readFileSync` in `readWSDLFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/import.js:210
  • `fs.readFileSync` in `readPostmanFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/import.js:242
  • `fs.statSync` in `resolveLocalWsdlSchemaRef` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/import.js:273
  • `fs.readFileSync` in `resolveLocalWsdlSchemaRef` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/import.js:282
  • `fs.readdirSync` in `resolveCollectionOutputDir` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/import.js:304
  • `fs.mkdirSync` in `resolveCollectionOutputDir` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — packages/bruno-cli/src/commands/import.js:308, packages/bruno-cli/src/commands/import.js:319
  • `fs.writeFileSync` in `writeBrunoCollection` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/import.js:371
  • `fs.readFileSync` in `handler` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — packages/bruno-cli/src/commands/run.js:356, packages/bruno-cli/src/commands/run.js:680
  • `fs.existsSync` in `findWorkspacePath` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/run.js:499
  • `fs.writeFileSync` in `json` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/commands/run.js:975
  • `fs.writeFileSync` in `makeHtmlOutput` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/reporters/html.js:27
  • `fs.writeFileSync` in `makeJUnitOutput` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/reporters/junit.js:126
  • `fs.readFileSync` in `prepareRequest` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/runner/prepare-request.js:413
  • `fs.readFileSync` in `runSingleRequest` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×3) — REDACTED:439, REDACTED:440, REDACTED:448
  • `fs.existsSync` in `loadEnvironments` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/utils/environment.js:46
  • `fs.readdirSync` in `loadEnvironments` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/utils/environment.js:51
  • `fs.writeFileSync` in `writeFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-cli/src/utils/filesystem.js:53
  • `fs.existsSync` in `createDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — packages/bruno-cli/src/utils/filesystem.js:76, packages/bruno-electron/src/utils/filesystem.js:263
  • `fs.mkdirSync` in `createDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — packages/bruno-cli/src/utils/filesystem.js:80, packages/bruno-electron/src/utils/filesystem.js:267
  • `fs.existsSync` in `notarizeApp` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-electron/notarize.js:13
  • `fs.existsSync` in `anonymous function` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-electron/src/store/default-workspace.js:203
  • `fs.existsSync` in `initializeDefaultWorkspace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — packages/bruno-electron/src/store/default-workspace.js:236, packages/bruno-electron/src/store/default-workspace.js:266
  • `fs.mkdirSync` in `initializeDefaultWorkspace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×3) — packages/bruno-electron/src/store/default-workspace.js:245, packages/bruno-electron/src/store/default-workspace.js:246, packages/bruno-electron/src/store/default-workspace.js:247
  • `fs.copyFileSync` in `initializeDefaultWorkspace` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-electron/src/store/default-workspace.js:267
  • `fs.existsSync` in `migrateFromPreferences` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-electron/src/store/default-workspace.js:345
  • `fs.readdirSync` in `migrateFromPreferences` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-electron/src/store/default-workspace.js:347
  • `fs.existsSync` in `removeDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — packages/bruno-electron/src/utils/filesystem.js:275

What to do

  • TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety2.9 / 10Weak✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

  • 877 typed · 2146 plain JS — the untyped files are packages/bruno-app/jest.cssMock.js, packages/bruno-app/jest.setup.js, REDACTED, packages/bruno-app/plugins/remote-images/index.mjs, packages/bruno-app/plugins/remote-images/loader.cjs, packages/bruno-app/plugins/remote-images/serve-fixture.js (+2140 more).
R10 · Code Duplication8.1 / 10Strong✓ Tool-verified

React / JS · Code Health — Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm over JS/TS tokens, D-386): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.

Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Deterministic.

  • 1179 duplicated blocks under packages/bruno-app/src/components/ have copies in at least two of the sibling directories AIAssist, AiChatSidebar, AppPreviewKeepAlive, AppTitleBar, AppView, BodyModeSelector (+59 more sibling(s) not listed) — 107 of them are reported below, and 1072 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 1179 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 1179 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 1179 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1
  • 136 duplicated blocks under packages/bruno-app/src/ have copies in at least two of the sibling directories components, hooks, pages, providers, ui, utils — 22 of them are reported below, and 114 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 136 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 136 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 136 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:56
  • 117 duplicated blocks under packages/ have copies in at least two of the sibling directories bruno-app, bruno-cli, bruno-common, bruno-converters, bruno-electron, bruno-filestore (+8 more sibling(s) not listed) — 103 of them are reported below, and 14 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 117 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 117 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 117 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-cli/src/utils/proxy-util.js:22
  • 55 duplicated blocks under packages/bruno-app/src/components/RequestPane/ have copies in at least two of the sibling directories AppCodeEditor, Assertions, Auth, FileBody, FormUrlEncodedParams, GraphQLRequestPane (+19 more sibling(s) not listed) — 27 of them are reported below, and 28 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 55 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 55 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 55 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/RequestPane/GrpcRequestPane/GrpcAuth/index.js:16
  • 30 duplicated blocks under packages/bruno-app/src/components/Sidebar/ have copies in at least two of the sibling directories BulkImportCollectionLocation, CloneGitRespository, Collections, CreateCollection, ImportCollectionLocation, NewApp (+5 more sibling(s) not listed) — 20 of them are reported below, and 10 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 30 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 30 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 30 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:98
  • 26 duplicated blocks under packages/bruno-app/src/components/RequestPane/Auth/ have copies in at least two of the sibling directories ApiKeyAuth, AuthMode, AwsV4Auth, BasicAuth, BearerAuth, DigestAuth (+4 more sibling(s) not listed) — 11 of them are reported below, and 15 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 26 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 26 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 26 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js:10
  • 21 duplicated blocks under packages/bruno-app/src/components/ResponsePane/ have copies in at least two of the sibling directories GrpcResponsePane, LargeResponseWarning, QueryResult, ResponseBookmark, ResponseClear, ResponseCopy (+8 more sibling(s) not listed) — 3 of them are reported below, and 18 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 21 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 21 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 21 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:26
  • 20 duplicated blocks under packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ have copies in at least two of the sibling directories ResponseExampleDescription, ResponseExampleFileBody, ResponseExampleFormUrlEncodedParams, ResponseExampleHeaders, ResponseExampleMultipartFormParams, ResponseExampleParams (+1 more sibling(s) not listed) — 9 of them are reported below, and 11 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 20 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFormUrlEncodedParams/index.js:12
  • 20 duplicated blocks under packages/bruno-app/src/themes/ have copies in at least two of the sibling directories dark, light — 8 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 20 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/themes/dark/gruvbox.js:8
  • 18 duplicated blocks under packages/bruno-app/src/components/Sidebar/Collections/Collection/ have copies in at least two of the sibling directories ChangeCollectionVersion, CloneCollection, CollectionItem, CollectionRow, DeleteCollection, ExportCollection (+4 more sibling(s) not listed) — 5 of them are reported below, and 13 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 18 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 18 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 18 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/Sidebar/Collections/Collection/MoveToWorkspace/ConfirmMoveDrafts.js:117
  • 16 duplicated blocks under packages/bruno-app/src/components/Preferences/ have copies in at least two of the sibling directories AI, Beta, Cache, ClientCertSettings, Display, General (+5 more sibling(s) not listed) — 4 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 16 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 16 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 16 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/Preferences/Beta/index.js:111
  • 15 duplicated blocks under packages/bruno-app/src/components/CollectionSettings/Auth/ have copies in at least two of the sibling directories ApiKeyAuth, AuthMode, AwsV4Auth, BasicAuth, BearerAuth, DigestAuth (+3 more sibling(s) not listed) — 3 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 15 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 15 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 15 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js:11
  • 15 duplicated blocks under packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ have copies in at least two of the sibling directories AdditionalParams, AuthorizationCode, ClientCredentials, GrantTypeSelector, Implicit, Oauth2ActionButtons (+2 more sibling(s) not listed) — 8 of them are reported below, and 7 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 15 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 15 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 15 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:259
  • 14 duplicated blocks under packages/bruno-app/src/components/ResponseExample/ have copies in at least two of the sibling directories ResponseExampleRequestPane, ResponseExampleResponsePane, ResponseExampleTopBar — 7 of them are reported below, and 7 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 14 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 14 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 14 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:14
  • 14 duplicated blocks under packages/bruno-app/src/ui/ have copies in at least two of the sibling directories ActionIcon, Button, ErrorBanner, InputWrapper, MaskedInput, MaskedTextfield (+4 more sibling(s) not listed) — 2 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 14 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 14 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 14 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/ui/MaskedInput/index.js:44
  • 13 duplicated blocks under packages/bruno-app/src/components/Devtools/Console/ have copies in at least two of the sibling directories DebugTab, ErrorDetailsPanel, FilterDropdown, NetworkTab, RequestDetailsPanel — 2 of them are reported below, and 11 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 13 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 13 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 13 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/Devtools/Console/ErrorDetailsPanel/index.js:236
  • 11 duplicated blocks under packages/bruno-electron/src/ have copies in at least two of the sibling directories app, ipc, store, utils — 10 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-electron/src/ipc/collection.js:1457
  • 7 duplicated blocks under packages/bruno-app/src/components/MockServer/ have copies in at least two of the sibling directories CloneMockServerModal, CreateMockServerModal, MockResponse, MockServerDashboard, RenameMockServerModal, Sidebar — 4 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 7 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 7 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 7 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — packages/bruno-app/src/components/MockServer/CloneMockServerModal/index.js:42
  • packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1 · packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:1 — these 2 files are line-for-line copies of one another — 624 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1
  • packages/bruno-lang/v2/src/bruToJson.js:198 · packages/bruno-lang/v2/src/collectionBruToJson.js:118 — the two spans are one implementation copied and then locally edited — 3226 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-lang/v2/src/bruToJson.js:198
  • packages/bruno-app/src/themes/dark/catppuccin-frappe.js:4 · packages/bruno-app/src/themes/dark/catppuccin-macchiato.js:4 · packages/bruno-app/src/themes/dark/catppuccin-mocha.js:6 — these 3 files are line-for-line copies of one another — 435 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/bruno-app/src/themes/dark/catppuccin-frappe.js:4
  • packages/bruno-app/src/themes/dark/gruvbox.js:8 · packages/bruno-app/src/themes/light/gruvbox.js:8 — these 2 files are line-for-line copies of one another — 432 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/bruno-app/src/themes/dark/gruvbox.js:8
  • packages/bruno-app/src/themes/dark/cyberdream-dark.js:4 · packages/bruno-app/src/themes/light/cyberdream-light.js:4 — these 2 files are line-for-line copies of one another — 416 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/bruno-app/src/themes/dark/cyberdream-dark.js:4
  • packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js:45 · packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/StyledWrapper.js:46 — the two spans are one implementation copied and then locally edited — 618 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js:45
  • packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:2 · packages/bruno-app/src/components/Preferences/ClientCertSettings/index.js:2 — these 2 files are line-for-line copies of one another — 266 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:2
  • packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:55 · packages/bruno-app/src/components/Preferences/AI/ProviderCard.js:66 — the two spans are one implementation copied and then locally edited — 1295 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:55
  • packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js:1 · packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/index.js:1 — these 2 files are line-for-line copies of one another — 203 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js:1
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:259 · packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:133 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:259
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js:1 · packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:1 — these 2 files are line-for-line copies of one another — 173 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js:1
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index.js:3 · packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js:2 — these 2 files are line-for-line copies of one another — 128 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index.js:3
  • packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js:67 · packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js:56 — the two spans are one implementation copied and then locally edited — 937 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js:67
  • packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:98 · packages/bruno-app/src/components/Sidebar/NewFolder/index.js:69 — the two spans are one implementation copied and then locally edited — 542 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:98
  • packages/bruno-app/src/components/MockServer/MockResponse/index.js:92 · packages/bruno-app/src/components/ResponseExample/index.js:25 — the two spans are one implementation copied and then locally edited — 694 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-app/src/components/MockServer/MockResponse/index.js:92
  • packages/bruno-lang/v2/src/collectionBruToJson.js:147 · packages/bruno-lang/v2/src/envToJson.js:174 — the two spans are one implementation copied and then locally edited — 620 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-lang/v2/src/collectionBruToJson.js:147
  • packages/bruno-app/src/components/CollectionSettings/Headers/index.js:59 · packages/bruno-app/src/components/FolderSettings/Headers/index.js:63 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — packages/bruno-app/src/components/CollectionSettings/Headers/index.js:59
  • packages/bruno-converters/src/opencollection/items/grpc.ts:43 · packages/bruno-converters/src/opencollection/items/websocket.ts:29 — the two spans are one implementation copied and then locally edited — 698 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-converters/src/opencollection/items/grpc.ts:43
  • packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:26 · packages/bruno-app/src/components/ResponsePane/WsResponsePane/index.js:23 — the two spans are one implementation copied and then locally edited — 663 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:26
  • packages/bruno-converters/src/openapi/openapi-to-bruno.js:1002 · packages/bruno-converters/src/openapi/swagger2-to-bruno.js:574 — the two spans are one implementation copied and then locally edited — 798 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-converters/src/openapi/openapi-to-bruno.js:1002
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2448 · packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2816 — the two spans are one implementation copied and then locally edited — 698 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2448
  • packages/bruno-app/src/components/MultiLineEditor/index.js:267 · packages/bruno-app/src/components/SingleLineEditor/index.js:139 — the two spans are one implementation copied and then locally edited — 779 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — packages/bruno-app/src/components/MultiLineEditor/index.js:267

What to do

  • Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R11 · Import Boundaries9.4 / 10Exemplary✓ Tool-verified

React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).

Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.

  • packages/bruno-app/src/components/MockServer/MockResponse/MockResponsesList/index.js:26 imports packages/bruno-app/src/components/MockServer/MockResponse/GenerateFromSpecModal/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/bruno-app/src/components/MockServer/MockResponse/MockResponsesList/index.js:26
  • packages/bruno-app/src/components/OpenAPISyncTab/SyncReviewPage/index.js:16 imports packages/bruno-app/src/components/OpenAPISyncTab/SpecDiffModal/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on. — packages/bruno-app/src/components/OpenAPISyncTab/SyncReviewPage/index.js:16
  • packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js:8 imports pdfjs-dist/build/pdf.worker, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js:8
  • packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js:11 imports pdfjs-dist/build/pdf, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js:11
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js:19 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies. — packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js:19
  • packages/bruno-app/src/ui/RichTextEditor/extensions/EditorCodeBlock/index.js:6 imports highlight.js/lib/languages/protobuf, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — packages/bruno-app/src/ui/RichTextEditor/extensions/EditorCodeBlock/index.js:6
  • packages/bruno-app/src/utils/exporters/opencollection.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies. — packages/bruno-app/src/utils/exporters/opencollection.js:2
  • packages/bruno-app/src/utils/exporters/postman-collection.js:1 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies. — packages/bruno-app/src/utils/exporters/postman-collection.js:1
  • packages/bruno-app/src/utils/importers/insomnia-collection.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies. — packages/bruno-app/src/utils/importers/insomnia-collection.js:2
  • packages/bruno-app/src/utils/importers/openapi-collection.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies. — packages/bruno-app/src/utils/importers/openapi-collection.js:2
  • packages/bruno-app/src/utils/importers/opencollection.js:6 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies. — packages/bruno-app/src/utils/importers/opencollection.js:6
  • packages/bruno-app/src/utils/importers/postman-environment.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies. — packages/bruno-app/src/utils/importers/postman-environment.js:2
  • packages/bruno-app/src/utils/importers/wsdl-collection.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies. — packages/bruno-app/src/utils/importers/wsdl-collection.js:2
  • tests/import/openapi/api-spec-panel-validation.spec.ts:5 reaches past another workspace package's public entry into its internals with a relative path (../../../packages/bruno-electron/src/app/apiSpecs) — the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead. — tests/import/openapi/api-spec-panel-validation.spec.ts:5
  • tests/runner/cli-json-env-file/cli-json-env-file.spec.ts:5 reaches past another workspace package's public entry into its internals with a relative path (../../../packages/bruno-cli/src/constants.js) — the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead. — tests/runner/cli-json-env-file/cli-json-env-file.spec.ts:5

What to do

  • Fix the listed violations: declare the workspace packages these files import in the importing package's own REDACTED dependencies (8 rows) — those imports are already bare package specifiers, so the import statements do not change, only the manifest; import through the target package's declared public entry rather than a deep path into its internals or a relative path into its directory (5 rows); move the shared test helper into a source directory production code may depend on (2 rows).
R2 · Cyclomatic Complexity8.0 / 10Strong✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • jsonToBru has cyclomatic complexity 278 and cognitive complexity 283; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-lang/v2/src/jsonToBru.js:15
  • jsonToCollectionBru has cyclomatic complexity 163 and cognitive complexity 154; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-lang/v2/src/jsonToCollectionBru.js:15
  • interpolateVars has cyclomatic complexity 138 and cognitive complexity 159; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:41
  • runSingleRequest has cyclomatic complexity 133 and cognitive complexity 220; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:103
  • handler has cyclomatic complexity 121 and cognitive complexity 197; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-cli/src/commands/run.js:305
  • interpolateVars has cyclomatic complexity 104 and cognitive complexity 129; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:36
  • detectContentTypeFromBuffer has cyclomatic complexity 97 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/utils/response/index.js:214
  • (anonymous) has cyclomatic complexity 96 and cognitive complexity 193; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts:336
  • RequestTabPanel has cyclomatic complexity 83 and cognitive complexity 96; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/components/RequestTabPanel/index.js:70
  • prepareRequest has cyclomatic complexity 79 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-cli/src/runner/prepare-request.js:16
  • authOAuth2 has cyclomatic complexity 77 and cognitive complexity 76; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. (×2) — packages/bruno-lang/v2/src/bruToJson.js:865, packages/bruno-lang/v2/src/collectionBruToJson.js:462
  • renderVarInfo has cyclomatic complexity 72 and cognitive complexity 86; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:232
  • (anonymous) has cyclomatic complexity 71 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/public/static/diff2Html.js:1565
  • (anonymous) has cyclomatic complexity 70 and cognitive complexity 151; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-electron/src/ipc/openapi-sync.js:1591
  • (anonymous) has cyclomatic complexity 59 and cognitive complexity 122; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:1458
  • (anonymous) has cyclomatic complexity 59 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-filestore/src/formats/yml/common/auth.ts:217
  • configureRequest has cyclomatic complexity 56 and cognitive complexity 86; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:119
  • CollectionHeader has cyclomatic complexity 56 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:66
  • setupProxyAgents has cyclomatic complexity 55 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-electron/src/utils/proxy-util.js:76
  • jsonToExampleBru has cyclomatic complexity 54 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-lang/v2/src/example/jsonToBru.js:29
  • deserializeTab has cyclomatic complexity 54 and cognitive complexity 53; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/utils/snapshot/index.js:662
  • (anonymous) has cyclomatic complexity 53 and cognitive complexity 92; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-filestore/src/formats/yml/stringifyCollection.ts:70
  • transformOpenapiRequestItem has cyclomatic complexity 53 and cognitive complexity 68; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-converters/src/openapi/openapi-to-bruno.js:278
  • (anonymous) has cyclomatic complexity 50 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-converters/src/opencollection/common/auth.ts:316
  • (anonymous) has cyclomatic complexity 50 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-converters/src/opencollection/common/auth.ts:171
  • PostmanPackageReport has cyclomatic complexity 50 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/components/Sidebar/PostmanPackageReport/index.js:69
  • createAgents has cyclomatic complexity 49 and cognitive complexity 108; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-requests/src/utils/http-https-agents.ts:463
  • (anonymous) has cyclomatic complexity 48 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-filestore/src/formats/yml/parseCollection.ts:18
  • RequestTab has cyclomatic complexity 48 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:38
  • CreateMockServerModal has cyclomatic complexity 48 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:164
  • (anonymous) has cyclomatic complexity 48 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-converters/src/opencollection/common/auth.ts:430
  • addTab has cyclomatic complexity 47 and cognitive complexity 62; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/providers/ReduxStore/slices/tabs.js:72
  • (anonymous) has cyclomatic complexity 47 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/utils/collections/index.js:299
  • CollectionItemRow has cyclomatic complexity 47 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:76
  • formatResponse has cyclomatic complexity 46 and cognitive complexity 84; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/utils/common/index.js:249
  • compareRequestFields has cyclomatic complexity 45 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-electron/src/ipc/openapi-sync.js:935
  • (anonymous) has cyclomatic complexity 43 and cognitive complexity 91; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-electron/src/ipc/network/axios-instance.js:314
  • walkSelectionSet has cyclomatic complexity 43 and cognitive complexity 80; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/utils/graphql/queryBuilder.js:609
  • (anonymous) has cyclomatic complexity 43 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:626
R3 · Large Files6.7 / 10Adequate✓ Tool-verified

React / JS · Code Health — How many source files exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

  • packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js has 4108 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:1
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js has 3450 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1
  • packages/bruno-app/public/static/diff2Html.js has 3212 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/public/static/diff2Html.js:1
  • packages/bruno-electron/src/ipc/collection.js has 2451 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-electron/src/ipc/collection.js:1
  • packages/bruno-app/src/utils/collections/index.js has 2410 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/utils/collections/index.js:1
  • REDACTED has 2081 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js has 1961 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js:1
  • packages/bruno-electron/src/ipc/openapi-sync.js has 1933 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-electron/src/ipc/openapi-sync.js:1
  • packages/bruno-electron/src/utils/git.js has 1651 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-electron/src/utils/git.js:1
  • packages/bruno-app/src/themes/DesignSystem/Overview.jsx has 1335 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/themes/DesignSystem/Overview.jsx:1
  • packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js has 1298 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:1
  • packages/bruno-lang/v2/src/bruToJson.js has 1231 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-lang/v2/src/bruToJson.js:1
  • packages/bruno-converters/src/openapi/openapi-to-bruno.js has 1152 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-converters/src/openapi/openapi-to-bruno.js:1
  • packages/bruno-converters/src/utils/postman-to-bruno-translator.js has 1145 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-converters/src/utils/postman-to-bruno-translator.js:1
  • packages/bruno-converters/src/wsdl/wsdl-to-bruno.js has 1143 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:1
  • packages/bruno-converters/src/postman/postman-to-bruno.js has 1141 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-converters/src/postman/postman-to-bruno.js:1
  • packages/bruno-app/src/utils/codemirror/autocomplete.js has 1129 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/utils/codemirror/autocomplete.js:1
  • packages/bruno-app/src/utils/codemirror/brunoVarInfo.js has 1111 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:1
  • packages/bruno-app/src/components/EnvironmentVariablesTable/index.js has 1071 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:1
  • packages/bruno-requests/src/grpc/grpc-client.js has 999 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-requests/src/grpc/grpc-client.js:1
  • packages/bruno-converters/src/openapi/openapi-common.js has 960 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-converters/src/openapi/openapi-common.js:1
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js has 957 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:1
  • REDACTED has 934 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js has 932 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js has 932 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:1
  • packages/bruno-cli/src/commands/run.js has 930 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-cli/src/commands/run.js:1
  • packages/bruno-app/src/components/AiChatSidebar/index.js has 923 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/AiChatSidebar/index.js:1
  • packages/bruno-electron/src/app/collection-watcher.js has 922 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-electron/src/app/collection-watcher.js:1
  • REDACTED has 911 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • packages/bruno-converters/src/postman/bruno-to-postman.js has 901 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-converters/src/postman/bruno-to-postman.js:1
  • REDACTED has 898 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • packages/bruno-electron/src/utils/oauth2.js has 898 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-electron/src/utils/oauth2.js:1
  • packages/bruno-app/src/globalStyles.js has 886 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/globalStyles.js:1
  • packages/bruno-app/src/components/RequestTabs/RequestTab/index.js has 846 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:1
  • packages/bruno-js/src/bru.js has 825 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-js/src/bru.js:1
  • packages/bruno-app/src/components/ApiSpecPanel/Renderers/Swagger/StyledWrapper.js has 801 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/ApiSpecPanel/Renderers/Swagger/StyledWrapper.js:1
  • packages/bruno-app/src/components/Preferences/Keybindings/index.js has 799 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/Preferences/Keybindings/index.js:1
  • packages/bruno-common/src/runner/reports/html/template.ts has 781 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-common/src/runner/reports/html/template.ts:1
  • packages/bruno-app/src/components/SaveTransientRequest/index.js has 764 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/SaveTransientRequest/index.js:1
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx has 756 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage5.1 / 10Adequate✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×40) — packages/bruno-app/public/static/diff2Html.js:1, packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js:1, packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:1, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness2.0 / 10Critical✓ Tool-verified

React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D30 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.

  • 190 outdated package(s); JS/npm CVEs scored in D30
R6 · Tooling10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each REDACTED script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: REDACTED scanned for test/lint/typecheck script wiring. Deterministic presence check.

R7 · Dead Code7.7 / 10Strong✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • 4 file(s) (~232 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package. — packages/bruno-tests/collection
  • 3 file(s) (~246 LoC) were excluded from dead-code analysis. This package DOES declare main/module/exports — but every declared target is missing from the scanned tree, which is what a build-output entry (dist/, lib/, out/) looks like before the package is built. Point a declared target at the source entry, or build the package before scanning, so reachability can follow it. — packages/bruno-toml
  • Unreachable from the 110 application, 78 tooling and 1397 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×29) — packages/bruno-cli/src/commands/run.js, packages/bruno-app/src/components/RequestPane/Assertions/AssertionRow/index.js, packages/bruno-app/src/components/Sidebar/GoldenEdition/index.js, …
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/Devtools/Console/DebugTab/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — packages/bruno-app/src/components/Devtools/Console/DebugTab/StyledWrapper.js
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (REDACTED) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — packages/bruno-app/plugins/remote-images/serve-fixture.js
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/ui/MaskedTextfield/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — packages/bruno-app/src/ui/MaskedTextfield/StyledWrapper.js
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/DeprecationWarning/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — packages/bruno-app/src/components/DeprecationWarning/StyledWrapper.js
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-cli/src/commands/run.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — packages/bruno-cli/src/utils/run.js
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/ModeSwitch/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — packages/bruno-app/src/components/ModeSwitch/StyledWrapper.js
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleDescription/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleDescription/StyledWrapper.js
  • no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/ResponsePane/ResponseActions/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — packages/bruno-app/src/components/ResponsePane/ResponseActions/StyledWrapper.js

What to do

  • Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene0.0 / 10Critical✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

  • Imported but not declared in any reachable REDACTED — installs work only by hoisting accident. (×22) — tests/ssl/client-certs/server/index.js:18, tests/ssl/client-certs/server/index.js:19, tests/api-spec/create-from-collection/secret-variables.spec.ts:3, …
  • Imported only as a TYPE and declared in no reachable REDACTED. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning REDACTED. — packages/bruno-app/plugins/remote-images/loader.cjs:127
  • Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)
  • Declared in packages/bruno-app/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×5)
  • Declared in packages/bruno-cli/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Declared in REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×2)
  • Declared in REDACTED but never imported anywhere in that package or its workspace members — while packages/bruno-requests/src/ws/ws-client.js DOES import it and no REDACTED above that file declares it, so the import resolves through the copy this declaration installs. The declaration is misplaced rather than dead: removing it breaks that import. Move it to the REDACTED that owns the importing file (or, if the two packages are meant to share it, hoist it to the workspace root) rather than deleting it.
  • Declared in packages/bruno-js/package.json but never imported anywhere in that package or its workspace members — while packages/bruno-electron/src/ipc/notifications.js DOES import it and no REDACTED above that file declares it, so the import resolves through the copy this declaration installs. The declaration is misplaced rather than dead: removing it breaks that import. Move it to the REDACTED that owns the importing file (or, if the two packages are meant to share it, hoist it to the workspace root) rather than deleting it.
  • Declared in packages/bruno-tests/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Declared in packages/bruno-tests/collection/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports6.6 / 10Adequate✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

  • packages/bruno-app/src/utils/collections/index.js → packages/bruno-app/src/utils/collections/search.js → packages/bruno-app/src/utils/collections/index.js — packages/bruno-app/src/utils/collections/index.js:16
  • packages/bruno-electron/src/store/default-workspace.js → packages/bruno-electron/src/utils/workspace-config.js → packages/bruno-electron/src/store/default-workspace.js — packages/bruno-electron/src/store/default-workspace.js:13

What to do

  • Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Web-Security Posture0.0 / 10Critical✓ Tool-verified

Other · Security — Read from this repository's JavaScript/TypeScript source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS (certificate validation, protocol version) — facts about code that hold whether or not it serves anything itself. Of the server controls, two are read where the source shows them: every session or sign-in cookie the code sets is read for HttpOnly, Secure and SameSite at the line that sets it (a raw `Set-Cookie` header, Express, Fastify, Hono, Koa, Next.js, `cookie.serialize`, express-session and cookie-session), and every Node listener for HTTPS enforcement. HSTS, security response headers and input validation are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository. Its Node HTTP listeners were read for HTTPS enforcement alone — TLS served, a redirect to https:// or HSTS, or a TLS-terminating proxy configuration committed beside the server — each judged per server package.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.

  • `rejectUnauthorized: false` is set on a TLS client, so every peer certificate is accepted — including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic — the connection is encrypted to the attacker, not to the intended host. Remove the option so Node validates the peer. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: pass its CA as `ca` (or set `NODE_EXTRA_CA_CERTS`), which keeps the chain and hostname checks on. A managed database or broker that documents `rejectUnauthorized: false` publishes a CA bundle for exactly this purpose. — packages/bruno-cli/src/commands/import.js:135
  • This encryption's initialisation vector is a compile-time constant, so every message encrypted under the same key gets the same IV. An IV is not a secret and does not have to be one — its whole job is to be DIFFERENT each time, so that encrypting the same plaintext twice does not produce the same ciphertext. Fix it and CBC becomes an equality oracle: the mode XORs the IV into the first plaintext block and chains from there, so two messages encrypted with the same key and IV produce byte-identical ciphertext for exactly as long as their plaintexts agree. An observer who can see two ciphertexts — a repository of encrypted config files, a database column, a backup — learns that two records match and how many blocks in they diverge, without the key and without breaking anything. The same defect under a counter-based mode is worse and not recoverable by comparison: CTR and GCM XOR the plaintext against a keystream determined by the key and nonce, so a repeated nonce leaks the XOR of the two plaintexts outright, and under GCM it also forfeits the authentication key. Generate the IV with a cryptographic RNG for each message — `RandomNumberGenerator.Fill(iv)` in .NET, `crypto.randomBytes(16)` in Node — and write it alongside the ciphertext (prepending the block is the usual spelling); the receiver reads it back from there. Deriving the IV from the key material is the specific trap to avoid: it looks like rigour and produces a constant, because the derivation's inputs do not change between messages. — packages/bruno-electron/src/utils/encryption.js:34
  • `minVersion: "TLSv1"` explicitly admits a protocol version that is broken (SSL 3.0) or withdrawn (TLS 1.0/1.1, RFC 8996). Offering an obsolete version does not merely permit it — it is what a downgrade attack negotiates, so the weakest version on the list is the one that decides the connection's strength. Remove the pin: Node's default minimum is TLS 1.2, so leaving `minVersion`/`secureProtocol` unset is the strongest setting and picks up TLS 1.3 without a code change. Where a floor must be named, use `minVersion: "TLSv1.2"`. (×2) — packages/bruno-electron/src/utils/proxy-util.js:109, packages/bruno-requests/src/utils/http-https-agents.ts:480
  • MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call. (×10) — packages/bruno-app/plugins/remote-images/loader.cjs:28, packages/bruno-app/plugins/remote-images/loader.cjs:70, packages/bruno-app/plugins/remote-images/utils.js:91, …
  • hash.update(password) stores a password as a fast digest — cheap to guess whether or not it is salted — with no key-derivation function (PBKDF2/scrypt/Argon2/bcrypt). (×5) — packages/bruno-cli/src/runner/prepare-request.js:192, packages/bruno-cli/src/runner/prepare-request.js:262, packages/bruno-electron/src/ipc/network/prepare-request.js:77, …
  • `app.listen(…)` serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (`https.createServer`, Fastify `https`, Nest `httpsOptions`), no redirect of plain requests to `https://`, no `Strict-Transport-Security` (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it — so a browser may talk to it in clear text. (−2.0 on this card.) — packages/bruno-electron/src/app/mock-server/mock-server.js:543

What to do

  • Stop accepting every TLS certificate: delete `rejectUnauthorized: false` / `NODE_TLS_REJECT_UNAUTHORIZED=0` so the chain, hostname and expiry are verified, and trust a self-signed or private server by passing its CA (`ca`, or `NODE_EXTRA_CA_CERTS`) — never by switching verification off.
  • Generate a fresh random IV for every encryption with `RandomNumberGenerator.Fill` and store or transmit it next to the ciphertext, rather than fixing it in the source or deriving it from the key material — a derived IV is constant, because its inputs do not vary between messages. An IV need not be secret, only unpredictable and unique per message; under CTR/GCM a repeated nonce is catastrophic rather than merely leaky.
  • Drop SSL 3.0 and TLS 1.0/1.1: remove the `secureProtocol`/`minVersion` pin so Node's default (TLS 1.2 minimum, TLS 1.3 preferred) applies, or set `minVersion: "TLSv1.2"` explicitly. This repository constructs a TLS option admitting an obsolete version at 2 sites, not one: `packages/bruno-electron/src/utils/proxy-util.js:109` (`minVersion: "TLSv1"`), `packages/bruno-requests/src/utils/http-https-agents.ts:480` (`minVersion: "TLSv1"`). Each is a separate decision — fixing only the line this row cites leaves the others in place.
  • Review each MD5/SHA1 use by what it protects: replace it with SHA-256+ (or a KDF for passwords) where the digest is security-relevant, and switch it to a non-cryptographic hash (xxhash, murmurhash) where it only derives an identifier such as a cache key. This repository constructs a collision-broken hash (MD5/SHA1) at 10 sites, not one: `packages/bruno-app/plugins/remote-images/loader.cjs:28` (createHash("md5")), `packages/bruno-app/plugins/remote-images/loader.cjs:70` (createHash("md5")), `packages/bruno-app/plugins/remote-images/utils.js:91` (createHash("md5")), `packages/bruno-cli/src/runner/prepare-request.js:191` (createHash("sha1")), `packages/bruno-cli/src/runner/prepare-request.js:261` (createHash("sha1")), `packages/bruno-electron/src/ipc/network/prepare-request.js:76` (createHash("sha1")), `packages/bruno-electron/src/ipc/network/prepare-request.js:342` (createHash("sha1")), `packages/bruno-electron/src/ipc/openapi-sync.js:65` (createHash("md5")), and 2 further site(s). Each is a separate decision — fixing only the line this row cites leaves the others in place.
  • Store passwords with a salted, deliberately slow KDF — scrypt or PBKDF2 from node:crypto, or bcrypt/Argon2 — and compare with a constant-time check. A fast digest of a password, however it is encoded, is reversed by precomputed tables or GPU guessing. Start in `packages/bruno-cli/src/runner/prepare-request.js:192`.
  • Enforce HTTPS on each listed server: serve TLS itself, or redirect plain requests to `https://` and send `Strict-Transport-Security` (`helmet()` does by default) behind the TLS-terminating proxy — and commit that proxy's configuration beside the service. A server only this machine reaches should bind `127.0.0.1`.
X1 · Async correctness7.4 / 10Strong✓ Tool-verified

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

  • The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it. (×22) — packages/bruno-filestore/src/workers/WorkerQueue/index.ts:70, packages/bruno-electron/src/utils/git.js:157, packages/bruno-electron/src/utils/git.js:566, …

What to do

  • `async` Promise executor
X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.

Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.

X17 · Uncapped recursion over a caller-supplied document1.6 / 10Critical✓ Tool-verified

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

  • `literal` is exported and takes `value: unknown` from its caller, and it calls itself at line 17 (`literal`) with a piece of `value` (and at line 23) — and nowhere in `literal` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `literal` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/bruno-sqlite/scripts/lib/literal.ts:17
  • `generateGrpcSampleMessage` is exported, takes a document from its caller (line 113) and hands it to `generateSampleMessageFromFields`, which calls itself at line 25 (`generateSampleMessageFromFields`) with a piece of `fields` (and at line 29) — and nowhere in `generateSampleMessageFromFields` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `generateSampleMessageFromFields` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/bruno-requests/src/grpc/grpcMessageGenerator.js:25
  • `get` is exported, takes a document from its caller (line 114) and hands it to `normalize`, which calls itself at line 10 (`normalize`) with a piece of `value` — and nowhere in `normalize` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `normalize` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/bruno-query/src/index.ts:10
  • `get` is exported, takes a document from its caller (line 114) and hands it to `getValue`, which calls itself at line 34 (`getValue`) with a piece of `source` (and at line 41) — and nowhere in `getValue` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `getValue` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/bruno-query/src/index.ts:34
  • `getMemberExpressionString` is exported and takes `node: object` from its caller, and it calls itself at line 26 (`getMemberExpressionString`) with a piece of `node` (and at line 31) — and nowhere in `getMemberExpressionString` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `getMemberExpressionString` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/bruno-converters/src/utils/ast-utils.js:26
  • `extractPromptVariables` is exported and takes `obj: any` from its caller, and it calls itself at line 64 (`extractPromptVariables`) with a piece of `obj` (and at line 70) — and nowhere in `extractPromptVariables` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `extractPromptVariables` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/bruno-common/src/utils/prompt-variables.ts:64
  • `interpolate` is exported, takes a document from its caller (line 73) and hands it to `prepareMockObj`, which calls itself at line 59 (`prepareMockObj`) with a piece of `obj` — and nowhere in `prepareMockObj` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `prepareMockObj` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/bruno-common/src/interpolate/index.ts:59
  • `interpolateObject` is exported, takes a document from its caller (line 141) and hands it to `walk`, which calls itself at line 155 (`walk`) with a piece of `value` (and at line 158) — and nowhere in `walk` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `walk` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/bruno-common/src/interpolate/index.ts:155

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.

Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.

X2 · Cancellation propagation5.0 / 10Adequate✓ Tool-verified

Other · Code Health — Whether async functions that make a cancellable request accept or pass on an AbortSignal (adoption curve).

Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.

  • Only 1/6 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
  • `request` awaits `axios(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios(url, { signal })`. — packages/bruno-requests/src/utils/node-vault.ts:155
  • `downloadPac` awaits `axios.get(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios.get(url, { signal })`. — packages/bruno-requests/src/utils/pac-resolver.ts:37
  • `fetchNotifications` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — packages/bruno-electron/src/ipc/notifications.js:5
  • `fetchSourceFromUrl` awaits `axios.get(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios.get(url, { signal })`. — packages/bruno-cli/src/commands/import.js:124
  • `ensureCachedImage` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — packages/bruno-app/plugins/remote-images/loader.cjs:42

What to do

  • Thread an AbortSignal through async functions that make requests, so the work stops when its caller gives up.
X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

X24 · Document value interpolated into markup unescaped4.2 / 10Weak✓ Tool-verified

Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.

Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.

  • `renderMarkdown(segment.content)` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/bruno-app/src/components/AiChatSidebar/index.js:765
  • `description.slice(3)` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/bruno-app/src/components/RequestPane/QueryEditor/onHasCompletion.js:65
  • `reason` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/bruno-app/src/components/RequestPane/QueryEditor/onHasCompletion.js:70
  • `SCOPE_ICON[scopeType]` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — REDACTED:7
  • `attrs` is text this program did not author, and it is written into an unquoted attribute through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML text encoding does not help in an unquoted attribute — whitespace ends it; quote the attribute and encode the value. — packages/bruno-app/src/ui/RichTextEditor/extensions/EditorRawHtmlBlock/index.js:141
  • `SCOPE_ICON[scope.type]||''` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/bruno-app/src/utils/codemirror/addToScopeSwitcher.js:11
  • `CHEVRON_ICON_SVG_TEXT` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/bruno-app/src/utils/codemirror/addToScopeSwitcher.js:228
  • `SCOPE_ICON[completion.scope]||''` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/bruno-app/src/utils/codemirror/autocomplete.js:772
  • `scopeIcon` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:111
  • `embeddedCollectionData` is text this program did not author, and it is written into a script or style context through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. A script or style context needs its own escaping (or a JSON serialiser that escapes `<`); better, pass the value through a data attribute. — packages/bruno-common/src/api-docs/index.ts:170
  • `md.render(markdown)` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — REDACTED:37

What to do

  • Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.

X3 · Exception handling5.5 / 10Adequate✓ Tool-verified

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×30) — packages/bruno-requests/src/ws/ws-client.js:247, packages/bruno-requests/src/ws/ws-client.js:456, packages/bruno-requests/src/utils/http-https-agents.ts:543, …
  • `catch (error)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included. (×2) — REDACTED:37, packages/bruno-requests/src/network/system-proxy/utils/windows.ts:29
  • `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. (×6) — packages/bruno-js/src/utils/results.js:36, packages/bruno-electron/src/utils/filesystem.js:127, packages/bruno-electron/src/utils/filesystem.js:500, …
  • `catch (err)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included. (×2) — packages/bruno-electron/src/utils/mount.js:49, packages/bruno-electron/src/utils/mount.js:68

What to do

  • Swallowed exception (empty catch)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

X5 · Nullable reference types9.7 / 10Exemplary✓ Tool-verified

Other · Code Health — Whether strict null checking is enabled and not undermined by heavy `!` assertion — TypeScript's `strictNullChecks` (which `strict` turns on) is what makes `string` exclude `null` and `undefined`, and the postfix `!` is the operator that silences it.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

  • ~0.9 `!` null assertions per 1k TypeScript source lines — 19 assertion(s) across the 22181 source line(s) of the 195 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: packages/bruno-requests/src/utils/agent-cache.ts (7), packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts (4), packages/bruno-filestore/src/formats/yml/stringifyMockServer.ts (2). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.

What to do

  • The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).

WCAG coverage — what static analysis assessed

Statically assessed 12 of 55 WCAG 2.2 Level A/AA success criteria (22%; ≈24% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 43 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC4 · Keyboard semantics2.1.1, 2.4.3Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only

Not statically assessed — these 43 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health48%Weak — gated by D1, D2, R1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture69%Adequate — gated by AX8Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity76%StrongStrongest area.
Readiness31%Weak — gated by R5, R8, P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security41%Weak — gated by D29, S1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility55%Adequate — gated by AC4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance69%AdequateAcceptable, with room to improve.
Unscored — 5 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • D36 Supply-chain Provenance & Signing — 3 observation(s) recorded · The CI pipeline publishes no artifact — no package publish, container push or release with files to download. Supply-chain provenance, signing and an SBOM describe a PUBLISHED artifact for the people who obtain it, so there is nothing to attest here; a deployment of the service itself publishes nothing for anyone else to verify. Add them to the release pipeline when this repo starts publishing artifacts (a package, a container image, or a release with downloadable files). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
  • P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • X10 Duplicated predicate — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X6 Hand-rolled structured-format parsing — 11 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 33 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 44 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No image/media element found in the parsed markup — AC1 not applicable here.
  • AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — the dev server (`npm run dev`) exited before it served a page. Likely cause (not identified): the dev server exited, and its output does not match a cause we recognise. Last output: "at TracingChannel.traceSync (node:diagnostics_channel:322:14) / at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) / at Module.require (node:internal/modules/cjs/loader:1335:12) / at require (node:internal/modules/helpers:136:16) / Node.js v22.13.0 / npm error Lifecycle script `dev` failed with error: / npm error code 1 / npm error path <repo>/packages/bruno-electron / npm error workspace bruno@2.0.0 / npm error location <repo>/packages/bruno-electron / npm error command failed / npm error command sh -c electron . / ℹ Electron process exited with code 1" No runtime evidence was gathered. This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no data at rest for these controls to protect. If it does persist personal data (through a hosted backend configured outside this repository, for instance), the controls belong to wherever that data is stored.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound. If it does (through a hosted backend configured outside this repository, for instance), the limit belongs wherever that data is stored.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over. If it does (through a hosted backend configured outside this repository, for instance), the rights are served wherever that data is stored.
  • D11 Test Reliability — Test reliability not included
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D22 Internal API Consistency — API consistency is measured on C# only; the exposed JavaScript, TypeScript surface was not measured.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — symbol resolution incomplete — navigability not assessed
  • D32 Data Compliance (PII/GDPR) — 2 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D4 Code Duplication — This repository's production source (.js, .jsx, .ts, .tsx) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication. The rest — .html (680 lines, 0.3% of production source) — is compared by neither card, so duplication there is unmeasured; it is a corner of this repository, not its product.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — coverage data present for 489 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
  • PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X18 Disposal-pattern correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X25 Inert configuration knob — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
  • X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Critical — 113 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 17 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · High CVE · ×5
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
S1 · Web-Security Posture · Password hashing without a KDF · ×5
  • Password hashing without a KDF packages/bruno-cli/src/runner/prepare-request.js:192 — hash.update(password) stores a password as a fast digest — cheap to guess whether or not it is salted — with no key-derivation function (PBKDF2/scrypt/Argon2/bcrypt).
  • Password hashing without a KDF packages/bruno-cli/src/runner/prepare-request.js:262 — hash.update(password) stores a password as a fast digest — cheap to guess whether or not it is salted — with no key-derivation function (PBKDF2/scrypt/Argon2/bcrypt).
  • Password hashing without a KDF packages/bruno-electron/src/ipc/network/prepare-request.js:77 — hash.update(password) stores a password as a fast digest — cheap to guess whether or not it is salted — with no key-derivation function (PBKDF2/scrypt/Argon2/bcrypt).
  • Password hashing without a KDF packages/bruno-electron/src/ipc/network/prepare-request.js:343 — hash.update(password) stores a password as a fast digest — cheap to guess whether or not it is salted — with no key-derivation function (PBKDF2/scrypt/Argon2/bcrypt).
  • Password hashing without a KDF packages/bruno-electron/src/utils/encryption.js:20 — hash.update(password) stores a password as a fast digest — cheap to guess whether or not it is salted — with no key-derivation function (PBKDF2/scrypt/Argon2/bcrypt).
AC4 · Keyboard semantics · Click handler on a non-interactive <div> · ×4
  • Click handler on a non-interactive <div> packages/bruno-app/src/components/RunnerResults/RunConfigurationPanel/index.jsx:155 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • Click handler on a non-interactive <div> packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:766 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • Click handler on a non-interactive <div> packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:777 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • Click handler on a non-interactive <div> packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:585 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
AX8 · Test isolation · Production project references a test package · ×3
  • Production project references a test package: @usebruno/cli → chai packages/bruno-cli/package.json:61 — `@usebruno/cli` ships in a production host and references `chai`, a package that exists only to test. It puts a test framework, double or assertion library into the shipped product. Move the code that uses it into a test project, or replace it with production code. If `@usebruno/cli` is itself a plugin, matcher or preset of the test framework, declare the framework under `peerDependencies` (and `devDependencies`) instead of `dependencies`.
  • Production project references a test package: @usebruno/js → chai packages/bruno-js/package.json:27 — `@usebruno/js` ships in a production host and references `chai`, a package that exists only to test. It puts a test framework, double or assertion library into the shipped product. Move the code that uses it into a test project, or replace it with production code. If `@usebruno/js` is itself a plugin, matcher or preset of the test framework, declare the framework under `peerDependencies` (and `devDependencies`) instead of `dependencies`.
  • Production project references a test package: bruno → chai REDACTED:56 — `bruno` ships in a production host and references `chai`, a package that exists only to test. It puts a test framework, double or assertion library into the shipped product. Move the code that uses it into a test project, or replace it with production code. If `bruno` is itself a plugin, matcher or preset of the test framework, declare the framework under `peerDependencies` (and `devDependencies`) instead of `dependencies`.
AC2 · Forms & labels · <input> without a programmatic label · ×2
  • <input> without a programmatic label packages/bruno-app/src/components/RunnerResults/index.jsx:271 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label packages/bruno-app/src/themes/DesignSystem/Overview.jsx:563 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
AC4 · Keyboard semantics · Click handler on a non-interactive <span> · ×2
  • Click handler on a non-interactive <span> packages/bruno-app/src/components/RunnerResults/index.jsx:430 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • Click handler on a non-interactive <span> packages/bruno-app/src/components/RunnerResults/index.jsx:436 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
AC4 · Keyboard semantics · Focusable <div> isn't keyboard-operable · ×2
  • Focusable <div> isn't keyboard-operable packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:752 — This <div> carries tabIndex={0}, so it is in the tab order and a keyboard user will land on it — but its only behaviour is bound to mousedown, pointer gestures a keyboard cannot produce, and there is no key handler. The tab stop leads nowhere. Bind the same behaviour to a key handler, or provide an equivalent control elsewhere. Give it a role as well, so assistive tech can announce what it is.
  • Focusable <div> isn't keyboard-operable packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:575 — This <div> carries tabIndex={0}, so it is in the tab order and a keyboard user will land on it — but its only behaviour is bound to mousedown, pointer gestures a keyboard cannot produce, and there is no key handler. The tab stop leads nowhere. Bind the same behaviour to a key handler, or provide an equivalent control elsewhere. Give it a role as well, so assistive tech can announce what it is.
D10 · Test Quality · No assertions (empty test) · ×2
  • No assertions (empty test): awaited directly packages/bruno-js/tests/utils-results.spec.js:80 — Test method has an empty body — it asserts nothing and exercises no code.
  • No assertions (empty test): already done packages/bruno-js/tests/utils-results.spec.js:141 — Test method has an empty body — it asserts nothing and exercises no code.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
R8 · Dependency Hygiene · Unlisted import 'lodash' · ×2
  • Unlisted import 'lodash' packages/bruno-common/src/example-status/index.ts:1 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
  • Unlisted import 'lodash' packages/bruno-requests/src/cookies/index.ts:2 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R9 · Circular Imports · Import cycle (2 files) · ×2
  • Import cycle (2 files) packages/bruno-app/src/utils/collections/index.js:16 — packages/bruno-app/src/utils/collections/index.js → packages/bruno-app/src/utils/collections/search.js → packages/bruno-app/src/utils/collections/index.js
  • Import cycle (2 files) packages/bruno-electron/src/store/default-workspace.js:13 — packages/bruno-electron/src/store/default-workspace.js → packages/bruno-electron/src/utils/workspace-config.js → packages/bruno-electron/src/store/default-workspace.js
AC2 · Forms & labels · <label> that labels no control · ×1
  • <label> that labels no control packages/bruno-app/src/components/RunnerResults/index.jsx:270 — This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
AC4 · Keyboard semantics · Double-click handler on a non-interactive <div> · ×1
  • Double-click handler on a non-interactive <div> packages/bruno-app/src/components/MarkDown/index.jsx:28 — This <div> binds double-click and nothing else. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native <button> or <a href>. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role + tabIndex={0} + a key handler alongside the double-click.
D14 · License Compliance · Banned license · ×1
  • Banned license: ua-parser-js REDACTED:31080 — `ua-parser-js` 1.0.40 is published on registry.npmjs.org under `AGPL-3.0-or-later`, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves — a transitive dependency ships its licence just the same — so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D30 · Dependency Vulnerabilities · Critical CVE · ×1
  • REDACTED
D34 · Knowledge Freshness · Orphaned knowledge · ×1
  • Orphaned knowledge packages/bruno-app/public/static/diff2Html.js:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
D35 · Change Coupling · Boundary-crossing change coupling · ×1
  • Boundary-crossing change coupling: REDACTED ↔ collectionBruToJson.js packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js:1 — `packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js` (context bruno-app) and `packages/bruno-lang/v2/src/collectionBruToJson.js` (context bruno-lang) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `8c788853` feat: support newlines in headers, params, and variables (#5795); `311a2329` updates; `ceab0b4d` additional params updates — run `git show` on any of them.
D43 · Malicious Dependencies · Malicious package · ×1
  • REDACTED
R8 · Dependency Hygiene · Unlisted import '@grpc/grpc-js' · ×1
  • Unlisted import '@grpc/grpc-js' tests/ssl/client-certs/server/index.js:18 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@grpc/proto-loader' · ×1
  • Unlisted import '@grpc/proto-loader' tests/ssl/client-certs/server/index.js:19 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'js-yaml' · ×1
  • Unlisted import 'js-yaml' tests/api-spec/create-from-collection/secret-variables.spec.ts:3 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'ws' · ×1
  • Unlisted import 'ws' tests/ssl/client-certs/server/index.js:17 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'yaml' · ×1
  • Unlisted import 'yaml' tests/collection/create-requests/http-requests.spec.ts:3 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@tiptap/core' · ×1
  • Unlisted import '@tiptap/core' packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkPopover/index.js:2 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@tiptap/extension-bullet-list' · ×1
  • Unlisted import '@tiptap/extension-bullet-list' packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTaskList/index.js:1 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@tiptap/extension-document' · ×1
  • Unlisted import '@tiptap/extension-document' packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTaskList/index.spec.js:3 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@tiptap/extension-hard-break' · ×1
  • Unlisted import '@tiptap/extension-hard-break' packages/bruno-app/src/ui/RichTextEditor/extensions/EditorHardBreak/index.js:1 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@tiptap/extension-ordered-list' · ×1
  • Unlisted import '@tiptap/extension-ordered-list' packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTaskList/index.js:3 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@tiptap/extension-paragraph' · ×1
  • Unlisted import '@tiptap/extension-paragraph' packages/bruno-app/src/ui/RichTextEditor/extensions/EditorParagraph/index.js:1 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@tiptap/extension-strike' · ×1
  • Unlisted import '@tiptap/extension-strike' packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTaskList/index.spec.js:6 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import '@tiptap/extension-text' · ×1
  • Unlisted import '@tiptap/extension-text' packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTaskList/index.spec.js:5 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'immutable' · ×1
  • Unlisted import 'immutable' packages/bruno-app/rsbuild.config.mjs:13 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'prosemirror-model' · ×1
  • Unlisted import 'prosemirror-model' packages/bruno-app/src/ui/RichTextEditor/utils/editorMarkdownSerialize.spec.js:2 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'uuid' · ×1
  • Unlisted import 'uuid' packages/bruno-app/src/components/OpenAPISyncTab/index.js:4 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'dotenv' · ×1
  • Unlisted import 'dotenv' packages/bruno-common/src/utils/jsonToDotenv.spec.ts:2 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'node-fetch' · ×1
  • Unlisted import 'node-fetch' packages/bruno-electron/src/ipc/notifications.js:3 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'hexy' · ×1
  • Unlisted import 'hexy' packages/bruno-requests/src/ws/ws-client.js:2 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'moment' · ×1
  • Unlisted import 'moment' packages/bruno-requests/src/cookies/index.ts:3 — Imported but not declared in any reachable REDACTED — installs work only by hoisting accident.
S1 · Web-Security Posture · TLS certificate validation disabled · ×1
  • TLS certificate validation disabled packages/bruno-cli/src/commands/import.js:135 — `rejectUnauthorized: false` is set on a TLS client, so every peer certificate is accepted — including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic — the connection is encrypted to the attacker, not to the intended host. Remove the option so Node validates the peer. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: pass its CA as `ca` (or set `NODE_EXTRA_CA_CERTS`), which keeps the chain and hostname checks on. A managed database or broker that documents `rejectUnauthorized: false` publishes a CA bundle for exactly this purpose.
Serious — 2122 finding(s)
D3 · God Classes · FunctionTooLong · ×219
  • FunctionTooLong: index.registerNetworkIpc REDACTED:474 — FunctionTooLong — registerNetworkIpc runs 1271 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1171 over it, 12.71× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.EnvironmentList packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44 — FunctionTooLong — EnvironmentList runs 761 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 661 over it, 7.61× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.EnvironmentList packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:43 — FunctionTooLong — EnvironmentList runs 757 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 657 over it, 7.57× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.SaveTransientRequest packages/bruno-app/src/components/SaveTransientRequest/index.js:28 — FunctionTooLong — SaveTransientRequest runs 658 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 558 over it, 6.58× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: run-single-request.runSingleRequest REDACTED:103 — FunctionTooLong — runSingleRequest runs 650 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 550 over it, 6.50× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.AiChatSidebar packages/bruno-app/src/components/AiChatSidebar/index.js:191 — FunctionTooLong — AiChatSidebar runs 622 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 522 over it, 6.22× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.CollectionHeader packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:66 — FunctionTooLong — CollectionHeader runs 568 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 468 over it, 5.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.CollectionItemRow packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:76 — FunctionTooLong — CollectionItemRow runs 533 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 433 over it, 5.33× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.RequestTab packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:38 — FunctionTooLong — RequestTab runs 516 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 416 over it, 5.16× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.RequestTabPanel packages/bruno-app/src/components/RequestTabPanel/index.js:70 — FunctionTooLong — RequestTabPanel runs 485 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 385 over it, 4.85× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.CreateMockServerModal packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:164 — FunctionTooLong — CreateMockServerModal runs 482 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 382 over it, 4.82× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.NewRequest packages/bruno-app/src/components/Sidebar/NewRequest/index.js:27 — FunctionTooLong — NewRequest runs 477 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 377 over it, 4.77× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: gruvbox.createGruvboxDarkTheme packages/bruno-app/src/themes/dark/gruvbox.js:130 — FunctionTooLong — createGruvboxDarkTheme runs 441 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 341 over it, 4.41× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: gruvbox.createGruvboxLightTheme packages/bruno-app/src/themes/light/gruvbox.js:130 — FunctionTooLong — createGruvboxLightTheme runs 441 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 341 over it, 4.41× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.Keybindings packages/bruno-app/src/components/Preferences/Keybindings/index.js:264 — FunctionTooLong — Keybindings runs 435 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 335 over it, 4.35× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: workspace.registerWorkspaceIpc packages/bruno-electron/src/ipc/workspace.js:55 — FunctionTooLong — registerWorkspaceIpc runs 432 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 332 over it, 4.32× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.RunnerResults packages/bruno-app/src/components/RunnerResults/index.jsx:72 — FunctionTooLong — RunnerResults runs 425 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 325 over it, 4.25× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.ProxySettings packages/bruno-app/src/components/Preferences/ProxySettings/index.js:14 — FunctionTooLong — ProxySettings runs 419 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 319 over it, 4.19× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.EditableTable packages/bruno-app/src/components/EditableTable/index.js:86 — FunctionTooLong — EditableTable runs 402 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 302 over it, 4.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: CompatEndpointCard.CompatEndpointCard packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:22 — FunctionTooLong — CompatEndpointCard runs 393 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 293 over it, 3.93× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.CollectionRow packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:63 — FunctionTooLong — CollectionRow runs 392 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 292 over it, 3.92× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.OAuth2AuthorizationCode packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:17 — FunctionTooLong — OAuth2AuthorizationCode runs 384 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 284 over it, 3.84× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.transformCollectionToSaveToExportAsFile packages/bruno-app/src/utils/collections/index.js:179 — FunctionTooLong — transformCollectionToSaveToExportAsFile runs 380 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 280 over it, 3.80× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.OAuth1 packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js:31 — FunctionTooLong — OAuth1 runs 379 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 279 over it, 3.79× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.RequestHeaders packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js:85 — FunctionTooLong — RequestHeaders runs 375 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 275 over it, 3.75× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 194 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×121
  • Hotspot: packages/bruno-electron/src/ipc/collection.js packages/bruno-electron/src/ipc/collection.js:193 — packages/bruno-electron/src/ipc/collection.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 373 in collection.registerRendererEventHandlers at line 193. 3 of those changes were fix/bug commits, and the other 7 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-electron/src/ipc/collection.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: REDACTED REDACTED:474 — REDACTED changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 221 in index.registerNetworkIpc at line 474. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: REDACTED REDACTED:103 — REDACTED changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 145 in run-single-request.runSingleRequest at line 103. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-electron/src/ipc/openapi-sync.js packages/bruno-electron/src/ipc/openapi-sync.js:1103 — packages/bruno-electron/src/ipc/openapi-sync.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 251 in openapi-sync.registerOpenAPISyncIpc at line 1103. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-electron/src/ipc/openapi-sync.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:76 — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 107 in index.CollectionItemRow at line 76. 1 of those changes was a fix/bug commit, and the other 13 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/utils/collections/index.js packages/bruno-app/src/utils/collections/index.js:179 — packages/bruno-app/src/utils/collections/index.js changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in index.transformCollectionToSaveToExportAsFile at line 179. 4 of those changes were fix/bug commits, and the other 15 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/utils/collections/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/EnvironmentVariablesTable/index.js packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:246 — packages/bruno-app/src/components/EnvironmentVariablesTable/index.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 132 in index.EnvironmentVariablesTable at line 246. 2 of those changes were fix/bug commits, and the other 8 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/EnvironmentVariablesTable/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-cli/src/commands/run.js packages/bruno-cli/src/commands/run.js:305 — packages/bruno-cli/src/commands/run.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 135 in run.handler at line 305. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-cli/src/commands/run.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:164 — packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 106 in index.CreateMockServerModal at line 164. 4 of those changes were fix/bug commits, and the other 5 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1128 — packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in actions.handleMultipleCollectionItemsDrop.<returned closure> at line 1128. 5 of those changes were fix/bug commits, and the other 15 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/RequestTabs/RequestTab/index.js packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:38 — packages/bruno-app/src/components/RequestTabs/RequestTab/index.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 132 in index.RequestTab at line 38. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/RequestTabs/RequestTab/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/utils/codemirror/brunoVarInfo.js packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:232 — packages/bruno-app/src/utils/codemirror/brunoVarInfo.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 111 in brunoVarInfo.renderVarInfo at line 232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/utils/codemirror/brunoVarInfo.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44 — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 128 in index.EnvironmentList at line 44. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:43 — packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 128 in index.EnvironmentList at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js:85 — packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in index.RequestHeaders at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/RequestTabPanel/index.js packages/bruno-app/src/components/RequestTabPanel/index.js:70 — packages/bruno-app/src/components/RequestTabPanel/index.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 160 in index.RequestTabPanel at line 70. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/RequestTabPanel/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-lang/v2/src/jsonToBru.js packages/bruno-lang/v2/src/jsonToBru.js:15 — packages/bruno-lang/v2/src/jsonToBru.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 303 in jsonToBru.jsonToBru at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-lang/v2/src/jsonToBru.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/RunnerResults/index.jsx packages/bruno-app/src/components/RunnerResults/index.jsx:72 — packages/bruno-app/src/components/RunnerResults/index.jsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in index.RunnerResults at line 72. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/RunnerResults/index.jsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-electron/src/ipc/network/axios-instance.js packages/bruno-electron/src/ipc/network/axios-instance.js:111 — packages/bruno-electron/src/ipc/network/axios-instance.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in axios-instance.makeAxiosInstance at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-electron/src/ipc/network/axios-instance.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-converters/src/postman/postman-to-bruno.js packages/bruno-converters/src/postman/postman-to-bruno.js:483 — packages/bruno-converters/src/postman/postman-to-bruno.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 115 in postman-to-bruno.importPostmanV2CollectionItem at line 483. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-converters/src/postman/postman-to-bruno.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:63 — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in index.CollectionRow at line 63. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-converters/src/openapi/openapi-to-bruno.js packages/bruno-converters/src/openapi/openapi-to-bruno.js:278 — packages/bruno-converters/src/openapi/openapi-to-bruno.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in openapi-to-bruno.transformOpenapiRequestItem at line 278. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-converters/src/openapi/openapi-to-bruno.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/Sidebar/ApiSpecs/CreateApiSpec/index.js packages/bruno-app/src/components/Sidebar/ApiSpecs/CreateApiSpec/index.js:32 — packages/bruno-app/src/components/Sidebar/ApiSpecs/CreateApiSpec/index.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in index.CreateApiSpec at line 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/Sidebar/ApiSpecs/CreateApiSpec/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: packages/bruno-app/src/components/ResponsePane/index.js packages/bruno-app/src/components/ResponsePane/index.js:34 — packages/bruno-app/src/components/ResponsePane/index.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in index.ResponsePane at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/ResponsePane/index.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: REDACTED REDACTED:41 — REDACTED changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 164 in interpolate-vars.interpolateVars at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 96 more in this group — see findings.md.
D10 · Test Quality · No assertions · ×98
  • No assertions: copies a value to the clipboard tests/variables-tab/variables-tab.spec.ts:149 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: masks a revealed secret again after leaving and reopening the tab tests/variables-tab/variables-tab.spec.ts:200 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: sorts the environment rows by name and returns to the default order tests/variables-tab/variables-tab.spec.ts:425 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: deletes a request without an error toast tests/transient-requests/delete-with-transient-open.spec.ts:22 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: developer mode tests/ssl/custom-ca-certs/tests/custom-valid-ca-cert-in-config-with-defaults/custom-valid-ca-cert-in-config-with-defaults.spec.ts:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: safe mode tests/ssl/custom-ca-certs/tests/custom-valid-ca-cert-in-config-with-defaults/custom-valid-ca-cert-in-config-with-defaults.spec.ts:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: developer mode tests/ssl/custom-ca-certs/tests/custom-valid-ca-cert-in-config/custom-valid-ca-cert-in-config.spec.ts:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: safe mode tests/ssl/custom-ca-certs/tests/custom-valid-ca-cert-in-config/custom-valid-ca-cert-in-config.spec.ts:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: developer mode tests/ssl/custom-ca-certs/tests/custom-invalid-ca-cert-in-config-with-defaults/custom-invalid-ca-cert-in-config-with-defaults.spec.ts:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: safe mode tests/ssl/custom-ca-certs/tests/custom-invalid-ca-cert-in-config-with-defaults/custom-invalid-ca-cert-in-config-with-defaults.spec.ts:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: developer mode tests/ssl/custom-ca-certs/tests/custom-invalid-ca-cert-in-config/custom-invalid-ca-cert-in-config.spec.ts:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: safe mode tests/ssl/custom-ca-certs/tests/custom-invalid-ca-cert-in-config/custom-invalid-ca-cert-in-config.spec.ts:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: developer mode tests/ssl/basic-ssl/tests/self-signed-success-with-validation-disabled/self-signed-success-with-validation-disabled.spec.ts:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: safe mode tests/ssl/basic-ssl/tests/self-signed-success-with-validation-disabled/self-signed-success-with-validation-disabled.spec.ts:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: developer mode tests/ssl/basic-ssl/tests/self-signed-rejected/self-signed-rejected.spec.ts:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: safe mode tests/ssl/basic-ssl/tests/self-signed-rejected/self-signed-rejected.spec.ts:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: developer mode tests/ssl/basic-ssl/tests/basic-ssl-success/basic-ssl-success.spec.ts:5 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: safe mode tests/ssl/basic-ssl/tests/basic-ssl-success/basic-ssl-success.spec.ts:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should close previous SSE connection when resending request tests/sse/sse-cancellation.spec.ts:9 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: preserves unmounted collection environment after snapshot save from another collection tests/snapshots/environment/environment.spec.ts:141 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: does not offer the menu on a WebSocket request URL tests/set-as-variable/set-as-variable.spec.ts:779 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: does not offer the menu in a gRPC bulk-edit box, which passes no request of its own tests/set-as-variable/set-as-variable.spec.ts:816 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: does not offer the menu in the GraphQL query editor tests/set-as-variable/set-as-variable.spec.ts:859 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: does not offer the menu in the Settings tags input tests/set-as-variable/set-as-variable.spec.ts:874 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should work in developer mode tests/scripting/url-helpers/url-helpers.spec.ts:6 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • + 73 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×46
  • FileTooLong: collections/index.js packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js — FileTooLong — 3147 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 87% of them inside a single declaration: collectionsSlice (257-4314). The bar is 500 significant lines; this is 2647 over it, 6.29× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: static/diff2Html.js packages/bruno-app/public/static/diff2Html.js — FileTooLong — 2650 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 1150 over it, 1.77× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: collections/actions.js packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js — FileTooLong — 2562 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 2062 over it, 5.12× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: ipc/collection.js packages/bruno-electron/src/ipc/collection.js — FileTooLong — 1847 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 90% of them inside a single declaration: registerRendererEventHandlers (193-2800). The bar is 500 significant lines; this is 1347 over it, 3.69× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: collections/index.js packages/bruno-app/src/utils/collections/index.js — FileTooLong — 1691 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 1191 over it, 3.38× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 1627 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 78% of them inside a single declaration: registerNetworkIpc (474-2295). The bar is 500 significant lines; this is 1127 over it, 3.25× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: ipc/openapi-sync.js packages/bruno-electron/src/ipc/openapi-sync.js — FileTooLong — 1303 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 803 over it, 2.61× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: DesignSystem/Overview.jsx packages/bruno-app/src/themes/DesignSystem/Overview.jsx — FileTooLong — 1164 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 664 over it, 2.33× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: utils/git.js packages/bruno-electron/src/utils/git.js — FileTooLong — 1087 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 587 over it, 2.17× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: workspaces/actions.js packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js — FileTooLong — 971 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 471 over it, 1.94× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: EnvironmentVariablesTable/index.js packages/bruno-app/src/components/EnvironmentVariablesTable/index.js — FileTooLong — 901 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 401 over it, 1.80× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/bruToJson.js packages/bruno-lang/v2/src/bruToJson.js — FileTooLong — 880 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 380 over it, 1.76× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: openapi/openapi-to-bruno.js packages/bruno-converters/src/openapi/openapi-to-bruno.js — FileTooLong — 869 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 369 over it, 1.74× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: postman/postman-to-bruno.js packages/bruno-converters/src/postman/postman-to-bruno.js — FileTooLong — 849 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 349 over it, 1.70× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: EnvironmentList/index.js packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js — FileTooLong — 803 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: EnvironmentList (44-1028). The bar is 500 significant lines; this is 303 over it, 1.61× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: EnvironmentList/index.js packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js — FileTooLong — 798 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: EnvironmentList (43-1029). The bar is 500 significant lines; this is 298 over it, 1.60× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: codemirror/brunoVarInfo.js packages/bruno-app/src/utils/codemirror/brunoVarInfo.js — FileTooLong — 796 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 296 over it, 1.59× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: AiChatSidebar/index.js packages/bruno-app/src/components/AiChatSidebar/index.js — FileTooLong — 775 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 80% of them inside a single declaration: AiChatSidebar (191-1001). The bar is 500 significant lines; this is 275 over it, 1.55× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: collections/exampleReducers.js packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js — FileTooLong — 745 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 245 over it, 1.49× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 743 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 87% of them inside a single declaration: BulkImportCollectionLocation (141-978). The bar is 500 significant lines; this is 243 over it, 1.49× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: wsdl/wsdl-to-bruno.js packages/bruno-converters/src/wsdl/wsdl-to-bruno.js — FileTooLong — 733 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 233 over it, 1.47× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: commands/run.js packages/bruno-cli/src/commands/run.js — FileTooLong — 723 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 66% of them inside a single declaration: handler (305-1015). The bar is 500 significant lines; this is 223 over it, 1.45× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 719 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 90% of them inside a single declaration: runSingleRequest (103-1044). The bar is 500 significant lines; this is 219 over it, 1.44× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: app/collection-watcher.js packages/bruno-electron/src/app/collection-watcher.js — FileTooLong — 691 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 191 over it, 1.38× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: codemirror/autocomplete.js packages/bruno-app/src/utils/codemirror/autocomplete.js — FileTooLong — 685 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 185 over it, 1.37× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • + 21 more in this group — see findings.md.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×40
  • Sync-over-async blocking packages/bruno-app/src/hooks/useMissingFileCheck/index.js:43 — `existsSync` in `callback to currentPaths.map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/docs/generate.js:137 — `fs.mkdirSync` in `handler` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/docs/generate.js:138 — `fs.writeFileSync` in `handler` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:174 — `fs.readFileSync` in `readOpenApiFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:210 — `fs.readFileSync` in `readWSDLFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:242 — `fs.readFileSync` in `readPostmanFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:273 — `fs.statSync` in `resolveLocalWsdlSchemaRef` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:282 — `fs.readFileSync` in `resolveLocalWsdlSchemaRef` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:304 — `fs.readdirSync` in `resolveCollectionOutputDir` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:308 — `fs.mkdirSync` in `resolveCollectionOutputDir` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:319 — `fs.mkdirSync` in `resolveCollectionOutputDir` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/import.js:371 — `fs.writeFileSync` in `writeBrunoCollection` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/run.js:356 — `fs.readFileSync` in `handler` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/run.js:499 — `fs.existsSync` in `findWorkspacePath` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/run.js:680 — `fs.readFileSync` in `handler` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/commands/run.js:975 — `fs.writeFileSync` in `json` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/reporters/html.js:27 — `fs.writeFileSync` in `makeHtmlOutput` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/reporters/junit.js:126 — `fs.writeFileSync` in `makeJUnitOutput` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/runner/prepare-request.js:413 — `fs.readFileSync` in `prepareRequest` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking REDACTED:439 — `fs.readFileSync` in `runSingleRequest` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking REDACTED:440 — `fs.readFileSync` in `runSingleRequest` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking REDACTED:448 — `fs.readFileSync` in `runSingleRequest` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/utils/environment.js:46 — `fs.existsSync` in `loadEnvironments` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/utils/environment.js:51 — `fs.readdirSync` in `loadEnvironments` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking packages/bruno-cli/src/utils/filesystem.js:53 — `fs.writeFileSync` in `writeFile` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • + 15 more in this group — see findings.md.
R4 · Test Coverage · No test reaches this file · ×40
  • No test reaches this file packages/bruno-app/public/static/diff2Html.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/globalStyles.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-cli/src/commands/run.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/Preferences/Keybindings/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/SaveTransientRequest/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/RequestTabPanel/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/Sidebar/NewRequest/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/EditableTable/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/Preferences/AI/StyledWrapper.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/RunnerResults/index.jsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/SaveTransientRequest/StyledWrapper.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/GlobalSearchModal/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/Preferences/AI/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/Devtools/Console/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/components/RequestPane/QueryBuilder/FieldNode.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file packages/bruno-app/src/providers/Hotkeys/index.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • + 15 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×36
  • Swallowed exception (empty catch) packages/bruno-requests/src/ws/ws-client.js:247 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-requests/src/ws/ws-client.js:456 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-requests/src/utils/http-https-agents.ts:543 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-requests/src/utils/http-https-agents.ts:559 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-requests/src/scripting/send-request.ts:64 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-requests/src/scripting/send-request.ts:186 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-requests/src/grpc/grpc-client.js:291 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:23 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:27 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-js/src/utils/error-formatter.js:149 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-js/src/utils/error-formatter.js:194 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-js/src/utils/results.js:36 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-js/src/utils/url.js:50 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/index.js:178 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/index.js:607 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/index.js:609 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/index.js:611 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/index.js:613 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/index.js:615 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/index.js:618 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/utils/common.js:127 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/utils/filesystem.js:127 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/utils/filesystem.js:500 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/utils/git.js:1286 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) packages/bruno-electron/src/utils/git.js:1308 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • + 11 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED · ×30
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 5 more in this group — see findings.md.
IC1 · Incompleteness & stubs · Markup wires an event to an empty handler · ×30
  • Markup wires an event to an empty handler packages/bruno-app/src/components/MockServer/MockResponse/MockResponseTryResult/index.js:24 — `onEdit` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/MockServer/MockResponse/MockResponseTryResult/index.js:25 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/MockServer/MockServerDashboard/RequestLog/index.js:377 — `onChange` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/MockServer/MockServerDashboard/RouteTable/index.js:168 — `onChange` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/Notifications/NotificationsModal/NotificationDetail.js:47 — `onDoubleClick` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/RequestPane/QueryParams/index.js:222 — `onChange` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyRenderer/index.js:74 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFileBody/index.js:158 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFileBody/index.js:163 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFormUrlEncodedParams/index.js:77 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFormUrlEncodedParams/index.js:80 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:87 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:90 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:108 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:110 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js:211 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js:215 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js:243 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js:248 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:124 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:126 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:145 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:147 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:175 — `onSave` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • Markup wires an event to an empty handler packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:177 — `onRun` is wired to an arrow whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
  • + 5 more in this group — see findings.md.
X1 · Async correctness · `async` Promise executor · ×22
  • `async` Promise executor packages/bruno-filestore/src/workers/WorkerQueue/index.ts:70 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-electron/src/utils/git.js:157 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-electron/src/utils/git.js:566 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-electron/src/utils/git.js:818 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-electron/src/utils/git.js:833 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-electron/src/utils/git.js:1044 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-electron/src/utils/oauth2.js:306 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-electron/src/ipc/network/authorize-user-in-window.js:16 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor REDACTED:773 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor REDACTED:1485 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-cli/src/commands/run.js:801 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:484 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:526 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:594 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1000 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1159 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1956 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3265 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3505 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3515 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3524 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3536 — The function passed to `new Promise(…)` is `async`. The constructor ignores what its executor returns, so anything this executor throws — every throw inside an `async` function, including after an `await` — rejects a Promise nobody holds instead of the one being constructed: the outer Promise never settles, whoever awaits it hangs, and the error is reported nowhere. If the body needs `await`, it does not need `new Promise` at all: make the enclosing function `async` and `return` the value (or `throw`) directly. If it wraps a callback API, keep the executor synchronous — call the API and `resolve`/`reject` from its callback — and do the awaiting outside it.
D17 · Explicit Debt · TodoComment · ×20
  • TodoComment tests/websockets/persistence.spec.ts:9 — // TODO: reaper move to someplace common — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment tests/utils/wait.ts:3 — // TODO: reaper Might not be necessary, figure out a better way later — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment tests/collection/headers/environment-selector-search.spec.ts:5 — // TODO: We need to revisit and make it parallel safe — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment tests/collection/close-all-collections/close-all-collections.spec.ts:19 — // TODO: These tests need to be updated for the new workspace UI — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment tests/benchmarks/utils/format.ts:1 — // TODO (chirag): use this in the mount test in another PR — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment tests/benchmarks/runner/runner-allocation.bench.ts:1 — // TODO - (chirag): — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-schema-types/src/collection/folder.ts:6 — // TODO: Widen scope to include GRPC scripts once Collection/Folder level inheritance is added to GRPC. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-filestore/src/formats/yml/stringifyFolder.ts:96 — // TODO: Widen scope to include GRPC scripts once Collection/Folder level inheritance is added to GRPC. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-converters/src/opencollection/bruno-to-opencollection.ts:152 — // TODO: Widen scope to include GRPC scripts once Collection/Folder level inheritance is added to GRPC. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-converters/src/opencollection/folder.ts:41 — // TODO: Widen scope to include GRPC scripts once Collection/Folder level inheritance is added to GRPC. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-converters/src/opencollection/folder.ts:103 — // TODO: Widen scope to include GRPC scripts once Collection/Folder level inheritance is added to GRPC. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-converters/src/opencollection/opencollection-to-bruno.ts:117 — // TODO: Widen scope to include GRPC scripts once Collection/Folder level inheritance is added to GRPC. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-filestore/src/formats/yml/script.spec.ts:81 — // TODO: Move it to a separate test block, once ws scripts are added. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-filestore/src/formats/yml/stringifyCollection.ts:214 — // TODO: Widen scope to include GRPC scripts once Collection/Folder level inheritance is added to gRPC. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-filestore/src/formats/yml/items/stringifyWebsocketRequest.ts:96 — // TODO: Modify to WS scripts once WS scripts are implemented. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-converters/src/opencollection/items/websocket.ts:56 — // TODO: Modify to WS scripts when WS Scripts are implemented. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-converters/src/opencollection/items/websocket.ts:151 — // TODO: Modify to WS scripts when WS Scripts are implemented. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-common/src/utils/form-data.ts:43 — // todo: checking constructor.name can produce false positives for objects that have a constructor.name property set to 'FormData', but this is rare. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-common/src/runner/runner-summary.ts:3 — // todo: this is generic, not specific to html, can be moved out of the report/html sub-package — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment packages/bruno-common/src/runner/types/index.ts:103 — // todo - csv/json row data — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D29 · Static Analysis (SAST) · REDACTED · ×19
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
R11 · Import Boundaries · Boundary violation [package · ×15
  • Boundary violation [package:test-suite-dependency] packages/bruno-app/src/components/MockServer/MockResponse/MockResponsesList/index.js:26 — packages/bruno-app/src/components/MockServer/MockResponse/MockResponsesList/index.js:26 imports packages/bruno-app/src/components/MockServer/MockResponse/GenerateFromSpecModal/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:test-suite-dependency] packages/bruno-app/src/components/OpenAPISyncTab/SyncReviewPage/index.js:16 — packages/bruno-app/src/components/OpenAPISyncTab/SyncReviewPage/index.js:16 imports packages/bruno-app/src/components/OpenAPISyncTab/SpecDiffModal/index.js, a module inside the test suite — test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on.
  • Boundary violation [package:third-party-deep-import] packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js:8 — packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js:8 imports pdfjs-dist/build/pdf.worker, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js:11 — packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js:11 imports pdfjs-dist/build/pdf, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:app-undeclared-workspace-dep] packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js:19 — packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js:19 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies.
  • Boundary violation [package:third-party-deep-import] packages/bruno-app/src/ui/RichTextEditor/extensions/EditorCodeBlock/index.js:6 — packages/bruno-app/src/ui/RichTextEditor/extensions/EditorCodeBlock/index.js:6 imports highlight.js/lib/languages/protobuf, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:app-undeclared-workspace-dep] packages/bruno-app/src/utils/exporters/opencollection.js:2 — packages/bruno-app/src/utils/exporters/opencollection.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies.
  • Boundary violation [package:app-undeclared-workspace-dep] packages/bruno-app/src/utils/exporters/postman-collection.js:1 — packages/bruno-app/src/utils/exporters/postman-collection.js:1 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies.
  • Boundary violation [package:app-undeclared-workspace-dep] packages/bruno-app/src/utils/importers/insomnia-collection.js:2 — packages/bruno-app/src/utils/importers/insomnia-collection.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies.
  • Boundary violation [package:app-undeclared-workspace-dep] packages/bruno-app/src/utils/importers/openapi-collection.js:2 — packages/bruno-app/src/utils/importers/openapi-collection.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies.
  • Boundary violation [package:app-undeclared-workspace-dep] packages/bruno-app/src/utils/importers/opencollection.js:6 — packages/bruno-app/src/utils/importers/opencollection.js:6 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies.
  • Boundary violation [package:app-undeclared-workspace-dep] packages/bruno-app/src/utils/importers/postman-environment.js:2 — packages/bruno-app/src/utils/importers/postman-environment.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies.
  • Boundary violation [package:app-undeclared-workspace-dep] packages/bruno-app/src/utils/importers/wsdl-collection.js:2 — packages/bruno-app/src/utils/importers/wsdl-collection.js:2 imports @usebruno/converters, a workspace package this repository defines, while this package's own REDACTED declares its OTHER workspace siblings and not this one — the import resolves only through the root install's hoisted link, so the manifest that is this package's record of what it depends on is incomplete, and nothing fails until the layout changes. Add it to this package's dependencies.
  • Boundary violation [package:test-cross-package-internals] tests/import/openapi/api-spec-panel-validation.spec.ts:5 — tests/import/openapi/api-spec-panel-validation.spec.ts:5 reaches past another workspace package's public entry into its internals with a relative path (../../../packages/bruno-electron/src/app/apiSpecs) — the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead.
  • Boundary violation [package:test-cross-package-internals] tests/runner/cli-json-env-file/cli-json-env-file.spec.ts:5 — tests/runner/cli-json-env-file/cli-json-env-file.spec.ts:5 reaches past another workspace package's public entry into its internals with a relative path (../../../packages/bruno-cli/src/constants.js) — the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead.
D10 · Test Quality · Skipped test · ×14
  • Skipped test: (unnamed test) tests/set-as-variable/set-as-variable.spec.ts:687 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) tests/proxy/system-pac/system-pac-proxy.spec.ts:35 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) tests/proxy/system-pac/system-pac-proxy.spec.ts:40 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) tests/mounting/symlinks.spec.ts:136 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) tests/mounting/symlinks.spec.ts:156 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) tests/mounting/symlinks.spec.ts:157 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) tests/collection/git/clone-branch-selection.spec.ts:38 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) tests/collection/git/clone-branch-selection.spec.ts:39 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) tests/collection/draft/draft-values-in-requests.spec.ts:116 — Skipped — switched off by test.skip
  • Skipped test: string encrypted using createCipher (< node 20) should be decrypted properly packages/bruno-electron/tests/utils/encryption.spec.js:35 — Skipped — switched off by it.skip
  • Skipped test: should throw Error when JSON parsing fails packages/bruno-converters/tests/postman/postman-env-to-bruno-env.spec.js:161 — Skipped — switched off by it.skip
  • Skipped test: should handle function parameters with legacy names packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/legacy-global-apis.test.js:192 — Skipped — switched off by test.skip
  • Skipped test: should handle scoped variables correctly packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/scoped-variables.test.js:4 — Skipped — switched off by it.skip
  • Skipped test: should handle scoped variables correctly packages/bruno-converters/tests/postman/postman-translations/transpiler-tests/scoped-variables.test.js:28 — Skipped — switched off by it.skip
D8 · Code Coverage · Low coverage · ×12
  • Low coverage: packages/bruno-electron/src/ipc/ai/script-prompts.js packages/bruno-electron/src/ipc/ai/script-prompts.js:1 — 40.8% line coverage (29/71).
  • Low coverage: packages/bruno-js/src/sandbox/quickjs/utils/test-helpers.js packages/bruno-js/src/sandbox/quickjs/utils/test-helpers.js:1 — 14.3% line coverage (1/7).
  • Low coverage: packages/src/opencollection/environment.ts packages/src/opencollection/environment.ts:1 — 6.3% line coverage (1/16).
  • Low coverage: packages/src/opencollection/folder.ts packages/src/opencollection/folder.ts:1 — 6.9% line coverage (2/29).
  • Low coverage: packages/src/opencollection/common/actions.ts packages/src/opencollection/common/actions.ts:1 — 37.5% line coverage (6/16).
  • Low coverage: packages/src/opencollection/common/assertions.ts packages/src/opencollection/common/assertions.ts:1 — 36.4% line coverage (4/11).
  • Low coverage: packages/src/opencollection/common/auth.ts packages/src/opencollection/common/auth.ts:1 — 9.2% line coverage (6/65).
  • Low coverage: packages/src/opencollection/common/scripts.ts packages/src/opencollection/common/scripts.ts:1 — 31.0% line coverage (9/29).
  • Low coverage: packages/src/opencollection/items/graphql.ts packages/src/opencollection/items/graphql.ts:1 — 5.0% line coverage (2/40).
  • Low coverage: packages/src/opencollection/items/grpc.ts packages/src/opencollection/items/grpc.ts:1 — 0.0% line coverage (0/38).
  • Low coverage: packages/src/opencollection/items/websocket.ts packages/src/opencollection/items/websocket.ts:1 — 0.0% line coverage (0/38).
  • Low coverage: packages/bruno-filestore/src/workers/worker-script.ts packages/bruno-filestore/src/workers/worker-script.ts:1 — 0.0% line coverage (0/17).
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×11
  • Untrusted text written into markup unescaped packages/bruno-app/src/components/AiChatSidebar/index.js:765 — `renderMarkdown(segment.content)` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped packages/bruno-app/src/components/RequestPane/QueryEditor/onHasCompletion.js:65 — `description.slice(3)` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped packages/bruno-app/src/components/RequestPane/QueryEditor/onHasCompletion.js:70 — `reason` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped REDACTED:7 — `SCOPE_ICON[scopeType]` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped packages/bruno-app/src/ui/RichTextEditor/extensions/EditorRawHtmlBlock/index.js:141 — `attrs` is text this program did not author, and it is written into an unquoted attribute through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML text encoding does not help in an unquoted attribute — whitespace ends it; quote the attribute and encode the value.
  • Untrusted text written into markup unescaped packages/bruno-app/src/utils/codemirror/addToScopeSwitcher.js:11 — `SCOPE_ICON[scope.type]||''` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped packages/bruno-app/src/utils/codemirror/addToScopeSwitcher.js:228 — `CHEVRON_ICON_SVG_TEXT` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped packages/bruno-app/src/utils/codemirror/autocomplete.js:772 — `SCOPE_ICON[completion.scope]||''` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:111 — `scopeIcon` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped packages/bruno-common/src/api-docs/index.ts:170 — `embeddedCollectionData` is text this program did not author, and it is written into a script or style context through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. A script or style context needs its own escaping (or a JSON serialiser that escapes `<`); better, pass the value through a data attribute.
  • Untrusted text written into markup unescaped REDACTED:37 — `md.render(markdown)` is text this program did not author, and it is written into the text of an element through `dangerouslySetInnerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
D2 · Cognitive Complexity · (anonymous) · ×10
  • (anonymous)::o (cognitive 47) packages/bruno-app/public/static/diff2Html.js:512 — (anonymous)::o has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 5 (15 pts), loops 6 (9 pts), boolean chains 7 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • (anonymous)::parsePath (cognitive 32) REDACTED:104 — (anonymous)::parsePath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 4 (12 pts), boolean chains 6 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • (anonymous)::o::g (cognitive 28) packages/bruno-app/public/static/diff2Html.js:637 — (anonymous)::o::g has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 10, ternaries 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • (anonymous)::parsePatch::l (cognitive 25) packages/bruno-app/public/static/diff2Html.js:971 — (anonymous)::parsePatch::l has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, ternaries 5 (8 pts), if/else 4 (7 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • (anonymous)::p (cognitive 23) packages/bruno-app/public/static/diff2Html.js:823 — (anonymous)::p has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), ternaries 3 (6 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • (anonymous)::(anonymous)::f (cognitive 23) packages/bruno-app/public/static/diff2Html.js:1132 — (anonymous)::(anonymous)::f has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 5, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • (anonymous)::diff::h (cognitive 20) packages/bruno-app/public/static/diff2Html.js:112 — (anonymous)::diff::h has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 3 (6 pts), ternaries 2 (6 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • (anonymous)::i (cognitive 19) packages/bruno-app/public/static/diff2Html.js:57 — (anonymous)::i has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 8, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • (anonymous)::merge (cognitive 19) packages/bruno-app/public/static/diff2Html.js:716 — (anonymous)::merge has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (4 pts), ternaries 2, loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • (anonymous)::c (cognitive 18) packages/bruno-app/public/static/diff2Html.js:238 — (anonymous)::c has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (7 pts), boolean chains 6, if/else 4 (5 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
S1 · Web-Security Posture · Weak hash algorithm · ×10
  • Weak hash algorithm packages/bruno-app/plugins/remote-images/loader.cjs:28 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-app/plugins/remote-images/loader.cjs:70 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-app/plugins/remote-images/utils.js:91 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-cli/src/runner/prepare-request.js:191 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-cli/src/runner/prepare-request.js:261 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-electron/src/ipc/network/prepare-request.js:76 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-electron/src/ipc/network/prepare-request.js:342 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-electron/src/ipc/openapi-sync.js:65 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-electron/src/utils/encryption.js:16 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
  • Weak hash algorithm packages/bruno-requests/src/auth/digestauth-helper.js:32 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
D12 · Dependency Hygiene · Deprecated · ×9
  • Deprecated: eslint REDACTED:43 — eslint 9.39.4, declared in REDACTED, is marked deprecated by its publisher: "This version is no longer supported. Please see https://eslint.org/version-support for other options.". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: lodash-es REDACTED:50 — lodash-es 4.18.0, declared in REDACTED, is marked deprecated by its publisher: "Bad release. Please use lodash-es@4.17.23 instead.". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: uuid REDACTED:84 — uuid 10.0.0, declared in REDACTED, is marked deprecated by its publisher: "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: rimraf packages/bruno-filestore/package.json:36 — rimraf 3.0.2, declared in packages/bruno-filestore/package.json, is marked deprecated by its publisher: "Rimraf versions prior to v4 are no longer supported". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: rimraf packages/bruno-io/package.json:33 — rimraf 3.0.2, declared in packages/bruno-io/package.json, is marked deprecated by its publisher: "Rimraf versions prior to v4 are no longer supported". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: crypto-js packages/bruno-js/package.json:30 — crypto-js 4.2.0, declared in packages/bruno-js/package.json, is marked deprecated by its publisher: "Active development of CryptoJS has been discontinued. This library is no longer maintained.". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: uuid packages/bruno-js/package.json:40 — uuid 10.0.0, declared in packages/bruno-js/package.json, is marked deprecated by its publisher: "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: @faker-js/faker packages/bruno-tests/collection/package.json:5 — @faker-js/faker 8.4.0, declared in packages/bruno-tests/collection/package.json, is marked deprecated by its publisher: "Please update to a newer version". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: @faker-js/faker packages/bruno-tests/collection_oauth2/package.json:5 — @faker-js/faker 8.4.0, declared in packages/bruno-tests/collection_oauth2/package.json, is marked deprecated by its publisher: "Please update to a newer version". Replace it with the package or version that message names, or record why this one must stay.
D30 · Dependency Vulnerabilities · Medium CVE · ×9
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
IC1 · Incompleteness & stubs · Fake-async · ×8
  • Fake-async — async method never awaits packages/bruno-app/src/components/RequestPane/WsQueryUrl/index.js:66 — `handleConnect` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/bruno-app/src/utils/terminal.js:10 — `openDevtoolsAndSwitchToTerminal` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/bruno-cli/src/commands/run.js:89 — `builder` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/bruno-cli/src/reporters/html.js:5 — `makeHtmlOutput` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/bruno-cli/src/reporters/junit.js:6 — `makeJUnitOutput` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/bruno-cli/src/store/tokenStore.js:6 — `saveCredential` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/bruno-cli/src/store/tokenStore.js:20 — `deleteCredential` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits packages/bruno-electron/src/app/collection-watcher.js:203 — `unlinkEnvironmentFile` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×8
  • Recursive walk over a caller-supplied document has no depth cap packages/bruno-sqlite/scripts/lib/literal.ts:17 — `literal` is exported and takes `value: unknown` from its caller, and it calls itself at line 17 (`literal`) with a piece of `value` (and at line 23) — and nowhere in `literal` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `literal` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap packages/bruno-requests/src/grpc/grpcMessageGenerator.js:25 — `generateGrpcSampleMessage` is exported, takes a document from its caller (line 113) and hands it to `generateSampleMessageFromFields`, which calls itself at line 25 (`generateSampleMessageFromFields`) with a piece of `fields` (and at line 29) — and nowhere in `generateSampleMessageFromFields` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `generateSampleMessageFromFields` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap packages/bruno-query/src/index.ts:10 — `get` is exported, takes a document from its caller (line 114) and hands it to `normalize`, which calls itself at line 10 (`normalize`) with a piece of `value` — and nowhere in `normalize` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `normalize` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap packages/bruno-query/src/index.ts:34 — `get` is exported, takes a document from its caller (line 114) and hands it to `getValue`, which calls itself at line 34 (`getValue`) with a piece of `source` (and at line 41) — and nowhere in `getValue` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `getValue` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap packages/bruno-converters/src/utils/ast-utils.js:26 — `getMemberExpressionString` is exported and takes `node: object` from its caller, and it calls itself at line 26 (`getMemberExpressionString`) with a piece of `node` (and at line 31) — and nowhere in `getMemberExpressionString` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `getMemberExpressionString` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap packages/bruno-common/src/utils/prompt-variables.ts:64 — `extractPromptVariables` is exported and takes `obj: any` from its caller, and it calls itself at line 64 (`extractPromptVariables`) with a piece of `obj` (and at line 70) — and nowhere in `extractPromptVariables` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `extractPromptVariables` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap packages/bruno-common/src/interpolate/index.ts:59 — `interpolate` is exported, takes a document from its caller (line 73) and hands it to `prepareMockObj`, which calls itself at line 59 (`prepareMockObj`) with a piece of `obj` — and nowhere in `prepareMockObj` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `prepareMockObj` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap packages/bruno-common/src/interpolate/index.ts:155 — `interpolateObject` is exported, takes a document from its caller (line 141) and hands it to `walk`, which calls itself at line 155 (`walk`) with a piece of `value` (and at line 158) — and nowhere in `walk` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `walk` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
D29 · Static Analysis (SAST) · REDACTED · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D1 · Cyclomatic Complexity · (anonymous) · ×6
  • (anonymous)::o (cyclomatic 28) packages/bruno-app/public/static/diff2Html.js:512 — (anonymous)::o has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • (anonymous)::parsePatch::l (cyclomatic 27) packages/bruno-app/public/static/diff2Html.js:971 — (anonymous)::parsePatch::l has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • (anonymous)::o::g (cyclomatic 20) packages/bruno-app/public/static/diff2Html.js:637 — (anonymous)::o::g has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • (anonymous)::merge (cyclomatic 18) packages/bruno-app/public/static/diff2Html.js:716 — (anonymous)::merge has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • (anonymous)::parsePath (cyclomatic 17) REDACTED:104 — (anonymous)::parsePath has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
  • (anonymous)::p (cyclomatic 16) packages/bruno-app/public/static/diff2Html.js:823 — (anonymous)::p has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D29 · Static Analysis (SAST) · REDACTED · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
X2 · Cancellation propagation · Async function without AbortSignal · ×5
  • Async function without AbortSignal: request packages/bruno-requests/src/utils/node-vault.ts:155 — `request` awaits `axios(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios(url, { signal })`.
  • Async function without AbortSignal: downloadPac packages/bruno-requests/src/utils/pac-resolver.ts:37 — `downloadPac` awaits `axios.get(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios.get(url, { signal })`.
  • Async function without AbortSignal: fetchNotifications packages/bruno-electron/src/ipc/notifications.js:5 — `fetchNotifications` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: fetchSourceFromUrl packages/bruno-cli/src/commands/import.js:124 — `fetchSourceFromUrl` awaits `axios.get(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios.get(url, { signal })`.
  • Async function without AbortSignal: ensureCachedImage packages/bruno-app/plugins/remote-images/loader.cjs:42 — `ensureCachedImage` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
D1 · Cyclomatic Complexity · registerOpenAPISyncIpc · ×4
  • registerOpenAPISyncIpc::(anonymous)::compareSpecs (cyclomatic 21) packages/bruno-electron/src/ipc/openapi-sync.js:1126 — registerOpenAPISyncIpc::(anonymous)::compareSpecs has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • registerOpenAPISyncIpc::(anonymous)::findAndRemoveRequest (cyclomatic 18) packages/bruno-electron/src/ipc/openapi-sync.js:1719 — registerOpenAPISyncIpc::(anonymous)::findAndRemoveRequest has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • registerOpenAPISyncIpc::(anonymous)::transformToVisualFormat (cyclomatic 17) packages/bruno-electron/src/ipc/openapi-sync.js:1525 — registerOpenAPISyncIpc::(anonymous)::transformToVisualFormat has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • registerOpenAPISyncIpc::(anonymous)::findAndResetRequest (cyclomatic 16) packages/bruno-electron/src/ipc/openapi-sync.js:1627 — registerOpenAPISyncIpc::(anonymous)::findAndResetRequest has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D29 · Static Analysis (SAST) · REDACTED · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D35 · Change Coupling · Change coupling · ×4
  • Change coupling: script-runtime.js ↔ test-runtime.js packages/bruno-js/src/runtime/script-runtime.js:1 — `packages/bruno-js/src/runtime/script-runtime.js` and `packages/bruno-js/src/runtime/test-runtime.js` change together 76% of the time (39 of the 51 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 39 shared commits counted here, the most recent 3 are `784e851d` refactor: update Bru constructor to accept a single options obj for i…; `910581a6` feat: improve stack traces for script and test failures (#7181); `2fcfdfc3` fix: `oauth2 credential` management improvements (#7220) — run `git show` on any of them.
  • Change coupling: REDACTED ↔ REDACTED packages/bruno-app/src/components/MultiLineEditor/index.js:1 — `packages/bruno-app/src/components/MultiLineEditor/index.js` and `packages/bruno-app/src/components/SingleLineEditor/index.js` change together 68% of the time (17 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are `db760cc7` fix(set-as-variable): kept the selection pinned from right-click unti…; `97467c57` feat: add blur event handling to MultiLineEditor and SingleLineEditor…; `8c9cad6d` fix: cURL paste not updating request tab editors visually (#7610) — run `git show` on any of them.
  • Change coupling: REDACTED ↔ REDACTED REDACTED:1 — `REDACTED` and `packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `4a269243` feat: check for spec updates in bulk import open api (#9613); `b3d5160c` feat(wsdl): resolve schemaLocation references to external XSD files (…; `244f5282` feat(import): enhance import functionality with issue tracking and lo… — run `git show` on any of them.
  • Change coupling: SpecialTab.js ↔ tabs.js packages/bruno-app/src/components/RequestTabs/RequestTab/SpecialTab.js:1 — `packages/bruno-app/src/components/RequestTabs/RequestTab/SpecialTab.js` and `packages/bruno-app/src/providers/ReduxStore/slices/tabs.js` change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `82ee8e13` add: change log tab (#8289); `67c1d39e` feat: preferences as tab (#6786); `8fa8ae5f` feat(sandbox): create a dropdown selector for sandbox mode (#6519) — run `git show` on any of them.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×4
  • Swallowed exception (caught, then discarded) REDACTED:37 — `catch (error)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
  • Swallowed exception (caught, then discarded) packages/bruno-requests/src/network/system-proxy/utils/windows.ts:29 — `catch (error)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
  • Swallowed exception (caught, then discarded) packages/bruno-electron/src/utils/mount.js:49 — `catch (err)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
  • Swallowed exception (caught, then discarded) packages/bruno-electron/src/utils/mount.js:68 — `catch (err)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (`catch (e) { if (!(e instanceof SyntaxError)) throw e; … }`, or test `e.name`), because a JavaScript catch takes every exception, programming errors included.
D1 · Cyclomatic Complexity · index.VarsTable (cyclomatic 22) · ×3
  • index.VarsTable (cyclomatic 22) packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js:21 — index.VarsTable has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 85, 51, 39, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
  • index.VarsTable (cyclomatic 22) packages/bruno-app/src/components/FolderSettings/Vars/VarsTable/index.js:22 — index.VarsTable has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 92, 57, 40, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
  • index.VarsTable (cyclomatic 22) packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js:21 — index.VarsTable has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 98, 62, 40, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D12 · Dependency Hygiene · One package at two majors across the workspace · ×3
  • One package at two majors across the workspace: @faker-js/faker — `@faker-js/faker` is maintained at 2 different major versions inside this one repository — major 8 in packages/bruno-tests/additional-context-root-lib/package.json, packages/bruno-tests/collection/package.json, packages/bruno-tests/collection_level_oauth2/package.json (+1 more); major 9 in packages/bruno-requests/package.json. Every major carries its own breaking changes, advisories and upgrade path, so the cost of keeping current is paid more than once; and where the packages are installed together, the resolver cannot dedupe them, so both copies ship.
  • One package at two majors across the workspace: diff — `diff` is maintained at 2 different major versions inside this one repository — major 5 in packages/bruno-app/package.json; major 8 in REDACTED. Every major carries its own breaking changes, advisories and upgrade path, so the cost of keeping current is paid more than once; and where the packages are installed together, the resolver cannot dedupe them, so both copies ship.
  • One package at two majors across the workspace: mime-types — `mime-types` is maintained at 2 different major versions inside this one repository — major 2 in REDACTED; major 3 in packages/bruno-app/package.json, packages/bruno-converters/package.json. Every major carries its own breaking changes, advisories and upgrade path, so the cost of keeping current is paid more than once; and where the packages are installed together, the resolver cannot dedupe them, so both copies ship.
D15 · Churn × Complexity Hotspots · Repeated repair · ×3
  • Repeated repair: packages/bruno-app/src/utils/mock-server/mock-responses/editor.js packages/bruno-app/src/utils/mock-server/mock-responses/editor.js:19 — packages/bruno-app/src/utils/mock-server/mock-responses/editor.js changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 13 (its worst body is editor.buildMockResponseEditorItem at line 19), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(mock-server): closed mock server tabs and stopped running servers when the Mock Server beta feature was disabled (#9644)”; “fix(mock-server): kept mock response edits and edit mode when switching tabs (#9606)”; “fix(mock-server): use in app modal instead of native close confirm (#9515)”; “fix(mock-server): fixing status text on response panel for mock response (#9013)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/utils/mock-server/mock-responses/editor.js`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/index.jsx packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/index.jsx:11 — packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/index.jsx changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is index.Advanced at line 11), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(runner): Collection Runner tag filter UX improvement (#9669)”; “fix(docs): UI changes in the Generate Documentation modal (#9283)”; “fix(docs): minor ui fixes in the generate docs modal (#9228)”; “fix(collection-docs): Include git repo url toggle is hidden when there is no git remote url (#9147)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/index.jsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: REDACTED REDACTED:99 — REDACTED changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 2 (its worst body is index.app.use() at line 99), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(link-aware): revert click-to-open-request in editable fields (#9201)”; “fix: Prevent QuickJS disposal aborts in safe mode (#8924)”; “fix(grpc-e2e): reflection cache & ordering across environment switches (#8832)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 20:47:11 +05:30' --until='2026-11-12 20:47:11 +05:30' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D2 · Cognitive Complexity · registerOpenAPISyncIpc · ×3
  • registerOpenAPISyncIpc::(anonymous)::findAndRemoveRequest (cognitive 35) packages/bruno-electron/src/ipc/openapi-sync.js:1719 — registerOpenAPISyncIpc::(anonymous)::findAndRemoveRequest has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (6 pts), boolean chains 5, error handling 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • registerOpenAPISyncIpc::(anonymous)::compareSpecs (cognitive 23) packages/bruno-electron/src/ipc/openapi-sync.js:1126 — registerOpenAPISyncIpc::(anonymous)::compareSpecs has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (9 pts), loops 2, ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • registerOpenAPISyncIpc::(anonymous)::findAndResetRequest (cognitive 23) packages/bruno-electron/src/ipc/openapi-sync.js:1627 — registerOpenAPISyncIpc::(anonymous)::findAndResetRequest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, error handling 1 (3 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.VarsTable (cognitive 23) · ×3
  • index.VarsTable (cognitive 23) packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js:21 — index.VarsTable has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (12 pts), boolean chains 8, if/else 3 (nesting depth added 2). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 85, 51, 39, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
  • index.VarsTable (cognitive 23) packages/bruno-app/src/components/FolderSettings/Vars/VarsTable/index.js:22 — index.VarsTable has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (12 pts), boolean chains 8, if/else 3 (nesting depth added 2). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 92, 57, 40, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
  • index.VarsTable (cognitive 23) packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js:21 — index.VarsTable has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (12 pts), boolean chains 8, if/else 3 (nesting depth added 2). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 98, 62, 40, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · (anonymous) (cognitive 20) · ×3
  • (anonymous) (cognitive 20) packages/bruno-app/public/static/diff2Html.js:2322 — (anonymous) has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, ternaries 3, if/else 2, loops 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 2353, a function literal at line 2327, a function literal at line 2339, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • (anonymous) (cognitive 20) packages/bruno-app/public/static/diff2Html.js:2687 — (anonymous) has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, loops 6 (8 pts), if/else 3, ternaries 1 (nesting depth added 2). None of this is in the body itself: all 20 points belong to 6 function items inside it that branch (n, newMatcherFn::t, a function literal at line 2715, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • (anonymous) (cognitive 20) packages/bruno-app/src/components/MockServer/Sidebar/MockServers/index.js:41 — (anonymous) has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, ternaries 6, if/else 5, error handling 2. Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to 17 function items inside it that branch (handleStart, a function literal at line 193, ensureCollectionMounted, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D29 · Static Analysis (SAST) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D3 · God Classes · MethodTooLong · ×3
  • MethodTooLong: AssertRuntime.runAssertions REDACTED:410 — MethodTooLong — runAssertions runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CodeEditor.componentDidMount packages/bruno-app/src/components/CodeEditor/index.js:177 — MethodTooLong — componentDidMount runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: ScriptRuntime.runRequestScript packages/bruno-js/src/runtime/script-runtime.js:20 — MethodTooLong — runRequestScript runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D3 · God Classes · ClassTooLong · ×3
  • ClassTooLong: jsonToBru packages/bruno-lang/v2/src/jsonToBru.js:1 — ClassTooLong — 542 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 142 over it, 1.36× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: GrpcClient packages/bruno-requests/src/grpc/grpc-client.js:197 — ClassTooLong — 469 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 69 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: SnapshotManager packages/bruno-electron/src/services/snapshot/index.js:141 — ClassTooLong — 427 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 27 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
AC4 · Keyboard semantics · Anchor without href · ×2
  • Anchor without href REDACTED:82 — An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
  • Anchor without href packages/bruno-graphql-docs/src/components/DocExplorer/TypeDoc.tsx:186 — An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
D1 · Cyclomatic Complexity · index.EnvironmentList (cyclomatic 128) · ×2
  • index.EnvironmentList (cyclomatic 128) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44 — index.EnvironmentList has cyclomatic complexity 128 (threshold 15). Of this number, 29 points are the body's own statements and 99 belong to 40 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • index.EnvironmentList (cyclomatic 128) packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:43 — index.EnvironmentList has cyclomatic complexity 128 (threshold 15). Of this number, 29 points are the body's own statements and 99 belong to 40 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · authOAuth2 (cyclomatic 77) · ×2
  • authOAuth2 (cyclomatic 77) packages/bruno-lang/v2/src/bruToJson.js:865 — authOAuth2 has cyclomatic complexity 77 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • authOAuth2 (cyclomatic 77) packages/bruno-lang/v2/src/collectionBruToJson.js:462 — authOAuth2 has cyclomatic complexity 77 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 68) · ×2
  • (anonymous) (cyclomatic 68) packages/bruno-app/public/static/diff2Html.js:1301 — (anonymous) has cyclomatic complexity 68 (threshold 15). Most of this is not in the body itself: 1 of the 68 points is its own statement and the rest belongs to 25 function items inside it that branch ((anonymous)::ep, a function literal at line 1362, (anonymous)::d, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • (anonymous) (cyclomatic 68) packages/bruno-app/public/static/diff2Html.js:2945 — (anonymous) has cyclomatic complexity 68 (threshold 15). Most of this is not in the body itself: 9 of the 68 points are its own statements and the rest belongs to 25 function items inside it that branch (applyLineGroupping, processChangedLines, generateSingleHtml, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 26) · ×2
  • (anonymous) (cyclomatic 26) packages/bruno-app/public/static/diff2Html.js:210 — (anonymous) has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 8 function items inside it that branch (c, a function literal at line 228, o, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • (anonymous) (cyclomatic 26) packages/bruno-app/src/components/EditableTable/index.js:492 — (anonymous) has cyclomatic complexity 26 (threshold 15). Of this number, 17 points are the body's own statements and 9 belong to 6 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.AiChatSidebar · ×2
  • index.AiChatSidebar::renderMessage (cyclomatic 25) packages/bruno-app/src/components/AiChatSidebar/index.js:718 — index.AiChatSidebar::renderMessage has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 2 other methods here (index.AiChatSidebar, index.AiChatSidebar::handleApplyCode) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • index.AiChatSidebar::handleApplyCode (cyclomatic 21) packages/bruno-app/src/components/AiChatSidebar/index.js:579 — index.AiChatSidebar::handleApplyCode has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: 2 other methods here (index.AiChatSidebar, index.AiChatSidebar::renderMessage) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 22) · ×2
  • (anonymous) (cyclomatic 22) packages/bruno-app/public/static/diff2Html.js:2396 — (anonymous) has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 2427, a function literal at line 2401, a function literal at line 2413, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
  • (anonymous) (cyclomatic 22) packages/bruno-app/src/components/MockServer/Sidebar/MockServers/index.js:41 — (anonymous) has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 17 function items inside it that branch (handleStart, ensureCollectionMounted, a function literal at line 193, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · collection.mergeVars (cyclomatic 19) · ×2
  • collection.mergeVars (cyclomatic 19) packages/bruno-cli/src/utils/collection.js:140 — collection.mergeVars has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body's own statements and 6 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • collection.mergeVars (cyclomatic 19) REDACTED:81 — collection.mergeVars has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body's own statements and 6 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · proxy-util.shouldUseProxy (cyclomatic 19) · ×2
  • proxy-util.shouldUseProxy (cyclomatic 19) packages/bruno-cli/src/utils/proxy-util.js:26 — proxy-util.shouldUseProxy has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • proxy-util.shouldUseProxy (cyclomatic 19) packages/bruno-electron/src/utils/proxy-util.js:27 — proxy-util.shouldUseProxy has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.EnvironmentList (cognitive 136) · ×2
  • index.EnvironmentList (cognitive 136) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44 — index.EnvironmentList has cognitive complexity 136 (threshold 15). Drivers by points: if/else 65 (75 pts), boolean chains 52, ternaries 7 (9 pts) (nesting depth added 12). Of this number, 22 points are the body's own statements and 114 belong to 40 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
  • index.EnvironmentList (cognitive 136) packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:43 — index.EnvironmentList has cognitive complexity 136 (threshold 15). Drivers by points: if/else 65 (75 pts), boolean chains 52, ternaries 7 (9 pts) (nesting depth added 12). Of this number, 22 points are the body's own statements and 114 belong to 40 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · authOAuth2 (cognitive 76) · ×2
  • authOAuth2 (cognitive 76) packages/bruno-lang/v2/src/bruToJson.js:865 — authOAuth2 has cognitive complexity 76 (threshold 15). Drivers by points: ternaries 64, other 8, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • authOAuth2 (cognitive 76) packages/bruno-lang/v2/src/collectionBruToJson.js:462 — authOAuth2 has cognitive complexity 76 (threshold 15). Drivers by points: ternaries 64, other 8, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · collection.mergeVars (cognitive 33) · ×2
  • collection.mergeVars (cognitive 33) packages/bruno-cli/src/utils/collection.js:140 — collection.mergeVars has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (nesting depth added 14). Of this number, 19 points are the body's own statements and 14 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • collection.mergeVars (cognitive 33) REDACTED:81 — collection.mergeVars has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (nesting depth added 14). Of this number, 19 points are the body's own statements and 14 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.registerNetworkIpc · ×2
  • index.registerNetworkIpc::runPreRequest (cognitive 25) REDACTED:592 — index.registerNetworkIpc::runPreRequest has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (index.registerNetworkIpc::runRequest::runPostScripts) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • index.registerNetworkIpc::runRequest::runPostScripts (cognitive 16) REDACTED:1147 — index.registerNetworkIpc::runRequest::runPostScripts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, error handling 2 (3 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (index.registerNetworkIpc::runPreRequest) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · index.Headers (cognitive 18) · ×2
  • index.Headers (cognitive 18) packages/bruno-app/src/components/CollectionSettings/Headers/index.js:23 — index.Headers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, ternaries 3 (nesting depth added 4). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 61, 91, 107). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
  • index.Headers (cognitive 18) packages/bruno-app/src/components/FolderSettings/Headers/index.js:23 — index.Headers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, ternaries 3 (nesting depth added 4). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 65, 95, 112). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · default.processChangedLines (cognitive 16) · ×2
  • default.processChangedLines (cognitive 16) packages/bruno-app/public/static/diff2Html.js:2617 — default.processChangedLines has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (12 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (default.processChangedLines) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • default.processChangedLines (cognitive 16) packages/bruno-app/public/static/diff2Html.js:3101 — default.processChangedLines has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (12 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (default.processChangedLines) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D31 · IaC & Container Security · Medium IaC · ×2
  • REDACTED
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×2
  • REDACTED
  • REDACTED
IC1 · Incompleteness & stubs · Guard cannot change the result · ×2
  • Guard cannot change the result — returns what the code already falls through to packages/bruno-app/src/components/Git/VisualDiffViewer/utils/bruUtils.js:33 — The guard above `return 'none';` also returns `'none'`, so no input can make it matter. Implement the distinction that was intended, or delete the guard.
  • Guard cannot change the result — returns what the code already falls through to packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemDragPreview/index.js:57 — The guard above `return IconFile;` also returns `IconFile`, so no input can make it matter. Implement the distinction that was intended, or delete the guard.
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×2
  • Outbound HTTP without resilience packages/bruno-electron/src/ipc/network/axios-instance.js:122 — `axios.create(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience packages/bruno-electron/src/ipc/notifications.js:7 — `fetch(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
R10 · Code Duplication · Duplicated block with local edits (105 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (105 matched lines × 2 locations) packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:26 — packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:26 · packages/bruno-app/src/components/ResponsePane/WsResponsePane/index.js:23 — the two spans are one implementation copied and then locally edited — 663 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
  • Duplicated block with local edits (105 matched lines × 2 locations) packages/bruno-converters/src/openapi/openapi-to-bruno.js:1002 — packages/bruno-converters/src/openapi/openapi-to-bruno.js:1002 · packages/bruno-converters/src/openapi/swagger2-to-bruno.js:574 — the two spans are one implementation copied and then locally edited — 798 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R2 · Cyclomatic Complexity · Complex function authOAuth2 (cyclomatic 77, cognitive 76) · ×2
  • Complex function authOAuth2 (cyclomatic 77, cognitive 76) packages/bruno-lang/v2/src/bruToJson.js:865 — authOAuth2 has cyclomatic complexity 77 and cognitive complexity 76; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
  • Complex function authOAuth2 (cyclomatic 77, cognitive 76) packages/bruno-lang/v2/src/collectionBruToJson.js:462 — authOAuth2 has cyclomatic complexity 77 and cognitive complexity 76; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R7 · Dead Code · Dead file (~211 LoC) · ×2
  • Dead file (~211 LoC) packages/bruno-app/src/components/RequestPane/Assertions/AssertionRow/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~211 LoC) packages/bruno-app/src/components/Sidebar/GoldenEdition/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~80 LoC) · ×2
  • Dead file (~80 LoC) packages/bruno-app/src/components/Preferences/Display/Theme/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~80 LoC) packages/bruno-app/src/components/RequestPane/GraphQLSchemaActions/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~47 LoC) · ×2
  • Dead file (~47 LoC) packages/bruno-app/src/components/BrunoSupport/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~47 LoC) packages/bruno-app/src/components/Icons/OpenCollectionIcon/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~38 LoC) · ×2
  • Dead file (~38 LoC) packages/bruno-app/src/components/ModeSwitch/StyledWrapper.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/ModeSwitch/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
  • Dead file (~38 LoC) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleDescription/StyledWrapper.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleDescription/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~30 LoC) · ×2
  • Dead file (~30 LoC) packages/bruno-app/src/components/ResponsePane/WsResponsePane/WSResponseSortOrder/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~30 LoC) packages/bruno-app/src/components/Sidebar/Collections/SelectCollection/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~25 LoC) · ×2
  • Dead file (~25 LoC) packages/bruno-app/src/utils/codemirror/mock-data-hints.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
  • Dead file (~25 LoC) packages/bruno-sqlite/migrations/0000002_file_index_entries.ts — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R8 · Dependency Hygiene · Unused dependency 'https-proxy-agent' · ×2
  • Unused dependency 'https-proxy-agent' — Declared in packages/bruno-cli/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
  • Unused dependency 'https-proxy-agent' — Declared in REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
S1 · Web-Security Posture · Obsolete TLS/SSL protocol version enabled · ×2
  • Obsolete TLS/SSL protocol version enabled packages/bruno-electron/src/utils/proxy-util.js:109 — `minVersion: "TLSv1"` explicitly admits a protocol version that is broken (SSL 3.0) or withdrawn (TLS 1.0/1.1, RFC 8996). Offering an obsolete version does not merely permit it — it is what a downgrade attack negotiates, so the weakest version on the list is the one that decides the connection's strength. Remove the pin: Node's default minimum is TLS 1.2, so leaving `minVersion`/`secureProtocol` unset is the strongest setting and picks up TLS 1.3 without a code change. Where a floor must be named, use `minVersion: "TLSv1.2"`.
  • Obsolete TLS/SSL protocol version enabled packages/bruno-requests/src/utils/http-https-agents.ts:480 — `minVersion: "TLSv1"` explicitly admits a protocol version that is broken (SSL 3.0) or withdrawn (TLS 1.0/1.1, RFC 8996). Offering an obsolete version does not merely permit it — it is what a downgrade attack negotiates, so the weakest version on the list is the one that decides the connection's strength. Remove the pin: Node's default minimum is TLS 1.2, so leaving `minVersion`/`secureProtocol` unset is the strongest setting and picks up TLS 1.3 without a code change. Where a floor must be named, use `minVersion: "TLSv1.2"`.
AC4 · Keyboard semantics · Link used as a button (placeholder href) · ×1
  • Link used as a button (placeholder href) packages/bruno-graphql-docs/src/components/DocExplorer/TypeLink.tsx:43 — An <a href="#"> (or javascript:) with a click handler is a button dressed as a link — it announces the wrong role and stops working without JS. Use a <button> for an action.
AC6 · Visual & motion safety · Focus outline removed inline · ×1
  • Focus outline removed inline packages/bruno-app/src/themes/DesignSystem/Overview.jsx:563 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.8 · ×1
  • Low contrast colour pair in CSS (3.8:1) packages/bruno-graphql-docs/src/index.css:195 — `.graphql-docs-container .doc-deprecation` sets color: #867f70 on background-color: #fffae8 — 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (1.5 · ×1
  • Low contrast colour pair in CSS (1.5:1) packages/bruno-graphql-docs/src/index.css:260 — `.graphql-docs-container .search-box .search-box-clear` sets color: #fff on background-color: #d0d0d0 — 1.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×1
  • Focus outline removed in CSS without a :focus replacement packages/bruno-graphql-docs/src/index.css:281 — `.graphql-docs-container .search-box > input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
D1 · Cyclomatic Complexity · registerRendererEventHandlers (cyclomatic 378) · ×1
  • registerRendererEventHandlers (cyclomatic 378) packages/bruno-electron/src/ipc/collection.js:193 — registerRendererEventHandlers has cyclomatic complexity 378 (threshold 15). Most of this is not in the body itself: 1 of the 378 points is its own statement and the rest belongs to 118 function items inside it that branch (a function literal at line 2680, a function literal at line 342, a function literal at line 1018, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · jsonToBru (cyclomatic 311) · ×1
  • jsonToBru (cyclomatic 311) packages/bruno-lang/v2/src/jsonToBru.js:15 — jsonToBru has cyclomatic complexity 311 (threshold 15). Of this number, 278 points are the body's own statements and 33 belong to 59 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · openapi-sync.registerOpenAPISyncIpc (cyclomatic 251) · ×1
  • openapi-sync.registerOpenAPISyncIpc (cyclomatic 251) packages/bruno-electron/src/ipc/openapi-sync.js:1103 — openapi-sync.registerOpenAPISyncIpc has cyclomatic complexity 251 (threshold 15). Most of this is not in the body itself: 1 of the 251 points is its own statement and the rest belongs to 20 function literals inside it that branch (lines 1591, 1308, 1126, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · jsonToCollectionBru (cyclomatic 179) · ×1
  • jsonToCollectionBru (cyclomatic 179) packages/bruno-lang/v2/src/jsonToCollectionBru.js:15 — jsonToCollectionBru has cyclomatic complexity 179 (threshold 15). Of this number, 163 points are the body's own statements and 16 belong to 44 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · interpolate-vars.interpolateVars (cyclomatic 164) · ×1
  • interpolate-vars.interpolateVars (cyclomatic 164) REDACTED:41 — interpolate-vars.interpolateVars has cyclomatic complexity 164 (threshold 15). Of this number, 138 points are the body's own statements and 26 belong to 7 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · RequestTabPanel (cyclomatic 162) · ×1
  • RequestTabPanel (cyclomatic 162) packages/bruno-app/src/components/RequestTabPanel/index.js:70 — RequestTabPanel has cyclomatic complexity 162 (threshold 15). Of this number, 83 points are the body's own statements and 79 belong to 43 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · runSingleRequest (cyclomatic 149) · ×1
  • runSingleRequest (cyclomatic 149) REDACTED:103 — runSingleRequest has cyclomatic complexity 149 (threshold 15). Of this number, 133 points are the body's own statements and 16 belong to 11 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RequestTab (cyclomatic 143) · ×1
  • RequestTab (cyclomatic 143) packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:38 — RequestTab has cyclomatic complexity 143 (threshold 15). Of this number, 48 points are the body's own statements and 95 belong to 77 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EnvironmentVariablesTable (cyclomatic 139) · ×1
  • EnvironmentVariablesTable (cyclomatic 139) packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:246 — EnvironmentVariablesTable has cyclomatic complexity 139 (threshold 15). Of this number, 23 points are the body's own statements and 116 belong to 105 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · handler (cyclomatic 136) · ×1
  • handler (cyclomatic 136) packages/bruno-cli/src/commands/run.js:305 — handler has cyclomatic complexity 136 (threshold 15). Of this number, 121 points are the body's own statements and 15 belong to 21 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · interpolate-vars.interpolateVars (cyclomatic 127) · ×1
  • interpolate-vars.interpolateVars (cyclomatic 127) REDACTED:36 — interpolate-vars.interpolateVars has cyclomatic complexity 127 (threshold 15). Of this number, 104 points are the body's own statements and 23 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CollectionHeader (cyclomatic 118) · ×1
  • CollectionHeader (cyclomatic 118) packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:66 — CollectionHeader has cyclomatic complexity 118 (threshold 15). Of this number, 56 points are the body's own statements and 62 belong to 64 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.Keybindings (cyclomatic 117) · ×1
  • index.Keybindings (cyclomatic 117) packages/bruno-app/src/components/Preferences/Keybindings/index.js:264 — index.Keybindings has cyclomatic complexity 117 (threshold 15). Most of this is not in the body itself: 3 of the 117 points are its own statements and the rest belongs to 30 function items inside it that branch (a function literal at line 804, handleKeyDown, validateCombo, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · importPostmanV2CollectionItem (cyclomatic 117) · ×1
  • importPostmanV2CollectionItem (cyclomatic 117) packages/bruno-converters/src/postman/postman-to-bruno.js:483 — importPostmanV2CollectionItem has cyclomatic complexity 117 (threshold 15). Most of this is not in the body itself: 2 of the 117 points are its own statements and the rest belongs to 17 function literals inside it that branch (lines 488, 812, 664, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · renderVarInfo (cyclomatic 116) · ×1
  • renderVarInfo (cyclomatic 116) packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:232 — renderVarInfo has cyclomatic complexity 116 (threshold 15). Of this number, 72 points are the body's own statements and 44 belong to 32 function items inside it that branch. This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D1 · Cyclomatic Complexity · index.CreateMockServerModal (cyclomatic 106) · ×1
  • index.CreateMockServerModal (cyclomatic 106) packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:164 — index.CreateMockServerModal has cyclomatic complexity 106 (threshold 15). Of this number, 48 points are the body's own statements and 58 belong to 13 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · openapi-to-bruno.transformOpenapiRequestItem (cyclomatic 103) · ×1
  • openapi-to-bruno.transformOpenapiRequestItem (cyclomatic 103) packages/bruno-converters/src/openapi/openapi-to-bruno.js:278 — openapi-to-bruno.transformOpenapiRequestItem has cyclomatic complexity 103 (threshold 15). Of this number, 53 points are the body's own statements and 50 belong to 13 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.BulkImportCollectionLocation (cyclomatic 102) · ×1
  • index.BulkImportCollectionLocation (cyclomatic 102) REDACTED:141 — index.BulkImportCollectionLocation has cyclomatic complexity 102 (threshold 15). Of this number, 35 points are the body's own statements and 67 belong to 29 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 102) · ×1
  • (anonymous) (cyclomatic 102) packages/bruno-app/public/static/diff2Html.js:1480 — (anonymous) has cyclomatic complexity 102 (threshold 15). Most of this is not in the body itself: 1 of the 102 points is its own statement and the rest belongs to 15 function items inside it that branch (a function literal at line 1565, a function literal at line 1635, parse::F, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · registerWorkspaceIpc (cyclomatic 101) · ×1
  • registerWorkspaceIpc (cyclomatic 101) packages/bruno-electron/src/ipc/workspace.js:55 — registerWorkspaceIpc has cyclomatic complexity 101 (threshold 15). Most of this is not in the body itself: 1 of the 101 points is its own statement and the rest belongs to 40 function items inside it that branch (a function literal at line 348, a function literal at line 687, a function literal at line 628, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.detectContentTypeFromBuffer (cyclomatic 97) · ×1
  • index.detectContentTypeFromBuffer (cyclomatic 97) packages/bruno-app/src/utils/response/index.js:214 — index.detectContentTypeFromBuffer has cyclomatic complexity 97 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · auth-oauth2.toBrunoOAuth2 (cyclomatic 96) · ×1
  • auth-oauth2.toBrunoOAuth2 (cyclomatic 96) packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts:336 — auth-oauth2.toBrunoOAuth2 has cyclomatic complexity 96 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VisualDiffBody.VisualDiffBody (cyclomatic 93) · ×1
  • VisualDiffBody.VisualDiffBody (cyclomatic 93) packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffBody.js:23 — VisualDiffBody.VisualDiffBody has cyclomatic complexity 93 (threshold 15). Most of this is not in the body itself: 13 of the 93 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 177, renderGraphqlBody, a function literal at line 143, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.EditableTable (cyclomatic 90) · ×1
  • index.EditableTable (cyclomatic 90) packages/bruno-app/src/components/EditableTable/index.js:86 — index.EditableTable has cyclomatic complexity 90 (threshold 15). Most of this is not in the body itself: 12 of the 90 points are its own statements and the rest belongs to 21 function literals inside it that branch (lines 492, 370, 254, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · serializeSnapshot (cyclomatic 86) · ×1
  • serializeSnapshot (cyclomatic 86) packages/bruno-app/src/providers/ReduxStore/middlewares/snapshot/serializeSnapshot.js:71 — serializeSnapshot has cyclomatic complexity 86 (threshold 15). Of this number, 18 points are the body's own statements and 68 belong to 18 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · HeaderHint (cyclomatic 84) · ×1
  • HeaderHint (cyclomatic 84) packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js:57 — HeaderHint has cyclomatic complexity 84 (threshold 15). Most of this is not in the body itself: 2 of the 84 points are its own statements and the rest belongs to 50 function items inside it that branch (RequestHeaders, a function literal at line 289, a function literal at line 188, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.CodeMirrorSearch (cyclomatic 81) · ×1
  • index.CodeMirrorSearch (cyclomatic 81) packages/bruno-app/src/components/CodeMirrorSearch/index.js:11 — index.CodeMirrorSearch has cyclomatic complexity 81 (threshold 15). Of this number, 17 points are the body's own statements and 64 belong to 17 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.RequestHeaders (cyclomatic 81) · ×1
  • index.RequestHeaders (cyclomatic 81) packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js:85 — index.RequestHeaders has cyclomatic complexity 81 (threshold 15). Most of this is not in the body itself: 13 of the 81 points are its own statements and the rest belongs to 23 function items inside it that branch (a function literal at line 289, a function literal at line 188, a function literal at line 361, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · prepareRequest (cyclomatic 81) · ×1
  • prepareRequest (cyclomatic 81) packages/bruno-cli/src/runner/prepare-request.js:16 — prepareRequest has cyclomatic complexity 81 (threshold 15). Of this number, 79 points are the body's own statements and 2 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 81) · ×1
  • (anonymous) (cyclomatic 81) packages/bruno-app/src/components/CodeMirrorSearch/index.js:11 — (anonymous) has cyclomatic complexity 81 (threshold 15). Most of this is not in the body itself: 15 of the 81 points are its own statements and the rest belongs to 34 function items inside it that branch ((anonymous)::onKeyDown, a function literal at line 41, a function literal at line 339, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · useQueryBuilder (cyclomatic 77) · ×1
  • useQueryBuilder (cyclomatic 77) packages/bruno-app/src/hooks/useQueryBuilder/index.js:58 — useQueryBuilder has cyclomatic complexity 77 (threshold 15). Most of this is not in the body itself: 1 of the 77 points is its own statement and the rest belongs to 33 function items inside it that branch (a function literal at line 251, a function literal at line 176, a function literal at line 316, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.MenuDropdown (cyclomatic 75) · ×1
  • index.MenuDropdown (cyclomatic 75) packages/bruno-app/src/ui/MenuDropdown/index.js:61 — index.MenuDropdown has cyclomatic complexity 75 (threshold 15). Most of this is not in the body itself: 12 of the 75 points are its own statements and the rest belongs to 23 function items inside it that branch (getMenuItemProps, a function literal at line 240, renderLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 75) · ×1
  • (anonymous) (cyclomatic 75) packages/bruno-app/src/ui/MenuDropdown/index.js:61 — (anonymous) has cyclomatic complexity 75 (threshold 15). Most of this is not in the body itself: 12 of the 75 points are its own statements and the rest belongs to 42 function items inside it that branch (getMenuItemProps, a function literal at line 240, renderLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · registerAiIpc (cyclomatic 75) · ×1
  • registerAiIpc (cyclomatic 75) packages/bruno-electron/src/ipc/ai/index.js:101 — registerAiIpc has cyclomatic complexity 75 (threshold 15). Most of this is not in the body itself: 1 of the 75 points is its own statement and the rest belongs to 13 function items inside it that branch (a function literal at line 198, a function literal at line 334, a function literal at line 142, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.MockServerDashboard (cyclomatic 74) · ×1
  • index.MockServerDashboard (cyclomatic 74) packages/bruno-app/src/components/MockServer/MockServerDashboard/index.js:43 — index.MockServerDashboard has cyclomatic complexity 74 (threshold 15). Of this number, 36 points are the body's own statements and 38 belong to 14 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · transformCollectionToSaveToExportAsFile (cyclomatic 72) · ×1
  • transformCollectionToSaveToExportAsFile (cyclomatic 72) packages/bruno-app/src/utils/collections/index.js:179 — transformCollectionToSaveToExportAsFile has cyclomatic complexity 72 (threshold 15). Of this number, 20 points are the body's own statements and 52 belong to 19 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · axios-instance.makeAxiosInstance (cyclomatic 71) · ×1
  • axios-instance.makeAxiosInstance (cyclomatic 71) packages/bruno-electron/src/ipc/network/axios-instance.js:111 — axios-instance.makeAxiosInstance has cyclomatic complexity 71 (threshold 15). Most of this is not in the body itself: 1 of the 71 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 314, 145, 262, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · GlobalSearchModal (cyclomatic 70) · ×1
  • GlobalSearchModal (cyclomatic 70) packages/bruno-app/src/components/GlobalSearchModal/index.js:23 — GlobalSearchModal has cyclomatic complexity 70 (threshold 15). Most of this is not in the body itself: 13 of the 70 points are its own statements and the rest belongs to 49 function items inside it that branch (a function literal at line 87, a function literal at line 454, handleResultSelection, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CompatEndpointCard.CompatEndpointCard (cyclomatic 67) · ×1
  • CompatEndpointCard.CompatEndpointCard (cyclomatic 67) packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:22 — CompatEndpointCard.CompatEndpointCard has cyclomatic complexity 67 (threshold 15). Of this number, 39 points are the body's own statements and 28 belong to 10 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.OverviewSection (cyclomatic 66) · ×1
  • index.OverviewSection (cyclomatic 66) packages/bruno-app/src/components/OpenAPISyncTab/OverviewSection/index.js:43 — index.OverviewSection has cyclomatic complexity 66 (threshold 15). Of this number, 41 points are the body's own statements and 25 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 66) · ×1
  • (anonymous) (cyclomatic 66) packages/bruno-app/public/static/diff2Html.js:1049 — (anonymous) has cyclomatic complexity 66 (threshold 15). Most of this is not in the body itself: 1 of the 66 points is its own statement and the rest belongs to 34 function items inside it that branch ((anonymous)::scan, (anonymous)::f, (anonymous)::scan::y, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · QueryUrl (cyclomatic 66) · ×1
  • QueryUrl (cyclomatic 66) packages/bruno-app/src/components/RequestPane/QueryUrl/index.js:31 — QueryUrl has cyclomatic complexity 66 (threshold 15). Most of this is not in the body itself: 10 of the 66 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 178, a function literal at line 98, a function literal at line 44, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.MockResponse (cyclomatic 65) · ×1
  • index.MockResponse (cyclomatic 65) packages/bruno-app/src/components/MockServer/MockResponse/index.js:34 — index.MockResponse has cyclomatic complexity 65 (threshold 15). Most of this is not in the body itself: 12 of the 65 points are its own statements and the rest belongs to 18 function items inside it that branch (handleMouseMove, handleTry, handleOpenAsRequest, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CloneGitRepository (cyclomatic 65) · ×1
  • CloneGitRepository (cyclomatic 65) packages/bruno-app/src/components/Sidebar/CloneGitRespository/index.js:31 — CloneGitRepository has cyclomatic complexity 65 (threshold 15). Of this number, 26 points are the body's own statements and 39 belong to 53 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.RunnerResults (cyclomatic 64) · ×1
  • index.RunnerResults (cyclomatic 64) packages/bruno-app/src/components/RunnerResults/index.jsx:72 — index.RunnerResults has cyclomatic complexity 64 (threshold 15). Of this number, 19 points are the body's own statements and 45 belong to 14 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MigrateCollectionToYmlModal (cyclomatic 63) · ×1
  • MigrateCollectionToYmlModal (cyclomatic 63) packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:105 — MigrateCollectionToYmlModal has cyclomatic complexity 63 (threshold 15). Of this number, 27 points are the body's own statements and 36 belong to 29 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GrpcQueryUrl (cyclomatic 63) · ×1
  • GrpcQueryUrl (cyclomatic 63) packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js:33 — GrpcQueryUrl has cyclomatic complexity 63 (threshold 15). Of this number, 20 points are the body's own statements and 43 belong to 31 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.Select (cyclomatic 62) · ×1
  • index.Select (cyclomatic 62) packages/bruno-app/src/ui/Select/index.js:63 — index.Select has cyclomatic complexity 62 (threshold 15). Most of this is not in the body itself: 14 of the 62 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 173, a function literal at line 159, renderRightSection, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 62) · ×1
  • (anonymous) (cyclomatic 62) packages/bruno-app/public/static/diff2Html.js:2464 — (anonymous) has cyclomatic complexity 62 (threshold 15). Most of this is not in the body itself: 9 of the 62 points are its own statements and the rest belongs to 23 function items inside it that branch (applyLineGroupping, processChangedLines, a function literal at line 2495, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · MockResponsesList (cyclomatic 62) · ×1
  • MockResponsesList (cyclomatic 62) packages/bruno-app/src/components/MockServer/MockResponse/MockResponsesList/index.js:34 — MockResponsesList has cyclomatic complexity 62 (threshold 15). Of this number, 25 points are the body's own statements and 37 belong to 37 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PostmanPackageReport (cyclomatic 62) · ×1
  • PostmanPackageReport (cyclomatic 62) packages/bruno-app/src/components/Sidebar/PostmanPackageReport/index.js:69 — PostmanPackageReport has cyclomatic complexity 62 (threshold 15). Of this number, 50 points are the body's own statements and 12 belong to 11 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · stringifyCollection.stringifyCollection (cyclomatic 60) · ×1
  • stringifyCollection.stringifyCollection (cyclomatic 60) packages/bruno-filestore/src/formats/yml/stringifyCollection.ts:70 — stringifyCollection.stringifyCollection has cyclomatic complexity 60 (threshold 15). Of this number, 57 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 60) · ×1
  • (anonymous) (cyclomatic 60) packages/bruno-app/public/static/diff2Html.js:2748 — (anonymous) has cyclomatic complexity 60 (threshold 15). Most of this is not in the body itself: 9 of the 60 points are its own statements and the rest belongs to 22 function items inside it that branch (m, a function literal at line 2779, a function literal at line 2753, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · AI (cyclomatic 60) · ×1
  • AI (cyclomatic 60) packages/bruno-app/src/components/Preferences/AI/index.js:60 — AI has cyclomatic complexity 60 (threshold 15). Of this number, 22 points are the body's own statements and 38 belong to 65 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · auth.toBrunoAuth (cyclomatic 59) · ×1
  • auth.toBrunoAuth (cyclomatic 59) packages/bruno-filestore/src/formats/yml/common/auth.ts:217 — auth.toBrunoAuth has cyclomatic complexity 59 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · swagger2-to-bruno.transformSwaggerRequestItem (cyclomatic 58) · ×1
  • swagger2-to-bruno.transformSwaggerRequestItem (cyclomatic 58) packages/bruno-converters/src/openapi/swagger2-to-bruno.js:146 — swagger2-to-bruno.transformSwaggerRequestItem has cyclomatic complexity 58 (threshold 15). Of this number, 24 points are the body's own statements and 34 belong to 8 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · configureRequest (cyclomatic 58) · ×1
  • configureRequest (cyclomatic 58) REDACTED:119 — configureRequest has cyclomatic complexity 58 (threshold 15). Of this number, 56 points are the body's own statements and 2 belong to 5 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NewRequest (cyclomatic 58) · ×1
  • NewRequest (cyclomatic 58) packages/bruno-app/src/components/Sidebar/NewRequest/index.js:27 — NewRequest has cyclomatic complexity 58 (threshold 15). Of this number, 21 points are the body's own statements and 37 belong to 38 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.TimelineItem (cyclomatic 57) · ×1
  • index.TimelineItem (cyclomatic 57) packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/index.js:27 — index.TimelineItem has cyclomatic complexity 57 (threshold 15). Of this number, 38 points are the body's own statements and 19 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · proxy-util.setupProxyAgents (cyclomatic 55) · ×1
  • proxy-util.setupProxyAgents (cyclomatic 55) packages/bruno-electron/src/utils/proxy-util.js:76 — proxy-util.setupProxyAgents has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProxySettings (cyclomatic 55) · ×1
  • ProxySettings (cyclomatic 55) packages/bruno-app/src/components/Preferences/ProxySettings/index.js:14 — ProxySettings has cyclomatic complexity 55 (threshold 15). Of this number, 37 points are the body's own statements and 18 belong to 27 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CollectionsList (cyclomatic 55) · ×1
  • CollectionsList (cyclomatic 55) packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/CollectionsList/index.js:31 — CollectionsList has cyclomatic complexity 55 (threshold 15). Most of this is not in the body itself: 14 of the 55 points are its own statements and the rest belongs to 38 function items inside it that branch (a function literal at line 341, handleOpenCollectionClick, handleRemoveCollection, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ModifyCookieModal (cyclomatic 55) · ×1
  • ModifyCookieModal (cyclomatic 55) packages/bruno-app/src/components/Cookies/ModifyCookieModal/index.js:20 — ModifyCookieModal has cyclomatic complexity 55 (threshold 15). Of this number, 24 points are the body's own statements and 31 belong to 21 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.deserializeTab (cyclomatic 54) · ×1
  • index.deserializeTab (cyclomatic 54) packages/bruno-app/src/utils/snapshot/index.js:662 — index.deserializeTab has cyclomatic complexity 54 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · parseCollection.parseCollection (cyclomatic 54) · ×1
  • parseCollection.parseCollection (cyclomatic 54) packages/bruno-filestore/src/formats/yml/parseCollection.ts:18 — parseCollection.parseCollection has cyclomatic complexity 54 (threshold 15). Of this number, 52 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · renderMessage (cyclomatic 54) · ×1
  • renderMessage (cyclomatic 54) packages/bruno-app/src/components/AiChatSidebar/index.js:718 — renderMessage has cyclomatic complexity 54 (threshold 15). Of this number, 41 points are the body's own statements and 13 belong to 17 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ResponsePane (cyclomatic 54) · ×1
  • ResponsePane (cyclomatic 54) packages/bruno-app/src/components/ResponsePane/index.js:34 — ResponsePane has cyclomatic complexity 54 (threshold 15). Of this number, 35 points are the body's own statements and 19 belong to 16 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GraphQLRequestPane (cyclomatic 53) · ×1
  • GraphQLRequestPane (cyclomatic 53) packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js:50 — GraphQLRequestPane has cyclomatic complexity 53 (threshold 15). Of this number, 24 points are the body's own statements and 29 belong to 29 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · chat.registerChatIpc (cyclomatic 52) · ×1
  • chat.registerChatIpc (cyclomatic 52) packages/bruno-electron/src/ipc/ai/chat.js:103 — chat.registerChatIpc has cyclomatic complexity 52 (threshold 15). Most of this is not in the body itself: 1 of the 52 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 112, 180, 210, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · HotkeysProvider (cyclomatic 52) · ×1
  • HotkeysProvider (cyclomatic 52) packages/bruno-app/src/providers/Hotkeys/index.js:22 — HotkeysProvider has cyclomatic complexity 52 (threshold 15). Most of this is not in the body itself: 4 of the 52 points are its own statements and the rest belongs to 95 function items inside it that branch (a function literal at line 289, a function literal at line 211, bindAction, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.DotEnvFileEditor (cyclomatic 51) · ×1
  • index.DotEnvFileEditor (cyclomatic 51) packages/bruno-app/src/components/Environments/DotEnvFileEditor/index.js:16 — index.DotEnvFileEditor has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 7 of the 51 points are its own statements and the rest belongs to 21 function literals inside it that branch (lines 60, 133, 90, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.CollectionRow (cyclomatic 51) · ×1
  • index.CollectionRow (cyclomatic 51) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:63 — index.CollectionRow has cyclomatic complexity 51 (threshold 15). Of this number, 32 points are the body's own statements and 19 belong to 7 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · openapi-sync.compareRequestFields (cyclomatic 51) · ×1
  • openapi-sync.compareRequestFields (cyclomatic 51) packages/bruno-electron/src/ipc/openapi-sync.js:935 — openapi-sync.compareRequestFields has cyclomatic complexity 51 (threshold 15). Of this number, 47 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 51) · ×1
  • (anonymous) (cyclomatic 51) packages/bruno-app/public/static/diff2Html.js:54 — (anonymous) has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 1 of the 51 points is its own statement and the rest belongs to 16 function items inside it that branch (diff::h, i, diff, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · SyncReviewPage (cyclomatic 51) · ×1
  • SyncReviewPage (cyclomatic 51) packages/bruno-app/src/components/OpenAPISyncTab/SyncReviewPage/index.js:78 — SyncReviewPage has cyclomatic complexity 51 (threshold 15). Of this number, 35 points are the body's own statements and 16 belong to 44 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · auth.fromOpenCollectionAuth (cyclomatic 50) · ×1
  • auth.fromOpenCollectionAuth (cyclomatic 50) packages/bruno-converters/src/opencollection/common/auth.ts:171 — auth.fromOpenCollectionAuth has cyclomatic complexity 50 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · auth.toOpenCollectionOAuth2 (cyclomatic 50) · ×1
  • auth.toOpenCollectionOAuth2 (cyclomatic 50) packages/bruno-converters/src/opencollection/common/auth.ts:316 — auth.toOpenCollectionOAuth2 has cyclomatic complexity 50 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · switchWorkspace (cyclomatic 50) · ×1
  • switchWorkspace (cyclomatic 50) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:625 — switchWorkspace has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 1 of the 50 points is its own statement and the rest belongs to 19 function literals inside it that branch (lines 626, 679, 687, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · ProviderCard.ProviderCard (cyclomatic 49) · ×1
  • ProviderCard.ProviderCard (cyclomatic 49) packages/bruno-app/src/components/Preferences/AI/ProviderCard.js:36 — ProviderCard.ProviderCard has cyclomatic complexity 49 (threshold 15). Of this number, 24 points are the body's own statements and 25 belong to 8 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · grpc-event-handlers.registerGrpcEventHandlers (cyclomatic 49) · ×1
  • grpc-event-handlers.registerGrpcEventHandlers (cyclomatic 49) REDACTED:143 — grpc-event-handlers.registerGrpcEventHandlers has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 1 of the 49 points is its own statement and the rest belongs to 10 function items inside it that branch (a function literal at line 534, a function literal at line 163, a function literal at line 337, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · http-https-agents.createAgents (cyclomatic 49) · ×1
  • http-https-agents.createAgents (cyclomatic 49) packages/bruno-requests/src/utils/http-https-agents.ts:463 — http-https-agents.createAgents has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · formatRequestContext (cyclomatic 49) · ×1
  • formatRequestContext (cyclomatic 49) packages/bruno-electron/src/ipc/ai/context.js:220 — formatRequestContext has cyclomatic complexity 49 (threshold 15). Of this number, 39 points are the body's own statements and 10 belong to 13 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · auth.toOpenCollectionAuth (cyclomatic 48) · ×1
  • auth.toOpenCollectionAuth (cyclomatic 48) packages/bruno-converters/src/opencollection/common/auth.ts:430 — auth.toOpenCollectionAuth has cyclomatic complexity 48 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · EditorLinkPopover (cyclomatic 48) · ×1
  • EditorLinkPopover (cyclomatic 48) packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkPopover/index.js:33 — EditorLinkPopover has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 6 of the 48 points are its own statements and the rest belongs to 28 function items inside it that branch ((anonymous)::handleClick, a function literal at line 311, a function literal at line 148, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponseExampleMultipartFormParams (cyclomatic 47) · ×1
  • index.ResponseExampleMultipartFormParams (cyclomatic 47) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js:22 — index.ResponseExampleMultipartFormParams has cyclomatic complexity 47 (threshold 15). Most of this is not in the body itself: 5 of the 47 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 57, a function literal at line 118, getFileList, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.CollectionItemRow (cyclomatic 47) · ×1
  • index.CollectionItemRow (cyclomatic 47) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:76 — index.CollectionItemRow has cyclomatic complexity 47 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (index.CollectionItemRow::buildMenuItems) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · actions.switchWorkspace.<returned closure> (cyclomatic 47) · ×1
  • actions.switchWorkspace.<returned closure> (cyclomatic 47) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:626 — actions.switchWorkspace.<returned closure> has cyclomatic complexity 47 (threshold 15). Of this number, 40 points are the body's own statements and 7 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · addTab (cyclomatic 47) · ×1
  • addTab (cyclomatic 47) packages/bruno-app/src/providers/ReduxStore/slices/tabs.js:72 — addTab has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.formatResponse (cyclomatic 46) · ×1
  • index.formatResponse (cyclomatic 46) packages/bruno-app/src/utils/common/index.js:249 — index.formatResponse has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · global-environments.registerGlobalEnvironmentsIpc (cyclomatic 46) · ×1
  • global-environments.registerGlobalEnvironmentsIpc (cyclomatic 46) packages/bruno-electron/src/ipc/global-environments.js:52 — global-environments.registerGlobalEnvironmentsIpc has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to 12 function literals inside it that branch (lines 151, 53, 120, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 46) · ×1
  • (anonymous) (cyclomatic 46) packages/bruno-app/public/static/diff2Html.js:1700 — (anonymous) has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 9 of the 46 points are its own statements and the rest belongs to 28 function items inside it that branch (a function literal at line 1731, a function literal at line 1705, code, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ThemeDropdown (cyclomatic 45) · ×1
  • index.ThemeDropdown (cyclomatic 45) packages/bruno-app/src/components/StatusBar/ThemeDropdown/index.js:17 — index.ThemeDropdown has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 7 of the 45 points are its own statements and the rest belongs to 16 function items inside it that branch (renderThemeList, a function literal at line 158, a function literal at line 169, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.AwsV4Auth (cyclomatic 44) · ×1
  • index.AwsV4Auth (cyclomatic 44) packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js:11 — index.AwsV4Auth has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to 6 function items inside it that branch (handleAccessKeyIdChange, handleSecretAccessKeyChange, handleSessionTokenChange, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ExpandableEndpointRow.ExpandableEndpointRow (cyclomatic 44) · ×1
  • ExpandableEndpointRow.ExpandableEndpointRow (cyclomatic 44) packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/ExpandableEndpointRow.js:18 — ExpandableEndpointRow.ExpandableEndpointRow has cyclomatic complexity 44 (threshold 15). Of this number, 25 points are the body's own statements and 19 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · queryBuilder.walkSelectionSet (cyclomatic 44) · ×1
  • queryBuilder.walkSelectionSet (cyclomatic 44) packages/bruno-app/src/utils/graphql/queryBuilder.js:609 — queryBuilder.walkSelectionSet has cyclomatic complexity 44 (threshold 15). Of this number, 43 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ExportEnvironmentModal (cyclomatic 44) · ×1
  • ExportEnvironmentModal (cyclomatic 44) packages/bruno-app/src/components/Environments/Common/ExportEnvironmentModal/index.js:13 — ExportEnvironmentModal has cyclomatic complexity 44 (threshold 15). Of this number, 17 points are the body's own statements and 27 belong to 31 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.TerminalTab (cyclomatic 43) · ×1
  • index.TerminalTab (cyclomatic 43) packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:216 — index.TerminalTab has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 6 of the 43 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 233, a function literal at line 381, a function literal at line 259, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · stringifyHttpRequest.stringifyHttpRequest (cyclomatic 43) · ×1
  • stringifyHttpRequest.stringifyHttpRequest (cyclomatic 43) packages/bruno-filestore/src/formats/yml/items/stringifyHttpRequest.ts:25 — stringifyHttpRequest.stringifyHttpRequest has cyclomatic complexity 43 (threshold 15). Of this number, 26 points are the body's own statements and 17 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · prepareRequest (cyclomatic 43) · ×1
  • prepareRequest (cyclomatic 43) packages/bruno-electron/src/ipc/network/prepare-request.js:380 — prepareRequest has cyclomatic complexity 43 (threshold 15). Of this number, 39 points are the body's own statements and 4 belong to 7 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CertFileInput (cyclomatic 43) · ×1
  • CertFileInput (cyclomatic 43) packages/bruno-app/src/components/Preferences/ClientCertSettings/index.js:28 — CertFileInput has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 4 of the 43 points are its own statements and the rest belongs to 39 function items inside it that branch (ClientCertSettings, a function literal at line 249, ClientCertSettings::handleTypeChange, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.AwsV4Auth (cyclomatic 42) · ×1
  • index.AwsV4Auth (cyclomatic 42) packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js:11 — index.AwsV4Auth has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 7 of the 42 points are its own statements and the rest belongs to 6 function items inside it that branch (handleSecretAccessKeyChange, handleSessionTokenChange, handleServiceChange, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · actions.handleMultipleCollectionItemsDrop.<returned closure> (cyclomatic 42) · ×1
  • actions.handleMultipleCollectionItemsDrop.<returned closure> (cyclomatic 42) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1128 — actions.handleMultipleCollectionItemsDrop.<returned closure> has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 5 of the 42 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 1159, a function literal at line 1166, getDirectoryItems, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.registerMockServerIpc (cyclomatic 42) · ×1
  • index.registerMockServerIpc (cyclomatic 42) packages/bruno-electron/src/ipc/mock-server/index.js:45 — index.registerMockServerIpc has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 1 of the 42 points is its own statement and the rest belongs to 19 function literals inside it that branch (lines 156, 134, 48, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · handleMultipleCollectionItemsDrop (cyclomatic 42) · ×1
  • handleMultipleCollectionItemsDrop (cyclomatic 42) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1127 — handleMultipleCollectionItemsDrop has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 1 of the 42 points is its own statement and the rest belongs to 14 function items inside it that branch (a function literal at line 1159, (anonymous)::(anonymous)::handleMoveToNewLocation, a function literal at line 1128, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · SaveTransientRequest (cyclomatic 42) · ×1
  • SaveTransientRequest (cyclomatic 42) packages/bruno-app/src/components/SaveTransientRequest/index.js:28 — SaveTransientRequest has cyclomatic complexity 42 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 42) · ×1
  • (anonymous) (cyclomatic 42) packages/bruno-electron/src/index.js:209 — (anonymous) has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 11 of the 42 points are its own statements and the rest belongs to 49 function items inside it that branch (a function literal at line 469, a function literal at line 287, guardNavigation, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.CollectionSettings (cyclomatic 41) · ×1
  • index.CollectionSettings (cyclomatic 41) packages/bruno-app/src/components/CollectionSettings/index.js:25 — index.CollectionSettings has cyclomatic complexity 41 (threshold 15). Of this number, 31 points are the body's own statements and 10 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · FileTab.FileTab (cyclomatic 41) · ×1
  • FileTab.FileTab (cyclomatic 41) REDACTED:15 — FileTab.FileTab has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 2 of the 41 points are its own statements and the rest belongs to 7 function items inside it that branch (handleMultipleFiles, processFile, processFiles, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · useIpcEvents (cyclomatic 41) · ×1
  • useIpcEvents (cyclomatic 41) packages/bruno-app/src/providers/App/useIpcEvents.js:56 — useIpcEvents has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 1 of the 41 points is its own statement and the rest belongs to 60 function items inside it that branch ((anonymous)::_collectionTreeUpdated, a function literal at line 275, a function literal at line 220, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · CertFileInput (cyclomatic 41) · ×1
  • CertFileInput (cyclomatic 41) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:32 — CertFileInput has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 4 of the 41 points are its own statements and the rest belongs to 38 function items inside it that branch (ClientCertSettings, a function literal at line 268, ClientCertSettings::handleTypeChange, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.MultipartFormParams (cyclomatic 40) · ×1
  • index.MultipartFormParams (cyclomatic 40) packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js:29 — index.MultipartFormParams has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 4 of the 40 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 68, a function literal at line 123, getFileList, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.WSBody (cyclomatic 40) · ×1
  • index.WSBody (cyclomatic 40) packages/bruno-app/src/components/RequestPane/WsBody/index.js:15 — index.WSBody has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 4 of the 40 points are its own statements and the rest belongs to 18 function literals inside it that branch (lines 99, 182, 214, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · http-https-agents.getCertsAndProxyConfig (cyclomatic 40) · ×1
  • http-https-agents.getCertsAndProxyConfig (cyclomatic 40) packages/bruno-requests/src/utils/http-https-agents.ts:244 — http-https-agents.getCertsAndProxyConfig has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VisualDiffAuth.VisualDiffAuth (cyclomatic 39) · ×1
  • VisualDiffAuth.VisualDiffAuth (cyclomatic 39) packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffAuth.js:54 — VisualDiffAuth.VisualDiffAuth has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 13 of the 39 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 68, 89, 159, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · body.toOpenCollectionBody (cyclomatic 39) · ×1
  • body.toOpenCollectionBody (cyclomatic 39) packages/bruno-converters/src/opencollection/common/body.ts:154 — body.toOpenCollectionBody has cyclomatic complexity 39 (threshold 15). Of this number, 18 points are the body's own statements and 21 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · parseHttpRequest.parseHttpRequest (cyclomatic 39) · ×1
  • parseHttpRequest.parseHttpRequest (cyclomatic 39) packages/bruno-filestore/src/formats/yml/items/parseHttpRequest.ts:18 — parseHttpRequest.parseHttpRequest has cyclomatic complexity 39 (threshold 15). Of this number, 31 points are the body's own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ImportCollectionLocation (cyclomatic 39) · ×1
  • ImportCollectionLocation (cyclomatic 39) packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js:108 — ImportCollectionLocation has cyclomatic complexity 39 (threshold 15). Of this number, 22 points are the body's own statements and 17 belong to 17 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.DiffView (cyclomatic 38) · ×1
  • index.DiffView (cyclomatic 38) packages/bruno-app/src/components/AiChatSidebar/DiffView/index.js:9 — index.DiffView has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 9 of the 38 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 136, a function literal at line 44, renderLine, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ClientCertSettings (cyclomatic 38) · ×1
  • index.ClientCertSettings (cyclomatic 38) packages/bruno-app/src/components/Preferences/ClientCertSettings/index.js:69 — index.ClientCertSettings has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 13 of the 38 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 249, handleTypeChange, resetFileInputFields, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · body.fromOpenCollectionBody (cyclomatic 38) · ×1
  • body.fromOpenCollectionBody (cyclomatic 38) packages/bruno-converters/src/opencollection/common/body.ts:19 — body.fromOpenCollectionBody has cyclomatic complexity 38 (threshold 15). Of this number, 20 points are the body's own statements and 18 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · prepare-request.setAuthHeaders (cyclomatic 38) · ×1
  • prepare-request.setAuthHeaders (cyclomatic 38) packages/bruno-electron/src/ipc/network/prepare-request.js:13 — prepare-request.setAuthHeaders has cyclomatic complexity 38 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · AssertRuntime.runAssertions (cyclomatic 38) · ×1
  • AssertRuntime.runAssertions (cyclomatic 38) REDACTED:410 — AssertRuntime.runAssertions has cyclomatic complexity 38 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · oauth1-request-authorization.applyOAuth1ToRequest (cyclomatic 38) · ×1
  • oauth1-request-authorization.applyOAuth1ToRequest (cyclomatic 38) packages/bruno-requests/src/auth/oauth1-request-authorization.ts:340 — oauth1-request-authorization.applyOAuth1ToRequest has cyclomatic complexity 38 (threshold 15). Of this number, 36 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · registerNetworkIpc · ×1
  • registerNetworkIpc::runRequest (cyclomatic 38) REDACTED:763 — registerNetworkIpc::runRequest has cyclomatic complexity 38 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · showPopup (cyclomatic 38) · ×1
  • showPopup (cyclomatic 38) packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:1076 — showPopup has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 11 of the 38 points are its own statements and the rest belongs to 10 function items inside it that branch (hidePopup, onDocumentClick, onScroll, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · processAuth (cyclomatic 38) · ×1
  • processAuth (cyclomatic 38) packages/bruno-converters/src/postman/postman-to-bruno.js:270 — processAuth has cyclomatic complexity 38 (threshold 15). Of this number, 36 points are the body's own statements and 2 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProxySettings (cyclomatic 38) · ×1
  • ProxySettings (cyclomatic 38) packages/bruno-app/src/components/CollectionSettings/ProxySettings/index.js:14 — ProxySettings has cyclomatic complexity 38 (threshold 15). Of this number, 17 points are the body's own statements and 21 belong to 15 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CodeEditor.componentDidMount (cyclomatic 37) · ×1
  • CodeEditor.componentDidMount (cyclomatic 37) packages/bruno-app/src/components/CodeEditor/index.js:177 — CodeEditor.componentDidMount has cyclomatic complexity 37 (threshold 15). Of this number, 16 points are the body's own statements and 21 belong to 7 function literals inside it that branch. This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D1 · Cyclomatic Complexity · index.ClientCertSettings (cyclomatic 37) · ×1
  • index.ClientCertSettings (cyclomatic 37) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:73 — index.ClientCertSettings has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 12 of the 37 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 268, handleTypeChange, resetFileInputFields, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.DocsEditor (cyclomatic 37) · ×1
  • index.DocsEditor (cyclomatic 37) packages/bruno-app/src/components/Documentation/DocsEditor/index.js:17 — index.DocsEditor has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 15 of the 37 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 105, a function literal at line 60, a function literal at line 97, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.GrpcResponsePane (cyclomatic 37) · ×1
  • index.GrpcResponsePane (cyclomatic 37) packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:26 — index.GrpcResponsePane has cyclomatic complexity 37 (threshold 15). Of this number, 31 points are the body's own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · getParameterEntries (cyclomatic 37) · ×1
  • getParameterEntries (cyclomatic 37) packages/bruno-converters/src/openapi/openapi-to-bruno.js:160 — getParameterEntries has cyclomatic complexity 37 (threshold 15). Of this number, 29 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.ExampleItem (cyclomatic 36) · ×1
  • index.ExampleItem (cyclomatic 36) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/ExampleItem/index.js:27 — index.ExampleItem has cyclomatic complexity 36 (threshold 15). Of this number, 22 points are the body's own statements and 14 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.jsonToBru (cyclomatic 36) · ×1
  • index.jsonToBru (cyclomatic 36) packages/bruno-lang/v1/src/index.js:83 — index.jsonToBru has cyclomatic complexity 36 (threshold 15). Of this number, 32 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.SingleWSMessage (cyclomatic 35) · ×1
  • index.SingleWSMessage (cyclomatic 35) packages/bruno-app/src/components/RequestPane/WsBody/SingleWSMessage/index.js:33 — index.SingleWSMessage has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 11 of the 35 points are its own statements and the rest belongs to 10 function items inside it that branch (handleNameKeyDown, a function literal at line 164, a function literal at line 199, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.GrpcTimelineItem · ×1
  • index.GrpcTimelineItem::renderEventContent (cyclomatic 35) packages/bruno-app/src/components/ResponsePane/Timeline/GrpcTimelineItem/index.js:75 — index.GrpcTimelineItem::renderEventContent has cyclomatic complexity 35 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · auth.fromOpenCollectionOAuth2 (cyclomatic 35) · ×1
  • auth.fromOpenCollectionOAuth2 (cyclomatic 35) packages/bruno-converters/src/opencollection/common/auth.ts:17 — auth.fromOpenCollectionOAuth2 has cyclomatic complexity 35 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (auth.fromOpenCollectionOAuth2::buildOAuth2Config) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · index.app.on("ready") (cyclomatic 35) · ×1
  • index.app.on("ready") (cyclomatic 35) packages/bruno-electron/src/index.js:209 — index.app.on("ready") has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 8 of the 35 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 469, a function literal at line 287, a function literal at line 282, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · updateVariableInScope (cyclomatic 35) · ×1
  • updateVariableInScope (cyclomatic 35) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:2456 — updateVariableInScope has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 2457, 2496, 2604, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · getVariableScope (cyclomatic 35) · ×1
  • getVariableScope (cyclomatic 35) packages/bruno-app/src/utils/collections/index.js:1930 — getVariableScope has cyclomatic complexity 35 (threshold 15). Of this number, 31 points are the body's own statements and 4 belong to 5 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · buildXmlBody (cyclomatic 35) · ×1
  • buildXmlBody (cyclomatic 35) packages/bruno-converters/src/openapi/openapi-common.js:326 — buildXmlBody has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 14 function items inside it that branch (a function literal at line 326, a function literal at line 346, (anonymous)::buildElement, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponseExample (cyclomatic 34) · ×1
  • index.ResponseExample (cyclomatic 34) packages/bruno-app/src/components/ResponseExample/index.js:18 — index.ResponseExample has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 6 of the 34 points are its own statements and the rest belongs to 9 function items inside it that branch (handleMouseMove, a function literal at line 167, handleMouseUp, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.EnvironmentDetails (cyclomatic 34) · ×1
  • index.EnvironmentDetails (cyclomatic 34) packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/index.js:24 — index.EnvironmentDetails has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 14 of the 34 points are its own statements and the rest belongs to 9 function items inside it that branch (validateEnvironmentName, a function literal at line 39, handleNameBlur, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · http.toOpenCollectionHttpItem (cyclomatic 34) · ×1
  • http.toOpenCollectionHttpItem (cyclomatic 34) packages/bruno-converters/src/opencollection/items/http.ts:153 — http.toOpenCollectionHttpItem has cyclomatic complexity 34 (threshold 15). Of this number, 24 points are the body's own statements and 10 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · body.toOpenCollectionBody (cyclomatic 34) · ×1
  • body.toOpenCollectionBody (cyclomatic 34) packages/bruno-filestore/src/formats/yml/common/body.ts:17 — body.toOpenCollectionBody has cyclomatic complexity 34 (threshold 15). Of this number, 27 points are the body's own statements and 7 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · body.toBrunoBody (cyclomatic 34) · ×1
  • body.toBrunoBody (cyclomatic 34) packages/bruno-filestore/src/formats/yml/common/body.ts:137 — body.toBrunoBody has cyclomatic complexity 34 (threshold 15). Of this number, 25 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · prepareWsRequest (cyclomatic 34) · ×1
  • prepareWsRequest (cyclomatic 34) packages/bruno-electron/src/ipc/network/ws-event-handlers.js:26 — prepareWsRequest has cyclomatic complexity 34 (threshold 15). Of this number, 29 points are the body's own statements and 5 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OAuth1 (cyclomatic 34) · ×1
  • OAuth1 (cyclomatic 34) packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js:31 — OAuth1 has cyclomatic complexity 34 (threshold 15). Of this number, 26 points are the body's own statements and 8 belong to 27 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.CollectionApp (cyclomatic 33) · ×1
  • index.CollectionApp (cyclomatic 33) packages/bruno-app/src/components/CollectionApp/index.js:172 — index.CollectionApp has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 8 of the 33 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 289, 225, 205, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.EnvironmentDetails (cyclomatic 33) · ×1
  • index.EnvironmentDetails (cyclomatic 33) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js:20 — index.EnvironmentDetails has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 13 of the 33 points are its own statements and the rest belongs to 9 function items inside it that branch (validateEnvironmentName, a function literal at line 35, handleNameBlur, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.QueryResult (cyclomatic 33) · ×1
  • index.QueryResult (cyclomatic 33) packages/bruno-app/src/components/ResponsePane/QueryResult/index.js:92 — index.QueryResult has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 10 of the 33 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 147, a function literal at line 112, a function literal at line 132, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.OpenCollectionModal (cyclomatic 33) · ×1
  • index.OpenCollectionModal (cyclomatic 33) packages/bruno-app/src/components/Sidebar/OpenCollection/index.js:18 — index.OpenCollectionModal has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 2 of the 33 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 42, notifyOpenResult, handleConfirm, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponsiveTabs (cyclomatic 33) · ×1
  • index.ResponsiveTabs (cyclomatic 33) packages/bruno-app/src/ui/ResponsiveTabs/index.js:19 — index.ResponsiveTabs has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 3 of the 33 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 47, 149, 175, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · http.fromOpenCollectionHttpItem (cyclomatic 33) · ×1
  • http.fromOpenCollectionHttpItem (cyclomatic 33) packages/bruno-converters/src/opencollection/items/http.ts:52 — http.fromOpenCollectionHttpItem has cyclomatic complexity 33 (threshold 15). Of this number, 30 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · getOAuth2TokenUsingAuthorizationCode (cyclomatic 33) · ×1
  • getOAuth2TokenUsingAuthorizationCode (cyclomatic 33) packages/bruno-electron/src/utils/oauth2.js:139 — getOAuth2TokenUsingAuthorizationCode has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.CreateMockResponseModal (cyclomatic 32) · ×1
  • index.CreateMockResponseModal (cyclomatic 32) packages/bruno-app/src/components/MockServer/MockResponse/CreateMockResponseModal/index.js:20 — index.CreateMockResponseModal has cyclomatic complexity 32 (threshold 15). Of this number, 19 points are the body's own statements and 13 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MultiLineEditor.componentDidUpdate (cyclomatic 32) · ×1
  • MultiLineEditor.componentDidUpdate (cyclomatic 32) packages/bruno-app/src/components/MultiLineEditor/index.js:282 — MultiLineEditor.componentDidUpdate has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.MethodDropdown (cyclomatic 32) · ×1
  • index.MethodDropdown (cyclomatic 32) packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/MethodDropdown/index.js:15 — index.MethodDropdown has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 5 of the 32 points are its own statements and the rest belongs to 12 function items inside it that branch (handleKeyDown, a function literal at line 39, getIconForMethodType, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.SetAsVariablePopover (cyclomatic 32) · ×1
  • index.SetAsVariablePopover (cyclomatic 32) packages/bruno-app/src/components/SetAsVariablePopover/index.js:36 — index.SetAsVariablePopover has cyclomatic complexity 32 (threshold 15). Of this number, 20 points are the body's own statements and 12 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.VariablesEditor (cyclomatic 32) · ×1
  • index.VariablesEditor (cyclomatic 32) packages/bruno-app/src/components/VariablesEditor/index.js:19 — index.VariablesEditor has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 12 of the 32 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 143, 114, 50, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.ImportWorkspace (cyclomatic 32) · ×1
  • index.ImportWorkspace (cyclomatic 32) packages/bruno-app/src/components/WorkspaceSidebar/ImportWorkspace/index.js:15 — index.ImportWorkspace has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 9 of the 32 points are its own statements and the rest belongs to 8 function items inside it that branch (validateAndGetFilePath, handleDrag, a function literal at line 34, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · PreferencesStore.getPreferences (cyclomatic 32) · ×1
  • PreferencesStore.getPreferences (cyclomatic 32) packages/bruno-electron/src/store/preferences.js:249 — PreferencesStore.getPreferences has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · componentDidUpdate (cyclomatic 32) · ×1
  • componentDidUpdate (cyclomatic 32) packages/bruno-app/src/components/CodeEditor/index.js:494 — componentDidUpdate has cyclomatic complexity 32 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D1 · Cyclomatic Complexity · migrateCollectionOnDisk (cyclomatic 32) · ×1
  • migrateCollectionOnDisk (cyclomatic 32) packages/bruno-electron/src/ipc/yml-migration.js:367 — migrateCollectionOnDisk has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CollectionsSection (cyclomatic 32) · ×1
  • CollectionsSection (cyclomatic 32) packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js:44 — CollectionsSection has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 15 of the 32 points are its own statements and the rest belongs to 41 function items inside it that branch (handleStartRequest, handleSortCollections, getSortIcon, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.serializeTab (cyclomatic 31) · ×1
  • index.serializeTab (cyclomatic 31) packages/bruno-app/src/utils/snapshot/index.js:451 — index.serializeTab has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · proxy-util.setupProxyAgents (cyclomatic 31) · ×1
  • proxy-util.setupProxyAgents (cyclomatic 31) packages/bruno-cli/src/utils/proxy-util.js:75 — proxy-util.setupProxyAgents has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.authToHeaders (cyclomatic 31) · ×1
  • index.authToHeaders (cyclomatic 31) REDACTED:361 — index.authToHeaders has cyclomatic complexity 31 (threshold 15). Of this number, 27 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · grpc.toOpenCollectionGrpcItem (cyclomatic 31) · ×1
  • grpc.toOpenCollectionGrpcItem (cyclomatic 31) packages/bruno-converters/src/opencollection/items/grpc.ts:109 — grpc.toOpenCollectionGrpcItem has cyclomatic complexity 31 (threshold 15). Of this number, 28 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · yml-migration.stripBruExtInRunRequest (cyclomatic 31) · ×1
  • yml-migration.stripBruExtInRunRequest (cyclomatic 31) packages/bruno-electron/src/ipc/yml-migration.js:188 — yml-migration.stripBruExtInRunRequest has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · stringifyWebsocketRequest.stringifyWebsocketRequest (cyclomatic 31) · ×1
  • stringifyWebsocketRequest.stringifyWebsocketRequest (cyclomatic 31) packages/bruno-filestore/src/formats/yml/items/stringifyWebsocketRequest.ts:16 — stringifyWebsocketRequest.stringifyWebsocketRequest has cyclomatic complexity 31 (threshold 15). Of this number, 27 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · timeline-agent.createTimelineAgentClass (cyclomatic 31) · ×1
  • timeline-agent.createTimelineAgentClass (cyclomatic 31) packages/bruno-requests/src/utils/timeline-agent.ts:56 — timeline-agent.createTimelineAgentClass has cyclomatic complexity 31 (threshold 15). Of this number, 18 points are the body's own statements and 13 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · runFolderEvent (cyclomatic 31) · ×1
  • runFolderEvent (cyclomatic 31) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3554 — runFolderEvent has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AppTitleBar (cyclomatic 31) · ×1
  • AppTitleBar (cyclomatic 31) packages/bruno-app/src/components/AppTitleBar/index.js:42 — AppTitleBar has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 11 of the 31 points are its own statements and the rest belongs to 38 function items inside it that branch (a function literal at line 211, a function literal at line 78, handleOpenWorkspace, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.AIAssist (cyclomatic 30) · ×1
  • index.AIAssist (cyclomatic 30) packages/bruno-app/src/components/AIAssist/index.js:65 — index.AIAssist has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 6 of the 30 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 106, 188, 75, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.HttpRequestPane (cyclomatic 30) · ×1
  • index.HttpRequestPane (cyclomatic 30) packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js:53 — index.HttpRequestPane has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 12 of the 30 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 103, 63, 124, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.XmlNode (cyclomatic 30) · ×1
  • index.XmlNode (cyclomatic 30) packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/XmlPreview/index.js:139 — index.XmlNode has cyclomatic complexity 30 (threshold 15). Of this number, 24 points are the body's own statements and 6 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.RunConfigurationPanel (cyclomatic 30) · ×1
  • index.RunConfigurationPanel (cyclomatic 30) packages/bruno-app/src/components/RunnerResults/RunConfigurationPanel/index.jsx:175 — index.RunConfigurationPanel has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 4 of the 30 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 272, 218, 336, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.TagPicker (cyclomatic 30) · ×1
  • index.TagPicker (cyclomatic 30) packages/bruno-app/src/components/TagPicker/index.jsx:8 — index.TagPicker has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 9 of the 30 points are its own statements and the rest belongs to 7 function items inside it that branch (handleKeyDown, addTag, a function literal at line 30, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.getRequestFromCurlCommand (cyclomatic 30) · ×1
  • index.getRequestFromCurlCommand (cyclomatic 30) packages/bruno-app/src/utils/curl/index.js:6 — index.getRequestFromCurlCommand has cyclomatic complexity 30 (threshold 15). Of this number, 26 points are the body's own statements and 4 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · opencollection-to-bruno.fromOpenCollectionConfig (cyclomatic 30) · ×1
  • opencollection-to-bruno.fromOpenCollectionConfig (cyclomatic 30) packages/bruno-converters/src/opencollection/opencollection-to-bruno.ts:11 — opencollection-to-bruno.fromOpenCollectionConfig has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · getOAuth2TokenUsingPasswordCredentials (cyclomatic 30) · ×1
  • getOAuth2TokenUsingPasswordCredentials (cyclomatic 30) packages/bruno-electron/src/utils/oauth2.js:506 — getOAuth2TokenUsingPasswordCredentials has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CreateMockServerModal · ×1
  • CreateMockServerModal::onSubmit (cyclomatic 30) packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:298 — CreateMockServerModal::onSubmit has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · CreateCollection (cyclomatic 30) · ×1
  • CreateCollection (cyclomatic 30) packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:22 — CreateCollection has cyclomatic complexity 30 (threshold 15). Of this number, 22 points are the body's own statements and 8 belong to 20 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.CollectionStatusSection (cyclomatic 29) · ×1
  • index.CollectionStatusSection (cyclomatic 29) packages/bruno-app/src/components/OpenAPISyncTab/CollectionStatusSection/index.js:20 — index.CollectionStatusSection has cyclomatic complexity 29 (threshold 15). Of this number, 28 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.OpenAPISyncTab (cyclomatic 29) · ×1
  • index.OpenAPISyncTab (cyclomatic 29) packages/bruno-app/src/components/OpenAPISyncTab/index.js:18 — index.OpenAPISyncTab has cyclomatic complexity 29 (threshold 15). Of this number, 22 points are the body's own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.AdditionalParams (cyclomatic 29) · ×1
  • index.AdditionalParams (cyclomatic 29) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js:12 — index.AdditionalParams has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 9 of the 29 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 38, a function literal at line 192, handleUpdateAdditionalParam, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ShareCollection (cyclomatic 29) · ×1
  • index.ShareCollection (cyclomatic 29) packages/bruno-app/src/components/ShareCollection/index.js:21 — index.ShareCollection has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 12 of the 29 points are its own statements and the rest belongs to 8 function items inside it that branch (handleProceed, a function literal at line 30, handleExportZip, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.RenameCollectionItem (cyclomatic 29) · ×1
  • index.RenameCollectionItem (cyclomatic 29) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js:20 — index.RenameCollectionItem has cyclomatic complexity 29 (threshold 15). Of this number, 17 points are the body's own statements and 12 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · actions.updateVariableInScope.<returned closure> (cyclomatic 29) · ×1
  • actions.updateVariableInScope.<returned closure> (cyclomatic 29) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:2456 — actions.updateVariableInScope.<returned closure> has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 2457, 2496, 2604, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.hydrateSnapshotLookups (cyclomatic 29) · ×1
  • index.hydrateSnapshotLookups (cyclomatic 29) packages/bruno-app/src/utils/snapshot/index.js:180 — index.hydrateSnapshotLookups has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 4 of the 29 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 192, 253, 274, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · postman-to-bruno.importPostmanV2Collection (cyclomatic 29) · ×1
  • postman-to-bruno.importPostmanV2Collection (cyclomatic 29) packages/bruno-converters/src/postman/postman-to-bruno.js:1102 — postman-to-bruno.importPostmanV2Collection has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 12 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 1169). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · schema-composition.mergeSchemas (cyclomatic 29) · ×1
  • schema-composition.mergeSchemas (cyclomatic 29) packages/bruno-converters/src/openapi/schema-composition.js:214 — schema-composition.mergeSchemas has cyclomatic complexity 29 (threshold 15). Of this number, 28 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · cert-utils.getCertsAndProxyConfig (cyclomatic 29) · ×1
  • cert-utils.getCertsAndProxyConfig (cyclomatic 29) packages/bruno-electron/src/ipc/network/cert-utils.js:13 — cert-utils.getCertsAndProxyConfig has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · openapi-sync.mergeFieldListPreserving (cyclomatic 29) · ×1
  • openapi-sync.mergeFieldListPreserving (cyclomatic 29) packages/bruno-electron/src/ipc/openapi-sync.js:669 — openapi-sync.mergeFieldListPreserving has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 6 of the 29 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 688, a function literal at line 701, a function literal at line 691, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · tree-builder.buildTree (cyclomatic 29) · ×1
  • tree-builder.buildTree (cyclomatic 29) packages/bruno-electron/src/services/mount/tree-builder.js:158 — tree-builder.buildTree has cyclomatic complexity 29 (threshold 15). Of this number, 27 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TerminalManager.setupIpcHandlers (cyclomatic 29) · ×1
  • TerminalManager.setupIpcHandlers (cyclomatic 29) packages/bruno-electron/src/ipc/terminal.js:13 — TerminalManager.setupIpcHandlers has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 109, 84, 42, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · grpcResponseReceived (cyclomatic 29) · ×1
  • grpcResponseReceived (cyclomatic 29) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:753 — grpcResponseReceived has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · runRequestEvent (cyclomatic 29) · ×1
  • runRequestEvent (cyclomatic 29) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3443 — runRequestEvent has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · setupAiAutocomplete (cyclomatic 29) · ×1
  • setupAiAutocomplete (cyclomatic 29) packages/bruno-app/src/utils/codemirror/aiGhostText.js:319 — setupAiAutocomplete has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 4 of the 29 points are its own statements and the rest belongs to 7 function items inside it that branch (onKeyDown, onChange, onCursorActivity, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.RequestLog (cyclomatic 28) · ×1
  • index.RequestLog (cyclomatic 28) packages/bruno-app/src/components/MockServer/MockServerDashboard/RequestLog/index.js:191 — index.RequestLog has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 8 of the 28 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 209, handleRowClick, a function literal at line 297, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · FieldNode.FieldNode (cyclomatic 28) · ×1
  • FieldNode.FieldNode (cyclomatic 28) packages/bruno-app/src/components/RequestPane/QueryBuilder/FieldNode.js:188 — FieldNode.FieldNode has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body's own statements and 5 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.ResponseExampleResponseHeaders (cyclomatic 28) · ×1
  • index.ResponseExampleResponseHeaders (cyclomatic 28) packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleResponseHeaders/index.js:17 — index.ResponseExampleResponseHeaders has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 6 of the 28 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 40, a function literal at line 32, a function literal at line 36, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.Collections (cyclomatic 28) · ×1
  • index.Collections (cyclomatic 28) packages/bruno-app/src/components/Sidebar/Collections/index.js:21 — index.Collections has cyclomatic complexity 28 (threshold 15). Of this number, 14 points are the body's own statements and 14 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 28) · ×1
  • (anonymous) (cyclomatic 28) packages/bruno-app/public/static/diff2Html.js:2253 — (anonymous) has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 11 of the 28 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 2284, a function literal at line 2258, html, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · getOAuth2TokenUsingClientCredentials (cyclomatic 28) · ×1
  • getOAuth2TokenUsingClientCredentials (cyclomatic 28) packages/bruno-electron/src/utils/oauth2.js:378 — getOAuth2TokenUsingClientCredentials has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · brunoToPostman · ×1
  • brunoToPostman::generateAuth (cyclomatic 28) packages/bruno-converters/src/postman/bruno-to-postman.js:389 — brunoToPostman::generateAuth has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.Performance (cyclomatic 27) · ×1
  • index.Performance (cyclomatic 27) packages/bruno-app/src/components/Devtools/Performance/index.js:23 — index.Performance has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 2 of the 27 points are its own statements and the rest belongs to 10 function items inside it that branch (SystemResourceCard, renderProcessView, renderCumulativeView, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.FilePickerEditor (cyclomatic 27) · ×1
  • index.FilePickerEditor (cyclomatic 27) packages/bruno-app/src/components/FilePickerEditor/index.js:25 — index.FilePickerEditor has cyclomatic complexity 27 (threshold 15). Of this number, 18 points are the body's own statements and 9 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.Oauth2ActionButtons (cyclomatic 27) · ×1
  • index.Oauth2ActionButtons (cyclomatic 27) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Oauth2ActionButtons/index.js:14 — index.Oauth2ActionButtons has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 7 of the 27 points are its own statements and the rest belongs to 6 function items inside it that branch (handleFetchOauth2Credentials, handleRefreshAccessToken, handleCancelAuthorization, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ProtoFileDropdown (cyclomatic 27) · ×1
  • index.ProtoFileDropdown (cyclomatic 27) packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/ProtoFileDropdown/index.js:15 — index.ProtoFileDropdown has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 10 of the 27 points are its own statements and the rest belongs to 5 function items inside it that branch (handleSelectProtoFile, handleBrowseImportPath, handleToggleImportPath, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.WSRequestPane (cyclomatic 27) · ×1
  • index.WSRequestPane (cyclomatic 27) packages/bruno-app/src/components/RequestPane/WSRequestPane/index.js:28 — index.WSRequestPane has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 8 of the 27 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 72, 152, 122, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.WsQueryUrl (cyclomatic 27) · ×1
  • index.WsQueryUrl (cyclomatic 27) packages/bruno-app/src/components/RequestPane/WsQueryUrl/index.js:43 — index.WsQueryUrl has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to 6 function items inside it that branch (handleDisconnect, a function literal at line 115, a function literal at line 57, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ExampleTab (cyclomatic 27) · ×1
  • index.ExampleTab (cyclomatic 27) packages/bruno-app/src/components/RequestTabs/ExampleTab/index.js:14 — index.ExampleTab has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 10 of the 27 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 25, a function literal at line 45, handleRightClick, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.buildAiVariablesPayload (cyclomatic 27) · ×1
  • index.buildAiVariablesPayload (cyclomatic 27) packages/bruno-app/src/utils/ai/index.js:147 — index.buildAiVariablesPayload has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · index.interpolateRequest (cyclomatic 27) · ×1
  • index.interpolateRequest (cyclomatic 27) REDACTED:176 — index.interpolateRequest has cyclomatic complexity 27 (threshold 15). Of this number, 23 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · runner-summary.getRunnerSummary (cyclomatic 27) · ×1
  • runner-summary.getRunnerSummary (cyclomatic 27) packages/bruno-common/src/runner/runner-summary.ts:4 — runner-summary.getRunnerSummary has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · swagger2-to-bruno.getParameterEntries (cyclomatic 27) · ×1
  • swagger2-to-bruno.getParameterEntries (cyclomatic 27) packages/bruno-converters/src/openapi/swagger2-to-bruno.js:48 — swagger2-to-bruno.getParameterEntries has cyclomatic complexity 27 (threshold 15). Of this number, 19 points are the body's own statements and 8 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · openapi-to-bruno.buildCollectionAuth (cyclomatic 27) · ×1
  • openapi-to-bruno.buildCollectionAuth (cyclomatic 27) packages/bruno-converters/src/openapi/openapi-to-bruno.js:973 — openapi-to-bruno.buildCollectionAuth has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · oauth2.getOAuth2TokenUsingImplicitGrant (cyclomatic 27) · ×1
  • oauth2.getOAuth2TokenUsingImplicitGrant (cyclomatic 27) packages/bruno-electron/src/utils/oauth2.js:766 — oauth2.getOAuth2TokenUsingImplicitGrant has cyclomatic complexity 27 (threshold 15). Of this number, 23 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · grpc-event-handlers.resolveGrpcProxyConfig (cyclomatic 27) · ×1
  • grpc-event-handlers.resolveGrpcProxyConfig (cyclomatic 27) REDACTED:37 — grpc-event-handlers.resolveGrpcProxyConfig has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · mergeScripts (cyclomatic 27) · ×1
  • mergeScripts (cyclomatic 27) REDACTED:296 — mergeScripts has cyclomatic complexity 27 (threshold 15). Of this number, 24 points are the body's own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CollectionProperties (cyclomatic 27) · ×1
  • CollectionProperties (cyclomatic 27) packages/bruno-app/src/components/Cookies/index.js:64 — CollectionProperties has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to 25 function items inside it that branch (a function literal at line 236, deleteCookieAction, handleAddCookie, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.AppView (cyclomatic 26) · ×1
  • index.AppView (cyclomatic 26) packages/bruno-app/src/components/AppView/index.js:148 — index.AppView has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 183, 241, 154, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.Script (cyclomatic 26) · ×1
  • index.Script (cyclomatic 26) packages/bruno-app/src/components/FolderSettings/Script/index.js:18 — index.Script has cyclomatic complexity 26 (threshold 15). Of this number, 18 points are the body's own statements and 8 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.MatchTracePanel (cyclomatic 26) · ×1
  • index.MatchTracePanel (cyclomatic 26) packages/bruno-app/src/components/MockServer/MockServerDashboard/RequestLog/index.js:79 — index.MatchTracePanel has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body's own statements and 13 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.QueryBuilder (cyclomatic 26) · ×1
  • index.QueryBuilder (cyclomatic 26) packages/bruno-app/src/components/RequestPane/QueryBuilder/index.js:10 — index.QueryBuilder has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 5 of the 26 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 184, 61, 71, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.WSResponsePane (cyclomatic 26) · ×1
  • index.WSResponsePane (cyclomatic 26) packages/bruno-app/src/components/ResponsePane/WsResponsePane/index.js:23 — index.WSResponsePane has cyclomatic complexity 26 (threshold 15). Of this number, 20 points are the body's own statements and 6 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.DeleteCollectionItems (cyclomatic 26) · ×1
  • index.DeleteCollectionItems (cyclomatic 26) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/DeleteCollectionItems/index.js:10 — index.DeleteCollectionItems has cyclomatic complexity 26 (threshold 15). Of this number, 14 points are the body's own statements and 12 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.ConfirmCollectionCloseDrafts (cyclomatic 26) · ×1
  • index.ConfirmCollectionCloseDrafts (cyclomatic 26) packages/bruno-app/src/components/Sidebar/Collections/Collection/RemoveCollections/ConfirmCollectionCloseDrafts/index.js:22 — index.ConfirmCollectionCloseDrafts has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body's own statements and 13 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · flattenSidebarTree.walkChildren (cyclomatic 26) · ×1
  • flattenSidebarTree.walkChildren (cyclomatic 26) packages/bruno-app/src/utils/collections/flattenSidebarTree.js:41 — flattenSidebarTree.walkChildren has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · bruno-to-opencollection.brunoToOpenCollection (cyclomatic 26) · ×1
  • bruno-to-opencollection.brunoToOpenCollection (cyclomatic 26) packages/bruno-converters/src/opencollection/bruno-to-opencollection.ts:97 — bruno-to-opencollection.brunoToOpenCollection has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · stringifyGraphQLRequest.stringifyGraphQLRequest (cyclomatic 26) · ×1
  • stringifyGraphQLRequest.stringifyGraphQLRequest (cyclomatic 26) packages/bruno-filestore/src/formats/yml/items/stringifyGraphQLRequest.ts:22 — stringifyGraphQLRequest.stringifyGraphQLRequest has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · stringifyGrpcRequest.stringifyGrpcRequest (cyclomatic 26) · ×1
  • stringifyGrpcRequest.stringifyGrpcRequest (cyclomatic 26) packages/bruno-filestore/src/formats/yml/items/stringifyGrpcRequest.ts:17 — stringifyGrpcRequest.stringifyGrpcRequest has cyclomatic complexity 26 (threshold 15). Of this number, 20 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · grpcMessageGenerator.generateSampleMessageFromFields (cyclomatic 26) · ×1
  • grpcMessageGenerator.generateSampleMessageFromFields (cyclomatic 26) packages/bruno-requests/src/grpc/grpcMessageGenerator.js:9 — grpcMessageGenerator.generateSampleMessageFromFields has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to one function literal inside it that branches (line 16). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · onMouseHover (cyclomatic 26) · ×1
  • onMouseHover (cyclomatic 26) packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:975 — onMouseHover has cyclomatic complexity 26 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D1 · Cyclomatic Complexity · registerWsEventHandlers (cyclomatic 26) · ×1
  • registerWsEventHandlers (cyclomatic 26) packages/bruno-electron/src/ipc/network/ws-event-handlers.js:290 — registerWsEventHandlers has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 11 function items inside it that branch (a function literal at line 304, a function literal at line 402, sendEvent, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.AiChatSidebar (cyclomatic 25) · ×1
  • index.AiChatSidebar (cyclomatic 25) packages/bruno-app/src/components/AiChatSidebar/index.js:191 — index.AiChatSidebar has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 2 other methods here (index.AiChatSidebar::handleApplyCode, index.AiChatSidebar::renderMessage) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · index.Console (cyclomatic 25) · ×1
  • index.Console (cyclomatic 25) packages/bruno-app/src/components/Devtools/Console/index.js:234 — index.Console has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 8 function items inside it that branch (renderTabContent, renderTabControls, a function literal at line 242, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.useEnvironmentShortcuts (cyclomatic 25) · ×1
  • index.useEnvironmentShortcuts (cyclomatic 25) packages/bruno-app/src/components/Environments/Common/EnvironmentSelection/useEnvironmentShortcuts/index.js:10 — index.useEnvironmentShortcuts has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to one function literal inside it that branches (line 21). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.GrpcRequestPane (cyclomatic 25) · ×1
  • index.GrpcRequestPane (cyclomatic 25) packages/bruno-app/src/components/RequestPane/GrpcRequestPane/index.js:30 — index.GrpcRequestPane has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 88, 47, 135, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponseExampleParams (cyclomatic 25) · ×1
  • index.ResponseExampleParams (cyclomatic 25) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:13 — index.ResponseExampleParams has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 29, a function literal at line 120, a function literal at line 141, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · SingleLineEditor.componentDidUpdate (cyclomatic 25) · ×1
  • SingleLineEditor.componentDidUpdate (cyclomatic 25) packages/bruno-app/src/components/SingleLineEditor/index.js:184 — SingleLineEditor.componentDidUpdate has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · axios-instance.makeAxiosInstance (cyclomatic 25) · ×1
  • axios-instance.makeAxiosInstance (cyclomatic 25) packages/bruno-cli/src/utils/axios-instance.js:86 — axios-instance.makeAxiosInstance has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 151, 113, 206, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · datatype.parseValueByDataType (cyclomatic 25) · ×1
  • datatype.parseValueByDataType (cyclomatic 25) packages/bruno-common/src/utils/datatype.ts:24 — datatype.parseValueByDataType has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DefaultWorkspaceManager.migrateFromPreferences (cyclomatic 25) · ×1
  • DefaultWorkspaceManager.migrateFromPreferences (cyclomatic 25) packages/bruno-electron/src/store/default-workspace.js:292 — DefaultWorkspaceManager.migrateFromPreferences has cyclomatic complexity 25 (threshold 15). Of this number, 17 points are the body's own statements and 8 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Bru.constructor (cyclomatic 25) · ×1
  • Bru.constructor (cyclomatic 25) packages/bruno-js/src/bru.js:152 — Bru.constructor has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body's own statements and 10 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · error-formatter.formatErrorWithContextV2 (cyclomatic 25) · ×1
  • error-formatter.formatErrorWithContextV2 (cyclomatic 25) packages/bruno-js/src/utils/error-formatter.js:632 — error-formatter.formatErrorWithContextV2 has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · OAuth2AuthorizationCode (cyclomatic 25) · ×1
  • OAuth2AuthorizationCode (cyclomatic 25) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:17 — OAuth2AuthorizationCode has cyclomatic complexity 25 (threshold 15). Of this number, 19 points are the body's own statements and 6 belong to 24 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.SingleGrpcMessage (cyclomatic 24) · ×1
  • index.SingleGrpcMessage (cyclomatic 24) packages/bruno-app/src/components/RequestPane/GrpcBody/index.js:74 — index.SingleGrpcMessage has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (onRegenerateMessage, onEdit, onSend, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponseExampleFileBody (cyclomatic 24) · ×1
  • index.ResponseExampleFileBody (cyclomatic 24) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFileBody/index.js:17 — index.ResponseExampleFileBody has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 5 of the 24 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 50, 32, 59, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.ExportToPostman (cyclomatic 24) · ×1
  • index.ExportToPostman (cyclomatic 24) packages/bruno-app/src/components/Sidebar/Collections/Collection/ExportCollection/ExportToPostman/index.js:18 — index.ExportToPostman has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body's own statements and 12 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.SetAsVariableProvider (cyclomatic 24) · ×1
  • index.SetAsVariableProvider (cyclomatic 24) packages/bruno-app/src/providers/SetAsVariable/index.js:27 — index.SetAsVariableProvider has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 5 of the 24 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 100, 63, 47, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · goToVariableDefinition.goToVariableDefinition (cyclomatic 24) · ×1
  • goToVariableDefinition.goToVariableDefinition (cyclomatic 24) packages/bruno-app/src/utils/codemirror/goToVariableDefinition.js:81 — goToVariableDefinition.goToVariableDefinition has cyclomatic complexity 24 (threshold 15). Of this number, 22 points are the body's own statements and 2 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · codemirror.defineCodeMirrorBrunoVariablesMode (cyclomatic 24) · ×1
  • codemirror.defineCodeMirrorBrunoVariablesMode (cyclomatic 24) packages/bruno-app/src/utils/common/codemirror.js:23 — codemirror.defineCodeMirrorBrunoVariablesMode has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 56, 27, 24). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · openapi-to-bruno.parseOpenApiCollection (cyclomatic 24) · ×1
  • openapi-to-bruno.parseOpenApiCollection (cyclomatic 24) packages/bruno-converters/src/openapi/openapi-to-bruno.js:1069 — openapi-to-bruno.parseOpenApiCollection has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 1100, 1157, 1143, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · parseWebsocketRequest.parseWebsocketRequest (cyclomatic 24) · ×1
  • parseWebsocketRequest.parseWebsocketRequest (cyclomatic 24) packages/bruno-filestore/src/formats/yml/items/parseWebsocketRequest.ts:10 — parseWebsocketRequest.parseWebsocketRequest has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · collectionChangeFileEvent (cyclomatic 24) · ×1
  • collectionChangeFileEvent (cyclomatic 24) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3234 — collectionChangeFileEvent has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · newHttpRequest (cyclomatic 24) · ×1
  • newHttpRequest (cyclomatic 24) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1389 — newHttpRequest has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 1408, 1470, 1496, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · General (cyclomatic 24) · ×1
  • General (cyclomatic 24) packages/bruno-app/src/components/Preferences/General/index.js:15 — General has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 7 of the 24 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 55, a function literal at line 145, a function literal at line 33, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.GrpcQueryResult (cyclomatic 23) · ×1
  • index.GrpcQueryResult (cyclomatic 23) packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/GrpcQueryResult/index.js:10 — index.GrpcQueryResult has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body's own statements and 8 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.RequestItem (cyclomatic 23) · ×1
  • index.RequestItem (cyclomatic 23) packages/bruno-app/src/components/RunnerResults/RunConfigurationPanel/index.jsx:61 — index.RequestItem has cyclomatic complexity 23 (threshold 15). Of this number, 13 points are the body's own statements and 10 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.SettingsAiAssist (cyclomatic 23) · ×1
  • index.SettingsAiAssist (cyclomatic 23) packages/bruno-app/src/components/SettingsAiAssist/index.js:35 — index.SettingsAiAssist has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 55, 45, 63, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · ConfirmMoveDrafts.ConfirmMoveDrafts (cyclomatic 23) · ×1
  • ConfirmMoveDrafts.ConfirmMoveDrafts (cyclomatic 23) packages/bruno-app/src/components/Sidebar/Collections/Collection/MoveToWorkspace/ConfirmMoveDrafts.js:15 — ConfirmMoveDrafts.ConfirmMoveDrafts has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body's own statements and 11 belong to 7 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.VariableValue (cyclomatic 23) · ×1
  • index.VariableValue (cyclomatic 23) packages/bruno-app/src/components/VariablesEditor/VariableValue/index.js:13 — index.VariableValue has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.EditorCodeBlock (cyclomatic 23) · ×1
  • index.EditorCodeBlock (cyclomatic 23) packages/bruno-app/src/ui/RichTextEditor/extensions/EditorCodeBlock/index.js:36 — index.EditorCodeBlock has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 8 of the 23 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 82, 62, 61, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · postman-to-bruno-translator.handleLegacyGlobalAPIs (cyclomatic 23) · ×1
  • postman-to-bruno-translator.handleLegacyGlobalAPIs (cyclomatic 23) packages/bruno-converters/src/utils/postman-to-bruno-translator.js:1195 — postman-to-bruno-translator.handleLegacyGlobalAPIs has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1249, 1219, 1207, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · insomnia-to-bruno.parseInsomniaV5Collection (cyclomatic 23) · ×1
  • insomnia-to-bruno.parseInsomniaV5Collection (cyclomatic 23) packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:180 — insomnia-to-bruno.parseInsomniaV5Collection has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 196, parseCollectionItems). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · schema-graph.collectWsdlSchemas (cyclomatic 23) · ×1
  • schema-graph.collectWsdlSchemas (cyclomatic 23) packages/bruno-converters/src/wsdl/schema-graph.js:79 — schema-graph.collectWsdlSchemas has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WSDLParser.parseComplexTypeContent (cyclomatic 23) · ×1
  • WSDLParser.parseComplexTypeContent (cyclomatic 23) packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:305 — WSDLParser.parseComplexTypeContent has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · websocket.toOpenCollectionWebsocketItem (cyclomatic 23) · ×1
  • websocket.toOpenCollectionWebsocketItem (cyclomatic 23) packages/bruno-converters/src/opencollection/items/websocket.ts:95 — websocket.toOpenCollectionWebsocketItem has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · authorize-user-in-window.authorizeUserInWindow (cyclomatic 23) · ×1
  • authorize-user-in-window.authorizeUserInWindow (cyclomatic 23) packages/bruno-electron/src/ipc/network/authorize-user-in-window.js:15 — authorize-user-in-window.authorizeUserInWindow has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 136, 195, 88, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · autocomplete.registerAutocompleteIpc (cyclomatic 23) · ×1
  • autocomplete.registerAutocompleteIpc (cyclomatic 23) packages/bruno-electron/src/ipc/ai/autocomplete.js:98 — autocomplete.registerAutocompleteIpc has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 99, 181). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · utils.parseValueByDataType (cyclomatic 23) · ×1
  • utils.parseValueByDataType (cyclomatic 23) REDACTED:3 — utils.parseValueByDataType has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.bruToJson (cyclomatic 23) · ×1
  • index.bruToJson (cyclomatic 23) packages/bruno-lang/v1/src/index.js:21 — index.bruToJson has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · getActiveTabFromSnapshot (cyclomatic 23) · ×1
  • getActiveTabFromSnapshot (cyclomatic 23) packages/bruno-app/src/utils/snapshot/index.js:829 — getActiveTabFromSnapshot has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body's own statements and 6 belong to 8 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.AppPreviewKeepAlive (cyclomatic 22) · ×1
  • index.AppPreviewKeepAlive (cyclomatic 22) packages/bruno-app/src/components/AppPreviewKeepAlive/index.js:27 — index.AppPreviewKeepAlive has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 57, 97, 45). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.FolderSettings (cyclomatic 22) · ×1
  • index.FolderSettings (cyclomatic 22) packages/bruno-app/src/components/FolderSettings/index.js:21 — index.FolderSettings has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body's own statements and 7 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.MockServerItem (cyclomatic 22) · ×1
  • index.MockServerItem (cyclomatic 22) packages/bruno-app/src/components/MockServer/Sidebar/MockServers/index.js:41 — index.MockServerItem has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 6 function items inside it that branch (handleStart, ensureCollectionMounted, a function literal at line 193, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponseExampleResponseContent (cyclomatic 22) · ×1
  • index.ResponseExampleResponseContent (cyclomatic 22) packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleResponseContent/index.js:12 — index.ResponseExampleResponseContent has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (getCodeMirrorMode, onResponseEdit, a function literal at line 17, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.parseXMLString (cyclomatic 22) · ×1
  • index.parseXMLString (cyclomatic 22) packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/XmlPreview/index.js:339 — index.parseXMLString has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 3 function items inside it that branch (xmlToObject, a function literal at line 386, a function literal at line 370). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.SensitiveWarningPopover (cyclomatic 22) · ×1
  • index.SensitiveWarningPopover (cyclomatic 22) packages/bruno-app/src/components/SensitiveFieldWarning/SensitiveWarningPopover/index.js:84 — index.SensitiveWarningPopover has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 8 function items inside it that branch (handleKeyDown, handleAction, saveSecret, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · chat.sendAiMessage.<returned closure> (cyclomatic 22) · ×1
  • chat.sendAiMessage.<returned closure> (cyclomatic 22) packages/bruno-app/src/providers/ReduxStore/slices/chat.js:258 — chat.sendAiMessage.<returned closure> has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 310, 335, 349, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.transformRequestToSaveToFilesystem (cyclomatic 22) · ×1
  • index.transformRequestToSaveToFilesystem (cyclomatic 22) packages/bruno-app/src/utils/collections/index.js:707 — index.transformRequestToSaveToFilesystem has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body's own statements and 5 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · curl-to-json.curlToJson (cyclomatic 22) · ×1
  • curl-to-json.curlToJson (cyclomatic 22) REDACTED:125 — curl-to-json.curlToJson has cyclomatic complexity 22 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D1 · Cyclomatic Complexity · queryBuilder.collectVariablesFromSelections (cyclomatic 22) · ×1
  • queryBuilder.collectVariablesFromSelections (cyclomatic 22) packages/bruno-app/src/utils/graphql/queryBuilder.js:176 — queryBuilder.collectVariablesFromSelections has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.interpolateUrlPathParams (cyclomatic 22) · ×1
  • index.interpolateUrlPathParams (cyclomatic 22) REDACTED:168 — index.interpolateUrlPathParams has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 177, substituteValue, a function literal at line 181, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · collection.mergeScripts (cyclomatic 22) · ×1
  • collection.mergeScripts (cyclomatic 22) packages/bruno-cli/src/utils/collection.js:310 — collection.mergeScripts has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · send-request-transformer.sendRequestTransformer (cyclomatic 22) · ×1
  • send-request-transformer.sendRequestTransformer (cyclomatic 22) packages/bruno-converters/src/utils/send-request-transformer.js:454 — send-request-transformer.sendRequestTransformer has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SnapshotManager.remapCollectionTabPaths (cyclomatic 22) · ×1
  • SnapshotManager.remapCollectionTabPaths (cyclomatic 22) packages/bruno-electron/src/services/snapshot/index.js:249 — SnapshotManager.remapCollectionTabPaths has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (remapActiveTab, a function literal at line 256, a function literal at line 297, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · autocomplete-prompts.formatRequestContext (cyclomatic 22) · ×1
  • autocomplete-prompts.formatRequestContext (cyclomatic 22) packages/bruno-electron/src/ipc/ai/autocomplete-prompts.js:85 — autocomplete-prompts.formatRequestContext has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.parseBruRequest (cyclomatic 22) · ×1
  • index.parseBruRequest (cyclomatic 22) packages/bruno-filestore/src/formats/bru/index.ts:13 — index.parseBruRequest has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.stringifyBruRequest (cyclomatic 22) · ×1
  • index.stringifyBruRequest (cyclomatic 22) packages/bruno-filestore/src/formats/bru/index.ts:140 — index.stringifyBruRequest has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · parseGrpcRequest.parseGrpcRequest (cyclomatic 22) · ×1
  • parseGrpcRequest.parseGrpcRequest (cyclomatic 22) packages/bruno-filestore/src/formats/yml/items/parseGrpcRequest.ts:37 — parseGrpcRequest.parseGrpcRequest has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · stringifyMockServer.toOcMockRoute (cyclomatic 22) · ×1
  • stringifyMockServer.toOcMockRoute (cyclomatic 22) packages/bruno-filestore/src/formats/yml/stringifyMockServer.ts:22 — stringifyMockServer.toOcMockRoute has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · digestauth-helper.addDigestInterceptor (cyclomatic 22) · ×1
  • digestauth-helper.addDigestInterceptor (cyclomatic 22) packages/bruno-requests/src/auth/digestauth-helper.js:35 — digestauth-helper.addDigestInterceptor has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 46, 66). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · sendAiMessage (cyclomatic 22) · ×1
  • sendAiMessage (cyclomatic 22) packages/bruno-app/src/providers/ReduxStore/slices/chat.js:248 — sendAiMessage has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 13 function items inside it that branch ((anonymous)::(anonymous)::handleComplete, a function literal at line 258, (anonymous)::(anonymous)::handleStopped, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.Script (cyclomatic 21) · ×1
  • index.Script (cyclomatic 21) packages/bruno-app/src/components/CollectionSettings/Script/index.js:18 — index.Script has cyclomatic complexity 21 (threshold 15). Of this number, 13 points are the body's own statements and 8 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.EnvironmentListContent (cyclomatic 21) · ×1
  • index.EnvironmentListContent (cyclomatic 21) packages/bruno-app/src/components/Environments/EnvironmentSelector/EnvironmentListContent/index.js:7 — index.EnvironmentListContent has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 31, a function literal at line 56, handleKeyDown, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.CloneMockServerModal (cyclomatic 21) · ×1
  • index.CloneMockServerModal (cyclomatic 21) packages/bruno-app/src/components/MockServer/CloneMockServerModal/index.js:25 — index.CloneMockServerModal has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 71, 209, 49, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.MockResponseRules (cyclomatic 21) · ×1
  • index.MockResponseRules (cyclomatic 21) packages/bruno-app/src/components/MockServer/MockResponse/MockResponseRules/index.js:32 — index.MockResponseRules has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 80, 44, 52, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.RouteTable (cyclomatic 21) · ×1
  • index.RouteTable (cyclomatic 21) packages/bruno-app/src/components/MockServer/MockServerDashboard/RouteTable/index.js:13 — index.RouteTable has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 33, handleCopyRouteUrl, a function literal at line 38, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · FieldNode.InputObjectFields (cyclomatic 21) · ×1
  • FieldNode.InputObjectFields (cyclomatic 21) packages/bruno-app/src/components/RequestPane/QueryBuilder/FieldNode.js:102 — FieldNode.InputObjectFields has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 108, 145, 116). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.Settings (cyclomatic 21) · ×1
  • index.Settings (cyclomatic 21) packages/bruno-app/src/components/RequestPane/Settings/index.js:23 — index.Settings has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 103, a function literal at line 63, a function literal at line 72, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.RequestTabMenu (cyclomatic 21) · ×1
  • index.RequestTabMenu (cyclomatic 21) packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:734 — index.RequestTabMenu has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 6 function items inside it that branch (handleCloseMultipleTabs, handleCloseTab, handleRevertChanges, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponseExampleStatusInput (cyclomatic 21) · ×1
  • index.ResponseExampleStatusInput (cyclomatic 21) packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/index.js:7 — index.ResponseExampleStatusInput has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 4 function items inside it that branch (getStatusClass, handleChange, a function literal at line 11, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.SaveTransientRequest · ×1
  • index.SaveTransientRequest::handleConfirm (cyclomatic 21) packages/bruno-app/src/components/SaveTransientRequest/index.js:178 — index.SaveTransientRequest::handleConfirm has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.CloneCollectionItem (cyclomatic 21) · ×1
  • index.CloneCollectionItem (cyclomatic 21) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index.js:20 — index.CloneCollectionItem has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body's own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.InlineCollectionCreator (cyclomatic 21) · ×1
  • index.InlineCollectionCreator (cyclomatic 21) packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js:14 — index.InlineCollectionCreator has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 58, a function literal at line 33, handleCancel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.CreateWorkspace (cyclomatic 21) · ×1
  • index.CreateWorkspace (cyclomatic 21) packages/bruno-app/src/components/WorkspaceSidebar/CreateWorkspace/index.js:17 — index.CreateWorkspace has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body's own statements and 7 belong to 5 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · exampleReducers.cloneResponseExample (cyclomatic 21) · ×1
  • exampleReducers.cloneResponseExample (cyclomatic 21) packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:60 — exampleReducers.cloneResponseExample has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · aiGhostText.fetchAndShow (cyclomatic 21) · ×1
  • aiGhostText.fetchAndShow (cyclomatic 21) packages/bruno-app/src/utils/codemirror/aiGhostText.js:133 — aiGhostText.fetchAndShow has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.getVisibleSidebarUidsInOrder (cyclomatic 21) · ×1
  • index.getVisibleSidebarUidsInOrder (cyclomatic 21) packages/bruno-app/src/utils/collections/index.js:2193 — index.getVisibleSidebarUidsInOrder has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 2214, a function literal at line 2225, a function literal at line 2202, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · common.transformItemsInCollection (cyclomatic 21) · ×1
  • common.transformItemsInCollection (cyclomatic 21) packages/bruno-app/src/utils/importers/common.js:102 — common.transformItemsInCollection has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 143, 104, 135, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.resolveResponseExampleTabState (cyclomatic 21) · ×1
  • index.resolveResponseExampleTabState (cyclomatic 21) packages/bruno-app/src/utils/snapshot/index.js:619 — index.resolveResponseExampleTabState has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.buildPostData (cyclomatic 21) · ×1
  • index.buildPostData (cyclomatic 21) REDACTED:537 — index.buildPostData has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · graphql.toOpenCollectionGraphqlItem (cyclomatic 21) · ×1
  • graphql.toOpenCollectionGraphqlItem (cyclomatic 21) packages/bruno-converters/src/opencollection/items/graphql.ts:100 — graphql.toOpenCollectionGraphqlItem has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bruno-to-opencollection.toOpenCollectionConfig (cyclomatic 21) · ×1
  • bruno-to-opencollection.toOpenCollectionConfig (cyclomatic 21) packages/bruno-converters/src/opencollection/bruno-to-opencollection.ts:9 — bruno-to-opencollection.toOpenCollectionConfig has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body's own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · collection-import.importCollection (cyclomatic 21) · ×1
  • collection-import.importCollection (cyclomatic 21) packages/bruno-electron/src/utils/collection-import.js:28 — collection-import.importCollection has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 3 function items inside it that branch (parseCollectionItems, parseEnvironments, getBrunoJsonConfig). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · parseGraphQLRequest.parseGraphQLRequest (cyclomatic 21) · ×1
  • parseGraphQLRequest.parseGraphQLRequest (cyclomatic 21) packages/bruno-filestore/src/formats/yml/items/parseGraphQLRequest.ts:15 — parseGraphQLRequest.parseGraphQLRequest has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ScriptRuntime.runRequestScript (cyclomatic 21) · ×1
  • ScriptRuntime.runRequestScript (cyclomatic 21) packages/bruno-js/src/runtime/script-runtime.js:20 — ScriptRuntime.runRequestScript has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body's own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · error-formatter.formatErrorWithContext (cyclomatic 21) · ×1
  • error-formatter.formatErrorWithContext (cyclomatic 21) packages/bruno-js/src/utils/error-formatter.js:458 — error-formatter.formatErrorWithContext has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GrpcClient.generateGrpcurlCommand (cyclomatic 21) · ×1
  • GrpcClient.generateGrpcurlCommand (cyclomatic 21) packages/bruno-requests/src/grpc/grpc-client.js:1034 — GrpcClient.generateGrpcurlCommand has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · TimelineAgent.createConnection (cyclomatic 21) · ×1
  • TimelineAgent.createConnection (cyclomatic 21) packages/bruno-requests/src/utils/timeline-agent.ts:113 — TimelineAgent.createConnection has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 167, 160, 152). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · WindowsProxyResolver.getInternetOptions (cyclomatic 21) · ×1
  • WindowsProxyResolver.getInternetOptions (cyclomatic 21) packages/bruno-requests/src/network/system-proxy/utils/windows.ts:41 — WindowsProxyResolver.getInternetOptions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · jsonToToml.jsonToToml (cyclomatic 21) · ×1
  • jsonToToml.jsonToToml (cyclomatic 21) packages/bruno-toml/src/jsonToToml.js:37 — jsonToToml.jsonToToml has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 21) · ×1
  • (anonymous) (cyclomatic 21) packages/bruno-app/public/static/diff2Html.js:2322 — (anonymous) has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 2353, a function literal at line 2327, a function literal at line 2339, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · BulkImportCollectionLocation · ×1
  • BulkImportCollectionLocation::onSubmit (cyclomatic 21) REDACTED:318 — BulkImportCollectionLocation::onSubmit has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · handleApplyCode (cyclomatic 21) · ×1
  • handleApplyCode (cyclomatic 21) packages/bruno-app/src/components/AiChatSidebar/index.js:579 — handleApplyCode has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · setCollection (cyclomatic 21) · ×1
  • setCollection (cyclomatic 21) packages/bruno-electron/src/services/snapshot/index.js:327 — setCollection has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · mergeScriptVarsIntoEnvList (cyclomatic 21) · ×1
  • mergeScriptVarsIntoEnvList (cyclomatic 21) packages/bruno-cli/src/utils/persist-variables.js:207 — mergeScriptVarsIntoEnvList has cyclomatic complexity 21 (threshold 15). Of this number, 13 points are the body's own statements and 8 belong to 8 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.FilterDropdown (cyclomatic 20) · ×1
  • index.FilterDropdown (cyclomatic 20) packages/bruno-app/src/components/FilterDropdown/index.js:15 — index.FilterDropdown has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body's own statements and 9 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.normalizeKey (cyclomatic 20) · ×1
  • index.normalizeKey (cyclomatic 20) packages/bruno-app/src/components/Preferences/Keybindings/index.js:209 — index.normalizeKey has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.CloneCollection (cyclomatic 20) · ×1
  • index.CloneCollection (cyclomatic 20) packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js:18 — index.CloneCollection has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body's own statements and 6 belong to 5 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.GenerateDocumentation (cyclomatic 20) · ×1
  • index.GenerateDocumentation (cyclomatic 20) packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js:41 — index.GenerateDocumentation has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 103, 48, 54, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.WorkspaceOverview (cyclomatic 20) · ×1
  • index.WorkspaceOverview (cyclomatic 20) packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/index.js:19 — index.WorkspaceOverview has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body's own statements and 6 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · auth.getAuthHeaders (cyclomatic 20) · ×1
  • auth.getAuthHeaders (cyclomatic 20) packages/bruno-app/src/utils/codegenerator/auth.js:6 — auth.getAuthHeaders has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SnapshotManager._buildLookupMaps (cyclomatic 20) · ×1
  • SnapshotManager._buildLookupMaps (cyclomatic 20) packages/bruno-electron/src/services/snapshot/index.js:736 — SnapshotManager._buildLookupMaps has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 760, 751). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · mock-example-generator.resolveOpenApiSchema (cyclomatic 20) · ×1
  • mock-example-generator.resolveOpenApiSchema (cyclomatic 20) packages/bruno-electron/src/app/mock-server/mock-example-generator.js:99 — mock-example-generator.resolveOpenApiSchema has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · mock-example-generator.generatePrimitiveExample (cyclomatic 20) · ×1
  • mock-example-generator.generatePrimitiveExample (cyclomatic 20) packages/bruno-electron/src/app/mock-server/mock-example-generator.js:151 — mock-example-generator.generatePrimitiveExample has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · git.getGitGraph (cyclomatic 20) · ×1
  • git.getGitGraph (cyclomatic 20) packages/bruno-electron/src/utils/git.js:1703 — git.getGitGraph has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ScriptRuntime.runResponseScript (cyclomatic 20) · ×1
  • ScriptRuntime.runResponseScript (cyclomatic 20) packages/bruno-js/src/runtime/script-runtime.js:169 — ScriptRuntime.runResponseScript has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body's own statements and 5 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · oauth2-helper.fetchTokenPassword (cyclomatic 20) · ×1
  • oauth2-helper.fetchTokenPassword (cyclomatic 20) REDACTED:202 — oauth2-helper.fetchTokenPassword has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · oauth2-helper.getOAuth2Token (cyclomatic 20) · ×1
  • oauth2-helper.getOAuth2Token (cyclomatic 20) REDACTED:319 — oauth2-helper.getOAuth2Token has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · node-vault.createVaultClient · ×1
  • node-vault.createVaultClient::request (cyclomatic 20) packages/bruno-requests/src/utils/node-vault.ts:155 — node-vault.createVaultClient::request has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · http-https-agents.shouldUseProxy (cyclomatic 20) · ×1
  • http-https-agents.shouldUseProxy (cyclomatic 20) packages/bruno-requests/src/utils/http-https-agents.ts:153 — http-https-agents.shouldUseProxy has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · wsResponseReceived (cyclomatic 20) · ×1
  • wsResponseReceived (cyclomatic 20) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:4096 — wsResponseReceived has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · sendRequest (cyclomatic 20) · ×1
  • sendRequest (cyclomatic 20) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:588 — sendRequest has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 594, 680, 664, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · EnvironmentSelector (cyclomatic 20) · ×1
  • EnvironmentSelector (cyclomatic 20) packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js:184 — EnvironmentSelector has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body's own statements and 10 belong to 25 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.ProtobufSettings (cyclomatic 19) · ×1
  • index.ProtobufSettings (cyclomatic 19) packages/bruno-app/src/components/CollectionSettings/Protobuf/index.js:17 — index.ProtobufSettings has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 7 function items inside it that branch (getProtoFile, a function literal at line 274, a function literal at line 165, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · utils.getSortValue (cyclomatic 19) · ×1
  • utils.getSortValue (cyclomatic 19) packages/bruno-app/src/components/Devtools/Console/NetworkTab/utils.js:1 — utils.getSortValue has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · index.ManageWorkspace (cyclomatic 19) · ×1
  • index.ManageWorkspace (cyclomatic 19) packages/bruno-app/src/components/ManageWorkspace/index.js:21 — index.ManageWorkspace has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 122, handleCreateWorkspace, handleShowInFolder, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.RequestTabs (cyclomatic 19) · ×1
  • index.RequestTabs (cyclomatic 19) packages/bruno-app/src/components/RequestTabs/index.js:17 — index.RequestTabs has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body's own statements and 9 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.ResponseExampleBodyMode · ×1
  • index.ResponseExampleBodyMode::onModeChange (cyclomatic 19) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyMode/index.js:14 — index.ResponseExampleBodyMode::onModeChange has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · index.ResponseBookmark (cyclomatic 19) · ×1
  • index.ResponseBookmark (cyclomatic 19) packages/bruno-app/src/components/ResponsePane/ResponseBookmark/index.js:29 — index.ResponseBookmark has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 2 function items inside it that branch (saveAsExample, handleSaveClick). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · snippet-generator.generateSnippet (cyclomatic 19) · ×1
  • snippet-generator.generateSnippet (cyclomatic 19) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/utils/snippet-generator.js:54 — snippet-generator.generateSnippet has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.getCollectionName (cyclomatic 19) · ×1
  • index.getCollectionName (cyclomatic 19) packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js:32 — index.getCollectionName has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · index.NewFolder (cyclomatic 19) · ×1
  • index.NewFolder (cyclomatic 19) packages/bruno-app/src/components/Sidebar/NewFolder/index.js:18 — index.NewFolder has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body's own statements and 8 belong to 6 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.sortWorkspaces (cyclomatic 19) · ×1
  • index.sortWorkspaces (cyclomatic 19) packages/bruno-app/src/utils/workspaces/index.js:3 — index.sortWorkspaces has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 12, 25, 9, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.extractMockRoutePath (cyclomatic 19) · ×1
  • index.extractMockRoutePath (cyclomatic 19) packages/bruno-common/src/utils/url/index.ts:249 — index.extractMockRoutePath has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · send-request-transformer.transformBody (cyclomatic 19) · ×1
  • send-request-transformer.transformBody (cyclomatic 19) packages/bruno-converters/src/utils/send-request-transformer.js:92 — send-request-transformer.transformBody has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 95, 116, 131, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · websocket.fromOpenCollectionWebsocketItem (cyclomatic 19) · ×1
  • websocket.fromOpenCollectionWebsocketItem (cyclomatic 19) packages/bruno-converters/src/opencollection/items/websocket.ts:29 — websocket.fromOpenCollectionWebsocketItem has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · openapi-sync.mergeJsonValues (cyclomatic 19) · ×1
  • openapi-sync.mergeJsonValues (cyclomatic 19) packages/bruno-electron/src/ipc/openapi-sync.js:582 — openapi-sync.mergeJsonValues has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LinuxProxyResolver.parseProxyFromContent (cyclomatic 19) · ×1
  • LinuxProxyResolver.parseProxyFromContent (cyclomatic 19) REDACTED:196 — LinuxProxyResolver.parseProxyFromContent has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · collectionAddFileEvent (cyclomatic 19) · ×1
  • collectionAddFileEvent (cyclomatic 19) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3079 — collectionAddFileEvent has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 19) · ×1
  • (anonymous) (cyclomatic 19) packages/bruno-app/public/static/diff2Html.js:2687 — (anonymous) has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 6 function items inside it that branch (n, newMatcherFn::t, a function literal at line 2715, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · useOpenAPISync (cyclomatic 19) · ×1
  • useOpenAPISync (cyclomatic 19) packages/bruno-app/src/components/OpenAPISyncTab/hooks/useOpenAPISync.js:20 — useOpenAPISync has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 207, a function literal at line 200, a function literal at line 73, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · OAuth2PasswordCredentials (cyclomatic 19) · ×1
  • OAuth2PasswordCredentials (cyclomatic 19) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:15 — OAuth2PasswordCredentials has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body's own statements and 3 belong to 17 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · OAuth2ClientCredentials (cyclomatic 19) · ×1
  • OAuth2ClientCredentials (cyclomatic 19) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js:15 — OAuth2ClientCredentials has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body's own statements and 3 belong to 17 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · state-persistence.applyEditorState (cyclomatic 18) · ×1
  • state-persistence.applyEditorState (cyclomatic 18) packages/bruno-app/src/components/CodeEditor/state-persistence.js:95 — state-persistence.applyEditorState has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · index.Modal (cyclomatic 18) · ×1
  • index.Modal (cyclomatic 18) packages/bruno-app/src/components/Modal/index.js:82 — index.Modal has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (handleKeydown). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.EndpointChangeSection (cyclomatic 18) · ×1
  • index.EndpointChangeSection (cyclomatic 18) packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/index.js:23 — index.EndpointChangeSection has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · EndpointVisualDiff.openAPISectionHasChanges (cyclomatic 18) · ×1
  • EndpointVisualDiff.openAPISectionHasChanges (cyclomatic 18) packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/EndpointVisualDiff.js:21 — EndpointVisualDiff.openAPISectionHasChanges has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.ResponseExampleHeaders (cyclomatic 18) · ×1
  • index.ResponseExampleHeaders (cyclomatic 18) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:16 — index.ResponseExampleHeaders has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 31, a function literal at line 82, a function literal at line 103, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponseExampleUrlBar (cyclomatic 18) · ×1
  • index.ResponseExampleUrlBar (cyclomatic 18) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleUrlBar/index.js:9 — index.ResponseExampleUrlBar has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (getMethodClass, onMethodSelect, a function literal at line 12, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ResponseExampleTopBar (cyclomatic 18) · ×1
  • index.ResponseExampleTopBar (cyclomatic 18) packages/bruno-app/src/components/ResponseExample/ResponseExampleTopBar/index.js:12 — index.ResponseExampleTopBar has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (handleNameChange, handleDescriptionChange, a function literal at line 27, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.Timeline (cyclomatic 18) · ×1
  • index.Timeline (cyclomatic 18) packages/bruno-app/src/components/ResponsePane/Timeline/index.js:50 — index.Timeline has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 103, 74, 70, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · useVariablesScroll.useVariablesScroll (cyclomatic 18) · ×1
  • useVariablesScroll.useVariablesScroll (cyclomatic 18) packages/bruno-app/src/components/VariablesEditor/hooks/useVariablesScroll.js:20 — useVariablesScroll.useVariablesScroll has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 45, 79, 88, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.EditorLinkEditPopover (cyclomatic 18) · ×1
  • index.EditorLinkEditPopover (cyclomatic 18) packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkEditPopover/index.js:5 — index.EditorLinkEditPopover has cyclomatic complexity 18 (threshold 15). Of this number, 9 points are the body's own statements and 9 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · editorToolbarConfig.buildToolbarActions (cyclomatic 18) · ×1
  • editorToolbarConfig.buildToolbarActions (cyclomatic 18) packages/bruno-app/src/ui/RichTextEditor/utils/editorToolbarConfig.js:27 — editorToolbarConfig.buildToolbarActions has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 135, 89, 99, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.getUtf8SequenceLength (cyclomatic 18) · ×1
  • index.getUtf8SequenceLength (cyclomatic 18) packages/bruno-app/src/utils/response/index.js:76 — index.getUtf8SequenceLength has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · import.handler (cyclomatic 18) · ×1
  • import.handler (cyclomatic 18) packages/bruno-cli/src/commands/import.js:393 — import.handler has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · schema-composition.conflicts (cyclomatic 18) · ×1
  • schema-composition.conflicts (cyclomatic 18) packages/bruno-converters/src/openapi/schema-composition.js:144 — schema-composition.conflicts has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · folder.fromOpenCollectionFolder (cyclomatic 18) · ×1
  • folder.fromOpenCollectionFolder (cyclomatic 18) packages/bruno-converters/src/opencollection/folder.ts:26 — folder.fromOpenCollectionFolder has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · folder.toOpenCollectionFolder (cyclomatic 18) · ×1
  • folder.toOpenCollectionFolder (cyclomatic 18) packages/bruno-converters/src/opencollection/folder.ts:79 — folder.toOpenCollectionFolder has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · mock-example-generator.schemaToExample (cyclomatic 18) · ×1
  • mock-example-generator.schemaToExample (cyclomatic 18) packages/bruno-electron/src/app/mock-server/mock-example-generator.js:54 — mock-example-generator.schemaToExample has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · context.formatResponseShape (cyclomatic 18) · ×1
  • context.formatResponseShape (cyclomatic 18) packages/bruno-electron/src/ipc/ai/context.js:120 — context.formatResponseShape has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · mock-server.handleRequest · ×1
  • mock-server.handleRequest::sendResponse (cyclomatic 18) packages/bruno-electron/src/app/mock-server/mock-server.js:396 — mock-server.handleRequest::sendResponse has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.registerNetworkIpc · ×1
  • index.registerNetworkIpc::runPreRequest (cyclomatic 18) REDACTED:592 — index.registerNetworkIpc::runPreRequest has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · stringifyFolder.stringifyFolder (cyclomatic 18) · ×1
  • stringifyFolder.stringifyFolder (cyclomatic 18) packages/bruno-filestore/src/formats/yml/stringifyFolder.ts:37 — stringifyFolder.stringifyFolder has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.normalizeRequestItem (cyclomatic 18) · ×1
  • index.normalizeRequestItem (cyclomatic 18) packages/bruno-io/src/writeCollection/index.ts:30 — index.normalizeRequestItem has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · GrpcScriptRuntime.#runHook (cyclomatic 18) · ×1
  • GrpcScriptRuntime.#runHook (cyclomatic 18) packages/bruno-js/src/grpc/grpc-script-runtime.js:35 — GrpcScriptRuntime.#runHook has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body's own statements and 5 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · oauth2-helper.fetchTokenClientCredentials (cyclomatic 18) · ×1
  • oauth2-helper.fetchTokenClientCredentials (cyclomatic 18) REDACTED:111 — oauth2-helper.fetchTokenClientCredentials has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · http-https-agents.resolveAgentsFromPac (cyclomatic 18) · ×1
  • http-https-agents.resolveAgentsFromPac (cyclomatic 18) packages/bruno-requests/src/utils/http-https-agents.ts:413 — http-https-agents.resolveAgentsFromPac has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · transformBrunoTypes (cyclomatic 18) · ×1
  • transformBrunoTypes (cyclomatic 18) packages/bruno-app/src/components/Devtools/Console/index.js:61 — transformBrunoTypes has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · createTerminalForSession (cyclomatic 18) · ×1
  • createTerminalForSession (cyclomatic 18) packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:63 — createTerminalForSession has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (onExit, onData, a function literal at line 79, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.CreateTransientRequest (cyclomatic 17) · ×1
  • index.CreateTransientRequest (cyclomatic 17) packages/bruno-app/src/components/CreateTransientRequest/index.js:14 — index.CreateTransientRequest has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 11 function items inside it that branch (handleItemClick, a function literal at line 24, onDropdownCreate, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ErrorInfoTab (cyclomatic 17) · ×1
  • index.ErrorInfoTab (cyclomatic 17) packages/bruno-app/src/components/Devtools/Console/ErrorDetailsPanel/index.js:16 — index.ErrorInfoTab has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (generateGitHubIssueUrl, a function literal at line 47). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.ReviewStep (cyclomatic 17) · ×1
  • index.ReviewStep (cyclomatic 17) packages/bruno-app/src/components/Environments/Common/ImportEnvironmentModal/ReviewStep/index.js:11 — index.ReviewStep has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.OpenAPISyncHeader (cyclomatic 17) · ×1
  • index.OpenAPISyncHeader (cyclomatic 17) packages/bruno-app/src/components/OpenAPISyncTab/OpenAPISyncHeader/index.js:19 — index.OpenAPISyncHeader has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (copyUrl, a function literal at line 29, revealInFolder, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · useOpenAPISync.useOpenAPISync.handleConnect (cyclomatic 17) · ×1
  • useOpenAPISync.useOpenAPISync.handleConnect (cyclomatic 17) packages/bruno-app/src/components/OpenAPISyncTab/hooks/useOpenAPISync.js:215 — useOpenAPISync.useOpenAPISync.handleConnect has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · index.EdgeGridAuth (cyclomatic 17) · ×1
  • index.EdgeGridAuth (cyclomatic 17) packages/bruno-app/src/components/RequestPane/Auth/EdgeGridAuth/index.tsx:75 — index.EdgeGridAuth has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (handleFieldChange, renderField). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.GrpcBody (cyclomatic 17) · ×1
  • index.GrpcBody (cyclomatic 17) packages/bruno-app/src/components/RequestPane/GrpcBody/index.js:213 — index.GrpcBody has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body's own statements and 8 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.XmlPreview (cyclomatic 17) · ×1
  • index.XmlPreview (cyclomatic 17) packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/XmlPreview/index.js:8 — index.XmlPreview has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 3 function items inside it that branch (isValidTreeData, a function literal at line 9, a function literal at line 65). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.SelectionList (cyclomatic 17) · ×1
  • index.SelectionList (cyclomatic 17) packages/bruno-app/src/components/SelectionList/index.js:12 — index.SelectionList has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.CollectionItemRow · ×1
  • index.CollectionItemRow::buildMenuItems (cyclomatic 17) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:412 — index.CollectionItemRow::buildMenuItems has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (index.CollectionItemRow) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · index.useQueryBuilder.toggleField (cyclomatic 17) · ×1
  • index.useQueryBuilder.toggleField (cyclomatic 17) packages/bruno-app/src/hooks/useQueryBuilder/index.js:316 — index.useQueryBuilder.toggleField has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.Main (cyclomatic 17) · ×1
  • index.Main (cyclomatic 17) packages/bruno-app/src/pages/Bruno/index.js:45 — index.Main has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SaveRequestsModal.SaveRequestsModal · ×1
  • SaveRequestsModal.SaveRequestsModal::closeWithSave (cyclomatic 17) packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.js:189 — SaveRequestsModal.SaveRequestsModal::closeWithSave has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · middleware.determineSaveHandler (cyclomatic 17) · ×1
  • middleware.determineSaveHandler (cyclomatic 17) packages/bruno-app/src/providers/ReduxStore/middlewares/autosave/middleware.js:194 — middleware.determineSaveHandler has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index.buildAiRequestsPayload · ×1
  • index.buildAiRequestsPayload::walk (cyclomatic 17) packages/bruno-app/src/utils/ai/index.js:229 — index.buildAiRequestsPayload::walk has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.resolveInheritedAuth (cyclomatic 17) · ×1
  • index.resolveInheritedAuth (cyclomatic 17) packages/bruno-app/src/utils/auth/index.js:8 — index.resolveInheritedAuth has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · environments.applyScriptEnvVars (cyclomatic 17) · ×1
  • environments.applyScriptEnvVars (cyclomatic 17) packages/bruno-app/src/utils/environments.js:67 — environments.applyScriptEnvVars has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 6 function items inside it that branch (writeScriptValue, a function literal at line 99, a function literal at line 111, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · mock-responses.copyExampleToMockResponse (cyclomatic 17) · ×1
  • mock-responses.copyExampleToMockResponse (cyclomatic 17) packages/bruno-app/src/utils/mock-server/mock-responses.js:18 — mock-responses.copyExampleToMockResponse has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · openapi-to-bruno.paramEntriesFromValue (cyclomatic 17) · ×1
  • openapi-to-bruno.paramEntriesFromValue (cyclomatic 17) packages/bruno-converters/src/openapi/openapi-to-bruno.js:80 — openapi-to-bruno.paramEntriesFromValue has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · auth.fromOpenCollectionOAuth2 · ×1
  • auth.fromOpenCollectionOAuth2::buildOAuth2Config (cyclomatic 17) packages/bruno-converters/src/opencollection/common/auth.ts:46 — auth.fromOpenCollectionOAuth2::buildOAuth2Config has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (auth.fromOpenCollectionOAuth2) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · environment.fromOpenCollectionEnvironments (cyclomatic 17) · ×1
  • environment.fromOpenCollectionEnvironments (cyclomatic 17) packages/bruno-converters/src/opencollection/environment.ts:24 — environment.fromOpenCollectionEnvironments has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 32, 29). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · CollectionWatcher.addWatcher (cyclomatic 17) · ×1
  • CollectionWatcher.addWatcher (cyclomatic 17) packages/bruno-electron/src/app/collection-watcher.js:807 — CollectionWatcher.addWatcher has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 834, 886, 860). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · openapi-sync.findRequestFileOnDisk (cyclomatic 17) · ×1
  • openapi-sync.findRequestFileOnDisk (cyclomatic 17) packages/bruno-electron/src/ipc/openapi-sync.js:338 — openapi-sync.findRequestFileOnDisk has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · auth-oauth2.buildAuthorizationCodeFlow (cyclomatic 17) · ×1
  • auth-oauth2.buildAuthorizationCodeFlow (cyclomatic 17) packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts:208 — auth-oauth2.buildAuthorizationCodeFlow has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · auth.buildOAuth1Auth (cyclomatic 17) · ×1
  • auth.buildOAuth1Auth (cyclomatic 17) packages/bruno-filestore/src/formats/yml/common/auth.ts:152 — auth.buildOAuth1Auth has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · parseFolder.parseFolder (cyclomatic 17) · ×1
  • parseFolder.parseFolder (cyclomatic 17) packages/bruno-filestore/src/formats/yml/parseFolder.ts:12 — parseFolder.parseFolder has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · assert-runtime.chai.use() · ×1
  • assert-runtime.chai.use()::parsePath (cyclomatic 17) REDACTED:104 — assert-runtime.chai.use()::parsePath has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · index.cookieJarWrapper.setCookie (cyclomatic 17) · ×1
  • index.cookieJarWrapper.setCookie (cyclomatic 17) packages/bruno-requests/src/cookies/index.ts:284 — index.cookieJarWrapper.setCookie has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (executeSetCookie, a function literal at line 350). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · WindowsProxyResolver.getSystemProxyEnvironment (cyclomatic 17) · ×1
  • WindowsProxyResolver.getSystemProxyEnvironment (cyclomatic 17) packages/bruno-requests/src/network/system-proxy/utils/windows.ts:115 — WindowsProxyResolver.getSystemProxyEnvironment has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (WindowsProxyResolver.getUserEnvironmentProxy) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · WindowsProxyResolver.getUserEnvironmentProxy (cyclomatic 17) · ×1
  • WindowsProxyResolver.getUserEnvironmentProxy (cyclomatic 17) packages/bruno-requests/src/network/system-proxy/utils/windows.ts:156 — WindowsProxyResolver.getUserEnvironmentProxy has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (WindowsProxyResolver.getSystemProxyEnvironment) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · settings (cyclomatic 17) · ×1
  • settings (cyclomatic 17) packages/bruno-lang/v2/src/bruToJson.js:553 — settings has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · normalizeCollectionSnapshotEntry (cyclomatic 17) · ×1
  • normalizeCollectionSnapshotEntry (cyclomatic 17) packages/bruno-app/src/utils/snapshot/index.js:132 — normalizeCollectionSnapshotEntry has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 17) · ×1
  • (anonymous) (cyclomatic 17) packages/bruno-app/src/components/RequestPane/QueryBuilder/FieldNode.js:297 — (anonymous) has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body's own statements and 2 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · useOpenAPISync.handleConnect (cyclomatic 17) · ×1
  • useOpenAPISync.handleConnect (cyclomatic 17) packages/bruno-app/src/components/OpenAPISyncTab/hooks/useOpenAPISync.js:215 — useOpenAPISync.handleConnect has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · OAuth2Implicit (cyclomatic 17) · ×1
  • OAuth2Implicit (cyclomatic 17) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js:18 — OAuth2Implicit has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body's own statements and 4 belong to 19 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · index.EdgeGridAuth (cyclomatic 16) · ×1
  • index.EdgeGridAuth (cyclomatic 16) packages/bruno-app/src/components/CollectionSettings/Auth/EdgeGridAuth/index.tsx:70 — index.EdgeGridAuth has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (handleFieldChange, renderField). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.serializeArgs (cyclomatic 16) · ×1
  • index.serializeArgs (cyclomatic 16) packages/bruno-app/src/components/ErrorCapture/index.js:35 — index.serializeArgs has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 36, 39). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.MockResponseRequestPane (cyclomatic 16) · ×1
  • index.MockResponseRequestPane (cyclomatic 16) packages/bruno-app/src/components/MockServer/MockResponse/MockResponseRequestPane/index.js:35 — index.MockResponseRequestPane has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (getTabPanel, a function literal at line 55). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.MockResponseSidebarItem (cyclomatic 16) · ×1
  • index.MockResponseSidebarItem (cyclomatic 16) packages/bruno-app/src/components/MockServer/Sidebar/MockServers/MockResponseSidebarItem/index.js:15 — index.MockResponseSidebarItem has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (handleClone, handleRenameConfirm, handleDeleteConfirm, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.BulkActionsDropdown (cyclomatic 16) · ×1
  • index.BulkActionsDropdown (cyclomatic 16) packages/bruno-app/src/components/Sidebar/Collections/BulkActionsDropdown/index.js:21 — index.BulkActionsDropdown has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 6 function items inside it that branch (a function literal at line 68, getCollapseDisplay, a function literal at line 97, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · index.GenerateCodeItem (cyclomatic 16) · ×1
  • index.GenerateCodeItem (cyclomatic 16) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js:22 — index.GenerateCodeItem has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (getExampleRequestData, getNormalRequestData, a function literal at line 89). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · exampleReducers.updateResponseExampleRequestUrl (cyclomatic 16) · ×1
  • exampleReducers.updateResponseExampleRequestUrl (cyclomatic 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:573 — exampleReducers.updateResponseExampleRequestUrl has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body's own statements and 7 belong to 6 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · actions.newHttpRequest.<returned closure> (cyclomatic 16) · ×1
  • actions.newHttpRequest.<returned closure> (cyclomatic 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1389 — actions.newHttpRequest.<returned closure> has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 1408, 1470, 1496, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · index.collectSiblingScripts (cyclomatic 16) · ×1
  • index.collectSiblingScripts (cyclomatic 16) packages/bruno-app/src/utils/ai/index.js:353 — index.collectSiblingScripts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · autocomplete.extractNextSegmentSuggestions (cyclomatic 16) · ×1
  • autocomplete.extractNextSegmentSuggestions (cyclomatic 16) packages/bruno-app/src/utils/codemirror/autocomplete.js:619 — autocomplete.extractNextSegmentSuggestions has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 2 function items inside it that branch (a function literal at line 634, markProcessEnvSegment). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · sensitive-fields.collectSensitiveFieldValues (cyclomatic 16) · ×1
  • sensitive-fields.collectSensitiveFieldValues (cyclomatic 16) packages/bruno-app/src/utils/sensitive-fields.js:199 — sensitive-fields.collectSensitiveFieldValues has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body's own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · bru.bruToJson (cyclomatic 16) · ×1
  • bru.bruToJson (cyclomatic 16) packages/bruno-cli/src/utils/bru.js:51 — bru.bruToJson has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · junit.makeJUnitOutput (cyclomatic 16) · ×1
  • junit.makeJUnitOutput (cyclomatic 16) packages/bruno-cli/src/reporters/junit.js:6 — junit.makeJUnitOutput has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 13, 35, 53, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · bruno-to-postman.brunoToPostman · ×1
  • bruno-to-postman.brunoToPostman::generateEventSection (cyclomatic 16) packages/bruno-converters/src/postman/bruno-to-postman.js:233 — bruno-to-postman.brunoToPostman::generateEventSection has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · schema-composition.applyNot (cyclomatic 16) · ×1
  • schema-composition.applyNot (cyclomatic 16) packages/bruno-converters/src/openapi/schema-composition.js:572 — schema-composition.applyNot has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · swagger2-to-bruno.parseSwagger2Collection (cyclomatic 16) · ×1
  • swagger2-to-bruno.parseSwagger2Collection (cyclomatic 16) packages/bruno-converters/src/openapi/swagger2-to-bruno.js:594 — swagger2-to-bruno.parseSwagger2Collection has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · scripts.fromOpenCollectionScripts (cyclomatic 16) · ×1
  • scripts.fromOpenCollectionScripts (cyclomatic 16) packages/bruno-converters/src/opencollection/common/scripts.ts:39 — scripts.fromOpenCollectionScripts has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · grpc.fromOpenCollectionGrpcItem (cyclomatic 16) · ×1
  • grpc.fromOpenCollectionGrpcItem (cyclomatic 16) packages/bruno-converters/src/opencollection/items/grpc.ts:43 — grpc.fromOpenCollectionGrpcItem has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · collection.mergeHeaders (cyclomatic 16) · ×1
  • collection.mergeHeaders (cyclomatic 16) REDACTED:26 — collection.mergeHeaders has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 32, 48, 61). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · collection.wrapAndJoinScripts (cyclomatic 16) · ×1
  • collection.wrapAndJoinScripts (cyclomatic 16) REDACTED:239 — collection.wrapAndJoinScripts has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body's own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · mock-rule-matcher.evaluateResponseCandidates (cyclomatic 16) · ×1
  • mock-rule-matcher.evaluateResponseCandidates (cyclomatic 16) packages/bruno-electron/src/app/mock-server/mock-rule-matcher.js:171 — mock-rule-matcher.evaluateResponseCandidates has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · git.discardChanges (cyclomatic 16) · ×1
  • git.discardChanges (cyclomatic 16) packages/bruno-electron/src/utils/git.js:156 — git.discardChanges has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 162, 178, 212, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · utils.cleanJson (cyclomatic 16) · ×1
  • utils.cleanJson (cyclomatic 16) packages/bruno-js/src/utils.js:144 — utils.cleanJson has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (replacer, reviver). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · VarsRuntime.runPostResponseVars (cyclomatic 16) · ×1
  • VarsRuntime.runPostResponseVars (cyclomatic 16) packages/bruno-js/src/runtime/vars-runtime.js:28 — VarsRuntime.runPostResponseVars has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · error-formatter.adjustLineNumber (cyclomatic 16) · ×1
  • error-formatter.adjustLineNumber (cyclomatic 16) packages/bruno-js/src/utils/error-formatter.js:203 — error-formatter.adjustLineNumber has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LinuxProxyResolver.getGSettingsProxy (cyclomatic 16) · ×1
  • LinuxProxyResolver.getGSettingsProxy (cyclomatic 16) REDACTED:49 — LinuxProxyResolver.getGSettingsProxy has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · updateAuth (cyclomatic 16) · ×1
  • updateAuth (cyclomatic 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:1249 — updateAuth has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file's highest cyclomatic complexity: updateFolderAuth (cyclomatic 17) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · openCollectionEvent (cyclomatic 16) · ×1
  • openCollectionEvent (cyclomatic 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3054 — openCollectionEvent has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 16 function literals inside it that branch (lines 3057, 3132, 3087, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · change (cyclomatic 16) · ×1
  • change (cyclomatic 16) packages/bruno-electron/src/app/collection-watcher.js:469 — change has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · closeTabs (cyclomatic 16) · ×1
  • closeTabs (cyclomatic 16) packages/bruno-app/src/providers/ReduxStore/slices/tabs.js:428 — closeTabs has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body's own statements and 3 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · collection.registerRendererEventHandlers (cognitive 491) · ×1
  • collection.registerRendererEventHandlers (cognitive 491) packages/bruno-electron/src/ipc/collection.js:193 — collection.registerRendererEventHandlers has cognitive complexity 491 (threshold 15). Drivers by points: if/else 196 (285 pts), error handling 80 (93 pts), boolean chains 62, loops 17 (25 pts), ternaries 13 (22 pts), match/switch 3 (4 pts) (nesting depth added 120). None of this is in the body itself: all 491 points belong to 86 function items inside it that branch (a function literal at line 1409, a function literal at line 342, a function literal at line 1677, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · openapi-sync.registerOpenAPISyncIpc (cognitive 410) · ×1
  • openapi-sync.registerOpenAPISyncIpc (cognitive 410) packages/bruno-electron/src/ipc/openapi-sync.js:1103 — openapi-sync.registerOpenAPISyncIpc has cognitive complexity 410 (threshold 15). Drivers by points: if/else 92 (200 pts), boolean chains 85, ternaries 19 (48 pts), error handling 24 (46 pts), loops 18 (31 pts) (nesting depth added 172). None of this is in the body itself: all 410 points belong to 20 function literals inside it that branch (lines 1591, 1308, 1719, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · jsonToBru (cognitive 362) · ×1
  • jsonToBru (cognitive 362) packages/bruno-lang/v2/src/jsonToBru.js:15 — jsonToBru has cognitive complexity 362 (threshold 15). Drivers by points: if/else 95 (166 pts), boolean chains 92, ternaries 25 (82 pts), loops 4 (12 pts), other 8, match/switch 1 (2 pts) (nesting depth added 137). Of this number, 283 points are the body's own statements and 79 belong to 59 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · postman-to-bruno.importPostmanV2CollectionItem (cognitive 279) · ×1
  • postman-to-bruno.importPostmanV2CollectionItem (cognitive 279) packages/bruno-converters/src/postman/postman-to-bruno.js:483 — postman-to-bruno.importPostmanV2CollectionItem has cognitive complexity 279 (threshold 15). Drivers by points: if/else 61 (173 pts), ternaries 12 (61 pts), boolean chains 39, loops 2 (4 pts), error handling 1 (2 pts) (nesting depth added 164). Most of this is not in the body itself: 1 of the 279 points is its own statement and the rest belongs to 14 function literals inside it that branch (lines 488, 812, 664, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · runSingleRequest (cognitive 252) · ×1
  • runSingleRequest (cognitive 252) REDACTED:103 — runSingleRequest has cognitive complexity 252 (threshold 15). Drivers by points: if/else 73 (126 pts), ternaries 16 (45 pts), boolean chains 39, error handling 12 (29 pts), loops 4 (10 pts), other 3 (nesting depth added 105). Of this number, 220 points are the body's own statements and 32 belong to 11 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · interpolateVars (cognitive 217) · ×1
  • interpolateVars (cognitive 217) REDACTED:41 — interpolateVars has cognitive complexity 217 (threshold 15). Drivers by points: boolean chains 104, if/else 44 (89 pts), error handling 4 (13 pts), ternaries 2 (6 pts), loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 61). Of this number, 159 points are the body's own statements and 58 belong to 15 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · handler (cognitive 213) · ×1
  • handler (cognitive 213) packages/bruno-cli/src/commands/run.js:305 — handler has cognitive complexity 213 (threshold 15). Drivers by points: if/else 84 (136 pts), boolean chains 35, error handling 9 (20 pts), loops 8 (19 pts), ternaries 3 (nesting depth added 74). Of this number, 197 points are the body's own statements and 16 belong to 21 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RequestTabPanel (cognitive 201) · ×1
  • RequestTabPanel (cognitive 201) packages/bruno-app/src/components/RequestTabPanel/index.js:70 — RequestTabPanel has cognitive complexity 201 (threshold 15). Drivers by points: if/else 92 (130 pts), boolean chains 39, ternaries 24 (27 pts), error handling 1 (2 pts), match/switch 2, other 1 (nesting depth added 42). Of this number, 96 points are the body's own statements and 105 belong to 43 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · jsonToCollectionBru (cognitive 194) · ×1
  • jsonToCollectionBru (cognitive 194) packages/bruno-lang/v2/src/jsonToCollectionBru.js:15 — jsonToCollectionBru has cognitive complexity 194 (threshold 15). Drivers by points: if/else 43 (75 pts), ternaries 17 (58 pts), boolean chains 46, other 8, loops 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 77). Of this number, 154 points are the body's own statements and 40 belong to 44 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · auth-oauth2.toBrunoOAuth2 (cognitive 193) · ×1
  • auth-oauth2.toBrunoOAuth2 (cognitive 193) packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts:336 — auth-oauth2.toBrunoOAuth2 has cognitive complexity 193 (threshold 15). Drivers by points: if/else 78 (179 pts), boolean chains 13, match/switch 1 (nesting depth added 101). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RequestTab (cognitive 188) · ×1
  • RequestTab (cognitive 188) packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:38 — RequestTab has cognitive complexity 188 (threshold 15). Drivers by points: if/else 68 (95 pts), boolean chains 34, ternaries 20 (33 pts), error handling 9 (23 pts), other 2, match/switch 1 (nesting depth added 54). Of this number, 52 points are the body's own statements and 136 belong to 77 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · renderVarInfo (cognitive 184) · ×1
  • renderVarInfo (cognitive 184) packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:232 — renderVarInfo has cognitive complexity 184 (threshold 15). Drivers by points: if/else 51 (93 pts), ternaries 24 (57 pts), boolean chains 28, other 4, error handling 1 (2 pts) (nesting depth added 76). Of this number, 86 points are the body's own statements and 98 belong to 32 function items inside it that branch. This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · interpolateVars (cognitive 181) · ×1
  • interpolateVars (cognitive 181) REDACTED:36 — interpolateVars has cognitive complexity 181 (threshold 15). Drivers by points: if/else 41 (85 pts), boolean chains 75, error handling 3 (10 pts), ternaries 2 (6 pts), loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 58). Of this number, 129 points are the body's own statements and 52 belong to 14 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · prepareRequest (cognitive 151) · ×1
  • prepareRequest (cognitive 151) packages/bruno-cli/src/runner/prepare-request.js:16 — prepareRequest has cognitive complexity 151 (threshold 15). Drivers by points: if/else 60 (118 pts), error handling 4 (17 pts), boolean chains 14, other 1, ternaries 1 (nesting depth added 71). Of this number, 149 points are the body's own statements and 2 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · proxy-util.setupProxyAgents (cognitive 149) · ×1
  • proxy-util.setupProxyAgents (cognitive 149) packages/bruno-electron/src/utils/proxy-util.js:76 — proxy-util.setupProxyAgents has cognitive complexity 149 (threshold 15). Drivers by points: if/else 43 (108 pts), ternaries 6 (18 pts), error handling 4 (14 pts), boolean chains 9 (nesting depth added 87). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · index.EnvironmentVariablesTable (cognitive 146) · ×1
  • index.EnvironmentVariablesTable (cognitive 146) packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:246 — index.EnvironmentVariablesTable has cognitive complexity 146 (threshold 15). Drivers by points: if/else 43 (52 pts), ternaries 36 (49 pts), boolean chains 45 (nesting depth added 22). Of this number, 19 points are the body's own statements and 127 belong to 35 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · transformOpenapiRequestItem (cognitive 139) · ×1
  • transformOpenapiRequestItem (cognitive 139) packages/bruno-converters/src/openapi/openapi-to-bruno.js:278 — transformOpenapiRequestItem has cognitive complexity 139 (threshold 15). Drivers by points: if/else 44 (66 pts), boolean chains 46, ternaries 9 (24 pts), match/switch 1 (3 pts) (nesting depth added 39). Of this number, 68 points are the body's own statements and 71 belong to 20 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · makeAxiosInstance (cognitive 130) · ×1
  • makeAxiosInstance (cognitive 130) packages/bruno-electron/src/ipc/network/axios-instance.js:111 — makeAxiosInstance has cognitive complexity 130 (threshold 15). Drivers by points: if/else 38 (89 pts), boolean chains 29, ternaries 4 (8 pts), error handling 2 (4 pts) (nesting depth added 57). None of this is in the body itself: all 130 points belong to 17 function items inside it that branch (a function literal at line 314, a function literal at line 145, a function literal at line 262, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.CreateMockServerModal (cognitive 123) · ×1
  • index.CreateMockServerModal (cognitive 123) packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:164 — index.CreateMockServerModal has cognitive complexity 123 (threshold 15). Drivers by points: ternaries 31 (43 pts), boolean chains 39, if/else 28 (32 pts), error handling 5 (9 pts) (nesting depth added 20). Of this number, 52 points are the body's own statements and 71 belong to 13 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · index.Keybindings (cognitive 123) · ×1
  • index.Keybindings (cognitive 123) packages/bruno-app/src/components/Preferences/Keybindings/index.js:264 — index.Keybindings has cognitive complexity 123 (threshold 15). Drivers by points: if/else 43 (52 pts), boolean chains 38, ternaries 15 (26 pts), loops 6 (7 pts) (nesting depth added 21). Most of this is not in the body itself: 2 of the 123 points are its own statements and the rest belongs to 30 function items inside it that branch (a function literal at line 804, handleKeyDown, validateCombo, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.BulkImportCollectionLocation (cognitive 123) · ×1
  • index.BulkImportCollectionLocation (cognitive 123) REDACTED:141 — index.BulkImportCollectionLocation has cognitive complexity 123 (threshold 15). Drivers by points: if/else 29 (49 pts), boolean chains 43, ternaries 20 (25 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 28). Of this number, 35 points are the body's own statements and 88 belong to 29 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · registerWorkspaceIpc (cognitive 118) · ×1
  • registerWorkspaceIpc (cognitive 118) packages/bruno-electron/src/ipc/workspace.js:55 — registerWorkspaceIpc has cognitive complexity 118 (threshold 15). Drivers by points: if/else 42 (51 pts), error handling 34 (38 pts), boolean chains 19, ternaries 3 (6 pts), loops 4 (nesting depth added 16). None of this is in the body itself: all 118 points belong to 40 function items inside it that branch (a function literal at line 348, a function literal at line 628, a function literal at line 687, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · http-https-agents.createAgents (cognitive 108) · ×1
  • http-https-agents.createAgents (cognitive 108) packages/bruno-requests/src/utils/http-https-agents.ts:463 — http-https-agents.createAgents has cognitive complexity 108 (threshold 15). Drivers by points: if/else 26 (58 pts), ternaries 7 (19 pts), boolean chains 17, error handling 4 (14 pts) (nesting depth added 54). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · index.CollectionItemRow (cognitive 107) · ×1
  • index.CollectionItemRow (cognitive 107) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:76 — index.CollectionItemRow has cognitive complexity 107 (threshold 15). Drivers by points: if/else 38 (46 pts), boolean chains 42, ternaries 16 (19 pts) (nesting depth added 11). Of this number, 44 points are the body's own statements and 63 belong to 23 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · useQueryBuilder (cognitive 106) · ×1
  • useQueryBuilder (cognitive 106) packages/bruno-app/src/hooks/useQueryBuilder/index.js:58 — useQueryBuilder has cognitive complexity 106 (threshold 15). Drivers by points: if/else 54 (73 pts), loops 8 (16 pts), boolean chains 14, error handling 1 (2 pts), ternaries 1 (nesting depth added 28). None of this is in the body itself: all 106 points belong to 33 function items inside it that branch (a function literal at line 251, a function literal at line 176, syncVariables, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.CollectionHeader (cognitive 104) · ×1
  • index.CollectionHeader (cognitive 104) packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:66 — index.CollectionHeader has cognitive complexity 104 (threshold 15). Drivers by points: boolean chains 46, if/else 36 (39 pts), ternaries 14 (17 pts), error handling 1 (2 pts) (nesting depth added 7). Of this number, 49 points are the body's own statements and 55 belong to 31 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · (anonymous) (cognitive 103) · ×1
  • (anonymous) (cognitive 103) packages/bruno-app/public/static/diff2Html.js:1480 — (anonymous) has cognitive complexity 103 (threshold 15). Drivers by points: boolean chains 43, ternaries 29 (36 pts), if/else 16 (23 pts), loops 1 (nesting depth added 14). None of this is in the body itself: all 103 points belong to 15 function items inside it that branch (a function literal at line 1565, a function literal at line 1635, parse::F, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.GlobalSearchModal (cognitive 94) · ×1
  • index.GlobalSearchModal (cognitive 94) packages/bruno-app/src/components/GlobalSearchModal/index.js:23 — index.GlobalSearchModal has cognitive complexity 94 (threshold 15). Drivers by points: if/else 33 (39 pts), ternaries 15 (34 pts), boolean chains 21 (nesting depth added 25). Most of this is not in the body itself: 14 of the 94 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 87, a function literal at line 454, handleResultSelection, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · stringifyCollection.stringifyCollection (cognitive 94) · ×1
  • stringifyCollection.stringifyCollection (cognitive 94) packages/bruno-filestore/src/formats/yml/stringifyCollection.ts:70 — stringifyCollection.stringifyCollection has cognitive complexity 94 (threshold 15). Drivers by points: if/else 35 (76 pts), boolean chains 17, error handling 1 (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · transformCollectionToSaveToExportAsFile (cognitive 92) · ×1
  • transformCollectionToSaveToExportAsFile (cognitive 92) packages/bruno-app/src/utils/collections/index.js:179 — transformCollectionToSaveToExportAsFile has cognitive complexity 92 (threshold 15). Drivers by points: if/else 43 (70 pts), boolean chains 9, ternaries 3 (7 pts), match/switch 2 (5 pts), other 1 (nesting depth added 34). Of this number, 23 points are the body's own statements and 69 belong to 19 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · configureRequest (cognitive 90) · ×1
  • configureRequest (cognitive 90) REDACTED:119 — configureRequest has cognitive complexity 90 (threshold 15). Drivers by points: if/else 23 (36 pts), error handling 5 (18 pts), boolean chains 16, ternaries 5 (15 pts), other 3, match/switch 1 (2 pts) (nesting depth added 37). Of this number, 86 points are the body's own statements and 4 belong to 5 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HeaderHint (cognitive 89) · ×1
  • HeaderHint (cognitive 89) packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js:57 — HeaderHint has cognitive complexity 89 (threshold 15). Drivers by points: ternaries 29 (31 pts), boolean chains 29, if/else 25 (29 pts) (nesting depth added 6). Most of this is not in the body itself: 1 of the 89 points is its own statement and the rest belongs to 50 function items inside it that branch (a function literal at line 289, RequestHeaders, a function literal at line 361, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · registerAiIpc (cognitive 86) · ×1
  • registerAiIpc (cognitive 86) packages/bruno-electron/src/ipc/ai/index.js:101 — registerAiIpc has cognitive complexity 86 (threshold 15). Drivers by points: if/else 38 (45 pts), boolean chains 24, error handling 6, ternaries 5, other 4, loops 2 (nesting depth added 7). None of this is in the body itself: all 86 points belong to 13 function items inside it that branch (a function literal at line 198, a function literal at line 334, a function literal at line 142, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.MenuDropdown (cognitive 84) · ×1
  • index.MenuDropdown (cognitive 84) packages/bruno-app/src/ui/MenuDropdown/index.js:61 — index.MenuDropdown has cognitive complexity 84 (threshold 15). Drivers by points: if/else 34 (44 pts), boolean chains 28, ternaries 12 (nesting depth added 10). Most of this is not in the body itself: 11 of the 84 points are its own statements and the rest belongs to 23 function items inside it that branch (a function literal at line 240, getMenuItemProps, a function literal at line 322, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.formatResponse (cognitive 84) · ×1
  • index.formatResponse (cognitive 84) packages/bruno-app/src/utils/common/index.js:249 — index.formatResponse has cognitive complexity 84 (threshold 15). Drivers by points: if/else 29 (58 pts), error handling 7 (15 pts), boolean chains 6, ternaries 2 (5 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · (anonymous) (cognitive 84) · ×1
  • (anonymous) (cognitive 84) packages/bruno-app/src/ui/MenuDropdown/index.js:61 — (anonymous) has cognitive complexity 84 (threshold 15). Drivers by points: if/else 34 (44 pts), boolean chains 28, ternaries 12 (nesting depth added 10). Most of this is not in the body itself: 11 of the 84 points are its own statements and the rest belongs to 42 function items inside it that branch (a function literal at line 240, getMenuItemProps, a function literal at line 322, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.RequestHeaders (cognitive 82) · ×1
  • index.RequestHeaders (cognitive 82) packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js:85 — index.RequestHeaders has cognitive complexity 82 (threshold 15). Drivers by points: boolean chains 28, if/else 23 (27 pts), ternaries 25 (27 pts) (nesting depth added 6). Most of this is not in the body itself: 8 of the 82 points are its own statements and the rest belongs to 23 function items inside it that branch (a function literal at line 289, a function literal at line 361, a function literal at line 188, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · VisualDiffBody.VisualDiffBody (cognitive 81) · ×1
  • VisualDiffBody.VisualDiffBody (cognitive 81) packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffBody.js:23 — VisualDiffBody.VisualDiffBody has cognitive complexity 81 (threshold 15). Drivers by points: boolean chains 44, if/else 23 (24 pts), ternaries 10 (13 pts) (nesting depth added 4). Most of this is not in the body itself: 13 of the 81 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 177, renderGraphqlBody, renderBodyType, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · walkSelectionSet (cognitive 81) · ×1
  • walkSelectionSet (cognitive 81) packages/bruno-app/src/utils/graphql/queryBuilder.js:609 — walkSelectionSet has cognitive complexity 81 (threshold 15). Drivers by points: if/else 18 (52 pts), boolean chains 15, ternaries 3 (9 pts), loops 2 (5 pts) (nesting depth added 43). Of this number, 80 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · serializeSnapshot (cognitive 81) · ×1
  • serializeSnapshot (cognitive 81) packages/bruno-app/src/providers/ReduxStore/middlewares/snapshot/serializeSnapshot.js:71 — serializeSnapshot has cognitive complexity 81 (threshold 15). Drivers by points: boolean chains 47, if/else 12 (16 pts), ternaries 11 (14 pts), other 3, error handling 1 (nesting depth added 7). Of this number, 17 points are the body's own statements and 64 belong to 18 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.EditableTable (cognitive 80) · ×1
  • index.EditableTable (cognitive 80) packages/bruno-app/src/components/EditableTable/index.js:86 — index.EditableTable has cognitive complexity 80 (threshold 15). Drivers by points: boolean chains 32, if/else 21 (27 pts), ternaries 18 (20 pts), loops 1 (nesting depth added 8). Most of this is not in the body itself: 11 of the 80 points are its own statements and the rest belongs to 21 function literals inside it that branch (lines 492, 254, 370, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · proxy-util.setupProxyAgents (cognitive 80) · ×1
  • proxy-util.setupProxyAgents (cognitive 80) packages/bruno-cli/src/utils/proxy-util.js:75 — proxy-util.setupProxyAgents has cognitive complexity 80 (threshold 15). Drivers by points: if/else 21 (46 pts), ternaries 4 (14 pts), error handling 4 (13 pts), boolean chains 7 (nesting depth added 44). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · runRequestEvent (cognitive 79) · ×1
  • runRequestEvent (cognitive 79) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3443 — runRequestEvent has cognitive complexity 79 (threshold 15). Drivers by points: if/else 20 (68 pts), boolean chains 6, loops 1 (5 pts) (nesting depth added 52). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · (anonymous) (cognitive 79) · ×1
  • (anonymous) (cognitive 79) packages/bruno-app/src/components/CodeMirrorSearch/index.js:11 — (anonymous) has cognitive complexity 79 (threshold 15). Drivers by points: if/else 38 (41 pts), boolean chains 26, ternaries 10 (11 pts), error handling 1 (nesting depth added 4). Most of this is not in the body itself: 12 of the 79 points are its own statements and the rest belongs to 34 function items inside it that branch (a function literal at line 41, (anonymous)::onKeyDown, a function literal at line 152, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · (anonymous) (cognitive 78) · ×1
  • (anonymous) (cognitive 78) packages/bruno-app/public/static/diff2Html.js:1301 — (anonymous) has cognitive complexity 78 (threshold 15). Drivers by points: boolean chains 35, loops 8 (15 pts), ternaries 11 (15 pts), if/else 11 (13 pts) (nesting depth added 13). None of this is in the body itself: all 78 points belong to 25 function items inside it that branch ((anonymous)::ep, (anonymous)::d, a function literal at line 1362, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.MockServerDashboard (cognitive 77) · ×1
  • index.MockServerDashboard (cognitive 77) packages/bruno-app/src/components/MockServer/MockServerDashboard/index.js:43 — index.MockServerDashboard has cognitive complexity 77 (threshold 15). Drivers by points: ternaries 14 (28 pts), boolean chains 27, if/else 13 (14 pts), error handling 7, match/switch 1 (nesting depth added 15). Of this number, 43 points are the body's own statements and 34 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.QueryUrl (cognitive 77) · ×1
  • index.QueryUrl (cognitive 77) packages/bruno-app/src/components/RequestPane/QueryUrl/index.js:31 — index.QueryUrl has cognitive complexity 77 (threshold 15). Drivers by points: if/else 37 (47 pts), boolean chains 17, ternaries 7 (8 pts), error handling 3 (5 pts) (nesting depth added 13). Most of this is not in the body itself: 10 of the 77 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 178, a function literal at line 98, handleGenerateCode, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.MockResponse (cognitive 76) · ×1
  • index.MockResponse (cognitive 76) packages/bruno-app/src/components/MockServer/MockResponse/index.js:34 — index.MockResponse has cognitive complexity 76 (threshold 15). Drivers by points: if/else 26 (35 pts), boolean chains 28, error handling 6, ternaries 6, loops 1 (nesting depth added 9). Most of this is not in the body itself: 11 of the 76 points are its own statements and the rest belongs to 18 function items inside it that branch (handleMouseMove, handleTry, handleOpenAsRequest, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · http-https-agents.getCertsAndProxyConfig (cognitive 76) · ×1
  • http-https-agents.getCertsAndProxyConfig (cognitive 76) packages/bruno-requests/src/utils/http-https-agents.ts:244 — http-https-agents.getCertsAndProxyConfig has cognitive complexity 76 (threshold 15). Drivers by points: if/else 20 (51 pts), boolean chains 12, error handling 2 (10 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · index.RunnerResults (cognitive 75) · ×1
  • index.RunnerResults (cognitive 75) packages/bruno-app/src/components/RunnerResults/index.jsx:72 — index.RunnerResults has cognitive complexity 75 (threshold 15). Drivers by points: ternaries 30 (45 pts), boolean chains 16, if/else 13 (14 pts) (nesting depth added 16). Of this number, 25 points are the body's own statements and 50 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · (anonymous) (cognitive 73) · ×1
  • (anonymous) (cognitive 73) packages/bruno-app/public/static/diff2Html.js:2945 — (anonymous) has cognitive complexity 73 (threshold 15). Drivers by points: boolean chains 31, ternaries 23 (31 pts), if/else 7, loops 3 (4 pts) (nesting depth added 9). Most of this is not in the body itself: 8 of the 73 points are its own statements and the rest belongs to 25 function items inside it that branch (applyLineGroupping, processChangedLines, generateSingleHtml, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.CodeMirrorSearch (cognitive 72) · ×1
  • index.CodeMirrorSearch (cognitive 72) packages/bruno-app/src/components/CodeMirrorSearch/index.js:11 — index.CodeMirrorSearch has cognitive complexity 72 (threshold 15). Drivers by points: if/else 33 (35 pts), boolean chains 24, ternaries 10 (12 pts), error handling 1 (nesting depth added 4). Most of this is not in the body itself: 15 of the 72 points are its own statements and the rest belongs to 17 function items inside it that branch (a function literal at line 41, a function literal at line 178, a function literal at line 152, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CompatEndpointCard.CompatEndpointCard (cognitive 72) · ×1
  • CompatEndpointCard.CompatEndpointCard (cognitive 72) packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:22 — CompatEndpointCard.CompatEndpointCard has cognitive complexity 72 (threshold 15). Drivers by points: boolean chains 29, ternaries 17 (27 pts), if/else 11 (12 pts), error handling 4 (nesting depth added 11). Of this number, 44 points are the body's own statements and 28 belong to 10 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · openapi-sync.compareRequestFields (cognitive 71) · ×1
  • openapi-sync.compareRequestFields (cognitive 71) packages/bruno-electron/src/ipc/openapi-sync.js:935 — openapi-sync.compareRequestFields has cognitive complexity 71 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 23, ternaries 3 (7 pts), error handling 1 (2 pts) (nesting depth added 25). Of this number, 68 points are the body's own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.Select (cognitive 70) · ×1
  • index.Select (cognitive 70) packages/bruno-app/src/ui/Select/index.js:63 — index.Select has cognitive complexity 70 (threshold 15). Drivers by points: if/else 30 (39 pts), ternaries 16 (17 pts), boolean chains 14 (nesting depth added 10). Most of this is not in the body itself: 13 of the 70 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 173, a function literal at line 159, a function literal at line 211, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · transformSwaggerRequestItem (cognitive 70) · ×1
  • transformSwaggerRequestItem (cognitive 70) packages/bruno-converters/src/openapi/swagger2-to-bruno.js:146 — transformSwaggerRequestItem has cognitive complexity 70 (threshold 15). Drivers by points: boolean chains 32, if/else 18 (24 pts), ternaries 6 (14 pts) (nesting depth added 14). Of this number, 27 points are the body's own statements and 43 belong to 10 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GrpcQueryUrl (cognitive 69) · ×1
  • GrpcQueryUrl (cognitive 69) packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js:33 — GrpcQueryUrl has cognitive complexity 69 (threshold 15). Drivers by points: if/else 32 (40 pts), boolean chains 18, ternaries 6, error handling 4 (5 pts) (nesting depth added 9). Most of this is not in the body itself: 15 of the 69 points are its own statements and the rest belongs to 31 function items inside it that branch (handleReflection, handleProtoFileLoad, handleGrpcurl, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.MockResponsesList (cognitive 68) · ×1
  • index.MockResponsesList (cognitive 68) packages/bruno-app/src/components/MockServer/MockResponse/MockResponsesList/index.js:34 — index.MockResponsesList has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 18 (24 pts), boolean chains 21, if/else 11 (16 pts), error handling 6, loops 1 (nesting depth added 11). Of this number, 28 points are the body's own statements and 40 belong to 19 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HotkeysProvider (cognitive 68) · ×1
  • HotkeysProvider (cognitive 68) packages/bruno-app/src/providers/Hotkeys/index.js:22 — HotkeysProvider has cognitive complexity 68 (threshold 15). Drivers by points: if/else 34 (46 pts), boolean chains 11, ternaries 3 (6 pts), error handling 1 (3 pts), loops 2 (nesting depth added 17). Most of this is not in the body itself: 3 of the 68 points are its own statements and the rest belongs to 95 function items inside it that branch (a function literal at line 289, a function literal at line 211, a function literal at line 71, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ProxySettings (cognitive 67) · ×1
  • index.ProxySettings (cognitive 67) packages/bruno-app/src/components/Preferences/ProxySettings/index.js:14 — index.ProxySettings has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 19 (34 pts), boolean chains 22, if/else 7 (10 pts), error handling 1 (nesting depth added 18). Of this number, 51 points are the body's own statements and 16 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · (anonymous) (cognitive 67) · ×1
  • (anonymous) (cognitive 67) packages/bruno-app/public/static/diff2Html.js:2464 — (anonymous) has cognitive complexity 67 (threshold 15). Drivers by points: boolean chains 32, ternaries 15 (23 pts), if/else 8, loops 3 (4 pts) (nesting depth added 9). Most of this is not in the body itself: 8 of the 67 points are its own statements and the rest belongs to 23 function items inside it that branch (applyLineGroupping, processChangedLines, a function literal at line 2495, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · parseCollection.parseCollection (cognitive 66) · ×1
  • parseCollection.parseCollection (cognitive 66) packages/bruno-filestore/src/formats/yml/parseCollection.ts:18 — parseCollection.parseCollection has cognitive complexity 66 (threshold 15). Drivers by points: if/else 24 (41 pts), boolean chains 24, error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · onMouseHover (cognitive 66) · ×1
  • onMouseHover (cognitive 66) packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:975 — onMouseHover has cognitive complexity 66 (threshold 15). Drivers by points: if/else 15 (50 pts), loops 3 (9 pts), boolean chains 7 (nesting depth added 41). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · registerGrpcEventHandlers (cognitive 66) · ×1
  • registerGrpcEventHandlers (cognitive 66) REDACTED:143 — registerGrpcEventHandlers has cognitive complexity 66 (threshold 15). Drivers by points: if/else 19 (28 pts), ternaries 7 (17 pts), error handling 13, boolean chains 7, loops 1 (nesting depth added 19). None of this is in the body itself: all 66 points belong to 12 function items inside it that branch (a function literal at line 534, a function literal at line 163, a function literal at line 337, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · prepareRequest (cognitive 65) · ×1
  • prepareRequest (cognitive 65) packages/bruno-electron/src/ipc/network/prepare-request.js:380 — prepareRequest has cognitive complexity 65 (threshold 15). Drivers by points: if/else 29 (47 pts), boolean chains 8, error handling 2 (6 pts), other 2, ternaries 2 (nesting depth added 22). Of this number, 61 points are the body's own statements and 4 belong to 7 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · stringifyHttpRequest.stringifyHttpRequest (cognitive 64) · ×1
  • stringifyHttpRequest.stringifyHttpRequest (cognitive 64) packages/bruno-filestore/src/formats/yml/items/stringifyHttpRequest.ts:25 — stringifyHttpRequest.stringifyHttpRequest has cognitive complexity 64 (threshold 15). Drivers by points: if/else 33 (51 pts), ternaries 4 (7 pts), boolean chains 5, error handling 1 (nesting depth added 21). Of this number, 28 points are the body's own statements and 36 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.NewRequest (cognitive 63) · ×1
  • index.NewRequest (cognitive 63) packages/bruno-app/src/components/Sidebar/NewRequest/index.js:27 — index.NewRequest has cognitive complexity 63 (threshold 15). Drivers by points: ternaries 18 (30 pts), if/else 17 (19 pts), boolean chains 14 (nesting depth added 14). Of this number, 19 points are the body's own statements and 44 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · runFolderEvent (cognitive 62) · ×1
  • runFolderEvent (cognitive 62) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3554 — runFolderEvent has cognitive complexity 62 (threshold 15). Drivers by points: if/else 24 (56 pts), boolean chains 6 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · addTab (cognitive 62) · ×1
  • addTab (cognitive 62) packages/bruno-app/src/providers/ReduxStore/slices/tabs.js:72 — addTab has cognitive complexity 62 (threshold 15). Drivers by points: ternaries 24 (36 pts), if/else 11 (15 pts), boolean chains 11 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.MigrateCollectionToYmlModal (cognitive 61) · ×1
  • index.MigrateCollectionToYmlModal (cognitive 61) packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:105 — index.MigrateCollectionToYmlModal has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 15 (25 pts), if/else 14 (15 pts), boolean chains 14, error handling 3 (4 pts), match/switch 2, loops 1 (nesting depth added 12). Of this number, 32 points are the body's own statements and 29 belong to 10 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · yml-migration.stripBruExtInRunRequest (cognitive 61) · ×1
  • yml-migration.stripBruExtInRunRequest (cognitive 61) packages/bruno-electron/src/ipc/yml-migration.js:188 — yml-migration.stripBruExtInRunRequest has cognitive complexity 61 (threshold 15). Drivers by points: if/else 20 (47 pts), boolean chains 7, ternaries 2 (6 pts), loops 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · importPostmanV2Collection (cognitive 61) · ×1
  • importPostmanV2Collection (cognitive 61) packages/bruno-converters/src/postman/postman-to-bruno.js:1102 — importPostmanV2Collection has cognitive complexity 61 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 5 (17 pts), boolean chains 9, error handling 2 (4 pts) (nesting depth added 33). Most of this is not in the body itself: 12 of the 61 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 1169, applyScriptsToItems). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · AI (cognitive 61) · ×1
  • AI (cognitive 61) packages/bruno-app/src/components/Preferences/AI/index.js:60 — AI has cognitive complexity 61 (threshold 15). Drivers by points: boolean chains 30, if/else 11 (14 pts), ternaries 9, error handling 6, loops 1 (2 pts) (nesting depth added 4). Of this number, 19 points are the body's own statements and 42 belong to 65 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.OverviewSection (cognitive 60) · ×1
  • index.OverviewSection (cognitive 60) packages/bruno-app/src/components/OpenAPISyncTab/OverviewSection/index.js:43 — index.OverviewSection has cognitive complexity 60 (threshold 15). Drivers by points: boolean chains 35, ternaries 17 (18 pts), if/else 7 (nesting depth added 1). Of this number, 38 points are the body's own statements and 22 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · CloneGitRepository (cognitive 60) · ×1
  • CloneGitRepository (cognitive 60) packages/bruno-app/src/components/Sidebar/CloneGitRespository/index.js:31 — CloneGitRepository has cognitive complexity 60 (threshold 15). Drivers by points: boolean chains 31, ternaries 14 (15 pts), if/else 8 (9 pts), error handling 3, loops 1, match/switch 1 (nesting depth added 2). Of this number, 23 points are the body's own statements and 37 belong to 53 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · collectionChangeFileEvent (cognitive 59) · ×1
  • collectionChangeFileEvent (cognitive 59) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3234 — collectionChangeFileEvent has cognitive complexity 59 (threshold 15). Drivers by points: if/else 16 (43 pts), ternaries 4 (11 pts), boolean chains 5 (nesting depth added 34). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · ModifyCookieModal (cognitive 59) · ×1
  • ModifyCookieModal (cognitive 59) packages/bruno-app/src/components/Cookies/ModifyCookieModal/index.js:20 — ModifyCookieModal has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 19, if/else 14 (17 pts), ternaries 12 (16 pts), error handling 4 (7 pts) (nesting depth added 10). Of this number, 17 points are the body's own statements and 42 belong to 21 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · index.CollectionRow (cognitive 58) · ×1
  • index.CollectionRow (cognitive 58) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:63 — index.CollectionRow has cognitive complexity 58 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 21, ternaries 10, loops 1 (2 pts) (nesting depth added 7). Of this number, 31 points are the body's own statements and 27 belong to 7 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · getOAuth2TokenUsingAuthorizationCode (cognitive 58) · ×1
  • getOAuth2TokenUsingAuthorizationCode (cognitive 58) packages/bruno-electron/src/utils/oauth2.js:139 — getOAuth2TokenUsingAuthorizationCode has cognitive complexity 58 (threshold 15). Drivers by points: if/else 26 (43 pts), boolean chains 7, error handling 2 (6 pts), other 1, ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.DotEnvFileEditor (cognitive 57) · ×1
  • index.DotEnvFileEditor (cognitive 57) packages/bruno-app/src/components/Environments/DotEnvFileEditor/index.js:16 — index.DotEnvFileEditor has cognitive complexity 57 (threshold 15). Drivers by points: if/else 26 (30 pts), boolean chains 24, ternaries 3 (nesting depth added 4). Most of this is not in the body itself: 6 of the 57 points are its own statements and the rest belongs to 21 function literals inside it that branch (lines 60, 133, 90, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · actions.handleMultipleCollectionItemsDrop.<returned closure> (cognitive 56) · ×1
  • actions.handleMultipleCollectionItemsDrop.<returned closure> (cognitive 56) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1128 — actions.handleMultipleCollectionItemsDrop.<returned closure> has cognitive complexity 56 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 13, loops 3 (4 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 14). Most of this is not in the body itself: 4 of the 56 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 1159, a function literal at line 1166, getDirectoryItems, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · handleMultipleCollectionItemsDrop (cognitive 56) · ×1
  • handleMultipleCollectionItemsDrop (cognitive 56) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1127 — handleMultipleCollectionItemsDrop has cognitive complexity 56 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 13, loops 3 (4 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 14). None of this is in the body itself: all 56 points belong to 14 function items inside it that branch (a function literal at line 1159, (anonymous)::(anonymous)::handleMoveToNewLocation, a function literal at line 1128, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · componentDidMount (cognitive 56) · ×1
  • componentDidMount (cognitive 56) packages/bruno-app/src/components/CodeEditor/index.js:177 — componentDidMount has cognitive complexity 56 (threshold 15). Drivers by points: if/else 22 (35 pts), boolean chains 11, error handling 3 (5 pts), ternaries 4 (5 pts) (nesting depth added 16). Of this number, 21 points are the body's own statements and 35 belong to 14 function items inside it that branch. This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · getOAuth2TokenUsingPasswordCredentials (cognitive 55) · ×1
  • getOAuth2TokenUsingPasswordCredentials (cognitive 55) packages/bruno-electron/src/utils/oauth2.js:506 — getOAuth2TokenUsingPasswordCredentials has cognitive complexity 55 (threshold 15). Drivers by points: if/else 24 (41 pts), boolean chains 7, error handling 2 (6 pts), other 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PostmanPackageReport (cognitive 55) · ×1
  • PostmanPackageReport (cognitive 55) packages/bruno-app/src/components/Sidebar/PostmanPackageReport/index.js:69 — PostmanPackageReport has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 29, ternaries 13 (14 pts), if/else 7, error handling 3, loops 2 (nesting depth added 1). Of this number, 41 points are the body's own statements and 14 belong to 11 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · queryBuilder.collectVariablesFromSelections (cognitive 54) · ×1
  • queryBuilder.collectVariablesFromSelections (cognitive 54) packages/bruno-app/src/utils/graphql/queryBuilder.js:176 — queryBuilder.collectVariablesFromSelections has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (34 pts), loops 5 (16 pts), boolean chains 4 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.deserializeTab (cognitive 54) · ×1
  • index.deserializeTab (cognitive 54) packages/bruno-app/src/utils/snapshot/index.js:662 — index.deserializeTab has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 28, if/else 15 (18 pts), ternaries 4 (8 pts) (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · axios-instance.makeAxiosInstance (cognitive 54) · ×1
  • axios-instance.makeAxiosInstance (cognitive 54) packages/bruno-cli/src/utils/axios-instance.js:86 — axios-instance.makeAxiosInstance has cognitive complexity 54 (threshold 15). Drivers by points: if/else 17 (49 pts), boolean chains 5 (nesting depth added 32). None of this is in the body itself: all 54 points belong to 4 function literals inside it that branch (lines 151, 113, 206, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · auth.toOpenCollectionOAuth2 (cognitive 54) · ×1
  • auth.toOpenCollectionOAuth2 (cognitive 54) packages/bruno-converters/src/opencollection/common/auth.ts:316 — auth.toOpenCollectionOAuth2 has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 36, ternaries 8 (16 pts), if/else 1, match/switch 1 (nesting depth added 8). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · switchWorkspace (cognitive 54) · ×1
  • switchWorkspace (cognitive 54) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:625 — switchWorkspace has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 23, if/else 14 (19 pts), error handling 4 (6 pts), ternaries 5 (6 pts) (nesting depth added 8). None of this is in the body itself: all 54 points belong to 19 function literals inside it that branch (lines 626, 687, 716, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · registerChatIpc (cognitive 54) · ×1
  • registerChatIpc (cognitive 54) packages/bruno-electron/src/ipc/ai/chat.js:103 — registerChatIpc has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 23, error handling 2, match/switch 1 (2 pts), loops 1, ternaries 1 (nesting depth added 5). None of this is in the body itself: all 54 points belong to 13 function items inside it that branch (a function literal at line 112, (anonymous)::execute, (anonymous)::execute, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.TerminalTab (cognitive 53) · ×1
  • index.TerminalTab (cognitive 53) packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:216 — index.TerminalTab has cognitive complexity 53 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 8, ternaries 6 (8 pts), error handling 4 (6 pts) (nesting depth added 12). Most of this is not in the body itself: 5 of the 53 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 381, a function literal at line 233, a function literal at line 259, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · runner-summary.getRunnerSummary (cognitive 53) · ×1
  • runner-summary.getRunnerSummary (cognitive 53) packages/bruno-common/src/runner/runner-summary.ts:4 — runner-summary.getRunnerSummary has cognitive complexity 53 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 10, loops 5 (9 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · getOAuth2TokenUsingClientCredentials (cognitive 53) · ×1
  • getOAuth2TokenUsingClientCredentials (cognitive 53) packages/bruno-electron/src/utils/oauth2.js:378 — getOAuth2TokenUsingClientCredentials has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (39 pts), boolean chains 7, error handling 2 (6 pts), other 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProviderCard.ProviderCard (cognitive 52) · ×1
  • ProviderCard.ProviderCard (cognitive 52) packages/bruno-app/src/components/Preferences/AI/ProviderCard.js:36 — ProviderCard.ProviderCard has cognitive complexity 52 (threshold 15). Drivers by points: boolean chains 20, ternaries 13 (18 pts), if/else 9 (10 pts), error handling 4 (nesting depth added 6). Of this number, 27 points are the body's own statements and 25 belong to 8 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · (anonymous) (cognitive 52) · ×1
  • (anonymous) (cognitive 52) packages/bruno-app/public/static/diff2Html.js:2748 — (anonymous) has cognitive complexity 52 (threshold 15). Drivers by points: boolean chains 23, ternaries 17 (18 pts), if/else 5, loops 3 (4 pts), match/switch 2 (nesting depth added 2). Most of this is not in the body itself: 8 of the 52 points are its own statements and the rest belongs to 22 function items inside it that branch (m, a function literal at line 2779, getFileIcon, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · prepareWsRequest (cognitive 52) · ×1
  • prepareWsRequest (cognitive 52) packages/bruno-electron/src/ipc/network/ws-event-handlers.js:26 — prepareWsRequest has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (22 pts), error handling 4 (14 pts), boolean chains 9, ternaries 3, match/switch 1 (2 pts), other 2 (nesting depth added 19). Of this number, 48 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · migrateCollectionOnDisk (cognitive 51) · ×1
  • migrateCollectionOnDisk (cognitive 51) packages/bruno-electron/src/ipc/yml-migration.js:367 — migrateCollectionOnDisk has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (25 pts), error handling 7 (14 pts), loops 6 (8 pts), boolean chains 3, ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SyncReviewPage (cognitive 51) · ×1
  • SyncReviewPage (cognitive 51) packages/bruno-app/src/components/OpenAPISyncTab/SyncReviewPage/index.js:78 — SyncReviewPage has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 28, ternaries 15 (16 pts), if/else 6, loops 1 (nesting depth added 1). Of this number, 34 points are the body's own statements and 17 belong to 44 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · useIpcEvents (cognitive 51) · ×1
  • useIpcEvents (cognitive 51) packages/bruno-app/src/providers/App/useIpcEvents.js:56 — useIpcEvents has cognitive complexity 51 (threshold 15). Drivers by points: if/else 27 (32 pts), boolean chains 9, error handling 3 (9 pts), ternaries 1 (nesting depth added 11). None of this is in the body itself: all 51 points belong to 60 function items inside it that branch ((anonymous)::_collectionTreeUpdated, a function literal at line 275, a function literal at line 166, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ResponseExampleMultipartFormParams (cognitive 50) · ×1
  • index.ResponseExampleMultipartFormParams (cognitive 50) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js:22 — index.ResponseExampleMultipartFormParams has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (23 pts), boolean chains 17, ternaries 8 (9 pts), loops 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 50 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 57, a function literal at line 118, a function literal at line 138, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.TimelineItem (cognitive 50) · ×1
  • index.TimelineItem (cognitive 50) packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/index.js:27 — index.TimelineItem has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 19, if/else 16 (19 pts), ternaries 11 (12 pts) (nesting depth added 4). Of this number, 26 points are the body's own statements and 24 belong to 6 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · (anonymous) (cognitive 50) · ×1
  • (anonymous) (cognitive 50) packages/bruno-electron/src/index.js:209 — (anonymous) has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (23 pts), error handling 11 (16 pts), boolean chains 7, ternaries 4 (nesting depth added 7). Most of this is not in the body itself: 11 of the 50 points are its own statements and the rest belongs to 49 function items inside it that branch (a function literal at line 469, a function literal at line 287, guardNavigation, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ResponsiveTabs (cognitive 49) · ×1
  • index.ResponsiveTabs (cognitive 49) packages/bruno-app/src/ui/ResponsiveTabs/index.js:19 — index.ResponsiveTabs has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 8, ternaries 5 (7 pts), loops 3 (5 pts) (nesting depth added 15). Most of this is not in the body itself: 2 of the 49 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 47, 175, 125, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · PreferencesStore.getPreferences (cognitive 49) · ×1
  • PreferencesStore.getPreferences (cognitive 49) packages/bruno-electron/src/store/preferences.js:249 — PreferencesStore.getPreferences has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 12 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · global-environments.registerGlobalEnvironmentsIpc (cognitive 49) · ×1
  • global-environments.registerGlobalEnvironmentsIpc (cognitive 49) packages/bruno-electron/src/ipc/global-environments.js:52 — global-environments.registerGlobalEnvironmentsIpc has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (23 pts), boolean chains 13, error handling 12, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 49 points belong to 12 function literals inside it that branch (lines 151, 120, 53, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · oauth1-request-authorization.applyOAuth1ToRequest (cognitive 49) · ×1
  • oauth1-request-authorization.applyOAuth1ToRequest (cognitive 49) packages/bruno-requests/src/auth/oauth1-request-authorization.ts:340 — oauth1-request-authorization.applyOAuth1ToRequest has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 14, ternaries 5 (10 pts), match/switch 1 (nesting depth added 14). Of this number, 45 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.ResponsePane (cognitive 48) · ×1
  • index.ResponsePane (cognitive 48) packages/bruno-app/src/components/ResponsePane/index.js:34 — index.ResponsePane has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 12 (18 pts), boolean chains 14, if/else 13 (14 pts), error handling 1, match/switch 1 (nesting depth added 7). Of this number, 33 points are the body's own statements and 15 belong to 5 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · CertFileInput (cognitive 48) · ×1
  • CertFileInput (cognitive 48) packages/bruno-app/src/components/Preferences/ClientCertSettings/index.js:28 — CertFileInput has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 18, boolean chains 10, error handling 1, loops 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 48 points are its own statements and the rest belongs to 39 function items inside it that branch (ClientCertSettings, a function literal at line 249, ClientCertSettings::handleTypeChange, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · actions.switchWorkspace.<returned closure> (cognitive 47) · ×1
  • actions.switchWorkspace.<returned closure> (cognitive 47) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:626 — actions.switchWorkspace.<returned closure> has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 23, if/else 14 (19 pts), ternaries 4, error handling 1 (nesting depth added 5). Of this number, 39 points are the body's own statements and 8 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · updateVariableInScope (cognitive 47) · ×1
  • updateVariableInScope (cognitive 47) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:2456 — updateVariableInScope has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (21 pts), error handling 7 (13 pts), boolean chains 6, ternaries 3 (6 pts), match/switch 1 (nesting depth added 16). None of this is in the body itself: all 47 points belong to 6 function literals inside it that branch (lines 2457, 2496, 2604, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · formatRequestContext (cognitive 47) · ×1
  • formatRequestContext (cognitive 47) packages/bruno-electron/src/ipc/ai/context.js:220 — formatRequestContext has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (15 pts), ternaries 4 (8 pts), match/switch 1 (2 pts), other 2 (nesting depth added 9). Of this number, 35 points are the body's own statements and 12 belong to 13 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GraphQLRequestPane (cognitive 47) · ×1
  • GraphQLRequestPane (cognitive 47) packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js:50 — GraphQLRequestPane has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 13 (16 pts), if/else 10 (14 pts), boolean chains 12, error handling 1 (2 pts), match/switch 2, other 1 (nesting depth added 8). Of this number, 18 points are the body's own statements and 29 belong to 29 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · EditorLinkPopover (cognitive 47) · ×1
  • EditorLinkPopover (cognitive 47) packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkPopover/index.js:33 — EditorLinkPopover has cognitive complexity 47 (threshold 15). Drivers by points: if/else 29 (32 pts), boolean chains 12, error handling 1, other 1, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 47 points are its own statements and the rest belongs to 28 function items inside it that branch (a function literal at line 311, (anonymous)::handleClick, a function literal at line 148, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.WSBody (cognitive 46) · ×1
  • index.WSBody (cognitive 46) packages/bruno-app/src/components/RequestPane/WsBody/index.js:15 — index.WSBody has cognitive complexity 46 (threshold 15). Drivers by points: if/else 30 (32 pts), boolean chains 8, ternaries 4 (6 pts) (nesting depth added 4). Most of this is not in the body itself: 3 of the 46 points are its own statements and the rest belongs to 18 function literals inside it that branch (lines 99, 138, 182, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.ThemeDropdown (cognitive 46) · ×1
  • index.ThemeDropdown (cognitive 46) packages/bruno-app/src/components/StatusBar/ThemeDropdown/index.js:17 — index.ThemeDropdown has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 13, ternaries 9, match/switch 1 (nesting depth added 3). Most of this is not in the body itself: 6 of the 46 points are its own statements and the rest belongs to 16 function items inside it that branch (renderThemeList, a function literal at line 158, a function literal at line 169, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · body.fromOpenCollectionBody (cognitive 46) · ×1
  • body.fromOpenCollectionBody (cognitive 46) packages/bruno-converters/src/opencollection/common/body.ts:19 — body.fromOpenCollectionBody has cognitive complexity 46 (threshold 15). Drivers by points: boolean chains 20, if/else 6 (12 pts), ternaries 4 (12 pts), match/switch 1 (2 pts) (nesting depth added 15). Most of this is not in the body itself: 14 of the 46 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 112, 93, 133). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · cert-utils.getCertsAndProxyConfig (cognitive 46) · ×1
  • cert-utils.getCertsAndProxyConfig (cognitive 46) packages/bruno-electron/src/ipc/network/cert-utils.js:13 — cert-utils.getCertsAndProxyConfig has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 10, error handling 2 (10 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · grpc-event-handlers.resolveGrpcProxyConfig (cognitive 46) · ×1
  • grpc-event-handlers.resolveGrpcProxyConfig (cognitive 46) REDACTED:37 — grpc-event-handlers.resolveGrpcProxyConfig has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 7, error handling 2 (4 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CertFileInput (cognitive 46) · ×1
  • CertFileInput (cognitive 46) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:32 — CertFileInput has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 17, boolean chains 10, loops 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 46 points are its own statements and the rest belongs to 38 function items inside it that branch (ClientCertSettings, a function literal at line 268, ClientCertSettings::handleTypeChange, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CollectionsList (cognitive 46) · ×1
  • CollectionsList (cognitive 46) packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/CollectionsList/index.js:31 — CollectionsList has cognitive complexity 46 (threshold 15). Drivers by points: boolean chains 25, if/else 15 (16 pts), error handling 3 (4 pts), ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 7 of the 46 points are its own statements and the rest belongs to 38 function items inside it that branch (a function literal at line 341, handleOpenCollectionClick, handleRemoveCollection, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · auth.toBrunoAuth (cognitive 45) · ×1
  • auth.toBrunoAuth (cognitive 45) packages/bruno-filestore/src/formats/yml/common/auth.ts:217 — auth.toBrunoAuth has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 41, if/else 3, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · (anonymous) (cognitive 45) · ×1
  • (anonymous) (cognitive 45) packages/bruno-app/public/static/diff2Html.js:1700 — (anonymous) has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 38, ternaries 3, if/else 2, loops 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 8 of the 45 points are its own statements and the rest belongs to 28 function items inside it that branch (a function literal at line 1731, code, a function literal at line 1705, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.detectContentTypeFromBuffer (cognitive 44) · ×1
  • index.detectContentTypeFromBuffer (cognitive 44) packages/bruno-app/src/utils/response/index.js:214 — index.detectContentTypeFromBuffer has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 24, if/else 20. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · auth.fromOpenCollectionAuth (cognitive 44) · ×1
  • auth.fromOpenCollectionAuth (cognitive 44) packages/bruno-converters/src/opencollection/common/auth.ts:171 — auth.fromOpenCollectionAuth has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 34, ternaries 3 (7 pts), if/else 2, match/switch 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · registerNetworkIpc · ×1
  • registerNetworkIpc::runRequest (cognitive 44) REDACTED:763 — registerNetworkIpc::runRequest has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 11, ternaries 6 (8 pts), error handling 3, other 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · renderMessage (cognitive 44) · ×1
  • renderMessage (cognitive 44) packages/bruno-app/src/components/AiChatSidebar/index.js:718 — renderMessage has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 26, ternaries 13, if/else 5. Of this number, 32 points are the body's own statements and 12 belong to 17 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · componentDidUpdate (cognitive 44) · ×1
  • componentDidUpdate (cognitive 44) packages/bruno-app/src/components/CodeEditor/index.js:494 — componentDidUpdate has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 9, ternaries 2 (5 pts), other 3 (nesting depth added 13). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · index.AwsV4Auth (cognitive 43) · ×1
  • index.AwsV4Auth (cognitive 43) packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js:11 — index.AwsV4Auth has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 42, ternaries 1. Most of this is not in the body itself: 7 of the 43 points are its own statements and the rest belongs to 6 function items inside it that branch (handleAccessKeyIdChange, handleSecretAccessKeyChange, handleSessionTokenChange, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.MultipartFormParams (cognitive 43) · ×1
  • index.MultipartFormParams (cognitive 43) packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js:29 — index.MultipartFormParams has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 15, ternaries 9 (10 pts), loops 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 43 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 68, a function literal at line 123, getFileList, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · common.transformItemsInCollection (cognitive 43) · ×1
  • common.transformItemsInCollection (cognitive 43) packages/bruno-app/src/utils/importers/common.js:102 — common.transformItemsInCollection has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (39 pts), boolean chains 4 (nesting depth added 22). Most of this is not in the body itself: 2 of the 43 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 143, 104, 135, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.registerMockServerIpc (cognitive 43) · ×1
  • index.registerMockServerIpc (cognitive 43) packages/bruno-electron/src/ipc/mock-server/index.js:45 — index.registerMockServerIpc has cognitive complexity 43 (threshold 15). Drivers by points: error handling 18 (19 pts), boolean chains 16, if/else 6 (7 pts), loops 1 (nesting depth added 2). None of this is in the body itself: all 43 points belong to 19 function literals inside it that branch (lines 134, 156, 48, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ExportEnvironmentModal (cognitive 43) · ×1
  • ExportEnvironmentModal (cognitive 43) packages/bruno-app/src/components/Environments/Common/ExportEnvironmentModal/index.js:13 — ExportEnvironmentModal has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 17, boolean chains 14, if/else 10, error handling 2. Of this number, 16 points are the body's own statements and 27 belong to 31 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.DiffView (cognitive 42) · ×1
  • index.DiffView (cognitive 42) packages/bruno-app/src/components/AiChatSidebar/DiffView/index.js:9 — index.DiffView has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 19, if/else 12 (13 pts), loops 3 (5 pts), ternaries 4 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 7 of the 42 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 44, a function literal at line 136, renderLine, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ResponseExample (cognitive 42) · ×1
  • index.ResponseExample (cognitive 42) packages/bruno-app/src/components/ResponseExample/index.js:18 — index.ResponseExample has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 12, ternaries 4, error handling 1 (nesting depth added 8). Most of this is not in the body itself: 5 of the 42 points are its own statements and the rest belongs to 9 function items inside it that branch (handleMouseMove, a function literal at line 167, handleMouseUp, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.QueryResult (cognitive 42) · ×1
  • index.QueryResult (cognitive 42) packages/bruno-app/src/components/ResponsePane/QueryResult/index.js:92 — index.QueryResult has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 11, ternaries 4 (7 pts) (nesting depth added 12). Most of this is not in the body itself: 11 of the 42 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 147, a function literal at line 112, a function literal at line 132, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.authToHeaders (cognitive 42) · ×1
  • index.authToHeaders (cognitive 42) REDACTED:361 — index.authToHeaders has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 4 (10 pts), boolean chains 8, error handling 1 (3 pts), match/switch 1 (nesting depth added 19). Of this number, 38 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · context.formatResponseShape (cognitive 42) · ×1
  • context.formatResponseShape (cognitive 42) packages/bruno-electron/src/ipc/ai/context.js:120 — context.formatResponseShape has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 4 (16 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · tree-builder.buildTree (cognitive 42) · ×1
  • tree-builder.buildTree (cognitive 42) packages/bruno-electron/src/services/mount/tree-builder.js:158 — tree-builder.buildTree has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 8, loops 4 (nesting depth added 15). Of this number, 40 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.ClientCertSettings (cognitive 41) · ×1
  • index.ClientCertSettings (cognitive 41) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:73 — index.ClientCertSettings has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 10 (14 pts), boolean chains 9 (nesting depth added 7). Most of this is not in the body itself: 6 of the 41 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 268, handleTypeChange, resetFileInputFields, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.AwsV4Auth (cognitive 41) · ×1
  • index.AwsV4Auth (cognitive 41) packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js:11 — index.AwsV4Auth has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 41. Most of this is not in the body itself: 6 of the 41 points are its own statements and the rest belongs to 6 function items inside it that branch (handleSecretAccessKeyChange, handleSessionTokenChange, handleServiceChange, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · auth.toOpenCollectionAuth (cognitive 41) · ×1
  • auth.toOpenCollectionAuth (cognitive 41) packages/bruno-converters/src/opencollection/common/auth.ts:430 — auth.toOpenCollectionAuth has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 34, ternaries 2 (4 pts), if/else 2, match/switch 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · oauth2.getOAuth2TokenUsingImplicitGrant (cognitive 41) · ×1
  • oauth2.getOAuth2TokenUsingImplicitGrant (cognitive 41) packages/bruno-electron/src/utils/oauth2.js:766 — oauth2.getOAuth2TokenUsingImplicitGrant has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 7, error handling 2 (3 pts), ternaries 3 (nesting depth added 12). Of this number, 34 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · git.getGitGraph (cognitive 41) · ×1
  • git.getGitGraph (cognitive 41) packages/bruno-electron/src/utils/git.js:1703 — git.getGitGraph has cognitive complexity 41 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 4 (9 pts), loops 3 (6 pts), boolean chains 4, error handling 2 (4 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · getParameterEntries (cognitive 41) · ×1
  • getParameterEntries (cognitive 41) packages/bruno-converters/src/openapi/openapi-to-bruno.js:160 — getParameterEntries has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 18, if/else 14 (17 pts), ternaries 3 (5 pts), other 1 (nesting depth added 5). Of this number, 33 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ImportCollectionLocation (cognitive 41) · ×1
  • ImportCollectionLocation (cognitive 41) packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js:108 — ImportCollectionLocation has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 19, if/else 10 (14 pts), ternaries 5 (6 pts), error handling 1, loops 1 (nesting depth added 5). Of this number, 18 points are the body's own statements and 23 belong to 17 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.ClientCertSettings (cognitive 40) · ×1
  • index.ClientCertSettings (cognitive 40) packages/bruno-app/src/components/Preferences/ClientCertSettings/index.js:69 — index.ClientCertSettings has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 9 (13 pts), boolean chains 9 (nesting depth added 7). Most of this is not in the body itself: 5 of the 40 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 249, handleTypeChange, resetFileInputFields, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · schema-graph.collectWsdlSchemas (cognitive 40) · ×1
  • schema-graph.collectWsdlSchemas (cognitive 40) packages/bruno-converters/src/wsdl/schema-graph.js:79 — schema-graph.collectWsdlSchemas has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (21 pts), boolean chains 9, error handling 2 (6 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · getVariableScope (cognitive 40) · ×1
  • getVariableScope (cognitive 40) packages/bruno-app/src/utils/collections/index.js:1930 — getVariableScope has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 7, ternaries 6, other 3, loops 1 (nesting depth added 8). Of this number, 36 points are the body's own statements and 4 belong to 5 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · codemirror.defineCodeMirrorBrunoVariablesMode (cognitive 39) · ×1
  • codemirror.defineCodeMirrorBrunoVariablesMode (cognitive 39) packages/bruno-app/src/utils/common/codemirror.js:23 — codemirror.defineCodeMirrorBrunoVariablesMode has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 3 (11 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 18). None of this is in the body itself: all 39 points belong to 3 function literals inside it that branch (lines 27, 56, 24). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · timeline-agent.createTimelineAgentClass (cognitive 39) · ×1
  • timeline-agent.createTimelineAgentClass (cognitive 39) packages/bruno-requests/src/utils/timeline-agent.ts:56 — timeline-agent.createTimelineAgentClass has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 14, ternaries 3 (5 pts), error handling 1 (nesting depth added 8). Of this number, 18 points are the body's own statements and 21 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · componentDidUpdate (cognitive 39) · ×1
  • componentDidUpdate (cognitive 39) packages/bruno-app/src/components/MultiLineEditor/index.js:282 — componentDidUpdate has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 14, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.ProxySettings (cognitive 38) · ×1
  • index.ProxySettings (cognitive 38) packages/bruno-app/src/components/CollectionSettings/ProxySettings/index.js:14 — index.ProxySettings has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 17, if/else 15, ternaries 5 (6 pts) (nesting depth added 1). Of this number, 16 points are the body's own statements and 22 belong to 11 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.OpenCollectionModal (cognitive 38) · ×1
  • index.OpenCollectionModal (cognitive 38) packages/bruno-app/src/components/Sidebar/OpenCollection/index.js:18 — index.OpenCollectionModal has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (15 pts), ternaries 7 (12 pts), boolean chains 7, error handling 3 (4 pts) (nesting depth added 7). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 42, notifyOpenResult, handleConfirm, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.serializeTab (cognitive 38) · ×1
  • index.serializeTab (cognitive 38) packages/bruno-app/src/utils/snapshot/index.js:451 — index.serializeTab has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 14 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.MatchTracePanel (cognitive 37) · ×1
  • index.MatchTracePanel (cognitive 37) packages/bruno-app/src/components/MockServer/MockServerDashboard/RequestLog/index.js:79 — index.MatchTracePanel has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 17 (30 pts), boolean chains 7 (nesting depth added 13). Most of this is not in the body itself: 13 of the 37 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 121, 140). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.GrpcResponsePane (cognitive 37) · ×1
  • index.GrpcResponsePane (cognitive 37) packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:26 — index.GrpcResponsePane has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 17 (24 pts), boolean chains 7, if/else 5, match/switch 1 (nesting depth added 7). Of this number, 35 points are the body's own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · datatype.parseValueByDataType (cognitive 37) · ×1
  • datatype.parseValueByDataType (cognitive 37) packages/bruno-common/src/utils/datatype.ts:24 — datatype.parseValueByDataType has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 5, ternaries 2 (4 pts), error handling 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · parseHttpRequest.parseHttpRequest (cognitive 37) · ×1
  • parseHttpRequest.parseHttpRequest (cognitive 37) packages/bruno-filestore/src/formats/yml/items/parseHttpRequest.ts:18 — parseHttpRequest.parseHttpRequest has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 16, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SaveTransientRequest (cognitive 37) · ×1
  • SaveTransientRequest (cognitive 37) packages/bruno-app/src/components/SaveTransientRequest/index.js:28 — SaveTransientRequest has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 46, if/else 29 (30 pts), ternaries 22 (23 pts), error handling 5 (6 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · migrateFromPreferences (cognitive 37) · ×1
  • migrateFromPreferences (cognitive 37) packages/bruno-electron/src/store/default-workspace.js:292 — migrateFromPreferences has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 9, ternaries 2 (5 pts), error handling 2 (4 pts), loops 1 (2 pts) (nesting depth added 14). Of this number, 26 points are the body's own statements and 11 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · send-request-transformer.transformBody (cognitive 36) · ×1
  • send-request-transformer.transformBody (cognitive 36) packages/bruno-converters/src/utils/send-request-transformer.js:92 — send-request-transformer.transformBody has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (28 pts), boolean chains 8 (nesting depth added 18). Most of this is not in the body itself: 1 of the 36 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 95, 116, 131, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · processAuth (cognitive 36) · ×1
  • processAuth (cognitive 36) packages/bruno-converters/src/postman/postman-to-bruno.js:270 — processAuth has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 8 (12 pts), boolean chains 6, match/switch 2 (3 pts), other 1 (nesting depth added 12). Of this number, 33 points are the body's own statements and 3 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.DocsEditor (cognitive 35) · ×1
  • index.DocsEditor (cognitive 35) packages/bruno-app/src/components/Documentation/DocsEditor/index.js:17 — index.DocsEditor has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 19, if/else 14 (15 pts), ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 14 of the 35 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 105, a function literal at line 60, a function literal at line 97, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ExpandableEndpointRow.ExpandableEndpointRow (cognitive 35) · ×1
  • ExpandableEndpointRow.ExpandableEndpointRow (cognitive 35) packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/ExpandableEndpointRow.js:18 — ExpandableEndpointRow.ExpandableEndpointRow has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 19, if/else 12 (13 pts), ternaries 2, error handling 1 (nesting depth added 1). Of this number, 16 points are the body's own statements and 19 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.VariablesEditor (cognitive 35) · ×1
  • index.VariablesEditor (cognitive 35) packages/bruno-app/src/components/VariablesEditor/index.js:19 — index.VariablesEditor has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 11, if/else 10 (nesting depth added 4). Most of this is not in the body itself: 15 of the 35 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 143, 114, 50, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · actions.updateVariableInScope.<returned closure> (cognitive 35) · ×1
  • actions.updateVariableInScope.<returned closure> (cognitive 35) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:2456 — actions.updateVariableInScope.<returned closure> has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 6, ternaries 3 (6 pts), error handling 1, match/switch 1 (nesting depth added 10). None of this is in the body itself: all 35 points belong to 4 function literals inside it that branch (lines 2457, 2496, 2604, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · openapi-to-bruno.buildCollectionAuth (cognitive 35) · ×1
  • openapi-to-bruno.buildCollectionAuth (cognitive 35) packages/bruno-converters/src/openapi/openapi-to-bruno.js:973 — openapi-to-bruno.buildCollectionAuth has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 5 (13 pts), boolean chains 12, if/else 9 (10 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · collection.mergeScripts (cognitive 35) · ×1
  • collection.mergeScripts (cognitive 35) REDACTED:296 — collection.mergeScripts has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 11, ternaries 3 (4 pts), loops 2 (nesting depth added 9). Of this number, 33 points are the body's own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BulkImportCollectionLocation · ×1
  • BulkImportCollectionLocation::onSubmit (cognitive 35) REDACTED:318 — BulkImportCollectionLocation::onSubmit has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 5, error handling 2 (5 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · hydrateSnapshotLookups (cognitive 35) · ×1
  • hydrateSnapshotLookups (cognitive 35) packages/bruno-app/src/utils/snapshot/index.js:180 — hydrateSnapshotLookups has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 12, ternaries 2 (4 pts) (nesting depth added 10). Most of this is not in the body itself: 4 of the 35 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 192, 253, 274, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CreateMockServerModal · ×1
  • CreateMockServerModal::onSubmit (cognitive 35) packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:298 — CreateMockServerModal::onSubmit has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 9, error handling 4 (7 pts), ternaries 6 (7 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · mergeSchemas (cognitive 35) · ×1
  • mergeSchemas (cognitive 35) packages/bruno-converters/src/openapi/schema-composition.js:214 — mergeSchemas has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 5 (10 pts), boolean chains 9 (nesting depth added 7). Of this number, 33 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.CollectionStatusSection (cognitive 34) · ×1
  • index.CollectionStatusSection (cognitive 34) packages/bruno-app/src/components/OpenAPISyncTab/CollectionStatusSection/index.js:20 — index.CollectionStatusSection has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 19, ternaries 5 (14 pts), if/else 1 (nesting depth added 9). Of this number, 33 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.RunConfigurationPanel (cognitive 34) · ×1
  • index.RunConfigurationPanel (cognitive 34) packages/bruno-app/src/components/RunnerResults/RunConfigurationPanel/index.jsx:175 — index.RunConfigurationPanel has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 6, ternaries 4 (5 pts), error handling 4 (nesting depth added 3). Most of this is not in the body itself: 4 of the 34 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 272, 218, 336, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.EnvironmentDetails (cognitive 34) · ×1
  • index.EnvironmentDetails (cognitive 34) packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/index.js:24 — index.EnvironmentDetails has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 12, ternaries 7 (8 pts) (nesting depth added 2). Most of this is not in the body itself: 13 of the 34 points are its own statements and the rest belongs to 9 function items inside it that branch (validateEnvironmentName, handleNameBlur, a function literal at line 39, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.app.on("ready") (cognitive 34) · ×1
  • index.app.on("ready") (cognitive 34) packages/bruno-electron/src/index.js:209 — index.app.on("ready") has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 7, error handling 4 (5 pts) (nesting depth added 2). Most of this is not in the body itself: 4 of the 34 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 469, a function literal at line 287, handleBoundsChange, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · utils.parseValueByDataType (cognitive 34) · ×1
  • utils.parseValueByDataType (cognitive 34) REDACTED:3 — utils.parseValueByDataType has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 5, ternaries 2 (4 pts), error handling 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · newHttpRequest (cognitive 34) · ×1
  • newHttpRequest (cognitive 34) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1389 — newHttpRequest has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 5 (10 pts), error handling 3 (7 pts), boolean chains 6, if/else 5 (6 pts), other 5 (nesting depth added 10). None of this is in the body itself: all 34 points belong to 8 function literals inside it that branch (lines 1408, 1470, 1496, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · parseComplexTypeContent (cognitive 34) · ×1
  • parseComplexTypeContent (cognitive 34) packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:305 — parseComplexTypeContent has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (10 pts), loops 2 (6 pts), ternaries 2 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · parseWSDLCollection (cognitive 34) · ×1
  • parseWSDLCollection (cognitive 34) packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:1195 — parseWSDLCollection has cognitive complexity 34 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 3 (8 pts), ternaries 2 (7 pts), boolean chains 4 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.EnvironmentDetails (cognitive 33) · ×1
  • index.EnvironmentDetails (cognitive 33) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js:20 — index.EnvironmentDetails has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 11, ternaries 7 (8 pts) (nesting depth added 2). Most of this is not in the body itself: 12 of the 33 points are its own statements and the rest belongs to 9 function items inside it that branch (validateEnvironmentName, handleNameBlur, a function literal at line 35, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ProtoFileDropdown (cognitive 33) · ×1
  • index.ProtoFileDropdown (cognitive 33) packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/ProtoFileDropdown/index.js:15 — index.ProtoFileDropdown has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (18 pts), ternaries 7 (8 pts), boolean chains 7 (nesting depth added 6). Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to 5 function items inside it that branch (handleSelectProtoFile, handleBrowseImportPath, handleToggleImportPath, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.SingleWSMessage (cognitive 33) · ×1
  • index.SingleWSMessage (cognitive 33) packages/bruno-app/src/components/RequestPane/WsBody/SingleWSMessage/index.js:33 — index.SingleWSMessage has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 18, if/else 8, ternaries 6, error handling 1. Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to 10 function items inside it that branch (handleNameKeyDown, a function literal at line 164, a function literal at line 199, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.buildAiVariablesPayload (cognitive 33) · ×1
  • index.buildAiVariablesPayload (cognitive 33) packages/bruno-app/src/utils/ai/index.js:147 — index.buildAiVariablesPayload has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (9 pts), loops 5 (7 pts), ternaries 3 (6 pts) (nesting depth added 8). Of this number, 31 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · auth.getAuthHeaders (cognitive 33) · ×1
  • auth.getAuthHeaders (cognitive 33) packages/bruno-app/src/utils/codegenerator/auth.js:6 — auth.getAuthHeaders has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (17 pts), ternaries 2 (7 pts), boolean chains 4, error handling 1 (4 pts), match/switch 1 (nesting depth added 19). Of this number, 32 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · body.toOpenCollectionBody (cognitive 33) · ×1
  • body.toOpenCollectionBody (cognitive 33) packages/bruno-converters/src/opencollection/common/body.ts:154 — body.toOpenCollectionBody has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (13 pts), match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 10 of the 33 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 194, 173, 220). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · bruno-to-opencollection.brunoToOpenCollection (cognitive 33) · ×1
  • bruno-to-opencollection.brunoToOpenCollection (cognitive 33) packages/bruno-converters/src/opencollection/bruno-to-opencollection.ts:97 — bruno-to-opencollection.brunoToOpenCollection has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 4, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · git.getStashFiles (cognitive 33) · ×1
  • git.getStashFiles (cognitive 33) packages/bruno-electron/src/utils/git.js:1393 — git.getStashFiles has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 4 (22 pts), if/else 3 (5 pts), loops 2 (4 pts), error handling 2 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · parseWebsocketRequest.parseWebsocketRequest (cognitive 33) · ×1
  • parseWebsocketRequest.parseWebsocketRequest (cognitive 33) packages/bruno-filestore/src/formats/yml/items/parseWebsocketRequest.ts:10 — parseWebsocketRequest.parseWebsocketRequest has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WindowsProxyResolver.getInternetOptions (cognitive 33) · ×1
  • WindowsProxyResolver.getInternetOptions (cognitive 33) packages/bruno-requests/src/network/system-proxy/utils/windows.ts:41 — WindowsProxyResolver.getInternetOptions has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 7, ternaries 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · mergeHeaders (cognitive 33) · ×1
  • mergeHeaders (cognitive 33) REDACTED:26 — mergeHeaders has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (26 pts), ternaries 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 14). Most of this is not in the body itself: 10 of the 33 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 32, 48, 61, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · OAuth1 (cognitive 33) · ×1
  • OAuth1 (cognitive 33) packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js:31 — OAuth1 has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 20, ternaries 7, if/else 5, error handling 1. Of this number, 25 points are the body's own statements and 8 belong to 27 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · XmlNode (cognitive 33) · ×1
  • XmlNode (cognitive 33) packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/XmlPreview/index.js:139 — XmlNode has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 15, if/else 11 (13 pts), ternaries 3 (5 pts) (nesting depth added 4). Of this number, 25 points are the body's own statements and 8 belong to 8 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · index.CollectionProperties (cognitive 32) · ×1
  • index.CollectionProperties (cognitive 32) packages/bruno-app/src/components/Cookies/index.js:64 — index.CollectionProperties has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 9 (18 pts), boolean chains 11, if/else 3 (nesting depth added 9). Most of this is not in the body itself: 12 of the 32 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 236, handleAddCookie, a function literal at line 95, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · VisualDiffAuth.VisualDiffAuth (cognitive 32) · ×1
  • VisualDiffAuth.VisualDiffAuth (cognitive 32) packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffAuth.js:54 — VisualDiffAuth.VisualDiffAuth has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 13, ternaries 7 (10 pts), if/else 9 (nesting depth added 3). Most of this is not in the body itself: 13 of the 32 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 68, 89, 159, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.DeleteCollectionItems (cognitive 32) · ×1
  • index.DeleteCollectionItems (cognitive 32) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/DeleteCollectionItems/index.js:10 — index.DeleteCollectionItems has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 8 (11 pts), error handling 2 (4 pts), loops 3, boolean chains 2 (nesting depth added 7). Of this number, 16 points are the body's own statements and 16 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · index.ExampleItem (cognitive 32) · ×1
  • index.ExampleItem (cognitive 32) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/ExampleItem/index.js:27 — index.ExampleItem has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 21, ternaries 6, if/else 5. Of this number, 19 points are the body's own statements and 13 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.ImportWorkspace (cognitive 32) · ×1
  • index.ImportWorkspace (cognitive 32) packages/bruno-app/src/components/WorkspaceSidebar/ImportWorkspace/index.js:15 — index.ImportWorkspace has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 10, ternaries 4 (5 pts), error handling 1 (nesting depth added 3). Most of this is not in the body itself: 8 of the 32 points are its own statements and the rest belongs to 8 function items inside it that branch (handleDrag, validateAndGetFilePath, handleDrop, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · stringifyFolder.stringifyFolder (cognitive 32) · ×1
  • stringifyFolder.stringifyFolder (cognitive 32) packages/bruno-filestore/src/formats/yml/stringifyFolder.ts:37 — stringifyFolder.stringifyFolder has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 2, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · assert-runtime.chai.use() · ×1
  • assert-runtime.chai.use()::parsePath (cognitive 32) REDACTED:104 — assert-runtime.chai.use()::parsePath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 4 (12 pts), boolean chains 6 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · oauth2-helper.getOAuth2Token (cognitive 32) · ×1
  • oauth2-helper.getOAuth2Token (cognitive 32) REDACTED:319 — oauth2-helper.getOAuth2Token has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (22 pts), ternaries 3 (8 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · buildXmlBody (cognitive 32) · ×1
  • buildXmlBody (cognitive 32) packages/bruno-converters/src/openapi/openapi-common.js:326 — buildXmlBody has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 15, ternaries 8, if/else 7, other 2. None of this is in the body itself: all 32 points belong to 14 function items inside it that branch (a function literal at line 326, a function literal at line 346, (anonymous)::buildElement, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.AIAssist (cognitive 31) · ×1
  • index.AIAssist (cognitive 31) packages/bruno-app/src/components/AIAssist/index.js:65 — index.AIAssist has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 11, ternaries 4 (6 pts), error handling 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 31 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 106, 188, 75, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.CollectionApp (cognitive 31) · ×1
  • index.CollectionApp (cognitive 31) packages/bruno-app/src/components/CollectionApp/index.js:172 — index.CollectionApp has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 14, ternaries 6 (8 pts), if/else 5 (6 pts), error handling 1 (2 pts), match/switch 1 (nesting depth added 4). Most of this is not in the body itself: 8 of the 31 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 225, 289, 205, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.CreateMockResponseModal (cognitive 31) · ×1
  • index.CreateMockResponseModal (cognitive 31) packages/bruno-app/src/components/MockServer/MockResponse/CreateMockResponseModal/index.js:20 — index.CreateMockResponseModal has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 10, if/else 8 (9 pts), error handling 1 (nesting depth added 4). Of this number, 17 points are the body's own statements and 14 belong to 6 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · index.MethodDropdown (cognitive 31) · ×1
  • index.MethodDropdown (cognitive 31) packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/MethodDropdown/index.js:15 — index.MethodDropdown has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11, boolean chains 10, ternaries 7 (9 pts), match/switch 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 12 function items inside it that branch (handleKeyDown, a function literal at line 39, a function literal at line 76, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.SetAsVariablePopover (cognitive 31) · ×1
  • index.SetAsVariablePopover (cognitive 31) packages/bruno-app/src/components/SetAsVariablePopover/index.js:36 — index.SetAsVariablePopover has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 16 (18 pts), boolean chains 8, if/else 4 (5 pts) (nesting depth added 3). Of this number, 16 points are the body's own statements and 15 belong to 4 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · flattenSidebarTree.walkChildren (cognitive 31) · ×1
  • flattenSidebarTree.walkChildren (cognitive 31) packages/bruno-app/src/utils/collections/flattenSidebarTree.js:41 — flattenSidebarTree.walkChildren has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 16, if/else 6 (11 pts), loops 3 (4 pts) (nesting depth added 6). Of this number, 27 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.extractMockRoutePath (cognitive 31) · ×1
  • index.extractMockRoutePath (cognitive 31) packages/bruno-common/src/utils/url/index.ts:249 — index.extractMockRoutePath has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · auth.fromOpenCollectionOAuth2 (cognitive 31) · ×1
  • auth.fromOpenCollectionOAuth2 (cognitive 31) packages/bruno-converters/src/opencollection/common/auth.ts:17 — auth.fromOpenCollectionOAuth2 has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 50, if/else 4, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (auth.fromOpenCollectionOAuth2::buildOAuth2Config) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · grpc.toOpenCollectionGrpcItem (cognitive 31) · ×1
  • grpc.toOpenCollectionGrpcItem (cognitive 31) packages/bruno-converters/src/opencollection/items/grpc.ts:109 — grpc.toOpenCollectionGrpcItem has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 11 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · collectionAddFileEvent (cognitive 31) · ×1
  • collectionAddFileEvent (cognitive 31) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3079 — collectionAddFileEvent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 4, loops 1 (2 pts), ternaries 2 (nesting depth added 12). Of this number, 30 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AppTitleBar (cognitive 31) · ×1
  • AppTitleBar (cognitive 31) packages/bruno-app/src/components/AppTitleBar/index.js:42 — AppTitleBar has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 9, if/else 9, ternaries 9, error handling 4. Most of this is not in the body itself: 10 of the 31 points are its own statements and the rest belongs to 38 function items inside it that branch (a function literal at line 211, a function literal at line 78, handleOpenWorkspace, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ExampleTab (cognitive 30) · ×1
  • index.ExampleTab (cognitive 30) packages/bruno-app/src/components/RequestTabs/ExampleTab/index.js:14 — index.ExampleTab has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 8, ternaries 2 (3 pts) (nesting depth added 3). Most of this is not in the body itself: 10 of the 30 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 25, handleRightClick, a function literal at line 45, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.parseXMLString (cognitive 30) · ×1
  • index.parseXMLString (cognitive 30) packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/XmlPreview/index.js:339 — index.parseXMLString has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 6, loops 1 (2 pts), ternaries 2, error handling 1 (nesting depth added 8). Most of this is not in the body itself: 5 of the 30 points are its own statements and the rest belongs to 3 function items inside it that branch (xmlToObject, a function literal at line 386, a function literal at line 370). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · autocomplete.extractNextSegmentSuggestions (cognitive 30) · ×1
  • autocomplete.extractNextSegmentSuggestions (cognitive 30) packages/bruno-app/src/utils/codemirror/autocomplete.js:619 — autocomplete.extractNextSegmentSuggestions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 14). None of this is in the body itself: all 30 points belong to 2 function items inside it that branch (a function literal at line 634, markProcessEnvSegment). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · http.fromOpenCollectionHttpItem (cognitive 30) · ×1
  • http.fromOpenCollectionHttpItem (cognitive 30) packages/bruno-converters/src/opencollection/items/http.ts:52 — http.fromOpenCollectionHttpItem has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 26, if/else 3 (4 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · openapi-sync.mergeJsonValues (cognitive 30) · ×1
  • openapi-sync.mergeJsonValues (cognitive 30) packages/bruno-electron/src/ipc/openapi-sync.js:582 — openapi-sync.mergeJsonValues has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 3 (6 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · stringifyGraphQLRequest.stringifyGraphQLRequest (cognitive 30) · ×1
  • stringifyGraphQLRequest.stringifyGraphQLRequest (cognitive 30) packages/bruno-filestore/src/formats/yml/items/stringifyGraphQLRequest.ts:22 — stringifyGraphQLRequest.stringifyGraphQLRequest has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (25 pts), ternaries 3, boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LinuxProxyResolver.parseProxyFromContent (cognitive 30) · ×1
  • LinuxProxyResolver.parseProxyFromContent (cognitive 30) REDACTED:196 — LinuxProxyResolver.parseProxyFromContent has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (7 pts), boolean chains 5, ternaries 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · getParameterEntries (cognitive 30) · ×1
  • getParameterEntries (cognitive 30) packages/bruno-converters/src/openapi/swagger2-to-bruno.js:48 — getParameterEntries has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 15, if/else 6 (10 pts), ternaries 2 (5 pts) (nesting depth added 7). Of this number, 24 points are the body's own statements and 6 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · componentDidUpdate (cognitive 30) · ×1
  • componentDidUpdate (cognitive 30) packages/bruno-app/src/components/SingleLineEditor/index.js:184 — componentDidUpdate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 10, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.AdditionalParams (cognitive 29) · ×1
  • index.AdditionalParams (cognitive 29) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js:12 — index.AdditionalParams has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 15, if/else 9 (11 pts), ternaries 3 (nesting depth added 2). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 38, a function literal at line 192, handleDeleteAdditionalParam, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.SettingsAiAssist (cognitive 29) · ×1
  • index.SettingsAiAssist (cognitive 29) packages/bruno-app/src/components/SettingsAiAssist/index.js:35 — index.SettingsAiAssist has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 10 (16 pts), if/else 7 (8 pts), boolean chains 5 (nesting depth added 7). Most of this is not in the body itself: 3 of the 29 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 55, 45, 63, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.TagPicker (cognitive 29) · ×1
  • index.TagPicker (cognitive 29) packages/bruno-app/src/components/TagPicker/index.jsx:8 — index.TagPicker has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 9, ternaries 4 (5 pts) (nesting depth added 3). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to 7 function items inside it that branch (handleKeyDown, addTag, a function literal at line 30, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · collection.mergeScripts (cognitive 29) · ×1
  • collection.mergeScripts (cognitive 29) packages/bruno-cli/src/utils/collection.js:310 — collection.mergeScripts has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 12, loops 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · opencollection-to-bruno.fromOpenCollectionConfig (cognitive 29) · ×1
  • opencollection-to-bruno.fromOpenCollectionConfig (cognitive 29) packages/bruno-converters/src/opencollection/opencollection-to-bruno.ts:11 — opencollection-to-bruno.fromOpenCollectionConfig has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 14, if/else 11 (14 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · mock-example-generator.resolveOpenApiSchema (cognitive 29) · ×1
  • mock-example-generator.resolveOpenApiSchema (cognitive 29) packages/bruno-electron/src/app/mock-server/mock-example-generator.js:99 — mock-example-generator.resolveOpenApiSchema has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · mock-example-generator.generatePrimitiveExample (cognitive 29) · ×1
  • mock-example-generator.generatePrimitiveExample (cognitive 29) packages/bruno-electron/src/app/mock-server/mock-example-generator.js:151 — mock-example-generator.generatePrimitiveExample has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 4 (8 pts), boolean chains 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · authorize-user-in-window.authorizeUserInWindow (cognitive 29) · ×1
  • authorize-user-in-window.authorizeUserInWindow (cognitive 29) packages/bruno-electron/src/ipc/network/authorize-user-in-window.js:15 — authorize-user-in-window.authorizeUserInWindow has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (19 pts), error handling 4 (5 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). None of this is in the body itself: all 29 points belong to 10 function literals inside it that branch (lines 195, 88, 136, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · openapi-sync.findRequestFileOnDisk (cognitive 29) · ×1
  • openapi-sync.findRequestFileOnDisk (cognitive 29) packages/bruno-electron/src/ipc/openapi-sync.js:338 — openapi-sync.findRequestFileOnDisk has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 5, error handling 1 (3 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · error-formatter.findYmlScriptBlockStartLine (cognitive 29) · ×1
  • error-formatter.findYmlScriptBlockStartLine (cognitive 29) packages/bruno-js/src/utils/error-formatter.js:114 — error-formatter.findYmlScriptBlockStartLine has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (error-formatter.findYmlScriptBlockEndLine) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · error-formatter.findYmlScriptBlockEndLine (cognitive 29) · ×1
  • error-formatter.findYmlScriptBlockEndLine (cognitive 29) packages/bruno-js/src/utils/error-formatter.js:158 — error-formatter.findYmlScriptBlockEndLine has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (error-formatter.findYmlScriptBlockStartLine) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · error-formatter.formatErrorWithContext (cognitive 29) · ×1
  • error-formatter.formatErrorWithContext (cognitive 29) packages/bruno-js/src/utils/error-formatter.js:458 — error-formatter.formatErrorWithContext has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (7 pts), ternaries 5 (6 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · brunoToPostman · ×1
  • brunoToPostman::generateAuth (cognitive 29) packages/bruno-converters/src/postman/bruno-to-postman.js:389 — brunoToPostman::generateAuth has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 3 (6 pts), boolean chains 5, match/switch 1, other 1 (nesting depth added 11). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · CreateCollection (cognitive 29) · ×1
  • CreateCollection (cognitive 29) packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:22 — CreateCollection has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 12, ternaries 11, if/else 3, error handling 2, loops 1. Of this number, 21 points are the body's own statements and 8 belong to 20 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.AppPreviewKeepAlive (cognitive 28) · ×1
  • index.AppPreviewKeepAlive (cognitive 28) packages/bruno-app/src/components/AppPreviewKeepAlive/index.js:27 — index.AppPreviewKeepAlive has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, ternaries 3 (4 pts), loops 3 (nesting depth added 8). Most of this is not in the body itself: 5 of the 28 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 57, 97, 45). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · state-persistence.applyEditorState (cognitive 28) · ×1
  • state-persistence.applyEditorState (cognitive 28) packages/bruno-app/src/components/CodeEditor/state-persistence.js:95 — state-persistence.applyEditorState has cognitive complexity 28 (threshold 15). Drivers by points: error handling 5 (13 pts), if/else 7 (10 pts), boolean chains 5 (nesting depth added 11). Of this number, 25 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.FilePickerEditor (cognitive 28) · ×1
  • index.FilePickerEditor (cognitive 28) packages/bruno-app/src/components/FilePickerEditor/index.js:25 — index.FilePickerEditor has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13 (17 pts), boolean chains 7, if/else 3, match/switch 1 (nesting depth added 4). Of this number, 21 points are the body's own statements and 7 belong to 6 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · index.RequestLog (cognitive 28) · ×1
  • index.RequestLog (cognitive 28) packages/bruno-app/src/components/MockServer/MockServerDashboard/RequestLog/index.js:191 — index.RequestLog has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 9, if/else 7 (nesting depth added 1). Most of this is not in the body itself: 8 of the 28 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 209, handleRowClick, a function literal at line 297, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.OpenAPISyncTab (cognitive 28) · ×1
  • index.OpenAPISyncTab (cognitive 28) packages/bruno-app/src/components/OpenAPISyncTab/index.js:18 — index.OpenAPISyncTab has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 20, if/else 4, ternaries 4. Of this number, 21 points are the body's own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.QueryBuilder (cognitive 28) · ×1
  • index.QueryBuilder (cognitive 28) packages/bruno-app/src/components/RequestPane/QueryBuilder/index.js:10 — index.QueryBuilder has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, ternaries 4 (6 pts), loops 4 (5 pts) (nesting depth added 5). Most of this is not in the body itself: 6 of the 28 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 184, 61, 71, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.ResponseExampleResponseHeaders (cognitive 28) · ×1
  • index.ResponseExampleResponseHeaders (cognitive 28) packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleResponseHeaders/index.js:17 — index.ResponseExampleResponseHeaders has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 6 (7 pts), ternaries 5 (6 pts) (nesting depth added 2). Most of this is not in the body itself: 5 of the 28 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 40, a function literal at line 32, a function literal at line 36, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.interpolateUrlPathParams (cognitive 28) · ×1
  • index.interpolateUrlPathParams (cognitive 28) REDACTED:168 — index.interpolateUrlPathParams has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 5 (8 pts), boolean chains 6, error handling 1, loops 1 (nesting depth added 7). Most of this is not in the body itself: 12 of the 28 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 177, substituteValue, a function literal at line 181, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · TerminalManager.setupIpcHandlers (cognitive 28) · ×1
  • TerminalManager.setupIpcHandlers (cognitive 28) packages/bruno-electron/src/ipc/terminal.js:13 — TerminalManager.setupIpcHandlers has cognitive complexity 28 (threshold 15). Drivers by points: error handling 8 (11 pts), boolean chains 8, if/else 7 (8 pts), loops 1 (nesting depth added 4). None of this is in the body itself: all 28 points belong to 7 function literals inside it that branch (lines 109, 96, 15, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · stringifyGrpcRequest.stringifyGrpcRequest (cognitive 28) · ×1
  • stringifyGrpcRequest.stringifyGrpcRequest (cognitive 28) packages/bruno-filestore/src/formats/yml/items/stringifyGrpcRequest.ts:17 — stringifyGrpcRequest.stringifyGrpcRequest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 5, ternaries 3, error handling 1 (nesting depth added 3). Of this number, 20 points are the body's own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · stringifyWebsocketRequest.stringifyWebsocketRequest (cognitive 28) · ×1
  • stringifyWebsocketRequest.stringifyWebsocketRequest (cognitive 28) packages/bruno-filestore/src/formats/yml/items/stringifyWebsocketRequest.ts:16 — stringifyWebsocketRequest.stringifyWebsocketRequest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 11, ternaries 2, error handling 1 (nesting depth added 1). Of this number, 24 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TimelineAgent.createConnection (cognitive 28) · ×1
  • TimelineAgent.createConnection (cognitive 28) packages/bruno-requests/src/utils/timeline-agent.ts:113 — TimelineAgent.createConnection has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 9, error handling 1, ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 7 of the 28 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 167, 152, 160). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · WindowsProxyResolver.getSystemProxyEnvironment (cognitive 28) · ×1
  • WindowsProxyResolver.getSystemProxyEnvironment (cognitive 28) packages/bruno-requests/src/network/system-proxy/utils/windows.ts:115 — WindowsProxyResolver.getSystemProxyEnvironment has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 3 (6 pts), boolean chains 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (WindowsProxyResolver.getUserEnvironmentProxy) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · WindowsProxyResolver.getUserEnvironmentProxy (cognitive 28) · ×1
  • WindowsProxyResolver.getUserEnvironmentProxy (cognitive 28) packages/bruno-requests/src/network/system-proxy/utils/windows.ts:156 — WindowsProxyResolver.getUserEnvironmentProxy has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 3 (6 pts), boolean chains 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (WindowsProxyResolver.getSystemProxyEnvironment) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · grpcResponseReceived (cognitive 28) · ×1
  • grpcResponseReceived (cognitive 28) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:753 — grpcResponseReceived has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, if/else 7 (11 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · sendRequest (cognitive 28) · ×1
  • sendRequest (cognitive 28) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:588 — sendRequest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 4 (7 pts), ternaries 2 (5 pts), boolean chains 4, other 2 (nesting depth added 9). None of this is in the body itself: all 28 points belong to 8 function literals inside it that branch (lines 594, 680, 664, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · generateGrpcurlCommand (cognitive 28) · ×1
  • generateGrpcurlCommand (cognitive 28) packages/bruno-requests/src/grpc/grpc-client.js:1034 — generateGrpcurlCommand has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 4, ternaries 3 (4 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · constructor (cognitive 28) · ×1
  • constructor (cognitive 28) packages/bruno-js/src/bru.js:152 — constructor has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (7 pts), error handling 3 (6 pts), ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 9 of the 28 points are its own statements and the rest belongs to 9 function items inside it that branch (minifyJson, minifyXml, sendRequest, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · registerWsEventHandlers (cognitive 28) · ×1
  • registerWsEventHandlers (cognitive 28) packages/bruno-electron/src/ipc/network/ws-event-handlers.js:290 — registerWsEventHandlers has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 8 (9 pts), boolean chains 4, ternaries 2 (3 pts), other 1 (nesting depth added 4). None of this is in the body itself: all 28 points belong to 11 function items inside it that branch (a function literal at line 304, a function literal at line 402, a function literal at line 473, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.CollectionSettings (cognitive 27) · ×1
  • index.CollectionSettings (cognitive 27) packages/bruno-app/src/components/CollectionSettings/index.js:25 — index.CollectionSettings has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 18, ternaries 8, match/switch 1. Of this number, 26 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.useEnvironmentImport.commitEnvironments (cognitive 27) · ×1
  • index.useEnvironmentImport.commitEnvironments (cognitive 27) packages/bruno-app/src/components/Environments/Common/ImportEnvironmentModal/hooks/useEnvironmentImport/index.js:50 — index.useEnvironmentImport.commitEnvironments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 3 (6 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 10). Of this number, 25 points are the body's own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.Oauth2ActionButtons (cognitive 27) · ×1
  • index.Oauth2ActionButtons (cognitive 27) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Oauth2ActionButtons/index.js:14 — index.Oauth2ActionButtons has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, if/else 5 (6 pts), error handling 4 (5 pts), ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 6 of the 27 points are its own statements and the rest belongs to 6 function items inside it that branch (handleFetchOauth2Credentials, handleRefreshAccessToken, handleCancelAuthorization, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.getRequestFromCurlCommand (cognitive 27) · ×1
  • index.getRequestFromCurlCommand (cognitive 27) packages/bruno-app/src/utils/curl/index.js:6 — index.getRequestFromCurlCommand has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 9, error handling 2, ternaries 2 (nesting depth added 1). Of this number, 23 points are the body's own statements and 4 belong to 4 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · send-request-transformer.sendRequestTransformer (cognitive 27) · ×1
  • send-request-transformer.sendRequestTransformer (cognitive 27) packages/bruno-converters/src/utils/send-request-transformer.js:454 — send-request-transformer.sendRequestTransformer has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 4, ternaries 2 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · prepare-request.setAuthHeaders (cognitive 27) · ×1
  • prepare-request.setAuthHeaders (cognitive 27) packages/bruno-electron/src/ipc/network/prepare-request.js:13 — prepare-request.setAuthHeaders has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 4 (10 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · parseGrpcRequest.parseGrpcRequest (cognitive 27) · ×1
  • parseGrpcRequest.parseGrpcRequest (cognitive 27) packages/bruno-filestore/src/formats/yml/items/parseGrpcRequest.ts:37 — parseGrpcRequest.parseGrpcRequest has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 8, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · error-formatter.adjustLineNumber (cognitive 27) · ×1
  • error-formatter.adjustLineNumber (cognitive 27) packages/bruno-js/src/utils/error-formatter.js:203 — error-formatter.adjustLineNumber has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 3 (7 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · agent-cache.applySecureContext (cognitive 27) · ×1
  • agent-cache.applySecureContext (cognitive 27) packages/bruno-requests/src/utils/agent-cache.ts:106 — agent-cache.applySecureContext has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 1 (3 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · (anonymous) (cognitive 27) · ×1
  • (anonymous) (cognitive 27) packages/bruno-app/public/static/diff2Html.js:2253 — (anonymous) has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 16, ternaries 7, if/else 2, loops 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 10 of the 27 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 2284, a function literal at line 2258, html, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · formatErrorWithContextV2 (cognitive 27) · ×1
  • formatErrorWithContextV2 (cognitive 27) packages/bruno-js/src/utils/error-formatter.js:632 — formatErrorWithContextV2 has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 8 (10 pts), boolean chains 6, error handling 1 (nesting depth added 3). Of this number, 25 points are the body's own statements and 2 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · index.HttpRequestPane (cognitive 26) · ×1
  • index.HttpRequestPane (cognitive 26) packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js:53 — index.HttpRequestPane has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 17 (19 pts), boolean chains 5, if/else 1, match/switch 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 26 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 103, 63, 124, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.WSResponsePane (cognitive 26) · ×1
  • index.WSResponsePane (cognitive 26) packages/bruno-app/src/components/ResponsePane/WsResponsePane/index.js:23 — index.WSResponsePane has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 6, if/else 5, match/switch 1 (nesting depth added 4). Of this number, 22 points are the body's own statements and 4 belong to 3 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · index.ShareCollection (cognitive 26) · ×1
  • index.ShareCollection (cognitive 26) packages/bruno-app/src/components/ShareCollection/index.js:21 — index.ShareCollection has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8, boolean chains 7, ternaries 7, error handling 3, match/switch 1. Most of this is not in the body itself: 10 of the 26 points are its own statements and the rest belongs to 8 function items inside it that branch (handleProceed, a function literal at line 30, handleExportZip, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · openapi-to-bruno.parseOpenApiCollection (cognitive 26) · ×1
  • openapi-to-bruno.parseOpenApiCollection (cognitive 26) packages/bruno-converters/src/openapi/openapi-to-bruno.js:1069 — openapi-to-bruno.parseOpenApiCollection has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts), ternaries 5, loops 1 (2 pts), error handling 1 (nesting depth added 3). Most of this is not in the body itself: 11 of the 26 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 1100, 1157, 1143, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · folder.toOpenCollectionFolder (cognitive 26) · ×1
  • folder.toOpenCollectionFolder (cognitive 26) packages/bruno-converters/src/opencollection/folder.ts:79 — folder.toOpenCollectionFolder has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · git.getCollectionGitLogs (cognitive 26) · ×1
  • git.getCollectionGitLogs (cognitive 26) packages/bruno-electron/src/utils/git.js:454 — git.getCollectionGitLogs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · parseGraphQLRequest.parseGraphQLRequest (cognitive 26) · ×1
  • parseGraphQLRequest.parseGraphQLRequest (cognitive 26) packages/bruno-filestore/src/formats/yml/items/parseGraphQLRequest.ts:15 — parseGraphQLRequest.parseGraphQLRequest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 8, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · digestauth-helper.addDigestInterceptor (cognitive 26) · ×1
  • digestauth-helper.addDigestInterceptor (cognitive 26) packages/bruno-requests/src/auth/digestauth-helper.js:35 — digestauth-helper.addDigestInterceptor has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 9 (nesting depth added 6). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 46, 66). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · updateQueryParam (cognitive 26) · ×1
  • updateQueryParam (cognitive 26) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:1408 — updateQueryParam has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (22 pts), boolean chains 4 (nesting depth added 15). Of this number, 24 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · (anonymous) (cognitive 26) · ×1
  • (anonymous) (cognitive 26) packages/bruno-app/src/components/EditableTable/index.js:492 — (anonymous) has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 10, ternaries 4 (7 pts), if/else 5 (6 pts), other 3 (nesting depth added 4). Of this number, 16 points are the body's own statements and 10 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · transformBrunoTypes (cognitive 26) · ×1
  • transformBrunoTypes (cognitive 26) packages/bruno-app/src/components/Devtools/Console/index.js:61 — transformBrunoTypes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (5 pts), boolean chains 2, match/switch 1 (2 pts), other 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · utils.parseMessageSegments (cognitive 25) · ×1
  • utils.parseMessageSegments (cognitive 25) packages/bruno-app/src/components/AiChatSidebar/utils.js:17 — utils.parseMessageSegments has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (nesting depth added 13). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.Performance (cognitive 25) · ×1
  • index.Performance (cognitive 25) packages/bruno-app/src/components/Devtools/Performance/index.js:23 — index.Performance has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (10 pts), if/else 7, boolean chains 6, error handling 2 (nesting depth added 2). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 10 function items inside it that branch (renderProcessView, renderCumulativeView, a function literal at line 101, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.WSRequestPane (cognitive 25) · ×1
  • index.WSRequestPane (cognitive 25) packages/bruno-app/src/components/RequestPane/WSRequestPane/index.js:28 — index.WSRequestPane has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 6, error handling 2 (4 pts), boolean chains 3, match/switch 2 (nesting depth added 4). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 72, 122, 68, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.ConfirmCollectionCloseDrafts (cognitive 25) · ×1
  • index.ConfirmCollectionCloseDrafts (cognitive 25) packages/bruno-app/src/components/Sidebar/Collections/Collection/RemoveCollections/ConfirmCollectionCloseDrafts/index.js:22 — index.ConfirmCollectionCloseDrafts has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 11, if/else 8, error handling 2 (3 pts), ternaries 2, loops 1 (nesting depth added 1). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to 4 function items inside it that branch (handleRemoveCollections, handleSaveAll, a function literal at line 24, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.InlineCollectionCreator (cognitive 25) · ×1
  • index.InlineCollectionCreator (cognitive 25) packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js:14 — index.InlineCollectionCreator has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 4, ternaries 2 (3 pts), error handling 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 58, a function literal at line 33, a function literal at line 32, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · SaveRequestsModal.SaveRequestsModal · ×1
  • SaveRequestsModal.SaveRequestsModal::closeWithSave (cognitive 25) packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.js:189 — SaveRequestsModal.SaveRequestsModal::closeWithSave has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (17 pts), error handling 2 (3 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · curl-to-json.curlToJson (cognitive 25) · ×1
  • curl-to-json.curlToJson (cognitive 25) REDACTED:125 — curl-to-json.curlToJson has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 4). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · index.resolveResponseExampleTabState (cognitive 25) · ×1
  • index.resolveResponseExampleTabState (cognitive 25) packages/bruno-app/src/utils/snapshot/index.js:619 — index.resolveResponseExampleTabState has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 11, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · postman-to-bruno-translator.handleLegacyGlobalAPIs (cognitive 25) · ×1
  • postman-to-bruno-translator.handleLegacyGlobalAPIs (cognitive 25) packages/bruno-converters/src/utils/postman-to-bruno-translator.js:1195 — postman-to-bruno-translator.handleLegacyGlobalAPIs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 7 (nesting depth added 5). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1249, 1219, 1207, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · websocket.toOpenCollectionWebsocketItem (cognitive 25) · ×1
  • websocket.toOpenCollectionWebsocketItem (cognitive 25) packages/bruno-converters/src/opencollection/items/websocket.ts:95 — websocket.toOpenCollectionWebsocketItem has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 9 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · translate-postman-scripts.parentPort.on("message") (cognitive 25) · ×1
  • translate-postman-scripts.parentPort.on("message") (cognitive 25) packages/bruno-converters/src/workers/scripts/translate-postman-scripts.js:4 — translate-postman-scripts.parentPort.on("message") has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 4, error handling 1 (nesting depth added 11). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 21, 7, 14). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · collection-watcher.add (cognitive 25) · ×1
  • collection-watcher.add (cognitive 25) packages/bruno-electron/src/app/collection-watcher.js:223 — collection-watcher.add has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 5 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · openCollectionEvent (cognitive 25) · ×1
  • openCollectionEvent (cognitive 25) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3054 — openCollectionEvent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 4 (9 pts), boolean chains 4 (nesting depth added 10). None of this is in the body itself: all 25 points belong to 16 function literals inside it that branch (lines 3057, 3132, 3087, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · registerRendererEventHandlers · ×1
  • registerRendererEventHandlers::(anonymous)::parseCollectionItems (cognitive 25) packages/bruno-electron/src/ipc/collection.js:1609 — registerRendererEventHandlers::(anonymous)::parseCollectionItems has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (20 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · mergeFieldListPreserving (cognitive 25) · ×1
  • mergeFieldListPreserving (cognitive 25) packages/bruno-electron/src/ipc/openapi-sync.js:669 — mergeFieldListPreserving has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 18, if/else 5, ternaries 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 19 function items inside it that branch (a function literal at line 701, a function literal at line 688, a function literal at line 691, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · cloneResponseExample (cognitive 25) · ×1
  • cloneResponseExample (cognitive 25) packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:60 — cloneResponseExample has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · remapCollectionTabPaths (cognitive 25) · ×1
  • remapCollectionTabPaths (cognitive 25) packages/bruno-electron/src/services/snapshot/index.js:249 — remapCollectionTabPaths has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 7 (nesting depth added 4). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 5 function items inside it that branch (remapActiveTab, a function literal at line 303, a function literal at line 256, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.AiChatSidebar (cognitive 24) · ×1
  • index.AiChatSidebar (cognitive 24) packages/bruno-app/src/components/AiChatSidebar/index.js:191 — index.AiChatSidebar has cognitive complexity 24 (threshold 15). Drivers by points: if/else 72 (80 pts), boolean chains 69, ternaries 31 (42 pts), match/switch 4 (7 pts), error handling 6 (nesting depth added 22). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (index.AiChatSidebar::renderMessage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · index.SingleGrpcMessage (cognitive 24) · ×1
  • index.SingleGrpcMessage (cognitive 24) packages/bruno-app/src/components/RequestPane/GrpcBody/index.js:74 — index.SingleGrpcMessage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9, ternaries 3, error handling 2 (nesting depth added 2). Most of this is not in the body itself: 5 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (onRegenerateMessage, onSend, onEdit, …). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.WsQueryUrl (cognitive 24) · ×1
  • index.WsQueryUrl (cognitive 24) packages/bruno-app/src/components/RequestPane/WsQueryUrl/index.js:43 — index.WsQueryUrl has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 8, ternaries 4, error handling 1. Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (handleDisconnect, a function literal at line 115, a function literal at line 57, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ExportToPostman (cognitive 24) · ×1
  • index.ExportToPostman (cognitive 24) packages/bruno-app/src/components/Sidebar/Collections/Collection/ExportCollection/ExportToPostman/index.js:18 — index.ExportToPostman has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, ternaries 7, if/else 5 (6 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to 5 function items inside it that branch (handleExport, a function literal at line 38, a function literal at line 80, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · middleware.determineSaveHandler (cognitive 24) · ×1
  • middleware.determineSaveHandler (cognitive 24) packages/bruno-app/src/providers/ReduxStore/middlewares/autosave/middleware.js:194 — middleware.determineSaveHandler has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4 (nesting depth added 8). Of this number, 18 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · git.discardChanges (cognitive 24) · ×1
  • git.discardChanges (cognitive 24) packages/bruno-electron/src/utils/git.js:156 — git.discardChanges has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 2 (4 pts), boolean chains 2, error handling 2, loops 1 (2 pts) (nesting depth added 7). None of this is in the body itself: all 24 points belong to 4 function literals inside it that branch (lines 162, 178, 212, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · autocomplete-prompts.formatRequestContext (cognitive 24) · ×1
  • autocomplete-prompts.formatRequestContext (cognitive 24) packages/bruno-electron/src/ipc/ai/autocomplete-prompts.js:85 — autocomplete-prompts.formatRequestContext has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10, ternaries 1 (3 pts) (nesting depth added 4). Of this number, 23 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · parseFolder.parseFolder (cognitive 24) · ×1
  • parseFolder.parseFolder (cognitive 24) packages/bruno-filestore/src/formats/yml/parseFolder.ts:12 — parseFolder.parseFolder has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, ternaries 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.jsonToBru (cognitive 24) · ×1
  • index.jsonToBru (cognitive 24) packages/bruno-lang/v1/src/index.js:83 — index.jsonToBru has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 11, ternaries 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · node-vault.createVaultClient · ×1
  • node-vault.createVaultClient::request (cognitive 24) packages/bruno-requests/src/utils/node-vault.ts:155 — node-vault.createVaultClient::request has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, error handling 2 (3 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · agent-cache.getOrCreateAgentInternal (cognitive 24) · ×1
  • agent-cache.getOrCreateAgentInternal (cognitive 24) packages/bruno-requests/src/utils/agent-cache.ts:230 — agent-cache.getOrCreateAgentInternal has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · jsonToToml.jsonToToml (cognitive 24) · ×1
  • jsonToToml.jsonToToml (cognitive 24) packages/bruno-toml/src/jsonToToml.js:37 — jsonToToml.jsonToToml has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 10 (nesting depth added 4). Of this number, 21 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · change (cognitive 24) · ×1
  • change (cognitive 24) packages/bruno-electron/src/app/collection-watcher.js:469 — change has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 4 (8 pts), other 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · OAuth2AuthorizationCode (cognitive 24) · ×1
  • OAuth2AuthorizationCode (cognitive 24) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:17 — OAuth2AuthorizationCode has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 11, boolean chains 8, if/else 3, error handling 1, loops 1. Of this number, 18 points are the body's own statements and 6 belong to 24 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · createTerminalForSession (cognitive 24) · ×1
  • createTerminalForSession (cognitive 24) packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:63 — createTerminalForSession has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 2 (6 pts), boolean chains 5, ternaries 1 (2 pts), other 1 (nesting depth added 8). Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (onExit, onData, a function literal at line 79, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · CollectionsSection (cognitive 24) · ×1
  • CollectionsSection (cognitive 24) packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js:44 — CollectionsSection has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (6 pts), match/switch 3, error handling 2, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 41 function items inside it that branch (handleStartRequest, a function literal at line 205, handleDismissWelcomeModal, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · setupAiAutocomplete (cognitive 24) · ×1
  • setupAiAutocomplete (cognitive 24) packages/bruno-app/src/utils/codemirror/aiGhostText.js:319 — setupAiAutocomplete has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, boolean chains 10. Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (onKeyDown, onChange, onCursorActivity, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.AppView (cognitive 23) · ×1
  • index.AppView (cognitive 23) packages/bruno-app/src/components/AppView/index.js:148 — index.AppView has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, ternaries 5 (6 pts), if/else 3 (4 pts), error handling 1, match/switch 1 (nesting depth added 2). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 183, 241, 154, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.ProtobufSettings (cognitive 23) · ×1
  • index.ProtobufSettings (cognitive 23) packages/bruno-app/src/components/CollectionSettings/Protobuf/index.js:17 — index.ProtobufSettings has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, ternaries 3 (4 pts), loops 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (getProtoFile, a function literal at line 274, a function literal at line 165, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.EnvironmentListContent (cognitive 23) · ×1
  • index.EnvironmentListContent (cognitive 23) packages/bruno-app/src/components/Environments/EnvironmentSelector/EnvironmentListContent/index.js:7 — index.EnvironmentListContent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (8 pts), boolean chains 7 (nesting depth added 5). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 31, handleKeyDown, a function literal at line 56, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.MockServerItem (cognitive 23) · ×1
  • index.MockServerItem (cognitive 23) packages/bruno-app/src/components/MockServer/Sidebar/MockServers/index.js:41 — index.MockServerItem has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 7, if/else 5, error handling 2 (nesting depth added 3). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 6 function items inside it that branch (handleStart, a function literal at line 193, ensureCollectionMounted, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · EndpointVisualDiff.openAPISectionHasChanges (cognitive 23) · ×1
  • EndpointVisualDiff.openAPISectionHasChanges (cognitive 23) packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/EndpointVisualDiff.js:21 — EndpointVisualDiff.openAPISectionHasChanges has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 8 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.RequestTabMenu (cognitive 23) · ×1
  • index.RequestTabMenu (cognitive 23) packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:734 — index.RequestTabMenu has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, error handling 3 (4 pts), ternaries 2, loops 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 6 function items inside it that branch (handleCloseMultipleTabs, handleCloseTab, handleRevertChanges, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ResponseExampleFileBody (cognitive 23) · ×1
  • index.ResponseExampleFileBody (cognitive 23) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFileBody/index.js:17 — index.ResponseExampleFileBody has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts), ternaries 4 (nesting depth added 1). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 50, 32, 155, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.Collections (cognitive 23) · ×1
  • index.Collections (cognitive 23) packages/bruno-app/src/components/Sidebar/Collections/index.js:21 — index.Collections has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (7 pts), loops 1, ternaries 1 (nesting depth added 1). Of this number, 12 points are the body's own statements and 11 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.SetAsVariableProvider (cognitive 23) · ×1
  • index.SetAsVariableProvider (cognitive 23) packages/bruno-app/src/providers/SetAsVariable/index.js:27 — index.SetAsVariableProvider has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, boolean chains 7, ternaries 5. Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 100, 63, 47, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · editorToolbarConfig.buildToolbarActions (cognitive 23) · ×1
  • editorToolbarConfig.buildToolbarActions (cognitive 23) packages/bruno-app/src/ui/RichTextEditor/utils/editorToolbarConfig.js:27 — editorToolbarConfig.buildToolbarActions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 7). None of this is in the body itself: all 23 points belong to 9 function literals inside it that branch (lines 135, 141, 89, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.collectSiblingScripts (cognitive 23) · ×1
  • index.collectSiblingScripts (cognitive 23) packages/bruno-app/src/utils/ai/index.js:353 — index.collectSiblingScripts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.mergeHeaders (cognitive 23) · ×1
  • index.mergeHeaders (cognitive 23) packages/bruno-app/src/utils/collections/index.js:1429 — index.mergeHeaders has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 3 (6 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). Of this number, 14 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.interpolateRequest (cognitive 23) · ×1
  • index.interpolateRequest (cognitive 23) REDACTED:176 — index.interpolateRequest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, error handling 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.buildPostData (cognitive 23) · ×1
  • index.buildPostData (cognitive 23) REDACTED:537 — index.buildPostData has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, ternaries 4 (8 pts), error handling 1 (3 pts), if/else 2 (3 pts), match/switch 1 (nesting depth added 7). Of this number, 22 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WSDLParser.parseBindings (cognitive 23) · ×1
  • WSDLParser.parseBindings (cognitive 23) packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:548 — WSDLParser.parseBindings has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 10). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 555). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · http.toOpenCollectionHttpItem (cognitive 23) · ×1
  • http.toOpenCollectionHttpItem (cognitive 23) packages/bruno-converters/src/opencollection/items/http.ts:153 — http.toOpenCollectionHttpItem has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 9. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · autocomplete.registerAutocompleteIpc (cognitive 23) · ×1
  • autocomplete.registerAutocompleteIpc (cognitive 23) packages/bruno-electron/src/ipc/ai/autocomplete.js:98 — autocomplete.registerAutocompleteIpc has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 6, ternaries 3, error handling 2 (nesting depth added 1). None of this is in the body itself: all 23 points belong to 2 function literals inside it that branch (lines 99, 181). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.stringifyBruRequest (cognitive 23) · ×1
  • index.stringifyBruRequest (cognitive 23) packages/bruno-filestore/src/formats/bru/index.ts:140 — index.stringifyBruRequest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, ternaries 2 (3 pts), error handling 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · http-https-agents.resolveAgentsFromPac (cognitive 23) · ×1
  • http-https-agents.resolveAgentsFromPac (cognitive 23) packages/bruno-requests/src/utils/http-https-agents.ts:413 — http-https-agents.resolveAgentsFromPac has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · requestUrlChanged (cognitive 23) · ×1
  • requestUrlChanged (cognitive 23) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:1165 — requestUrlChanged has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 6, error handling 1 (3 pts), other 2 (nesting depth added 9). Of this number, 12 points are the body's own statements and 11 belong to 10 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · updateVar (cognitive 23) · ×1
  • updateVar (cognitive 23) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2297 — updateVar has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 5 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · transformRequestToSaveToFilesystem (cognitive 23) · ×1
  • transformRequestToSaveToFilesystem (cognitive 23) packages/bruno-app/src/utils/collections/index.js:707 — transformRequestToSaveToFilesystem has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, ternaries 6 (8 pts), if/else 7 (nesting depth added 2). Of this number, 15 points are the body's own statements and 8 belong to 6 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · (anonymous) (cognitive 23) · ×1
  • (anonymous) (cognitive 23) packages/bruno-app/src/components/AiChatSidebar/index.js:315 — (anonymous) has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3 (8 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · getActiveTabFromSnapshot (cognitive 23) · ×1
  • getActiveTabFromSnapshot (cognitive 23) packages/bruno-app/src/utils/snapshot/index.js:829 — getActiveTabFromSnapshot has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 9, error handling 1 (nesting depth added 3). Of this number, 18 points are the body's own statements and 5 belong to 8 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · applyNot (cognitive 23) · ×1
  • applyNot (cognitive 23) packages/bruno-converters/src/openapi/schema-composition.js:572 — applyNot has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (6 pts), boolean chains 5 (nesting depth added 9). Of this number, 22 points are the body's own statements and 1 belongs to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · mergeScriptVarsIntoEnvList (cognitive 23) · ×1
  • mergeScriptVarsIntoEnvList (cognitive 23) packages/bruno-cli/src/utils/persist-variables.js:207 — mergeScriptVarsIntoEnvList has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, loops 3, ternaries 2 (3 pts) (nesting depth added 3). Of this number, 15 points are the body's own statements and 8 belong to 8 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NewRequest · ×1
  • NewRequest::onSubmit (cognitive 23) packages/bruno-app/src/components/Sidebar/NewRequest/index.js:149 — NewRequest::onSubmit has cognitive complexity 23 (threshold 15). Drivers by points: error handling 5 (10 pts), ternaries 4 (8 pts), if/else 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · sendAiMessage (cognitive 23) · ×1
  • sendAiMessage (cognitive 23) packages/bruno-app/src/providers/ReduxStore/slices/chat.js:248 — sendAiMessage has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 9, if/else 9, ternaries 4 (5 pts) (nesting depth added 1). None of this is in the body itself: all 23 points belong to 13 function items inside it that branch ((anonymous)::(anonymous)::handleComplete, a function literal at line 258, (anonymous)::(anonymous)::handleStopped, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · General (cognitive 23) · ×1
  • General (cognitive 23) packages/bruno-app/src/components/Preferences/General/index.js:15 — General has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 10, ternaries 6, error handling 4, if/else 3. Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 55, a function literal at line 145, a function literal at line 33, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.MockResponseRequestPane (cognitive 22) · ×1
  • index.MockResponseRequestPane (cognitive 22) packages/bruno-app/src/components/MockServer/MockResponse/MockResponseRequestPane/index.js:35 — index.MockResponseRequestPane has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9 (18 pts), boolean chains 3, match/switch 1 (nesting depth added 9). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (getTabPanel, a function literal at line 55). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · FieldNode.FieldNode (cognitive 22) · ×1
  • FieldNode.FieldNode (cognitive 22) packages/bruno-app/src/components/RequestPane/QueryBuilder/FieldNode.js:188 — FieldNode.FieldNode has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 14, ternaries 4 (6 pts), if/else 2 (nesting depth added 2). Of this number, 21 points are the body's own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.ResponseExampleParams (cognitive 22) · ×1
  • index.ResponseExampleParams (cognitive 22) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:13 — index.ResponseExampleParams has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 6, ternaries 4. Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 29, a function literal at line 120, a function literal at line 141, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ResponseExampleStatusInput (cognitive 22) · ×1
  • index.ResponseExampleStatusInput (cognitive 22) packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/index.js:7 — index.ResponseExampleStatusInput has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, ternaries 4 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 4 function items inside it that branch (getStatusClass, a function literal at line 11, handleChange, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.SensitiveWarningPopover (cognitive 22) · ×1
  • index.SensitiveWarningPopover (cognitive 22) packages/bruno-app/src/components/SensitiveFieldWarning/SensitiveWarningPopover/index.js:84 — index.SensitiveWarningPopover has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 2). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 8 function items inside it that branch (handleAction, handleKeyDown, saveSecret, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.RenameCollectionItem (cognitive 22) · ×1
  • index.RenameCollectionItem (cognitive 22) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js:20 — index.RenameCollectionItem has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 5, ternaries 4, error handling 1. Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 56, 86, 50, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ConfirmMoveDrafts.ConfirmMoveDrafts (cognitive 22) · ×1
  • ConfirmMoveDrafts.ConfirmMoveDrafts (cognitive 22) packages/bruno-app/src/components/Sidebar/Collections/Collection/MoveToWorkspace/ConfirmMoveDrafts.js:15 — ConfirmMoveDrafts.ConfirmMoveDrafts has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 8, ternaries 3 (4 pts) (nesting depth added 1). Of this number, 12 points are the body's own statements and 10 belong to 7 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · actions.newHttpRequest.<returned closure> (cognitive 22) · ×1
  • actions.newHttpRequest.<returned closure> (cognitive 22) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1389 — actions.newHttpRequest.<returned closure> has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), boolean chains 6, if/else 5 (6 pts) (nesting depth added 6). None of this is in the body itself: all 22 points belong to 7 function literals inside it that branch (lines 1408, 1470, 1496, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · queryBuilder.walkInputObjectValue (cognitive 22) · ×1
  • queryBuilder.walkInputObjectValue (cognitive 22) packages/bruno-app/src/utils/graphql/queryBuilder.js:551 — queryBuilder.walkInputObjectValue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · import.handler (cognitive 22) · ×1
  • import.handler (cognitive 22) packages/bruno-cli/src/commands/import.js:393 — import.handler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, ternaries 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · postman-to-bruno.importScriptsFromEvents (cognitive 22) · ×1
  • postman-to-bruno.importScriptsFromEvents (cognitive 22) packages/bruno-converters/src/postman/postman-to-bruno.js:227 — postman-to-bruno.importScriptsFromEvents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3 (nesting depth added 10). None of this is in the body itself: all 22 points belong to one function literal inside it that branches (line 228). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · insomnia-to-bruno.parseInsomniaV5Collection (cognitive 22) · ×1
  • insomnia-to-bruno.parseInsomniaV5Collection (cognitive 22) packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:180 — insomnia-to-bruno.parseInsomniaV5Collection has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 15, if/else 6, error handling 1. Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 196, parseCollectionItems). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · graphql.toOpenCollectionGraphqlItem (cognitive 22) · ×1
  • graphql.toOpenCollectionGraphqlItem (cognitive 22) packages/bruno-converters/src/opencollection/items/graphql.ts:100 — graphql.toOpenCollectionGraphqlItem has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · mount.walk · ×1
  • mount.walk::visit (cognitive 22) packages/bruno-electron/src/utils/mount.js:45 — mount.walk::visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 2 (4 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · git.getCommitFiles (cognitive 22) · ×1
  • git.getCommitFiles (cognitive 22) packages/bruno-electron/src/utils/git.js:1084 — git.getCommitFiles has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 4 (18 pts), if/else 2 (3 pts), loops 1 (nesting depth added 15). None of this is in the body itself: all 22 points belong to one function literal inside it that branches (line 1088). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This shape REPEATS in the file: one other method here (git.getCommitCompareFiles) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · git.getCommitCompareFiles (cognitive 22) · ×1
  • git.getCommitCompareFiles (cognitive 22) packages/bruno-electron/src/utils/git.js:1135 — git.getCommitCompareFiles has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 4 (18 pts), if/else 2 (3 pts), loops 1 (nesting depth added 15). None of this is in the body itself: all 22 points belong to one function literal inside it that branches (line 1139). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This shape REPEATS in the file: one other method here (git.getCommitFiles) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · index.parseBruRequest (cognitive 22) · ×1
  • index.parseBruRequest (cognitive 22) packages/bruno-filestore/src/formats/bru/index.ts:13 — index.parseBruRequest has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (10 pts), if/else 6 (7 pts), boolean chains 3, error handling 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ScriptRuntime.runRequestScript (cognitive 22) · ×1
  • ScriptRuntime.runRequestScript (cognitive 22) packages/bruno-js/src/runtime/script-runtime.js:20 — ScriptRuntime.runRequestScript has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), ternaries 4, error handling 2 (3 pts) (nesting depth added 2). Of this number, 16 points are the body's own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · oauth2-helper.fetchTokenPassword (cognitive 22) · ×1
  • oauth2-helper.fetchTokenPassword (cognitive 22) REDACTED:202 — oauth2-helper.fetchTokenPassword has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5, ternaries 1 (3 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · scriptEnvironmentUpdateEvent (cognitive 22) · ×1
  • scriptEnvironmentUpdateEvent (cognitive 22) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:544 — scriptEnvironmentUpdateEvent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 2 (nesting depth added 12). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 591, 563, 564, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · pasteItem (cognitive 22) · ×1
  • pasteItem (cognitive 22) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:985 — pasteItem has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (5 pts), boolean chains 1, error handling 1, loops 1, other 1 (nesting depth added 9). None of this is in the body itself: all 22 points belong to 3 function literals inside it that branch (lines 1000, 985, 1052). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · settings (cognitive 22) · ×1
  • settings (cognitive 22) packages/bruno-lang/v2/src/bruToJson.js:553 — settings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 5). Of this number, 20 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SaveTransientRequest · ×1
  • SaveTransientRequest::handleConfirm (cognitive 22) packages/bruno-app/src/components/SaveTransientRequest/index.js:178 — SaveTransientRequest::handleConfirm has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 6, error handling 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · closeTabs (cognitive 22) · ×1
  • closeTabs (cognitive 22) packages/bruno-app/src/providers/ReduxStore/slices/tabs.js:428 — closeTabs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, ternaries 2 (5 pts) (nesting depth added 7). Of this number, 20 points are the body's own statements and 2 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.useEnvironmentShortcuts (cognitive 21) · ×1
  • index.useEnvironmentShortcuts (cognitive 21) packages/bruno-app/src/components/Environments/Common/EnvironmentSelection/useEnvironmentShortcuts/index.js:10 — index.useEnvironmentShortcuts has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (7 pts), ternaries 1 (nesting depth added 1). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 21). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.Script (cognitive 21) · ×1
  • index.Script (cognitive 21) packages/bruno-app/src/components/FolderSettings/Script/index.js:18 — index.Script has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 16, ternaries 3, if/else 2. Of this number, 13 points are the body's own statements and 8 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.GrpcRequestPane (cognitive 21) · ×1
  • index.GrpcRequestPane (cognitive 21) packages/bruno-app/src/components/RequestPane/GrpcRequestPane/index.js:30 — index.GrpcRequestPane has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (10 pts), boolean chains 5, if/else 4, match/switch 2 (nesting depth added 2). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 88, 89, 135, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · FieldNode.InputObjectFields (cognitive 21) · ×1
  • FieldNode.InputObjectFields (cognitive 21) packages/bruno-app/src/components/RequestPane/QueryBuilder/FieldNode.js:102 — FieldNode.InputObjectFields has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, ternaries 5 (7 pts), if/else 4 (nesting depth added 2). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 108, 116, 145). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.Settings (cognitive 21) · ×1
  • index.Settings (cognitive 21) packages/bruno-app/src/components/RequestPane/Settings/index.js:23 — index.Settings has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 7, ternaries 3 (5 pts) (nesting depth added 2). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 103, a function literal at line 63, a function literal at line 72, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.GrpcTimelineItem · ×1
  • index.GrpcTimelineItem::renderEventContent (cognitive 21) packages/bruno-app/src/components/ResponsePane/Timeline/GrpcTimelineItem/index.js:75 — index.GrpcTimelineItem::renderEventContent has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, ternaries 3 (6 pts), match/switch 1 (nesting depth added 3). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · snippet-generator.generateSnippet (cognitive 21) · ×1
  • snippet-generator.generateSnippet (cognitive 21) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/utils/snippet-generator.js:54 — snippet-generator.generateSnippet has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, ternaries 3, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · index.useQueryBuilder.toggleField (cognitive 21) · ×1
  • index.useQueryBuilder.toggleField (cognitive 21) packages/bruno-app/src/hooks/useQueryBuilder/index.js:316 — index.useQueryBuilder.toggleField has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 7). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 334, 362, 352). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · chat.sendAiMessage.<returned closure> (cognitive 21) · ×1
  • chat.sendAiMessage.<returned closure> (cognitive 21) packages/bruno-app/src/providers/ReduxStore/slices/chat.js:258 — chat.sendAiMessage.<returned closure> has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 9, ternaries 3. Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 310, 335, 349, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · middleware.saveExistingDrafts (cognitive 21) · ×1
  • middleware.saveExistingDrafts (cognitive 21) packages/bruno-app/src/providers/ReduxStore/middlewares/autosave/middleware.js:127 — middleware.saveExistingDrafts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 3 (nesting depth added 7). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 153, 131). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · goToVariableDefinition.goToVariableDefinition (cognitive 21) · ×1
  • goToVariableDefinition.goToVariableDefinition (cognitive 21) packages/bruno-app/src/utils/codemirror/goToVariableDefinition.js:81 — goToVariableDefinition.goToVariableDefinition has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, if/else 3 (5 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 3). Of this number, 19 points are the body's own statements and 2 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · openapi-to-bruno.paramEntriesFromValue (cognitive 21) · ×1
  • openapi-to-bruno.paramEntriesFromValue (cognitive 21) packages/bruno-converters/src/openapi/openapi-to-bruno.js:80 — openapi-to-bruno.paramEntriesFromValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 5 (7 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · git.checkoutRemoteGitBranch (cognitive 21) · ×1
  • git.checkoutRemoteGitBranch (cognitive 21) packages/bruno-electron/src/utils/git.js:399 — git.checkoutRemoteGitBranch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 1 (2 pts) (nesting depth added 9). None of this is in the body itself: all 21 points belong to 4 function literals inside it that branch (lines 407, 422, 426, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · stringifyMockServer.toOcMockRoute (cognitive 21) · ×1
  • stringifyMockServer.toOcMockRoute (cognitive 21) packages/bruno-filestore/src/formats/yml/stringifyMockServer.ts:22 — stringifyMockServer.toOcMockRoute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 8 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · ScriptRuntime.runResponseScript (cognitive 21) · ×1
  • ScriptRuntime.runResponseScript (cognitive 21) packages/bruno-js/src/runtime/script-runtime.js:169 — ScriptRuntime.runResponseScript has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), ternaries 4, error handling 2 (3 pts) (nesting depth added 2). Of this number, 16 points are the body's own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MacOSProxyResolver.parseConfiguration (cognitive 21) · ×1
  • MacOSProxyResolver.parseConfiguration (cognitive 21) packages/bruno-requests/src/network/system-proxy/utils/macos.ts:38 — MacOSProxyResolver.parseConfiguration has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · updateFile (cognitive 21) · ×1
  • updateFile (cognitive 21) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:1887 — updateFile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 2, other 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · (anonymous) (cognitive 21) · ×1
  • (anonymous) (cognitive 21) packages/bruno-app/public/static/diff2Html.js:2396 — (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, ternaries 3, if/else 2, loops 1 (2 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 2427, a function literal at line 2401, a function literal at line 2413, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · updateResponseExampleParam (cognitive 21) · ×1
  • updateResponseExampleParam (cognitive 21) packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:347 — updateResponseExampleParam has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). Of this number, 20 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · deleteResponseExampleParam (cognitive 21) · ×1
  • deleteResponseExampleParam (cognitive 21) packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:390 — deleteResponseExampleParam has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 6). Of this number, 20 points are the body's own statements and 1 belongs to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · setCollection (cognitive 21) · ×1
  • setCollection (cognitive 21) packages/bruno-electron/src/services/snapshot/index.js:327 — setCollection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 6, other 2. Of this number, 15 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · EnvironmentSelector (cognitive 21) · ×1
  • EnvironmentSelector (cognitive 21) packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js:184 — EnvironmentSelector has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, if/else 4, error handling 1. Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 25 function items inside it that branch (handleEnvironmentSelect, handleSettingsClick, handleCreateClick, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.Console (cognitive 20) · ×1
  • index.Console (cognitive 20) packages/bruno-app/src/components/Devtools/Console/index.js:234 — index.Console has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 7, if/else 3, match/switch 2 (nesting depth added 1). Of this number, 10 points are the body's own statements and 10 belong to 8 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.CloneMockServerModal (cognitive 20) · ×1
  • index.CloneMockServerModal (cognitive 20) packages/bruno-app/src/components/MockServer/CloneMockServerModal/index.js:25 — index.CloneMockServerModal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8, boolean chains 5, ternaries 5, error handling 2. Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 71, 209, 49, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.MockResponseRules (cognitive 20) · ×1
  • index.MockResponseRules (cognitive 20) packages/bruno-app/src/components/MockServer/MockResponse/MockResponseRules/index.js:32 — index.MockResponseRules has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 4, ternaries 4. Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 80, 44, 52, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.ResponseExampleBodyMode (cognitive 20) · ×1
  • index.ResponseExampleBodyMode (cognitive 20) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyMode/index.js:11 — index.ResponseExampleBodyMode has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, error handling 2 (4 pts), if/else 4, match/switch 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 3 function items inside it that branch (onModeChange, onPrettify, a function literal at line 78). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ResponseExampleResponseContent (cognitive 20) · ×1
  • index.ResponseExampleResponseContent (cognitive 20) packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleResponseContent/index.js:12 — index.ResponseExampleResponseContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 5 function items inside it that branch (getCodeMirrorMode, onResponseEdit, a function literal at line 17, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.CloneCollection (cognitive 20) · ×1
  • index.CloneCollection (cognitive 20) packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js:18 — index.CloneCollection has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, ternaries 8 (9 pts), if/else 2 (nesting depth added 1). Of this number, 14 points are the body's own statements and 6 belong to 5 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.GenerateDocumentation (cognitive 20) · ×1
  • index.GenerateDocumentation (cognitive 20) packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js:41 — index.GenerateDocumentation has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, ternaries 8, if/else 3, error handling 1. Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 103, 64, 48, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · actions.closeTabs.<returned closure> (cognitive 20) · ×1
  • actions.closeTabs.<returned closure> (cognitive 20) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3790 — actions.closeTabs.<returned closure> has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, loops 3, error handling 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3798, 3815). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.ListGroup (cognitive 20) · ×1
  • index.ListGroup (cognitive 20) packages/bruno-app/src/ui/ListGroup/index.js:41 — index.ListGroup has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11 (17 pts), boolean chains 3 (nesting depth added 6). Of this number, 17 points are the body's own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.buildAiRequestsPayload · ×1
  • index.buildAiRequestsPayload::walk (cognitive 20) packages/bruno-app/src/utils/ai/index.js:229 — index.buildAiRequestsPayload::walk has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (6 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.buildSidebarEntries (cognitive 20) · ×1
  • index.buildSidebarEntries (cognitive 20) packages/bruno-app/src/utils/collections/index.js:2145 — index.buildSidebarEntries has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.getVisibleSidebarUidsInOrder (cognitive 20) · ×1
  • index.getVisibleSidebarUidsInOrder (cognitive 20) packages/bruno-app/src/utils/collections/index.js:2193 — index.getVisibleSidebarUidsInOrder has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 8. Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 2214, a function literal at line 2225, a function literal at line 2202, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · environments.applyScriptEnvVars (cognitive 20) · ×1
  • environments.applyScriptEnvVars (cognitive 20) packages/bruno-app/src/utils/environments.js:67 — environments.applyScriptEnvVars has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8 (nesting depth added 4). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 6 function items inside it that branch (writeScriptValue, a function literal at line 99, a function literal at line 111, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · collection.createCollectionJsonFromPathname · ×1
  • collection.createCollectionJsonFromPathname::traverse (cognitive 20) packages/bruno-cli/src/utils/collection.js:52 — collection.createCollectionJsonFromPathname::traverse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, error handling 1 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · wsdl-to-bruno.transformItemsInCollection (cognitive 20) · ×1
  • wsdl-to-bruno.transformItemsInCollection (cognitive 20) packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:34 — wsdl-to-bruno.transformItemsInCollection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3 (nesting depth added 8). None of this is in the body itself: all 20 points belong to 3 function literals inside it that branch (lines 36, 49, 68). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.bruToJson (cognitive 20) · ×1
  • index.bruToJson (cognitive 20) packages/bruno-lang/v1/src/index.js:21 — index.bruToJson has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 5, ternaries 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · oauth2-helper.fetchTokenClientCredentials (cognitive 20) · ×1
  • oauth2-helper.fetchTokenClientCredentials (cognitive 20) REDACTED:111 — oauth2-helper.fetchTokenClientCredentials has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, ternaries 1 (3 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · grpcMessageGenerator.generateSampleMessageFromFields (cognitive 20) · ×1
  • grpcMessageGenerator.generateSampleMessageFromFields (cognitive 20) packages/bruno-requests/src/grpc/grpcMessageGenerator.js:9 — grpcMessageGenerator.generateSampleMessageFromFields has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 16). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · tomlToJson.tomlToJson (cognitive 20) · ×1
  • tomlToJson.tomlToJson (cognitive 20) packages/bruno-toml/src/tomlToJson.js:12 — tomlToJson.tomlToJson has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4 (nesting depth added 6). Of this number, 17 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · closeTabs (cognitive 20) · ×1
  • closeTabs (cognitive 20) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3790 — closeTabs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, loops 3, error handling 1 (2 pts) (nesting depth added 8). None of this is in the body itself: all 20 points belong to 5 function literals inside it that branch (lines 3798, 3790, 3815, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · maskJsonInterpolations (cognitive 20) · ×1
  • maskJsonInterpolations (cognitive 20) packages/bruno-electron/src/ipc/openapi-sync.js:466 — maskJsonInterpolations has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · mergeHeaders (cognitive 20) · ×1
  • mergeHeaders (cognitive 20) packages/bruno-cli/src/utils/collection.js:96 — mergeHeaders has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). Of this number, 10 points are the body's own statements and 10 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.normalizeKey (cognitive 19) · ×1
  • index.normalizeKey (cognitive 19) packages/bruno-app/src/components/Preferences/Keybindings/index.js:209 — index.normalizeKey has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.RequestTabs (cognitive 19) · ×1
  • index.RequestTabs (cognitive 19) packages/bruno-app/src/components/RequestTabs/index.js:17 — index.RequestTabs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 4 (5 pts) (nesting depth added 1). Of this number, 10 points are the body's own statements and 9 belong to 6 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.RequestItem (cognitive 19) · ×1
  • index.RequestItem (cognitive 19) packages/bruno-app/src/components/RunnerResults/RunConfigurationPanel/index.jsx:61 — index.RequestItem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 6. Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 6 function items inside it that branch (determineDropType, a function literal at line 102, a function literal at line 84, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · FileTab.FileTab · ×1
  • FileTab.FileTab::handleMultipleFiles (cognitive 19) REDACTED:74 — FileTab.FileTab::handleMultipleFiles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (3 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.resolveInheritedAuth (cognitive 19) · ×1
  • index.resolveInheritedAuth (cognitive 19) packages/bruno-app/src/utils/auth/index.js:8 — index.resolveInheritedAuth has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, ternaries 1 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · aiGhostText.fetchAndShow (cognitive 19) · ×1
  • aiGhostText.fetchAndShow (cognitive 19) packages/bruno-app/src/utils/codemirror/aiGhostText.js:133 — aiGhostText.fetchAndShow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 8, error handling 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · websocket.fromOpenCollectionWebsocketItem (cognitive 19) · ×1
  • websocket.fromOpenCollectionWebsocketItem (cognitive 19) packages/bruno-converters/src/opencollection/items/websocket.ts:29 — websocket.fromOpenCollectionWebsocketItem has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 14, if/else 4 (5 pts) (nesting depth added 1). Of this number, 15 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · workspace-config.generateYamlContent (cognitive 19) · ×1
  • workspace-config.generateYamlContent (cognitive 19) packages/bruno-electron/src/utils/workspace-config.js:251 — workspace-config.generateYamlContent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · mock-example-generator.schemaToExample (cognitive 19) · ×1
  • mock-example-generator.schemaToExample (cognitive 19) packages/bruno-electron/src/app/mock-server/mock-example-generator.js:54 — mock-example-generator.schemaToExample has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, boolean chains 6, loops 2 (4 pts), ternaries 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · mock-server.handleRequest · ×1
  • mock-server.handleRequest::sendResponse (cognitive 19) packages/bruno-electron/src/app/mock-server/mock-server.js:396 — mock-server.handleRequest::sendResponse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · error-formatter.resolveSegmentError (cognitive 19) · ×1
  • error-formatter.resolveSegmentError (cognitive 19) packages/bruno-js/src/utils/error-formatter.js:263 — error-formatter.resolveSegmentError has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · updatePathParam (cognitive 19) · ×1
  • updatePathParam (cognitive 19) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:1476 — updatePathParam has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 2 (nesting depth added 11). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · newGrpcRequest (cognitive 19) · ×1
  • newGrpcRequest (cognitive 19) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1538 — newGrpcRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (5 pts), boolean chains 4, error handling 2 (4 pts), other 3, ternaries 2 (3 pts) (nesting depth added 4). None of this is in the body itself: all 19 points belong to 6 function literals inside it that branch (lines 1541, 1596, 1602, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · newWsRequest (cognitive 19) · ×1
  • newWsRequest (cognitive 19) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1647 — newWsRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (5 pts), boolean chains 4, error handling 2 (4 pts), other 3, ternaries 2 (3 pts) (nesting depth added 4). None of this is in the body itself: all 19 points belong to 6 function literals inside it that branch (lines 1650, 1704, 1710, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · loadWorkspaceCollectionsForSwitch (cognitive 19) · ×1
  • loadWorkspaceCollectionsForSwitch (cognitive 19) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:365 — loadWorkspaceCollectionsForSwitch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (5 pts), boolean chains 3, error handling 1 (nesting depth added 8). Of this number, 18 points are the body's own statements and 1 belongs to 13 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · refreshOauth2Token (cognitive 19) · ×1
  • refreshOauth2Token (cognitive 19) packages/bruno-electron/src/utils/oauth2.js:654 — refreshOauth2Token has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 1 (2 pts), other 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · useOpenAPISync.handleConnect (cognitive 19) · ×1
  • useOpenAPISync.handleConnect (cognitive 19) packages/bruno-app/src/components/OpenAPISyncTab/hooks/useOpenAPISync.js:215 — useOpenAPISync.handleConnect has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (8 pts), error handling 2 (3 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.RouteTable (cognitive 18) · ×1
  • index.RouteTable (cognitive 18) packages/bruno-app/src/components/MockServer/MockServerDashboard/RouteTable/index.js:13 — index.RouteTable has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 4, ternaries 2, error handling 1. Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 33, handleCopyRouteUrl, a function literal at line 38, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.MockResponseSidebarItem (cognitive 18) · ×1
  • index.MockResponseSidebarItem (cognitive 18) packages/bruno-app/src/components/MockServer/Sidebar/MockServers/MockResponseSidebarItem/index.js:15 — index.MockResponseSidebarItem has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 5, if/else 3 (5 pts), ternaries 4 (5 pts), error handling 3 (nesting depth added 3). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (handleClone, handleRenameConfirm, handleDeleteConfirm, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.ResponseBookmark (cognitive 18) · ×1
  • index.ResponseBookmark (cognitive 18) packages/bruno-app/src/components/ResponsePane/ResponseBookmark/index.js:29 — index.ResponseBookmark has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (6 pts), if/else 4 (nesting depth added 1). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (saveAsExample, handleSaveClick). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · actions.sendRequest.<returned closure> (cognitive 18) · ×1
  • actions.sendRequest.<returned closure> (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:588 — actions.sendRequest.<returned closure> has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, ternaries 2 (4 pts), error handling 1 (nesting depth added 4). None of this is in the body itself: all 18 points belong to 3 function literals inside it that branch (lines 594, 680, 664). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · actions.pasteItem.<returned closure> (cognitive 18) · ×1
  • actions.pasteItem.<returned closure> (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:985 — actions.pasteItem.<returned closure> has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 7). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 1000). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.EditorLinkEditPopover (cognitive 18) · ×1
  • index.EditorLinkEditPopover (cognitive 18) packages/bruno-app/src/ui/RichTextEditor/components/EditorLinkEditPopover/index.js:5 — index.EditorLinkEditPopover has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6, ternaries 1 (nesting depth added 1). Of this number, 9 points are the body's own statements and 9 belong to 6 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.mergeVars (cognitive 18) · ×1
  • index.mergeVars (cognitive 18) packages/bruno-app/src/utils/collections/index.js:1505 — index.mergeVars has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 8). Of this number, 11 points are the body's own statements and 7 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.sortWorkspaces (cognitive 18) · ×1
  • index.sortWorkspaces (cognitive 18) packages/bruno-app/src/utils/workspaces/index.js:3 — index.sortWorkspaces has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 6, ternaries 1. Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 12, 25, 9, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · axios-instance.createRedirectConfig (cognitive 18) · ×1
  • axios-instance.createRedirectConfig (cognitive 18) packages/bruno-cli/src/utils/axios-instance.js:32 — axios-instance.createRedirectConfig has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · postman-script-report.countPmApiUsages · ×1
  • postman-script-report.countPmApiUsages::visit (cognitive 18) packages/bruno-converters/src/postman/postman-script-report.js:97 — postman-script-report.countPmApiUsages::visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · schema-composition.selectAlternative (cognitive 18) · ×1
  • schema-composition.selectAlternative (cognitive 18) packages/bruno-converters/src/openapi/schema-composition.js:331 — schema-composition.selectAlternative has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 4 (5 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). Of this number, 15 points are the body's own statements and 3 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · swagger2-to-bruno.parseSwagger2Collection (cognitive 18) · ×1
  • swagger2-to-bruno.parseSwagger2Collection (cognitive 18) packages/bruno-converters/src/openapi/swagger2-to-bruno.js:594 — swagger2-to-bruno.parseSwagger2Collection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 6, ternaries 4, error handling 1 (nesting depth added 2). Of this number, 13 points are the body's own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · openapi-to-bruno.resolveRefs (cognitive 18) · ×1
  • openapi-to-bruno.resolveRefs (cognitive 18) packages/bruno-converters/src/openapi/openapi-to-bruno.js:862 — openapi-to-bruno.resolveRefs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · grpc.fromOpenCollectionGrpcItem (cognitive 18) · ×1
  • grpc.fromOpenCollectionGrpcItem (cognitive 18) packages/bruno-converters/src/opencollection/items/grpc.ts:43 — grpc.fromOpenCollectionGrpcItem has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), ternaries 1 (3 pts) (nesting depth added 3). Of this number, 14 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · folder.fromOpenCollectionFolder (cognitive 18) · ×1
  • folder.fromOpenCollectionFolder (cognitive 18) packages/bruno-converters/src/opencollection/folder.ts:26 — folder.fromOpenCollectionFolder has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SnapshotManager._normalizeCollectionList (cognitive 18) · ×1
  • SnapshotManager._normalizeCollectionList (cognitive 18) packages/bruno-electron/src/services/snapshot/index.js:562 — SnapshotManager._normalizeCollectionList has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 4 (6 pts), boolean chains 2 (nesting depth added 8). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 568, 608). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · collection.wrapAndJoinScripts (cognitive 18) · ×1
  • collection.wrapAndJoinScripts (cognitive 18) REDACTED:239 — collection.wrapAndJoinScripts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 3). Of this number, 11 points are the body's own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · auth-oauth2.buildAuthorizationCodeFlow (cognitive 18) · ×1
  • auth-oauth2.buildAuthorizationCodeFlow (cognitive 18) packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts:208 — auth-oauth2.buildAuthorizationCodeFlow has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · body.toOpenCollectionBody (cognitive 18) · ×1
  • body.toOpenCollectionBody (cognitive 18) packages/bruno-filestore/src/formats/yml/common/body.ts:17 — body.toOpenCollectionBody has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, if/else 1, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · body.toBrunoBody (cognitive 18) · ×1
  • body.toBrunoBody (cognitive 18) packages/bruno-filestore/src/formats/yml/common/body.ts:137 — body.toBrunoBody has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, if/else 1, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · utils.cleanJson (cognitive 18) · ×1
  • utils.cleanJson (cognitive 18) packages/bruno-js/src/utils.js:144 — utils.cleanJson has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, error handling 1, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (replacer, reviver). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · GrpcScriptRuntime.#runHook (cognitive 18) · ×1
  • GrpcScriptRuntime.#runHook (cognitive 18) packages/bruno-js/src/grpc/grpc-script-runtime.js:35 — GrpcScriptRuntime.#runHook has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 4, ternaries 4, error handling 1. Of this number, 13 points are the body's own statements and 5 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · error-formatter.adjustStackTrace (cognitive 18) · ×1
  • error-formatter.adjustStackTrace (cognitive 18) packages/bruno-js/src/utils/error-formatter.js:420 — error-formatter.adjustStackTrace has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 5). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 423). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.cookieJarWrapper.deleteCookies (cognitive 18) · ×1
  • index.cookieJarWrapper.deleteCookies (cognitive 18) packages/bruno-requests/src/cookies/index.ts:424 — index.cookieJarWrapper.deleteCookies has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 435, 457, 441, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · proxy-util.transformProxyConfig (cognitive 18) · ×1
  • proxy-util.transformProxyConfig (cognitive 18) packages/bruno-requests/src/utils/proxy-util.ts:40 — proxy-util.transformProxyConfig has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · send-request.createSendRequest.<returned closure> (cognitive 18) · ×1
  • send-request.createSendRequest.<returned closure> (cognitive 18) packages/bruno-requests/src/scripting/send-request.ts:189 — send-request.createSendRequest.<returned closure> has cognitive complexity 18 (threshold 15). Drivers by points: error handling 4 (6 pts), if/else 4 (6 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · mergeTreeItems (cognitive 18) · ×1
  • mergeTreeItems (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:66 — mergeTreeItems has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 73). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · addVar (cognitive 18) · ×1
  • addVar (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2256 — addVar has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 8 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · cloneItem (cognitive 18) · ×1
  • cloneItem (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:901 — cloneItem has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 5, ternaries 2 (4 pts), boolean chains 3 (nesting depth added 5). None of this is in the body itself: all 18 points belong to 8 function literals inside it that branch (lines 905, 947, 969, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · hydrateSnapshotForOpenedCollection (cognitive 18) · ×1
  • hydrateSnapshotForOpenedCollection (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:487 — hydrateSnapshotForOpenedCollection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 4). None of this is in the body itself: all 18 points belong to 5 function literals inside it that branch (lines 488, 516, 508, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · findScriptBlockEndLine (cognitive 18) · ×1
  • findScriptBlockEndLine (cognitive 18) packages/bruno-js/src/utils/error-formatter.js:78 — findScriptBlockEndLine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 1 (4 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OAuth2PasswordCredentials (cognitive 18) · ×1
  • OAuth2PasswordCredentials (cognitive 18) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:15 — OAuth2PasswordCredentials has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, if/else 2. Of this number, 15 points are the body's own statements and 3 belong to 17 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · OAuth2ClientCredentials (cognitive 18) · ×1
  • OAuth2ClientCredentials (cognitive 18) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js:15 — OAuth2ClientCredentials has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, if/else 2. Of this number, 15 points are the body's own statements and 3 belong to 17 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · utils.rawToVariables (cognitive 17) · ×1
  • utils.rawToVariables (cognitive 17) packages/bruno-app/src/components/Environments/DotEnvFileEditor/utils.js:8 — utils.rawToVariables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.ManageWorkspace (cognitive 17) · ×1
  • index.ManageWorkspace (cognitive 17) packages/bruno-app/src/components/ManageWorkspace/index.js:21 — index.ManageWorkspace has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, ternaries 3 (5 pts), if/else 3, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 122, handleCreateWorkspace, handleShowInFolder, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.EndpointChangeSection (cognitive 17) · ×1
  • index.EndpointChangeSection (cognitive 17) packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/index.js:23 — index.EndpointChangeSection has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (6 pts), ternaries 3 (nesting depth added 1). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 56, 37, 51). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.OpenAPISyncHeader (cognitive 17) · ×1
  • index.OpenAPISyncHeader (cognitive 17) packages/bruno-app/src/components/OpenAPISyncTab/OpenAPISyncHeader/index.js:19 — index.OpenAPISyncHeader has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, boolean chains 5, ternaries 4, error handling 2. Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (copyUrl, a function literal at line 29, revealInFolder, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · useOpenAPISync.useOpenAPISync.handleConnect (cognitive 17) · ×1
  • useOpenAPISync.useOpenAPISync.handleConnect (cognitive 17) packages/bruno-app/src/components/OpenAPISyncTab/hooks/useOpenAPISync.js:215 — useOpenAPISync.useOpenAPISync.handleConnect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, error handling 2 (3 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.EdgeGridAuth (cognitive 17) · ×1
  • index.EdgeGridAuth (cognitive 17) packages/bruno-app/src/components/RequestPane/Auth/EdgeGridAuth/index.tsx:75 — index.EdgeGridAuth has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 13, if/else 2, ternaries 2. Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function items inside it that branch (handleFieldChange, renderField). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.Oauth2TokenViewer (cognitive 17) · ×1
  • index.Oauth2TokenViewer (cognitive 17) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Oauth2TokenViewer/index.js:125 — index.Oauth2TokenViewer has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (14 pts), boolean chains 3 (nesting depth added 9). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · index.ResponseExampleHeaders (cognitive 17) · ×1
  • index.ResponseExampleHeaders (cognitive 17) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:16 — index.ResponseExampleHeaders has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 3. Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 31, a function literal at line 82, a function literal at line 103, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.BulkActionsDropdown (cognitive 17) · ×1
  • index.BulkActionsDropdown (cognitive 17) packages/bruno-app/src/components/Sidebar/Collections/BulkActionsDropdown/index.js:21 — index.BulkActionsDropdown has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, ternaries 5 (7 pts), boolean chains 2, error handling 1 (nesting depth added 2). None of this is in the body itself: all 17 points belong to 6 function items inside it that branch (a function literal at line 68, getCollapseDisplay, a function literal at line 97, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.useTabsOverflow.calculate (cognitive 17) · ×1
  • index.useTabsOverflow.calculate (cognitive 17) packages/bruno-app/src/components/Tabs/useTabsOverflow/index.js:31 — index.useTabsOverflow.calculate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, loops 2 (3 pts), ternaries 1 (nesting depth added 2). Of this number, 10 points are the body's own statements and 7 belong to 3 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index.VariableValue (cognitive 17) · ×1
  • index.VariableValue (cognitive 17) packages/bruno-app/src/components/VariablesEditor/VariableValue/index.js:13 — index.VariableValue has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 5 (nesting depth added 1). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · useVariablesScroll.useVariablesScroll (cognitive 17) · ×1
  • useVariablesScroll.useVariablesScroll (cognitive 17) packages/bruno-app/src/components/VariablesEditor/hooks/useVariablesScroll.js:20 — useVariablesScroll.useVariablesScroll has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 5 function literals inside it that branch (lines 45, 79, 88, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.CreateWorkspace (cognitive 17) · ×1
  • index.CreateWorkspace (cognitive 17) packages/bruno-app/src/components/WorkspaceSidebar/CreateWorkspace/index.js:17 — index.CreateWorkspace has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 4, ternaries 4, error handling 1. Of this number, 10 points are the body's own statements and 7 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · editorMarkdownParse.updateTaskListDOM (cognitive 17) · ×1
  • editorMarkdownParse.updateTaskListDOM (cognitive 17) packages/bruno-app/src/ui/RichTextEditor/utils/editorMarkdownParse.js:69 — editorMarkdownParse.updateTaskListDOM has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). None of this is in the body itself: all 17 points belong to 3 function literals inside it that branch (lines 75, 102, 70). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.getUtf8SequenceLength (cognitive 17) · ×1
  • index.getUtf8SequenceLength (cognitive 17) packages/bruno-app/src/utils/response/index.js:76 — index.getUtf8SequenceLength has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · postman-to-bruno-translator.processCookieJarVariables (cognitive 17) · ×1
  • postman-to-bruno-translator.processCookieJarVariables (cognitive 17) packages/bruno-converters/src/utils/postman-to-bruno-translator.js:1031 — postman-to-bruno-translator.processCookieJarVariables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4 (nesting depth added 7). None of this is in the body itself: all 17 points belong to 2 function literals inside it that branch (lines 1045, 1063). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · bruno-to-postman.brunoToPostman · ×1
  • bruno-to-postman.brunoToPostman::generateEventSection (cognitive 17) packages/bruno-converters/src/postman/bruno-to-postman.js:233 — bruno-to-postman.brunoToPostman::generateEventSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WSDLParser.parseTypes (cognitive 17) · ×1
  • WSDLParser.parseTypes (cognitive 17) packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:205 — WSDLParser.parseTypes has cognitive complexity 17 (threshold 15). Drivers by points: loops 7 (11 pts), boolean chains 6 (nesting depth added 4). Of this number, 15 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · collection-import.importCollection · ×1
  • collection-import.importCollection::parseCollectionItems (cognitive 17) packages/bruno-electron/src/utils/collection-import.js:38 — collection-import.importCollection::parseCollectionItems has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · manager.hydrateEnvironments (cognitive 17) · ×1
  • manager.hydrateEnvironments (cognitive 17) packages/bruno-electron/src/services/mount/manager.js:23 — manager.hydrateEnvironments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 6). Of this number, 15 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · yml-migration.findRegexLiteralEnd (cognitive 17) · ×1
  • yml-migration.findRegexLiteralEnd (cognitive 17) packages/bruno-electron/src/ipc/yml-migration.js:92 — yml-migration.findRegexLiteralEnd has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · script-prompts.formatDocsContext (cognitive 17) · ×1
  • script-prompts.formatDocsContext (cognitive 17) packages/bruno-electron/src/ipc/ai/script-prompts.js:278 — script-prompts.formatDocsContext has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 3). Of this number, 11 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.normalizeRequestItem (cognitive 17) · ×1
  • index.normalizeRequestItem (cognitive 17) packages/bruno-io/src/writeCollection/index.ts:30 — index.normalizeRequestItem has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 16, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · HeaderList.assimilate (cognitive 17) · ×1
  • HeaderList.assimilate (cognitive 17) packages/bruno-js/src/header-list.js:511 — HeaderList.assimilate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 6). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.cookieJarWrapper.setCookie · ×1
  • index.cookieJarWrapper.setCookie::executeSetCookie (cognitive 17) packages/bruno-requests/src/cookies/index.ts:298 — index.cookieJarWrapper.setCookie::executeSetCookie has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · http-https-agents.shouldUseProxy (cognitive 17) · ×1
  • http-https-agents.shouldUseProxy (cognitive 17) packages/bruno-requests/src/utils/http-https-agents.ts:153 — http-https-agents.shouldUseProxy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 5, ternaries 4 (5 pts) (nesting depth added 1). Of this number, 10 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · collectionAddDirectoryEvent (cognitive 17) · ×1
  • collectionAddDirectoryEvent (cognitive 17) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3183 — collectionAddDirectoryEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 8 (nesting depth added 4). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 3195, 3197, 3205). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · showPopup · ×1
  • showPopup::hidePopup (cognitive 17) packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:1196 — showPopup::hidePopup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1 (nesting depth added 5). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · setResponseExampleParams (cognitive 17) · ×1
  • setResponseExampleParams (cognitive 17) packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:845 — setResponseExampleParams has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 3). Of this number, 15 points are the body's own statements and 2 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CollectionHeader · ×1
  • CollectionHeader::handleSaveWorkspaceRename (cognitive 17) packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:397 — CollectionHeader::handleSaveWorkspaceRename has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · index.AiChatSidebar · ×1
  • index.AiChatSidebar::renderMessage (cognitive 16) packages/bruno-app/src/components/AiChatSidebar/index.js:718 — index.AiChatSidebar::renderMessage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (index.AiChatSidebar) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · index.Script (cognitive 16) · ×1
  • index.Script (cognitive 16) packages/bruno-app/src/components/CollectionSettings/Script/index.js:18 — index.Script has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, ternaries 3, if/else 2. Of this number, 8 points are the body's own statements and 8 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · index.ErrorInfoTab (cognitive 16) · ×1
  • index.ErrorInfoTab (cognitive 16) packages/bruno-app/src/components/Devtools/Console/ErrorDetailsPanel/index.js:16 — index.ErrorInfoTab has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, ternaries 3 (4 pts), if/else 1 (2 pts) (nesting depth added 2). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (generateGitHubIssueUrl, a function literal at line 47). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.serializeArgs (cognitive 16) · ×1
  • index.serializeArgs (cognitive 16) packages/bruno-app/src/components/ErrorCapture/index.js:35 — index.serializeArgs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, error handling 2 (3 pts) (nesting depth added 3). None of this is in the body itself: all 16 points belong to 2 function literals inside it that branch (lines 39, 36). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.MockResponseTopBar (cognitive 16) · ×1
  • index.MockResponseTopBar (cognitive 16) packages/bruno-app/src/components/MockServer/MockResponse/MockResponseTopBar/index.js:15 — index.MockResponseTopBar has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 5, if/else 2 (nesting depth added 3). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FieldNode.ListArgValueInput (cognitive 16) · ×1
  • FieldNode.ListArgValueInput (cognitive 16) packages/bruno-app/src/components/RequestPane/QueryBuilder/FieldNode.js:6 — FieldNode.ListArgValueInput has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 3 (4 pts), boolean chains 2 (nesting depth added 5). Of this number, 8 points are the body's own statements and 8 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.ResponseExampleTopBar (cognitive 16) · ×1
  • index.ResponseExampleTopBar (cognitive 16) packages/bruno-app/src/components/ResponseExample/ResponseExampleTopBar/index.js:12 — index.ResponseExampleTopBar has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, ternaries 1. Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 6 function items inside it that branch (handleNameChange, handleDescriptionChange, a function literal at line 27, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · index.Timeline (cognitive 16) · ×1
  • index.Timeline (cognitive 16) packages/bruno-app/src/components/ResponsePane/Timeline/index.js:50 — index.Timeline has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts) (nesting depth added 1). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 103, 74, 70, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · actions.openCollectionEvent.<returned closure> (cognitive 16) · ×1
  • actions.openCollectionEvent.<returned closure> (cognitive 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3054 — actions.openCollectionEvent.<returned closure> has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4 (nesting depth added 5). None of this is in the body itself: all 16 points belong to 4 function literals inside it that branch (lines 3057, 3132, 3087, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · index.EditorCodeBlock (cognitive 16) · ×1
  • index.EditorCodeBlock (cognitive 16) packages/bruno-app/src/ui/RichTextEditor/extensions/EditorCodeBlock/index.js:36 — index.EditorCodeBlock has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, ternaries 6, if/else 3. Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 82, 61, 45, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · linkAware.markUrls (cognitive 16) · ×1
  • linkAware.markUrls (cognitive 16) packages/bruno-app/src/utils/codemirror/linkAware.js:56 — linkAware.markUrls has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 5). None of this is in the body itself: all 16 points belong to 4 function literals inside it that branch (lines 61, 63, 94, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · flattenSidebarTree.flattenSidebarTree (cognitive 16) · ×1
  • flattenSidebarTree.flattenSidebarTree (cognitive 16) packages/bruno-app/src/utils/collections/flattenSidebarTree.js:267 — flattenSidebarTree.flattenSidebarTree has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, loops 1 (nesting depth added 3). Of this number, 10 points are the body's own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.relativeDate (cognitive 16) · ×1
  • index.relativeDate (cognitive 16) packages/bruno-app/src/utils/common/index.js:142 — index.relativeDate has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index.serializeActiveTab (cognitive 16) · ×1
  • index.serializeActiveTab (cognitive 16) packages/bruno-app/src/utils/snapshot/index.js:533 — index.serializeActiveTab has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · index.parsePathParams (cognitive 16) · ×1
  • index.parsePathParams (cognitive 16) REDACTED:41 — index.parsePathParams has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 63). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · bru.bruToJson (cognitive 16) · ×1
  • bru.bruToJson (cognitive 16) packages/bruno-cli/src/utils/bru.js:51 — bru.bruToJson has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4, boolean chains 1, error handling 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · auth.fromOpenCollectionOAuth2 · ×1
  • auth.fromOpenCollectionOAuth2::buildOAuth2Config (cognitive 16) packages/bruno-converters/src/opencollection/common/auth.ts:46 — auth.fromOpenCollectionOAuth2::buildOAuth2Config has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (auth.fromOpenCollectionOAuth2) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · form-data.formatMultipartData (cognitive 16) · ×1
  • form-data.formatMultipartData (cognitive 16) packages/bruno-electron/src/utils/form-data.js:6 — form-data.formatMultipartData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, boolean chains 5, ternaries 2 (5 pts) (nesting depth added 3). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 33, getFileName, normalizeBoundary, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · collection.mergeAuth (cognitive 16) · ×1
  • collection.mergeAuth (cognitive 16) REDACTED:882 — collection.mergeAuth has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CollectionWatcher.addWatcher (cognitive 16) · ×1
  • CollectionWatcher.addWatcher (cognitive 16) packages/bruno-electron/src/app/collection-watcher.js:807 — CollectionWatcher.addWatcher has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 6, ternaries 1. Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 834, 886, 860). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · oauth2.getOAuth2AuthorizationCode (cognitive 16) · ×1
  • oauth2.getOAuth2AuthorizationCode (cognitive 16) packages/bruno-electron/src/utils/oauth2.js:305 — oauth2.getOAuth2AuthorizationCode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, ternaries 2, error handling 1 (nesting depth added 3). None of this is in the body itself: all 16 points belong to 2 function literals inside it that branch (lines 306, 335). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · openapi-sync.fetchSpecFromSource (cognitive 16) · ×1
  • openapi-sync.fetchSpecFromSource (cognitive 16) packages/bruno-electron/src/ipc/openapi-sync.js:175 — openapi-sync.fetchSpecFromSource has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · oauth1-request-authorization.createOAuth1Authorizer.authorize (cognitive 16) · ×1
  • oauth1-request-authorization.createOAuth1Authorizer.authorize (cognitive 16) packages/bruno-requests/src/auth/oauth1-request-authorization.ts:246 — oauth1-request-authorization.createOAuth1Authorizer.authorize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · LinuxProxyResolver.getGSettingsProxy (cognitive 16) · ×1
  • LinuxProxyResolver.getGSettingsProxy (cognitive 16) REDACTED:49 — LinuxProxyResolver.getGSettingsProxy has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (4 pts), ternaries 3, error handling 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · setDotEnvVariables (cognitive 16) · ×1
  • setDotEnvVariables (cognitive 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:624 — setDotEnvVariables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2 (nesting depth added 6). Of this number, 12 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · collectionAddEnvFileEvent (cognitive 16) · ×1
  • collectionAddEnvFileEvent (cognitive 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3347 — collectionAddEnvFileEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3 (nesting depth added 7). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · collectionLoadedFromTree (cognitive 16) · ×1
  • collectionLoadedFromTree (cognitive 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3813 — collectionLoadedFromTree has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (annotateTransient). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · collectionVariablesUpdateEvent (cognitive 16) · ×1
  • collectionVariablesUpdateEvent (cognitive 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:2671 — collectionVariablesUpdateEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, error handling 1 (2 pts), ternaries 1 (nesting depth added 2). None of this is in the body itself: all 16 points belong to 5 function literals inside it that branch (lines 2671, 2700, 2687, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · rewriteRequiresInBrunoCollection (cognitive 16) · ×1
  • rewriteRequiresInBrunoCollection (cognitive 16) packages/bruno-converters/src/postman/postman-to-bruno.js:1054 — rewriteRequiresInBrunoCollection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, loops 1 (nesting depth added 2). None of this is in the body itself: all 16 points belong to 5 function items inside it that branch (visitRequest, processScriptField, processScriptString, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · extractServerVars (cognitive 16) · ×1
  • extractServerVars (cognitive 16) packages/bruno-converters/src/openapi/openapi-to-bruno.js:931 — extractServerVars has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 4 (6 pts), boolean chains 2 (nesting depth added 6). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 942, 935). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · updateResponseExampleRequestUrl (cognitive 16) · ×1
  • updateResponseExampleRequestUrl (cognitive 16) packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:573 — updateResponseExampleRequestUrl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 1 (2 pts), error handling 1 (nesting depth added 1). Of this number, 9 points are the body's own statements and 7 belong to 11 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · parseBruFileMeta (cognitive 16) · ×1
  • parseBruFileMeta (cognitive 16) REDACTED:513 — parseBruFileMeta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (5 pts), boolean chains 2, error handling 1 (nesting depth added 5). Of this number, 10 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _reloadEditorValue (cognitive 16) · ×1
  • _reloadEditorValue (cognitive 16) packages/bruno-app/src/components/CodeEditor/index.js:443 — _reloadEditorValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, ternaries 2 (nesting depth added 1). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · _buildLookupMaps (cognitive 16) · ×1
  • _buildLookupMaps (cognitive 16) packages/bruno-electron/src/services/snapshot/index.js:736 — _buildLookupMaps has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5, ternaries 1. Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 760, 751). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · restoreTabs (cognitive 16) · ×1
  • restoreTabs (cognitive 16) packages/bruno-app/src/providers/ReduxStore/slices/tabs.js:582 — restoreTabs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 599, 587, 590, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · (anonymous) (cognitive 16) · ×1
  • (anonymous) (cognitive 16) packages/bruno-app/src/components/RequestPane/QueryBuilder/FieldNode.js:297 — (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (5 pts), other 1, ternaries 1 (nesting depth added 2). Of this number, 14 points are the body's own statements and 2 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · useOpenAPISync (cognitive 16) · ×1
  • useOpenAPISync (cognitive 16) packages/bruno-app/src/components/OpenAPISyncTab/hooks/useOpenAPISync.js:20 — useOpenAPISync has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 4. Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 207, a function literal at line 73, a function literal at line 200, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · OAuth2Implicit (cognitive 16) · ×1
  • OAuth2Implicit (cognitive 16) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js:18 — OAuth2Implicit has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7, boolean chains 5, if/else 2, error handling 1, loops 1. Of this number, 12 points are the body's own statements and 4 belong to 19 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D3 · God Classes · TooManyMethods · ×1
  • TooManyMethods: Bru packages/bruno-js/src/bru.js:126 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D30 · Dependency Vulnerabilities · Medium vulnerability · ×1
  • REDACTED
D35 · Change Coupling · Change-coupling hub · ×1
  • Change-coupling hub: vars-runtime.js → REDACTED, script-runtime.js, test-runtime.js packages/bruno-js/src/runtime/vars-runtime.js — `packages/bruno-js/src/runtime/vars-runtime.js` changes together with 3 other files — `REDACTED`, `packages/bruno-js/src/runtime/script-runtime.js`, `packages/bruno-js/src/runtime/test-runtime.js` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: @usebruno/query — @usebruno/query: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
P12 · CI test-gate honesty · Test failure does not fail the CI gate · ×1
  • Test failure does not fail the CI gate REDACTED:69 — `continue-on-error: true` lets the step or job that runs `xvfb-run npm run test:e2e` fail without failing the pipeline — the suite can go red and the change still merges. Remove it from the test step, or quarantine the specific failing tests instead.
R1 · Type Safety · Type Safety · ×1
  • Type Safety — 877 typed · 2146 plain JS — the untyped files are packages/bruno-app/jest.cssMock.js, packages/bruno-app/jest.setup.js, REDACTED, packages/bruno-app/plugins/remote-images/index.mjs, packages/bruno-app/plugins/remote-images/loader.cjs, packages/bruno-app/plugins/remote-images/serve-fixture.js (+2140 more).
R10 · Code Duplication · Duplication concentrated across 65 sibling directories (1179 clone groups) · ×1
  • Duplication concentrated across 65 sibling directories (1179 clone groups) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1 — 1179 duplicated blocks under packages/bruno-app/src/components/ have copies in at least two of the sibling directories AIAssist, AiChatSidebar, AppPreviewKeepAlive, AppTitleBar, AppView, BodyModeSelector (+59 more sibling(s) not listed) — 107 of them are reported below, and 1072 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 1179 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 1179 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 1179 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 6 sibling directories (136 clone groups) · ×1
  • Duplication concentrated across 6 sibling directories (136 clone groups) packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:56 — 136 duplicated blocks under packages/bruno-app/src/ have copies in at least two of the sibling directories components, hooks, pages, providers, ui, utils — 22 of them are reported below, and 114 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 136 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 136 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 136 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 14 sibling directories (117 clone groups) · ×1
  • Duplication concentrated across 14 sibling directories (117 clone groups) packages/bruno-cli/src/utils/proxy-util.js:22 — 117 duplicated blocks under packages/ have copies in at least two of the sibling directories bruno-app, bruno-cli, bruno-common, bruno-converters, bruno-electron, bruno-filestore (+8 more sibling(s) not listed) — 103 of them are reported below, and 14 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 117 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 117 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 117 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 25 sibling directories (55 clone groups) · ×1
  • Duplication concentrated across 25 sibling directories (55 clone groups) packages/bruno-app/src/components/RequestPane/GrpcRequestPane/GrpcAuth/index.js:16 — 55 duplicated blocks under packages/bruno-app/src/components/RequestPane/ have copies in at least two of the sibling directories AppCodeEditor, Assertions, Auth, FileBody, FormUrlEncodedParams, GraphQLRequestPane (+19 more sibling(s) not listed) — 27 of them are reported below, and 28 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 55 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 55 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 55 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 11 sibling directories (30 clone groups) · ×1
  • Duplication concentrated across 11 sibling directories (30 clone groups) packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:98 — 30 duplicated blocks under packages/bruno-app/src/components/Sidebar/ have copies in at least two of the sibling directories BulkImportCollectionLocation, CloneGitRespository, Collections, CreateCollection, ImportCollectionLocation, NewApp (+5 more sibling(s) not listed) — 20 of them are reported below, and 10 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 30 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 30 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 30 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 10 sibling directories (26 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (26 clone groups) packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js:10 — 26 duplicated blocks under packages/bruno-app/src/components/RequestPane/Auth/ have copies in at least two of the sibling directories ApiKeyAuth, AuthMode, AwsV4Auth, BasicAuth, BearerAuth, DigestAuth (+4 more sibling(s) not listed) — 11 of them are reported below, and 15 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 26 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 26 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 26 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 14 sibling directories (21 clone groups) · ×1
  • Duplication concentrated across 14 sibling directories (21 clone groups) packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:26 — 21 duplicated blocks under packages/bruno-app/src/components/ResponsePane/ have copies in at least two of the sibling directories GrpcResponsePane, LargeResponseWarning, QueryResult, ResponseBookmark, ResponseClear, ResponseCopy (+8 more sibling(s) not listed) — 3 of them are reported below, and 18 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 21 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 21 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 21 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 7 sibling directories (20 clone groups) · ×1
  • Duplication concentrated across 7 sibling directories (20 clone groups) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleFormUrlEncodedParams/index.js:12 — 20 duplicated blocks under packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ have copies in at least two of the sibling directories ResponseExampleDescription, ResponseExampleFileBody, ResponseExampleFormUrlEncodedParams, ResponseExampleHeaders, ResponseExampleMultipartFormParams, ResponseExampleParams (+1 more sibling(s) not listed) — 9 of them are reported below, and 11 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 20 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 2 sibling directories (20 clone groups) · ×1
  • Duplication concentrated across 2 sibling directories (20 clone groups) packages/bruno-app/src/themes/dark/gruvbox.js:8 — 20 duplicated blocks under packages/bruno-app/src/themes/ have copies in at least two of the sibling directories dark, light — 8 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 20 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 10 sibling directories (18 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (18 clone groups) packages/bruno-app/src/components/Sidebar/Collections/Collection/MoveToWorkspace/ConfirmMoveDrafts.js:117 — 18 duplicated blocks under packages/bruno-app/src/components/Sidebar/Collections/Collection/ have copies in at least two of the sibling directories ChangeCollectionVersion, CloneCollection, CollectionItem, CollectionRow, DeleteCollection, ExportCollection (+4 more sibling(s) not listed) — 5 of them are reported below, and 13 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 18 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 18 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 18 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 11 sibling directories (16 clone groups) · ×1
  • Duplication concentrated across 11 sibling directories (16 clone groups) packages/bruno-app/src/components/Preferences/Beta/index.js:111 — 16 duplicated blocks under packages/bruno-app/src/components/Preferences/ have copies in at least two of the sibling directories AI, Beta, Cache, ClientCertSettings, Display, General (+5 more sibling(s) not listed) — 4 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 16 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 16 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 16 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 9 sibling directories (15 clone groups) · ×1
  • Duplication concentrated across 9 sibling directories (15 clone groups) packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js:11 — 15 duplicated blocks under packages/bruno-app/src/components/CollectionSettings/Auth/ have copies in at least two of the sibling directories ApiKeyAuth, AuthMode, AwsV4Auth, BasicAuth, BearerAuth, DigestAuth (+3 more sibling(s) not listed) — 3 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 15 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 15 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 15 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 8 sibling directories (15 clone groups) · ×1
  • Duplication concentrated across 8 sibling directories (15 clone groups) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:259 — 15 duplicated blocks under packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ have copies in at least two of the sibling directories AdditionalParams, AuthorizationCode, ClientCredentials, GrantTypeSelector, Implicit, Oauth2ActionButtons (+2 more sibling(s) not listed) — 8 of them are reported below, and 7 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 15 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 15 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 15 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 3 sibling directories (14 clone groups) · ×1
  • Duplication concentrated across 3 sibling directories (14 clone groups) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js:14 — 14 duplicated blocks under packages/bruno-app/src/components/ResponseExample/ have copies in at least two of the sibling directories ResponseExampleRequestPane, ResponseExampleResponsePane, ResponseExampleTopBar — 7 of them are reported below, and 7 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 14 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 14 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 14 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 10 sibling directories (14 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (14 clone groups) packages/bruno-app/src/ui/MaskedInput/index.js:44 — 14 duplicated blocks under packages/bruno-app/src/ui/ have copies in at least two of the sibling directories ActionIcon, Button, ErrorBanner, InputWrapper, MaskedInput, MaskedTextfield (+4 more sibling(s) not listed) — 2 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 14 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 14 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 14 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 5 sibling directories (13 clone groups) · ×1
  • Duplication concentrated across 5 sibling directories (13 clone groups) packages/bruno-app/src/components/Devtools/Console/ErrorDetailsPanel/index.js:236 — 13 duplicated blocks under packages/bruno-app/src/components/Devtools/Console/ have copies in at least two of the sibling directories DebugTab, ErrorDetailsPanel, FilterDropdown, NetworkTab, RequestDetailsPanel — 2 of them are reported below, and 11 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 13 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 13 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 13 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 4 sibling directories (11 clone groups) · ×1
  • Duplication concentrated across 4 sibling directories (11 clone groups) packages/bruno-electron/src/ipc/collection.js:1457 — 11 duplicated blocks under packages/bruno-electron/src/ have copies in at least two of the sibling directories app, ipc, store, utils — 10 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 6 sibling directories (7 clone groups) · ×1
  • Duplication concentrated across 6 sibling directories (7 clone groups) packages/bruno-app/src/components/MockServer/CloneMockServerModal/index.js:42 — 7 duplicated blocks under packages/bruno-app/src/components/MockServer/ have copies in at least two of the sibling directories CloneMockServerModal, CreateMockServerModal, MockResponse, MockServerDashboard, RenameMockServerModal, Sidebar — 4 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 7 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 7 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 7 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Wholesale file copy (624 identical lines × 2 files) · ×1
  • Wholesale file copy (624 identical lines × 2 files) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1 — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1 · packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:1 — these 2 files are line-for-line copies of one another — 624 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block with local edits (469 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (469 matched lines × 2 locations) packages/bruno-lang/v2/src/bruToJson.js:198 — packages/bruno-lang/v2/src/bruToJson.js:198 · packages/bruno-lang/v2/src/collectionBruToJson.js:118 — the two spans are one implementation copied and then locally edited — 3226 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Wholesale file copy (435 identical lines × 3 files) · ×1
  • Wholesale file copy (435 identical lines × 3 files) packages/bruno-app/src/themes/dark/catppuccin-frappe.js:4 — packages/bruno-app/src/themes/dark/catppuccin-frappe.js:4 · packages/bruno-app/src/themes/dark/catppuccin-macchiato.js:4 · packages/bruno-app/src/themes/dark/catppuccin-mocha.js:6 — these 3 files are line-for-line copies of one another — 435 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Wholesale file copy (432 identical lines × 2 files) · ×1
  • Wholesale file copy (432 identical lines × 2 files) packages/bruno-app/src/themes/dark/gruvbox.js:8 — packages/bruno-app/src/themes/dark/gruvbox.js:8 · packages/bruno-app/src/themes/light/gruvbox.js:8 — these 2 files are line-for-line copies of one another — 432 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Wholesale file copy (416 identical lines × 2 files) · ×1
  • Wholesale file copy (416 identical lines × 2 files) packages/bruno-app/src/themes/dark/cyberdream-dark.js:4 — packages/bruno-app/src/themes/dark/cyberdream-dark.js:4 · packages/bruno-app/src/themes/light/cyberdream-light.js:4 — these 2 files are line-for-line copies of one another — 416 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block with local edits (370 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (370 matched lines × 2 locations) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js:45 — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js:45 · packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/StyledWrapper.js:46 — the two spans are one implementation copied and then locally edited — 618 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Wholesale file copy (266 identical lines × 2 files) · ×1
  • Wholesale file copy (266 identical lines × 2 files) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:2 — packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:2 · packages/bruno-app/src/components/Preferences/ClientCertSettings/index.js:2 — these 2 files are line-for-line copies of one another — 266 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block with local edits (221 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (221 matched lines × 2 locations) packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:55 — packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:55 · packages/bruno-app/src/components/Preferences/AI/ProviderCard.js:66 — the two spans are one implementation copied and then locally edited — 1295 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Wholesale file copy (203 identical lines × 2 files) · ×1
  • Wholesale file copy (203 identical lines × 2 files) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js:1 — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js:1 · packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/index.js:1 — these 2 files are line-for-line copies of one another — 203 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block (182 lines × 2 locations) · ×1
  • Duplicated block (182 lines × 2 locations) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:259 — packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:259 · packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:133 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication · Wholesale file copy (173 identical lines × 2 files) · ×1
  • Wholesale file copy (173 identical lines × 2 files) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js:1 — packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js:1 · packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:1 — these 2 files are line-for-line copies of one another — 173 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Wholesale file copy (128 identical lines × 2 files) · ×1
  • Wholesale file copy (128 identical lines × 2 files) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index.js:3 — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index.js:3 · packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js:2 — these 2 files are line-for-line copies of one another — 128 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block with local edits (126 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (126 matched lines × 2 locations) packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js:67 — packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js:67 · packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js:56 — the two spans are one implementation copied and then locally edited — 937 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (118 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (118 matched lines × 2 locations) packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:98 — packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:98 · packages/bruno-app/src/components/Sidebar/NewFolder/index.js:69 — the two spans are one implementation copied and then locally edited — 542 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (116 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (116 matched lines × 2 locations) packages/bruno-app/src/components/MockServer/MockResponse/index.js:92 — packages/bruno-app/src/components/MockServer/MockResponse/index.js:92 · packages/bruno-app/src/components/ResponseExample/index.js:25 — the two spans are one implementation copied and then locally edited — 694 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (113 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (113 matched lines × 2 locations) packages/bruno-lang/v2/src/collectionBruToJson.js:147 — packages/bruno-lang/v2/src/collectionBruToJson.js:147 · packages/bruno-lang/v2/src/envToJson.js:174 — the two spans are one implementation copied and then locally edited — 620 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (112 lines × 2 locations) · ×1
  • Duplicated block (112 lines × 2 locations) packages/bruno-app/src/components/CollectionSettings/Headers/index.js:59 — packages/bruno-app/src/components/CollectionSettings/Headers/index.js:59 · packages/bruno-app/src/components/FolderSettings/Headers/index.js:63 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication · Duplicated block with local edits (106 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (106 matched lines × 2 locations) packages/bruno-converters/src/opencollection/items/grpc.ts:43 — packages/bruno-converters/src/opencollection/items/grpc.ts:43 · packages/bruno-converters/src/opencollection/items/websocket.ts:29 — the two spans are one implementation copied and then locally edited — 698 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (104 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (104 matched lines × 2 locations) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2448 — packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2448 · packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2816 — the two spans are one implementation copied and then locally edited — 698 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (101 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (101 matched lines × 2 locations) packages/bruno-app/src/components/MultiLineEditor/index.js:267 — packages/bruno-app/src/components/MultiLineEditor/index.js:267 · packages/bruno-app/src/components/SingleLineEditor/index.js:139 — the two spans are one implementation copied and then locally edited — 779 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R2 · Cyclomatic Complexity · Complex function jsonToBru (cyclomatic 278, cognitive 283) · ×1
  • Complex function jsonToBru (cyclomatic 278, cognitive 283) packages/bruno-lang/v2/src/jsonToBru.js:15 — jsonToBru has cyclomatic complexity 278 and cognitive complexity 283; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function jsonToCollectionBru (cyclomatic 163, cognitive 154) · ×1
  • Complex function jsonToCollectionBru (cyclomatic 163, cognitive 154) packages/bruno-lang/v2/src/jsonToCollectionBru.js:15 — jsonToCollectionBru has cyclomatic complexity 163 and cognitive complexity 154; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function interpolateVars (cyclomatic 138, cognitive 159) · ×1
  • Complex function interpolateVars (cyclomatic 138, cognitive 159) REDACTED:41 — interpolateVars has cyclomatic complexity 138 and cognitive complexity 159; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function runSingleRequest (cyclomatic 133, cognitive 220) · ×1
  • Complex function runSingleRequest (cyclomatic 133, cognitive 220) REDACTED:103 — runSingleRequest has cyclomatic complexity 133 and cognitive complexity 220; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function handler (cyclomatic 121, cognitive 197) · ×1
  • Complex function handler (cyclomatic 121, cognitive 197) packages/bruno-cli/src/commands/run.js:305 — handler has cyclomatic complexity 121 and cognitive complexity 197; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function interpolateVars (cyclomatic 104, cognitive 129) · ×1
  • Complex function interpolateVars (cyclomatic 104, cognitive 129) REDACTED:36 — interpolateVars has cyclomatic complexity 104 and cognitive complexity 129; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function detectContentTypeFromBuffer (cyclomatic 97, cognitive 45) · ×1
  • Complex function detectContentTypeFromBuffer (cyclomatic 97, cognitive 45) packages/bruno-app/src/utils/response/index.js:214 — detectContentTypeFromBuffer has cyclomatic complexity 97 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 96, cognitive 193) · ×1
  • Complex function (anonymous) (cyclomatic 96, cognitive 193) packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts:336 — (anonymous) has cyclomatic complexity 96 and cognitive complexity 193; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function RequestTabPanel (cyclomatic 83, cognitive 96) · ×1
  • Complex function RequestTabPanel (cyclomatic 83, cognitive 96) packages/bruno-app/src/components/RequestTabPanel/index.js:70 — RequestTabPanel has cyclomatic complexity 83 and cognitive complexity 96; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function prepareRequest (cyclomatic 79, cognitive 149) · ×1
  • Complex function prepareRequest (cyclomatic 79, cognitive 149) packages/bruno-cli/src/runner/prepare-request.js:16 — prepareRequest has cyclomatic complexity 79 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function renderVarInfo (cyclomatic 72, cognitive 86) · ×1
  • Complex function renderVarInfo (cyclomatic 72, cognitive 86) packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:232 — renderVarInfo has cyclomatic complexity 72 and cognitive complexity 86; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 71, cognitive 66) · ×1
  • Complex function (anonymous) (cyclomatic 71, cognitive 66) packages/bruno-app/public/static/diff2Html.js:1565 — (anonymous) has cyclomatic complexity 71 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 70, cognitive 151) · ×1
  • Complex function (anonymous) (cyclomatic 70, cognitive 151) packages/bruno-electron/src/ipc/openapi-sync.js:1591 — (anonymous) has cyclomatic complexity 70 and cognitive complexity 151; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 59, cognitive 122) · ×1
  • Complex function (anonymous) (cyclomatic 59, cognitive 122) REDACTED:1458 — (anonymous) has cyclomatic complexity 59 and cognitive complexity 122; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 59, cognitive 55) · ×1
  • Complex function (anonymous) (cyclomatic 59, cognitive 55) packages/bruno-filestore/src/formats/yml/common/auth.ts:217 — (anonymous) has cyclomatic complexity 59 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function configureRequest (cyclomatic 56, cognitive 86) · ×1
  • Complex function configureRequest (cyclomatic 56, cognitive 86) REDACTED:119 — configureRequest has cyclomatic complexity 56 and cognitive complexity 86; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function CollectionHeader (cyclomatic 56, cognitive 51) · ×1
  • Complex function CollectionHeader (cyclomatic 56, cognitive 51) packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:66 — CollectionHeader has cyclomatic complexity 56 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function setupProxyAgents (cyclomatic 55, cognitive 149) · ×1
  • Complex function setupProxyAgents (cyclomatic 55, cognitive 149) packages/bruno-electron/src/utils/proxy-util.js:76 — setupProxyAgents has cyclomatic complexity 55 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function jsonToExampleBru (cyclomatic 54, cognitive 67) · ×1
  • Complex function jsonToExampleBru (cyclomatic 54, cognitive 67) packages/bruno-lang/v2/src/example/jsonToBru.js:29 — jsonToExampleBru has cyclomatic complexity 54 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function deserializeTab (cyclomatic 54, cognitive 53) · ×1
  • Complex function deserializeTab (cyclomatic 54, cognitive 53) packages/bruno-app/src/utils/snapshot/index.js:662 — deserializeTab has cyclomatic complexity 54 and cognitive complexity 53; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 53, cognitive 92) · ×1
  • Complex function (anonymous) (cyclomatic 53, cognitive 92) packages/bruno-filestore/src/formats/yml/stringifyCollection.ts:70 — (anonymous) has cyclomatic complexity 53 and cognitive complexity 92; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function transformOpenapiRequestItem (cyclomatic 53, cognitive 68) · ×1
  • Complex function transformOpenapiRequestItem (cyclomatic 53, cognitive 68) packages/bruno-converters/src/openapi/openapi-to-bruno.js:278 — transformOpenapiRequestItem has cyclomatic complexity 53 and cognitive complexity 68; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 50, cognitive 54) · ×1
  • Complex function (anonymous) (cyclomatic 50, cognitive 54) packages/bruno-converters/src/opencollection/common/auth.ts:316 — (anonymous) has cyclomatic complexity 50 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 50, cognitive 45) · ×1
  • Complex function (anonymous) (cyclomatic 50, cognitive 45) packages/bruno-converters/src/opencollection/common/auth.ts:171 — (anonymous) has cyclomatic complexity 50 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function PostmanPackageReport (cyclomatic 50, cognitive 41) · ×1
  • Complex function PostmanPackageReport (cyclomatic 50, cognitive 41) packages/bruno-app/src/components/Sidebar/PostmanPackageReport/index.js:69 — PostmanPackageReport has cyclomatic complexity 50 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function createAgents (cyclomatic 49, cognitive 108) · ×1
  • Complex function createAgents (cyclomatic 49, cognitive 108) packages/bruno-requests/src/utils/http-https-agents.ts:463 — createAgents has cyclomatic complexity 49 and cognitive complexity 108; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 48, cognitive 63) · ×1
  • Complex function (anonymous) (cyclomatic 48, cognitive 63) packages/bruno-filestore/src/formats/yml/parseCollection.ts:18 — (anonymous) has cyclomatic complexity 48 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function RequestTab (cyclomatic 48, cognitive 52) · ×1
  • Complex function RequestTab (cyclomatic 48, cognitive 52) packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:38 — RequestTab has cyclomatic complexity 48 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function CreateMockServerModal (cyclomatic 48, cognitive 44) · ×1
  • Complex function CreateMockServerModal (cyclomatic 48, cognitive 44) packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:164 — CreateMockServerModal has cyclomatic complexity 48 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 48, cognitive 41) · ×1
  • Complex function (anonymous) (cyclomatic 48, cognitive 41) packages/bruno-converters/src/opencollection/common/auth.ts:430 — (anonymous) has cyclomatic complexity 48 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function addTab (cyclomatic 47, cognitive 62) · ×1
  • Complex function addTab (cyclomatic 47, cognitive 62) packages/bruno-app/src/providers/ReduxStore/slices/tabs.js:72 — addTab has cyclomatic complexity 47 and cognitive complexity 62; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 47, cognitive 59) · ×1
  • Complex function (anonymous) (cyclomatic 47, cognitive 59) packages/bruno-app/src/utils/collections/index.js:299 — (anonymous) has cyclomatic complexity 47 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function CollectionItemRow (cyclomatic 47, cognitive 44) · ×1
  • Complex function CollectionItemRow (cyclomatic 47, cognitive 44) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:76 — CollectionItemRow has cyclomatic complexity 47 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function formatResponse (cyclomatic 46, cognitive 84) · ×1
  • Complex function formatResponse (cyclomatic 46, cognitive 84) packages/bruno-app/src/utils/common/index.js:249 — formatResponse has cyclomatic complexity 46 and cognitive complexity 84; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function compareRequestFields (cyclomatic 45, cognitive 66) · ×1
  • Complex function compareRequestFields (cyclomatic 45, cognitive 66) packages/bruno-electron/src/ipc/openapi-sync.js:935 — compareRequestFields has cyclomatic complexity 45 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 43, cognitive 91) · ×1
  • Complex function (anonymous) (cyclomatic 43, cognitive 91) packages/bruno-electron/src/ipc/network/axios-instance.js:314 — (anonymous) has cyclomatic complexity 43 and cognitive complexity 91; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function walkSelectionSet (cyclomatic 43, cognitive 80) · ×1
  • Complex function walkSelectionSet (cyclomatic 43, cognitive 80) packages/bruno-app/src/utils/graphql/queryBuilder.js:609 — walkSelectionSet has cyclomatic complexity 43 and cognitive complexity 80; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 43, cognitive 46) · ×1
  • Complex function (anonymous) (cyclomatic 43, cognitive 46) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:626 — (anonymous) has cyclomatic complexity 43 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js · ×1
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js: 4108 lines of code packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:1 — packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js has 4108 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js · ×1
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js: 3450 lines of code packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1 — packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js has 3450 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/public/static/diff2Html.js · ×1
  • packages/bruno-app/public/static/diff2Html.js: 3212 lines of code packages/bruno-app/public/static/diff2Html.js:1 — packages/bruno-app/public/static/diff2Html.js has 3212 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-electron/src/ipc/collection.js · ×1
  • packages/bruno-electron/src/ipc/collection.js: 2451 lines of code packages/bruno-electron/src/ipc/collection.js:1 — packages/bruno-electron/src/ipc/collection.js has 2451 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/utils/collections/index.js · ×1
  • packages/bruno-app/src/utils/collections/index.js: 2410 lines of code packages/bruno-app/src/utils/collections/index.js:1 — packages/bruno-app/src/utils/collections/index.js has 2410 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 2081 lines of code REDACTED:1 — REDACTED has 2081 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js · ×1
  • packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js: 1961 lines of code packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js:1 — packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js has 1961 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-electron/src/ipc/openapi-sync.js · ×1
  • packages/bruno-electron/src/ipc/openapi-sync.js: 1933 lines of code packages/bruno-electron/src/ipc/openapi-sync.js:1 — packages/bruno-electron/src/ipc/openapi-sync.js has 1933 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-electron/src/utils/git.js · ×1
  • packages/bruno-electron/src/utils/git.js: 1651 lines of code packages/bruno-electron/src/utils/git.js:1 — packages/bruno-electron/src/utils/git.js has 1651 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/themes/DesignSystem/Overview.jsx · ×1
  • packages/bruno-app/src/themes/DesignSystem/Overview.jsx: 1335 lines of code packages/bruno-app/src/themes/DesignSystem/Overview.jsx:1 — packages/bruno-app/src/themes/DesignSystem/Overview.jsx has 1335 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js · ×1
  • packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js: 1298 lines of code packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:1 — packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js has 1298 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-lang/v2/src/bruToJson.js · ×1
  • packages/bruno-lang/v2/src/bruToJson.js: 1231 lines of code packages/bruno-lang/v2/src/bruToJson.js:1 — packages/bruno-lang/v2/src/bruToJson.js has 1231 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-converters/src/openapi/openapi-to-bruno.js · ×1
  • packages/bruno-converters/src/openapi/openapi-to-bruno.js: 1152 lines of code packages/bruno-converters/src/openapi/openapi-to-bruno.js:1 — packages/bruno-converters/src/openapi/openapi-to-bruno.js has 1152 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-converters/src/utils/postman-to-bruno-translator.js · ×1
  • packages/bruno-converters/src/utils/postman-to-bruno-translator.js: 1145 lines of code packages/bruno-converters/src/utils/postman-to-bruno-translator.js:1 — packages/bruno-converters/src/utils/postman-to-bruno-translator.js has 1145 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-converters/src/wsdl/wsdl-to-bruno.js · ×1
  • packages/bruno-converters/src/wsdl/wsdl-to-bruno.js: 1143 lines of code packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:1 — packages/bruno-converters/src/wsdl/wsdl-to-bruno.js has 1143 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-converters/src/postman/postman-to-bruno.js · ×1
  • packages/bruno-converters/src/postman/postman-to-bruno.js: 1141 lines of code packages/bruno-converters/src/postman/postman-to-bruno.js:1 — packages/bruno-converters/src/postman/postman-to-bruno.js has 1141 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/utils/codemirror/autocomplete.js · ×1
  • packages/bruno-app/src/utils/codemirror/autocomplete.js: 1129 lines of code packages/bruno-app/src/utils/codemirror/autocomplete.js:1 — packages/bruno-app/src/utils/codemirror/autocomplete.js has 1129 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/utils/codemirror/brunoVarInfo.js · ×1
  • packages/bruno-app/src/utils/codemirror/brunoVarInfo.js: 1111 lines of code packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:1 — packages/bruno-app/src/utils/codemirror/brunoVarInfo.js has 1111 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/EnvironmentVariablesTable/index.js · ×1
  • packages/bruno-app/src/components/EnvironmentVariablesTable/index.js: 1071 lines of code packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:1 — packages/bruno-app/src/components/EnvironmentVariablesTable/index.js has 1071 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-requests/src/grpc/grpc-client.js · ×1
  • packages/bruno-requests/src/grpc/grpc-client.js: 999 lines of code packages/bruno-requests/src/grpc/grpc-client.js:1 — packages/bruno-requests/src/grpc/grpc-client.js has 999 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-converters/src/openapi/openapi-common.js · ×1
  • packages/bruno-converters/src/openapi/openapi-common.js: 960 lines of code packages/bruno-converters/src/openapi/openapi-common.js:1 — packages/bruno-converters/src/openapi/openapi-common.js has 960 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js · ×1
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js: 957 lines of code packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js:1 — packages/bruno-app/src/providers/ReduxStore/slices/collections/exampleReducers.js has 957 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 934 lines of code REDACTED:1 — REDACTED has 934 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js · ×1
  • packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js: 932 lines of code packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1 — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js has 932 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js · ×1
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js: 932 lines of code packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:1 — packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js has 932 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-cli/src/commands/run.js · ×1
  • packages/bruno-cli/src/commands/run.js: 930 lines of code packages/bruno-cli/src/commands/run.js:1 — packages/bruno-cli/src/commands/run.js has 930 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/AiChatSidebar/index.js · ×1
  • packages/bruno-app/src/components/AiChatSidebar/index.js: 923 lines of code packages/bruno-app/src/components/AiChatSidebar/index.js:1 — packages/bruno-app/src/components/AiChatSidebar/index.js has 923 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-electron/src/app/collection-watcher.js · ×1
  • packages/bruno-electron/src/app/collection-watcher.js: 922 lines of code packages/bruno-electron/src/app/collection-watcher.js:1 — packages/bruno-electron/src/app/collection-watcher.js has 922 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 911 lines of code REDACTED:1 — REDACTED has 911 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-converters/src/postman/bruno-to-postman.js · ×1
  • packages/bruno-converters/src/postman/bruno-to-postman.js: 901 lines of code packages/bruno-converters/src/postman/bruno-to-postman.js:1 — packages/bruno-converters/src/postman/bruno-to-postman.js has 901 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 898 lines of code REDACTED:1 — REDACTED has 898 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-electron/src/utils/oauth2.js · ×1
  • packages/bruno-electron/src/utils/oauth2.js: 898 lines of code packages/bruno-electron/src/utils/oauth2.js:1 — packages/bruno-electron/src/utils/oauth2.js has 898 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/globalStyles.js · ×1
  • packages/bruno-app/src/globalStyles.js: 886 lines of code packages/bruno-app/src/globalStyles.js:1 — packages/bruno-app/src/globalStyles.js has 886 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/RequestTabs/RequestTab/index.js · ×1
  • packages/bruno-app/src/components/RequestTabs/RequestTab/index.js: 846 lines of code packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:1 — packages/bruno-app/src/components/RequestTabs/RequestTab/index.js has 846 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-js/src/bru.js · ×1
  • packages/bruno-js/src/bru.js: 825 lines of code packages/bruno-js/src/bru.js:1 — packages/bruno-js/src/bru.js has 825 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/ApiSpecPanel/Renderers/Swagger/StyledWrapper.js · ×1
  • packages/bruno-app/src/components/ApiSpecPanel/Renderers/Swagger/StyledWrapper.js: 801 lines of code packages/bruno-app/src/components/ApiSpecPanel/Renderers/Swagger/StyledWrapper.js:1 — packages/bruno-app/src/components/ApiSpecPanel/Renderers/Swagger/StyledWrapper.js has 801 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/Preferences/Keybindings/index.js · ×1
  • packages/bruno-app/src/components/Preferences/Keybindings/index.js: 799 lines of code packages/bruno-app/src/components/Preferences/Keybindings/index.js:1 — packages/bruno-app/src/components/Preferences/Keybindings/index.js has 799 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-common/src/runner/reports/html/template.ts · ×1
  • packages/bruno-common/src/runner/reports/html/template.ts: 781 lines of code packages/bruno-common/src/runner/reports/html/template.ts:1 — packages/bruno-common/src/runner/reports/html/template.ts has 781 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/SaveTransientRequest/index.js · ×1
  • packages/bruno-app/src/components/SaveTransientRequest/index.js: 764 lines of code packages/bruno-app/src/components/SaveTransientRequest/index.js:1 — packages/bruno-app/src/components/SaveTransientRequest/index.js has 764 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx · ×1
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx: 756 lines of code packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:1 — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx has 756 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R5 · Dependency Freshness · Dependency Freshness · ×1
  • Dependency Freshness — 190 outdated package(s); JS/npm CVEs scored in D30
R7 · Dead Code · Dead file (~1023 LoC) · ×1
  • Dead file (~1023 LoC) packages/bruno-cli/src/commands/run.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~160 LoC) · ×1
  • Dead file (~160 LoC) packages/bruno-app/src/components/ErrorCapture/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~152 LoC) · ×1
  • Dead file (~152 LoC) packages/bruno-app/src/components/CreateUntitledRequest/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~149 LoC) · ×1
  • Dead file (~149 LoC) packages/bruno-app/src/components/Devtools/Console/DebugTab/StyledWrapper.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/Devtools/Console/DebugTab/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~128 LoC) · ×1
  • Dead file (~128 LoC) packages/bruno-app/src/components/Icons/OpenAPILogo/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~123 LoC) · ×1
  • Dead file (~123 LoC) REDACTED — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~122 LoC) · ×1
  • Dead file (~122 LoC) packages/bruno-app/src/utils/codegenerator/auth.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~111 LoC) · ×1
  • Dead file (~111 LoC) packages/bruno-app/src/components/ReorderTable/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~107 LoC) · ×1
  • Dead file (~107 LoC) packages/bruno-app/src/ui/MaskedTextfield/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~106 LoC) · ×1
  • Dead file (~106 LoC) packages/bruno-app/src/components/Devtools/Console/DebugTab/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~102 LoC) · ×1
  • Dead file (~102 LoC) packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/RenameEnvironment/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~101 LoC) · ×1
  • Dead file (~101 LoC) packages/bruno-app/storybook/preview.jsx — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~92 LoC) · ×1
  • Dead file (~92 LoC) packages/bruno-app/plugins/remote-images/serve-fixture.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (REDACTED) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~82 LoC) · ×1
  • Dead file (~82 LoC) packages/bruno-app/src/ui/MaskedTextfield/StyledWrapper.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/ui/MaskedTextfield/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~75 LoC) · ×1
  • Dead file (~75 LoC) packages/bruno-app/src/ui/Toggle/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~48 LoC) · ×1
  • Dead file (~48 LoC) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleDescription/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~42 LoC) · ×1
  • Dead file (~42 LoC) packages/bruno-app/src/components/DeprecationWarning/StyledWrapper.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/DeprecationWarning/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~40 LoC) · ×1
  • Dead file (~40 LoC) packages/bruno-cli/src/utils/run.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-cli/src/commands/run.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~37 LoC) · ×1
  • Dead file (~37 LoC) packages/bruno-converters/src/opencollection/index.ts — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~35 LoC) · ×1
  • Dead file (~35 LoC) packages/bruno-app/src/components/ResponsePane/ResponseActions/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~34 LoC) · ×1
  • Dead file (~34 LoC) packages/bruno-app/src/utils/codemirror/lang-detect.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~33 LoC) · ×1
  • Dead file (~33 LoC) packages/bruno-app/src/utils/idb/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~29 LoC) · ×1
  • Dead file (~29 LoC) packages/bruno-app/src/components/ResponsePane/ResponseActions/StyledWrapper.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/components/ResponsePane/ResponseActions/index.js) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it
R7 · Dead Code · Dead file (~28 LoC) · ×1
  • Dead file (~28 LoC) packages/bruno-app/src/components/ModeSwitch/index.js — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~26 LoC) · ×1
  • Dead file (~26 LoC) packages/bruno-sqlite/migrations/0000004_runner_response_files.ts — no import path from any entry point (110 application, 78 tooling, 1397 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R8 · Dependency Hygiene · Unlisted import '@rspack/core' · ×1
  • Unlisted import '@rspack/core' packages/bruno-app/plugins/remote-images/loader.cjs:127 — Imported only as a TYPE and declared in no reachable REDACTED. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning REDACTED.
R8 · Dependency Hygiene · Unused dependency 'node-addon-api' · ×1
  • Unused dependency 'node-addon-api' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'pretty-quick' · ×1
  • Unused dependency 'pretty-quick' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'randomstring' · ×1
  • Unused dependency 'randomstring' — Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'diff2html' · ×1
  • Unused dependency 'diff2html' — Declared in packages/bruno-app/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'json5' · ×1
  • Unused dependency 'json5' — Declared in packages/bruno-app/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'markdown-it-replace-link' · ×1
  • Unused dependency 'markdown-it-replace-link' — Declared in packages/bruno-app/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'react-inspector' · ×1
  • Unused dependency 'react-inspector' — Declared in packages/bruno-app/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'system' · ×1
  • Unused dependency 'system' — Declared in packages/bruno-app/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'about-window' · ×1
  • Unused dependency 'about-window' — Declared in REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'hexy' · ×1
  • Unused dependency 'hexy' — Declared in REDACTED but never imported anywhere in that package or its workspace members — while packages/bruno-requests/src/ws/ws-client.js DOES import it and no REDACTED above that file declares it, so the import resolves through the copy this declaration installs. The declaration is misplaced rather than dead: removing it breaks that import. Move it to the REDACTED that owns the importing file (or, if the two packages are meant to share it, hoist it to the workspace root) rather than deleting it.
R8 · Dependency Hygiene · Unused dependency 'node-fetch' · ×1
  • Unused dependency 'node-fetch' — Declared in packages/bruno-js/package.json but never imported anywhere in that package or its workspace members — while packages/bruno-electron/src/ipc/notifications.js DOES import it and no REDACTED above that file declares it, so the import resolves through the copy this declaration installs. The declaration is misplaced rather than dead: removing it breaks that import. Move it to the REDACTED that owns the importing file (or, if the two packages are meant to share it, hoist it to the workspace root) rather than deleting it.
R8 · Dependency Hygiene · Unused dependency 'http-proxy' · ×1
  • Unused dependency 'http-proxy' — Declared in packages/bruno-tests/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency '@faker-js/faker' · ×1
  • Unused dependency '@faker-js/faker' — Declared in packages/bruno-tests/collection/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'external-lib-with-bru-req-res-objects' · ×1
  • Unused dependency 'external-lib-with-bru-req-res-objects' — Declared in packages/bruno-tests/collection/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency 'jose' · ×1
  • Unused dependency 'jose' — Declared in packages/bruno-tests/collection/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
S1 · Web-Security Posture · The encryption IV is the same for every message · ×1
  • The encryption IV is the same for every message packages/bruno-electron/src/utils/encryption.js:34 — This encryption's initialisation vector is a compile-time constant, so every message encrypted under the same key gets the same IV. An IV is not a secret and does not have to be one — its whole job is to be DIFFERENT each time, so that encrypting the same plaintext twice does not produce the same ciphertext. Fix it and CBC becomes an equality oracle: the mode XORs the IV into the first plaintext block and chains from there, so two messages encrypted with the same key and IV produce byte-identical ciphertext for exactly as long as their plaintexts agree. An observer who can see two ciphertexts — a repository of encrypted config files, a database column, a backup — learns that two records match and how many blocks in they diverge, without the key and without breaking anything. The same defect under a counter-based mode is worse and not recoverable by comparison: CTR and GCM XOR the plaintext against a keystream determined by the key and nonce, so a repeated nonce leaks the XOR of the two plaintexts outright, and under GCM it also forfeits the authentication key. Generate the IV with a cryptographic RNG for each message — `RandomNumberGenerator.Fill(iv)` in .NET, `crypto.randomBytes(16)` in Node — and write it alongside the ciphertext (prepending the block is the usual spelling); the receiver reads it back from there. Deriving the IV from the key material is the specific trap to avoid: it looks like rigour and produces a constant, because the derivation's inputs do not change between messages.
Minor — 501 finding(s)
D24 · Comment Value · redundant comment · ×220
  • redundant comment packages/bruno-app/src/components/AppTitleBar/index.js:36 — "Helper to get display name for workspace" repeats the code it sits on: 4 of its 5 words (get, display, name, workspace) are already in `export const getWorkspaceDisplayName = (name) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:301 — "Create new session at this CWD" repeats the code it sits on: 4 of its 4 words (create, new, session, cwd) are already in `await createNewSession(cwd);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/Environments/DotEnvFileEditor/index.js:305 — "Raw view mode" repeats the code it sits on: 3 of its 3 words (raw, view, mode) are already in `if (viewMode === 'raw')`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/GlobalSearchModal/index.js:73 — "Search collection name" repeats the code it sits on: 3 of its 3 words (search, collection, name) are already in `if (searchTerms.every((term) => collection.name.toLowerCase().includes(term)))`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js:143 — "Define available tabs for each grant type" repeats the code it sits on: 4 of its 5 words (available, tabs, grant, type) are already in `const getAvailableTabs = (grantType) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/RequestPane/QueryUrl/HttpMethodSelector/index.js:119 — "Add "Add Custom" item" repeats the code it sits on: 3 of its 3 words (add, custom, item) are already in `items.push({`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/RequestPane/Settings/index.js:81 — "Check if timeout is inherited" repeats the code it sits on: 3 of its 3 words (check, timeout, inherited) are already in `const isTimeoutInherited = timeout === 'inherit' || timeout === undefined || timeout === null;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/RequestTabPanel/index.js:104 — "Mock-server tabs may point at a collection other than the focused one." repeats the code it sits on: 5 of its 6 words (mock, server, tabs, collection, focused) are already in `const mockInstanceCollectionUid = resolvedMockServerInstance`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:225 — "Get tab count for a given collection uid" repeats the code it sits on: 5 of its 6 words (get, tab, count, collection, uid) are already in `const getTabCount = (collectionUid) => tabCountsByCollection[collectionUid] || 0;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:228 — "Get tab count for workspace (scratch collection)" repeats the code it sits on: 6 of its 6 words (get, tab, count, workspace, scratch, collection) are already in `const workspaceTabCount = currentWorkspace?.scratchCollectionUid`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:43 — "Merge updated query params with path params" repeats the code it sits on: 4 of its 5 words (updated, query, params, path) are already in `const allParams = [...updatedQueryParams, ...pathParams];`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleParams/index.js:71 — "Merge updated path params with query params" repeats the code it sits on: 4 of its 5 words (updated, path, params, query) are already in `const allParams = [...queryParams, ...updatedPathParams];`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleResponseHeaders/index.js:45 — "Check if content-type header was updated" repeats the code it sits on: 5 of its 5 words (check, content, type, header, updated) are already in `const contentTypeHeader = updatedHeaders.find((h) => h.name?.toLowerCase() === 'content-type');`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/ResponsePane/QueryResult/index.js:18 — "Preview format options" repeats the code it sits on: 3 of its 3 words (preview, format, options) are already in `const PREVIEW_FORMAT_OPTIONS = [`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/ResponsePane/QueryResult/index.js:87 — "Return all format options" repeats the code it sits on: 3 of its 3 words (return, format, options) are already in `return PREVIEW_FORMAT_OPTIONS;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/ResponsePane/QueryResult/index.js:170 — "Find the codeMirrorMode from PREVIEW_FORMAT_OPTIONS (contains all format options)" repeats the code it sits on: 7 of its 8 words (find, code, mirror, mode, preview, format, options) are already in `return PREVIEW_FORMAT_OPTIONS`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/ResponsePane/ResponseLayoutToggle/index.spec.js:16 — "Mock localStorage" repeats the code it sits on: 3 of its 3 words (mock, local, storage) are already in `const mockLocalStorage = {`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:45 — "Extract collection name from raw data" repeats the code it sits on: 4 of its 5 words (collection, name, raw, data) are already in `const getCollectionName = (format, rawData) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment REDACTED:196 — "For multiple files import" repeats the code it sits on: 3 of its 3 words (multiple, files, import) are already in `const filesData = isMultipleImport ? importData.filesData : [];`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:139 — "Check if request has examples (only for HTTP requests)" repeats the code it sits on: 5 of its 6 words (check, request, examples, http, requests) are already in `const hasExamples = isItemARequest(item) && item.type === 'http-request' && item.examples && item.examples.length > 0;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/ExampleItem/index.js:141 — "Check if example has a request URL" repeats the code it sits on: 4 of its 4 words (check, example, request, url) are already in `if (`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:104 — "Open the OpenAPI Sync tab" repeats the code it sits on: 4 of its 4 words (open, api, sync, tab) are already in `const openOpenAPISyncTab = () =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js:31 — "Extract collection name from raw data" repeats the code it sits on: 4 of its 5 words (collection, name, raw, data) are already in `const getCollectionName = (format, rawData) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/StatusBar/ThemeDropdown/index.js:90 — "Get max index for a section" repeats the code it sits on: 4 of its 4 words (get, max, index, section) are already in `const getMaxIndex = useCallback((section) =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment packages/bruno-app/src/components/StatusBar/ThemeDropdown/index.js:100 — "Get mode index for returning to mode section" repeats the code it sits on: 4 of its 5 words (get, mode, index, returning) are already in `const getModeIndex = useCallback(() =>`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • + 195 more in this group — see findings.md.
D10 · Test Quality · Mock-dominated test · ×77
  • Mock-dominated test: passes TLS options to https.Agent for HTTPS pac URLs packages/bruno-requests/src/utils/pac-resolver.spec.ts:100 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: does not create https.Agent for HTTP pac URLs packages/bruno-requests/src/utils/pac-resolver.spec.ts:123 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: resolves Windows file:// URL to correct OS path packages/bruno-requests/src/utils/pac-resolver.spec.ts:234 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: does not create https.Agent for file:// URL packages/bruno-requests/src/utils/pac-resolver.spec.ts:279 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: fires exactly once even when a callback is provided packages/bruno-requests/src/scripting/scripted-entry.spec.ts:204 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should not let Object.freeze(bru) in one script poison later scripts packages/bruno-js/src/sandbox/node-vm/index.spec.js:682 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should let a cached npm module see the bru of the script currently running packages/bruno-js/src/sandbox/node-vm/index.spec.js:711 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should keep interleaved executions bound to their own bru when %s packages/bruno-js/src/sandbox/node-vm/index.spec.js:765 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should read a missing key as undefined and still call it once a later execution provides a function packages/bruno-js/src/sandbox/node-vm/index.spec.js:991 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should re-evaluate a parent that snapshots a context-bound dependency at load time packages/bruno-js/src/sandbox/node-vm/index.spec.js:1040 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 6 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should re-evaluate a three-level parent chain that snapshots bru at the leaf packages/bruno-js/src/sandbox/node-vm/index.spec.js:1066 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 6 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should provide req object to npm modules packages/bruno-js/src/sandbox/node-vm/index.spec.js:1387 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should provide res object to npm modules packages/bruno-js/src/sandbox/node-vm/index.spec.js:1429 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should provide bru, req, res to nested npm module dependencies packages/bruno-js/src/sandbox/node-vm/index.spec.js:1467 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: removes the watcher when unmounting a mounted collection packages/bruno-electron/src/services/mount/manager.spec.js:72 — This test sets up 3 test doubles (for example `a double assigned in a shared setup`) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: creates a collection environment then selects it once the watcher reports it packages/bruno-app/src/utils/variables/index.spec.js:198 — This test sets up 4 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should close the hints popup and stop propagation of Escape when the popup is open packages/bruno-app/src/utils/codemirror/autocomplete.spec.js:1763 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should close the hints popup on %s+Escape (show-hint only binds plain Esc) packages/bruno-app/src/utils/codemirror/autocomplete.spec.js:1775 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should not stop propagation of other keys when the hints popup is open packages/bruno-app/src/utils/codemirror/autocomplete.spec.js:1801 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: adds variable as a secret if secret is selected when creating the environment, instead of always saving as a plain variable packages/bruno-app/src/utils/codemirror/brunoVarInfo.spec.js:780 — This test sets up 3 test doubles (for example `vi.mock/jest.mock of an imported module`) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should add cmd-ctrl-pressed class when modifier key is pressed packages/bruno-app/src/utils/codemirror/linkAware.spec.js:188 — This test sets up 3 test doubles (for example `vi.mock/jest.mock of an imported module`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should remove cmd-ctrl-pressed class when modifier key is released packages/bruno-app/src/utils/codemirror/linkAware.spec.js:200 — This test sets up 3 test doubles (for example `vi.mock/jest.mock of an imported module`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should call custom link handler when clicking a link packages/bruno-app/src/utils/codemirror/linkAware.spec.js:214 — This test sets up 5 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should open external URL when Cmd+clicking on a link packages/bruno-app/src/utils/codemirror/linkAware.spec.js:238 — This test sets up 5 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should not open URL when clicking on non-link element packages/bruno-app/src/utils/codemirror/linkAware.spec.js:278 — This test sets up 3 test doubles (for example `vi.mock/jest.mock of an imported module`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • + 52 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js:27 — `!!variable?.uid && usedVariableUids.has(variable.uid)` appears character-identically in 2 files — packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js, packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-common/src/utils/environment-inheritance.ts:45 — `!Array.isArray(environmentExtendsReference) || !environmentExtendsReference.length` appears character-identically in 2 files — packages/bruno-common/src/utils/environment-inheritance.ts, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js:69 — `!Array.isArray(filePaths) || filePaths.length === 0` appears character-identically in 2 files — packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js, packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js:325 — `!activeTabUid || !focusedTab?.uid || !requestPaneTab` appears character-identically in 3 files — packages/bruno-app/src/components/RequestPane/GraphQLRequestPane/index.js, packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js, packages/bruno-app/src/components/RequestPane/WSRequestPane/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate REDACTED:151 — `!activeWorkspace || activeWorkspace.type === 'default'` appears character-identically in 3 files — REDACTED, packages/bruno-app/src/components/Sidebar/CloneGitRespository/index.js, packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-converters/src/utils/bruno-send-request-transformer.js:193 — `!callback || (callback.type !== 'FunctionExpression' && callback.type !== 'ArrowFunctionExpression')` appears character-identically in 2 files — packages/bruno-converters/src/utils/bruno-send-request-transformer.js, packages/bruno-converters/src/utils/send-request-transformer.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate REDACTED:470 — `!collectionProxyDisabled && !collectionProxyInherit` appears character-identically in 3 files — REDACTED, packages/bruno-electron/src/ipc/network/cert-utils.js, packages/bruno-requests/src/utils/http-https-agents.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate REDACTED:474 — `!collectionProxyDisabled && collectionProxyInherit` appears character-identically in 3 files — REDACTED, packages/bruno-electron/src/ipc/network/cert-utils.js, packages/bruno-requests/src/utils/http-https-agents.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/utils/common/codemirror.js:100 — `!contentType || typeof contentType !== 'string'` appears character-identically in 4 files — packages/bruno-app/src/utils/common/codemirror.js, packages/bruno-app/src/utils/common/index.js, packages/bruno-app/src/utils/curl/content-type.js, packages/bruno-converters/src/openapi/openapi-common.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-electron/src/utils/oauth2.js:45 — `!credentials?.expires_in || !credentials.created_at` appears character-identically in 2 files — packages/bruno-electron/src/utils/oauth2.js, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:600 — `!currentValues || currentValues.length === 0` appears character-identically in 2 files — packages/bruno-app/src/components/EnvironmentVariablesTable/index.js, packages/bruno-app/src/components/Environments/DotEnvFileEditor/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/utils/snapshot/index.js:226 — `!existing || (incomingIsActive && !existingIsActive) || (incomingIsActive && existingIsActive && Boolean(collection.selectedEnvironment || c…` appears character-identically in 2 files — packages/bruno-app/src/utils/snapshot/index.js, packages/bruno-electron/src/services/snapshot/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-electron/src/ipc/network/authorize-user-in-window.js:212 — `!expectedState || returnedState !== expectedState` appears character-identically in 2 files — packages/bruno-electron/src/ipc/network/authorize-user-in-window.js, packages/bruno-electron/src/utils/oauth2-protocol-handler.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js:159 — `!filePaths || (Array.isArray(filePaths) && filePaths.length === 0)` appears character-identically in 2 files — packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js, packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-cli/src/utils/filesystem.js:62 — `!filename || typeof filename !== 'string'` appears character-identically in 3 files — packages/bruno-cli/src/utils/filesystem.js, packages/bruno-electron/src/app/apiSpecsWatcher.js, packages/bruno-electron/src/utils/filesystem.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js:154 — `!focusedTab || !focusedTab.uid || !focusedTab.responsePaneTab` appears character-identically in 3 files — packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js, packages/bruno-app/src/components/ResponsePane/WsResponsePane/index.js, packages/bruno-app/src/components/ResponsePane/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index.js:114 — `!isEditing && formik.setFieldValue('filename', sanitizeName(e.target.value))` appears character-identically in 3 files — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CloneCollectionItem/index.js, packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js, packages/bruno-app/src/components/Sidebar/NewRequest/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js:113 — `!isLastEmptyRow && usedVariableUids.has(row.uid)` appears character-identically in 3 files — packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js, packages/bruno-app/src/components/FolderSettings/Vars/VarsTable/index.js, packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js:99 — `!isLastEmptyRow && varType === 'request'` appears character-identically in 3 files — packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js, packages/bruno-app/src/components/FolderSettings/Vars/VarsTable/index.js, packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-cli/src/runner/awsv4auth-helper.js:34 — `!isStrPresent(awsv4.accessKeyId) || !isStrPresent(awsv4.secretAccessKey)` appears character-identically in 2 files — packages/bruno-cli/src/runner/awsv4auth-helper.js, packages/bruno-electron/src/ipc/network/awsv4auth-helper.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/utils/collections/index.js:925 — `!item.hasOwnProperty('request') && item.type === 'folder'` appears character-identically in 2 files — packages/bruno-app/src/utils/collections/index.js, packages/bruno-app/src/utils/tabs/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/ResponsePane/WsResponsePane/index.js:91 — `!item.response && !requestTimeline?.length` appears character-identically in 2 files — packages/bruno-app/src/components/ResponsePane/WsResponsePane/index.js, packages/bruno-app/src/components/ResponsePane/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-app/src/components/Devtools/Console/index.js:244 — `!node || typeof ResizeObserver === 'undefined'` appears character-identically in 2 files — packages/bruno-app/src/components/Devtools/Console/index.js, packages/bruno-app/src/components/VariablesEditor/index.js. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate REDACTED:24 — `!pathParam || pathParam.enabled === false` appears character-identically in 3 files — REDACTED, REDACTED, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate packages/bruno-cli/src/utils/proxy-util.js:32 — `!proxyBypass || typeof proxyBypass !== 'string' || isEmpty(proxyBypass.trim())` appears character-identically in 3 files — packages/bruno-cli/src/utils/proxy-util.js, packages/bruno-electron/src/utils/proxy-util.js, packages/bruno-requests/src/utils/http-https-agents.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • + 15 more in this group — see findings.md.
P2 · Observability · Console output used as the logging channel · ×32
  • Console output used as the logging channel packages/bruno-requests/src/ws/ws-client.js:26 — `packages/bruno-requests/src/ws/ws-client.js` reports through `console.*` at line 26 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/ws/ws-client.js:143 — `packages/bruno-requests/src/ws/ws-client.js` reports through `console.*` at line 143 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel REDACTED:33 — `REDACTED` reports through `console.*` at line 33 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/utils/ca-cert.ts:65 — `packages/bruno-requests/src/utils/ca-cert.ts` reports through `console.*` at line 65 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/utils/ca-cert.ts:118 — `packages/bruno-requests/src/utils/ca-cert.ts` reports through `console.*` at line 118 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/utils/ca-cert.ts:157 — `packages/bruno-requests/src/utils/ca-cert.ts` reports through `console.*` at line 157 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/utils/http-https-agents.ts:296 — `packages/bruno-requests/src/utils/http-https-agents.ts` reports through `console.*` at line 296 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/utils/http-https-agents.ts:308 — `packages/bruno-requests/src/utils/http-https-agents.ts` reports through `console.*` at line 308 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:67 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 67 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:250 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 250 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:266 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 266 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:372 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 372 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:490 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 490 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:705 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 705 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:763 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 763 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:856 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 856 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:972 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 972 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpc-client.js:1048 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 1048 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpcMessageGenerator.js:102 — `packages/bruno-requests/src/grpc/grpcMessageGenerator.js` reports through `console.*` at line 102 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/grpc/grpcMessageGenerator.js:129 — `packages/bruno-requests/src/grpc/grpcMessageGenerator.js` reports through `console.*` at line 129 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel REDACTED:395 — `REDACTED` reports through `console.*` at line 395 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/auth/digestauth-helper.js:37 — `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 37 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/auth/digestauth-helper.js:40 — `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 40 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/auth/digestauth-helper.js:60 — `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 60 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel packages/bruno-requests/src/auth/digestauth-helper.js:61 — `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 61 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • + 7 more in this group — see findings.md.
X7 · Silent fallback defaults · Silent fallback default in catch · ×24
  • Silent fallback default in catch packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js:35 — `getEnvBackgroundColor` swallows every exception into `return 'transparent'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/components/ErrorCapture/index.js:72 — `serializeArgs` swallows every exception into `return '[Unserializable]'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/components/MultiLineEditor/index.js:175 — `widget` (in `componentDidMount`) swallows every exception into `return '\u2194'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:61 — `readDismissedCollections` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/Request/index.js:10 — `safeStringifyJSONIfNotString` swallows every exception into `return '[Unserializable Object]'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/Response/index.js:12 — `safeStringifyJSONIfNotString` swallows every exception into `return '[Unserializable Object]'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/components/ResponsePane/index.js:116 — `ResponsePane` swallows every exception into `return 0` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/components/Sidebar/ApiSpecs/CreateApiSpec/apiSpecSources.js:66 — `deriveApiSpecNameFromUrl` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/providers/ReduxStore/slices/notifications.js:30 — `getClearedNotificationIds` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/ui/RichTextEditor/extensions/EditorRawHtmlBlock/index.js:110 — `encodeRawHtml` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/ui/RichTextEditor/extensions/EditorRawHtmlBlock/index.js:118 — `decodeRawHtml` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-app/src/utils/variables/index.js:55 — `inferDataTypeFromText` swallows every exception into `return 'string'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-cli/src/utils/filesystem.js:116 — `getSubDirectories` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-common/src/utils/datatype.ts:80 — `valueToString` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-js/src/bruno-request.js:134 — `getHost` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-js/src/bruno-request.js:174 — `getPath` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-js/src/bruno-request.js:187 — `getQueryString` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-requests/src/auth/oauth1-request-authorization.ts:111 — `parseQueryParams` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-requests/src/utils/ca-cert.ts:28 — `getSystemCerts` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-requests/src/scripting/send-request.ts:79 — `toResponseDataBuffer` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch packages/bruno-sqlite/src/node/files.ts:161 — `_sweepOrphans` swallows every exception into `return 0` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch scripts/changed-packages.js:93 — `allPackageDirs` swallows every exception into `return false` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch scripts/count-locs.js:15 — `countLinesInFile` swallows every exception into `return 0` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch tests/utils/page/actions.ts:3638 — `evalInActiveAppGuest` swallows every exception into `return false` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
D34 · Knowledge Freshness · Orphaned file · ×21
  • Orphaned file packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffContent/StyledWrapper.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffBody.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-electron/src/store/oauth2.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/OpenAPISyncTab/hooks/useEndpointActions.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffAuth.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/EndpointVisualDiff.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file REDACTED:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/OpenAPISyncTab/SpecDiffModal/buildRows.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/Git/VisualDiffViewer/utils/diffUtils.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultTypeSelector/index.jsx:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/utils/codegenerator/auth.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-query/src/index.ts:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/hooks/useDragResize/index.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffContent/index.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/index.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/RequestPane/GraphQLSchemaActions/index.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-converters/src/insomnia/env-utils.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/OpenAPISyncTab/ConfirmSyncModal/index.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffParams.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/Icons/OpenAPISync/index.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file packages/bruno-app/src/components/Environments/EnvironmentSettings/CopyEnvironment/index.js:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
M4 · Documentation accuracy · README/code drift · ×17
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_ua.md`, but `docs/readme/docs/readme/readme_ua.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_ru.md`, but `docs/readme/docs/readme/readme_ru.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_tr.md`, but `docs/readme/docs/readme/readme_tr.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_de.md`, but `docs/readme/docs/readme/readme_de.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_fr.md`, but `docs/readme/docs/readme/readme_fr.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_pt_br.md`, but `docs/readme/docs/readme/readme_pt_br.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_kr.md`, but `docs/readme/docs/readme/readme_kr.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_bn.md`, but `docs/readme/docs/readme/readme_bn.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_es.md`, but `docs/readme/docs/readme/readme_es.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_it.md`, but `docs/readme/docs/readme/readme_it.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_ro.md`, but `docs/readme/docs/readme/readme_ro.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_pl.md`, but `docs/readme/docs/readme/readme_pl.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_cn.md`, but `docs/readme/docs/readme/readme_cn.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_zhtw.md`, but `docs/readme/docs/readme/readme_zhtw.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_ar.md`, but `docs/readme/docs/readme/readme_ar.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:13 — docs/readme/readme_nl.md links to `docs/readme/readme_ja.md`, but `docs/readme/docs/readme/readme_ja.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/readme/readme_nl.md:138 — docs/readme/readme_nl.md links to `contributing.md`, but `docs/readme/contributing.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every REDACTED, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
D12 · Dependency Hygiene · Outdated (npm) · ×12
  • Outdated (npm): chalk packages/bruno-cli/package.json:62 — chalk is pinned at 3.0.0; registry.npmjs.org publishes 6.0.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): chokidar REDACTED:57 — chokidar is pinned at 3.6.0; registry.npmjs.org publishes 6.0.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): content-disposition REDACTED:58 — content-disposition is pinned at 0.5.4; registry.npmjs.org publishes 3.0.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): electron-store REDACTED:137 — electron-store is pinned at 8.2.0; registry.npmjs.org publishes 12.0.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): graphiql packages/bruno-app/package.json:57 — graphiql is pinned at 3.7.1; registry.npmjs.org publishes 6.0.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): graphql-request packages/bruno-app/package.json:59 — graphql-request is pinned at 4.2.0; registry.npmjs.org publishes 7.4.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): i18next packages/bruno-app/package.json:63 — i18next is pinned at 24.1.2; registry.npmjs.org publishes 27.1.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): nanoid packages/bruno-app/package.json:84 — nanoid is pinned at 3.3.18; registry.npmjs.org publishes 6.0.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): query-string packages/bruno-app/package.json:92 — query-string is pinned at 7.1.3; registry.npmjs.org publishes 10.0.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): react-i18next packages/bruno-app/package.json:99 — react-i18next is pinned at 15.4.0; registry.npmjs.org publishes 18.0.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): react-inspector packages/bruno-app/package.json:100 — react-inspector is pinned at 6.0.2; registry.npmjs.org publishes 9.0.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): uuid REDACTED:84 — uuid is pinned at 10.0.0; registry.npmjs.org publishes 14.0.3 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
X6 · Hand-rolled structured-format parsing · Hand-rolled JSON/XML parsing via regex · ×11
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/Preferences/AI/AutocompletePane.js:152 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:369 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/Preferences/AI/SecurityPane.js:162 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/Preferences/AI/SecurityPane.js:177 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/Preferences/AI/SecurityPane.js:246 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:415 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:443 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:445 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/FolderSettings/Auth/index.js:204 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/CollectionSettings/Auth/index.js:64 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/AiChatSidebar/index.js:711 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
D16 · Bus Factor · Off-boarding risk · ×10
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 12 significant file(s) lose their only recent owner: packages/bruno-app/src/ui/RichTextEditor/extensions/EditorRawHtmlBlock/index.js, packages/bruno-app/src/ui/RichTextEditor/editorContentStyles.js, packages/bruno-app/src/ui/RichTextEditor/utils/editorMarkdownSerialize.js, packages/bruno-app/src/ui/RichTextEditor/utils/editorToolbarConfig.js, packages/bruno-app/src/ui/RichTextEditor/extensions/EditorTaskList/index.js, packages/bruno-app/src/ui/RichTextEditor/hooks/useToolbarOverflow/index.js, packages/bruno-app/src/ui/RichTextEditor/extensions/EditorRelativeAssets/index.js, packages/bruno-app/src/ui/RichTextEditor/components/EditorToolbar/index.js (+4 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 11 significant file(s) lose their only recent owner: packages/bruno-electron/src/ipc/yml-migration.js, packages/bruno-electron/src/ipc/ai/context.js, packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js, packages/bruno-electron/src/ipc/ai/chat.js, packages/bruno-electron/src/store/default-workspace.js, packages/bruno-app/src/providers/ReduxStore/slices/chat.js, packages/bruno-app/src/utils/codemirror/aiGhostText.js, packages/bruno-app/src/components/AiChatSidebar/DiffView/index.js (+3 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #3 — If anonymized user #3 becomes unavailable, 11 significant file(s) lose their only recent owner: packages/bruno-app/src/hooks/useResizableColumns/index.js, packages/bruno-app/src/ui/Checkbox/index.js, packages/bruno-app/src/ui/SegmentedControl/SegmentedControl.stories.jsx, packages/bruno-app/src/ui/Checkbox/Checkbox.stories.jsx, packages/bruno-app/src/ui/SegmentedControl/components/StyledWrapper.js, packages/bruno-app/src/ui/MaskedTextfield/index.js, packages/bruno-app/src/components/CodeMirrorSearch/StyledWrapper.js, packages/bruno-app/src/ui/Checkbox/StyledWrapper.js (+3 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #4 — If anonymized user #4 becomes unavailable, 10 significant file(s) lose their only recent owner: packages/bruno-app/src/components/SaveTransientRequest/StyledWrapper.js, packages/bruno-electron/src/services/mount/tree-builder.js, packages/bruno-app/src/components/CreateTransientRequest/index.js, packages/bruno-sqlite/src/node/files.ts, packages/bruno-electron/src/services/runner-exchange/index.js, packages/bruno-electron/src/services/sqlite/index.js, packages/bruno-filestore/src/formats/bru/utils/redact-large-text-blocks.ts, packages/bruno-electron/src/services/pool/jobs/parse-file.js (+2 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #5 — If anonymized user #5 becomes unavailable, 9 significant file(s) lose their only recent owner: packages/bruno-app/src/components/Preferences/ClientCertSettings/index.js, packages/bruno-js/src/readonly-property-list.js, packages/bruno-js/src/grpc/grpc-metadata-list.js, packages/bruno-app/src/components/RunnerResults/RunnerFilter/StyledWrapper.js, packages/bruno-js/src/grpc/grpc-message-list.js, packages/bruno-app/src/hooks/useOverflowCollapse/index.js, packages/bruno-js/src/grpc/bruno-grpc-request.js, packages/bruno-app/src/components/RequestPane/GrpcScript/index.js (+1 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #6 — If anonymized user #6 becomes unavailable, 6 significant file(s) lose their only recent owner: packages/bruno-app/src/utils/sensitive-fields.js, packages/bruno-app/src/components/MultipartFileChipsCell/index.js, packages/bruno-app/src/components/RequestPane/Auth/InheritedAuth/index.js, packages/bruno-common/src/headers/default-headers.ts, packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleMultipartFormParams/StyledWrapper.js, packages/bruno-app/src/components/RequestPane/RequestHeaders/getInheritedHeaders.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #7 — If anonymized user #7 becomes unavailable, 5 significant file(s) lose their only recent owner: packages/bruno-converters/src/workers/postman-translator-worker.js, packages/bruno-tests/src/grpc/index.js, packages/bruno-app/src/hooks/useReflectionManagement/index.js, packages/bruno-app/src/components/CollectionSettings/Protobuf/StyledWrapper.js, packages/bruno-app/src/components/FilePickerEditor/StyledWrapper.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #8 — If anonymized user #8 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/bruno-app/src/components/OpenAPISyncTab/CollectionStatusSection/index.js, packages/bruno-app/src/components/OpenAPISyncTab/SpecDiffModal/index.js, packages/bruno-app/src/components/OpenAPISpecTab/index.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #9 — If anonymized user #9 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/bruno-app/src/components/SelectionList/StyledWrapper.js, packages/bruno-app/src/components/SelectionList/index.js, packages/bruno-app/src/components/ResponsePane/UnresolvedVariablesInfo/StyledWrapper.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #10 — If anonymized user #10 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/bruno-app/src/components/Sidebar/Collections/Collection/ChangeCollectionVersion/index.js, packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/EnvironmentSelectionList/index.js, packages/bruno-electron/src/utils/collection-reader.js. Pair on, review, or document these before any departure.
X7 · Silent fallback defaults · Pending state with no failure state · ×9
  • Pending state with no failure state packages/bruno-app/src/components/RequestPane/GraphQLSchemaActions/index.js:42 — The view draws `<IconLoader2 class="animate-spin" size= strokeWidth= />` under `isSchemaLoading`, but `isSchemaLoading` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:259 — The view draws `<IconLoader2 size= class="spin"/>` under `testing`, but `testing` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/bruno-app/src/components/Preferences/AI/CompatEndpointCard.js:323 — The view draws `<IconLoader2 size= class="spin"/>` under `saving`, but `saving` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/bruno-app/src/components/Preferences/AI/ProviderCard.js:206 — The view draws `<IconLoader2 size= class="spin"/>` under `testing`, but `testing` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/bruno-app/src/components/Preferences/AI/ProviderCard.js:264 — The view draws `<IconLoader2 size= class="spin"/>` under `saving`, but `saving` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/bruno-app/src/components/MockServer/MockResponse/index.js:375 — The view draws `Loading mock response...` under `isLoading`, but `isLoading` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/bruno-app/src/components/MockServer/MockResponse/index.js:390 — The view draws `Loading mock response...` under `! item || ! editorCollection`, but `item` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:450 — The view draws `Loading sessions...` under `isLoading`, but `isLoading` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:467 — The view draws `No terminal session selected` under `! activeSessionId && window . ipcRenderer`, but `activeSessionId` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
D12 · Dependency Hygiene · Deprecated · ×4
  • Deprecated: glob REDACTED:10834 — glob 7.2.3 is resolved in REDACTED and is marked deprecated by its publisher: "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: rimraf REDACTED:10885 — rimraf 3.0.2 is resolved in REDACTED and is marked deprecated by its publisher: "Rimraf versions prior to v4 are no longer supported". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: glob REDACTED:15809 — glob 7.2.3 is resolved in REDACTED and is marked deprecated by its publisher: "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
  • Deprecated: glob REDACTED:33518 — glob 7.2.3 is resolved in REDACTED and is marked deprecated by its publisher: "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me". This repository does not declare it — a direct dependency pulls it in, so the move is to upgrade or replace that dependency.
D19 · Documentation Quality · Documentation · ×4
  • Documentation: no build, run or usage example packages/bruno-docs/readme.md:1 — `bruno-docs` is a published package (`REDACTED` without `"private": true`) and neither `packages/bruno-docs/readme.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example packages/bruno-tests/collection/readme.md:1 — `collection` is a published package (`REDACTED` without `"private": true`) and neither `packages/bruno-tests/collection/readme.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example packages/bruno-tests/collection_level_oauth2/readme.md:1 — `collection_level_oauth2` is a published package (`REDACTED` without `"private": true`) and neither `packages/bruno-tests/collection_level_oauth2/readme.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example packages/bruno-tests/collection_oauth2/readme.md:1 — `collection_oauth2` is a published package (`REDACTED` without `"private": true`) and neither `packages/bruno-tests/collection_oauth2/readme.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
D30 · Dependency Vulnerabilities · Low CVE · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
C2 · Access Controls · No named authorization policies · ×1
  • No named authorization policies packages/bruno-app/src/components/CollectionSettings/ProxySettings/index.js:65 — Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) — this is NOT a claim that endpoints are unprotected. What's missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can't be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 8 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (85 single-owned of 853 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 853 of the 1793 production source files in this repository met that bar). They are anonymized user #11 (2 file(s)), anonymized user #12 (2 file(s)), anonymized user #13 (2 file(s)), anonymized user #14 (2 file(s)), anonymized user #15 (1 file(s)), anonymized user #16 (1 file(s)) (+2 more) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: packages/bruno-app/src/components/Sidebar/OpenCollection/index.js, packages/bruno-converters/src/wsdl/schema-graph.js, packages/bruno-common/src/utils/environment-inheritance.ts, packages/bruno-requests/src/utils/ca-cert.ts, packages/bruno-app/plugins/remote-images/loader.cjs, packages/bruno-app/src/pages/ErrorBoundary/index.js, packages/bruno-app/src/components/Preferences/Display/Zoom/index.js, packages/bruno-app/src/components/Preferences/Display/Zoom/StyledWrapper.js (+4 more).
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found packages/bruno-tests/package.json:15 — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`. ADRs are expected here because `packages/bruno-tests/package.json` makes this repository a deployable product (line 15).
D21 · Naming Consistency · `getOsClass` spells `Os` where 12 names in the project spell it `OS` · ×1
  • `getOsClass` spells `Os` where 12 names in the project spell it `OS` packages/bruno-app/src/components/AppTitleBar/index.js:29 — 12 of 13 names in project usebruno spell the token `OS` (12 of 13; unit: names in project usebruno containing `OS`). Peers: index.getOSName (packages/bruno-app/src/components/Git/GitNotFoundModal/index.js:5); keyMappings.getKeyBindingOS (packages/bruno-app/src/providers/Hotkeys/keyMappings.js:93); keyMappings.getKeyBindingDisplayOS (packages/bruno-app/src/providers/Hotkeys/keyMappings.js:96); keyMappings.getKeyBindingForActionByOS (packages/bruno-app/src/providers/Hotkeys/keyMappings.js:168); keyMappings.getKeyBindingDisplayTextByOS (packages/bruno-app/src/providers/Hotkeys/keyMappings.js:173). Rename to `getOSClass`. [rule N6]
D21 · Naming Consistency · `getSessionID` spells `ID` where 93 names in the project spell it `Id` · ×1
  • `getSessionID` spells `ID` where 93 names in the project spell it `Id` packages/bruno-app/src/utils/terminal.js:30 — 93 of 94 names in project usebruno spell the token `Id` (93 of 94; unit: names in project usebruno containing `Id`). Peers: CodeEditor.searchResultsCountElementId (packages/bruno-app/src/components/CodeEditor/index.js:144); index.getSessionId (packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:46); index.createTerminalForSession(sessionId) (packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:63); index.cleanupTerminalInstance(sessionId) (packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:137); index.openTerminalIntoContainer(sessionId) (packages/bruno-app/src/components/Devtools/Console/TerminalTab/index.js:165). Rename to `getSessionId`. [rule N6]
D21 · Naming Consistency · `generateUID` spells `UID` where 302 names in the project spell it `Uid` · ×1
  • `generateUID` spells `UID` where 302 names in the project spell it `Uid` packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:2 — 302 of 303 names in project usebruno spell the token `Uid` (302 of 303; unit: names in project usebruno containing `Uid`). Peers: index.resolveSelectedSpecUid (packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:43); index.resolveSpecPath(specUid) (packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:77); buildEntries.isVisibleEntry(itemUid) (packages/bruno-app/src/components/ResponsePane/Timeline/buildEntries.js:31); buildEntries.buildTimelineEntries(itemUid) (packages/bruno-app/src/components/ResponsePane/Timeline/buildEntries.js:53); index.getActiveEnvironmentUid (packages/bruno-app/src/components/SensitiveFieldWarning/SensitiveWarningPopover/index.js:47). Rename to `generateUid`. [rule N6]
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 4 of 17 project(s) overshoot their size bounds, lowering Project Cohesion to 5.4/10. The most over is `packages/bruno-app` (173808 LoC, 888 module-visible types across 692 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D34 · Knowledge Freshness · Further orphaned files (smaller) · ×1
  • Further orphaned files (smaller) — 21 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffContent/StyledWrapper.js, packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffBody.js, packages/bruno-electron/src/store/oauth2.js, packages/bruno-app/src/components/OpenAPISyncTab/hooks/useEndpointActions.js, packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffAuth.js, packages/bruno-app/src/components/OpenAPISyncTab/EndpointChangeSection/EndpointVisualDiff.js, REDACTED, packages/bruno-app/src/components/OpenAPISyncTab/SpecDiffModal/buildRows.js (and 13 more) (22 orphaned of 853 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 853 of the 1793 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 1/5 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `packages/bruno-app`, `packages/bruno-cli`, `packages/bruno-electron`, `packages/bruno-tests`.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST REDACTED:9 — No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 7 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
S1 · Web-Security Posture · No app-layer HTTPS enforcement detected · ×1
  • No app-layer HTTPS enforcement detected packages/bruno-electron/src/app/mock-server/mock-server.js:543 — `app.listen(…)` serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (`https.createServer`, Fastify `https`, Nest `httpsOptions`), no redirect of plain requests to `https://`, no `Strict-Transport-Security` (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it — so a browser may talk to it in clear text. (−2.0 on this card.)
X2 · Cancellation propagation · Not all async functions that make a request accept an AbortSignal · ×1
  • Not all async functions that make a request accept an AbortSignal — Only 1/6 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
X5 · Nullable reference types · Null assertions (`!`) override strict null checking · ×1
  • Null assertions (`!`) override strict null checking — ~0.9 `!` null assertions per 1k TypeScript source lines — 19 assertion(s) across the 22181 source line(s) of the 195 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: packages/bruno-requests/src/utils/agent-cache.ts (7), packages/bruno-filestore/src/formats/yml/common/auth-oauth2.ts (4), packages/bruno-filestore/src/formats/yml/stringifyMockServer.ts (2). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.
Minor — 118 finding(s)
D12 · Dependency Hygiene · Outdated (npm) · ×107
  • Outdated (npm): @ai-sdk/anthropic — @ai-sdk/anthropic is pinned at 3.0.15; registry.npmjs.org publishes 4.0.104 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @ai-sdk/openai — @ai-sdk/openai is pinned at 3.0.12; registry.npmjs.org publishes 4.0.117 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @apidevtools/json-schema-ref-parser — @apidevtools/json-schema-ref-parser is pinned at 14.2.1; registry.npmjs.org publishes 16.0.8 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @aws-sdk/credential-providers — @aws-sdk/credential-providers is pinned at 3.1019.0; registry.npmjs.org publishes 3.1168.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @babel/parser — @babel/parser is pinned at 7.29.9; registry.npmjs.org publishes 8.1.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @faker-js/faker — @faker-js/faker is pinned at 9.9.0; registry.npmjs.org publishes 10.6.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @fontsource/inter — @fontsource/inter is pinned at 5.1.1; registry.npmjs.org publishes 5.3.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @grpc/grpc-js — @grpc/grpc-js is pinned at 1.14.6; registry.npmjs.org publishes 1.14.7 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @grpc/proto-loader — @grpc/proto-loader is pinned at 0.7.15; registry.npmjs.org publishes 0.8.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @lydell/node-pty — @lydell/node-pty is pinned at 1.1.0; registry.npmjs.org publishes 1.2.0-beta.18 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @prantlf/jsonlint — @prantlf/jsonlint is pinned at 16.0.0; registry.npmjs.org publishes 17.0.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @reduxjs/toolkit — @reduxjs/toolkit is pinned at 1.9.7; registry.npmjs.org publishes 2.14.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tabler/icons — @tabler/icons is pinned at 1.119.0; registry.npmjs.org publishes 3.51.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @testing-library/user-event — @testing-library/user-event is pinned at 14.6.8; registry.npmjs.org publishes 14.6.10 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-code-block-lowlight — @tiptap/extension-code-block-lowlight is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-image — @tiptap/extension-image is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-link — @tiptap/extension-link is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-list-item — @tiptap/extension-list-item is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-table — @tiptap/extension-table is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-table-cell — @tiptap/extension-table-cell is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-table-header — @tiptap/extension-table-header is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-table-row — @tiptap/extension-table-row is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-task-item — @tiptap/extension-task-item is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-task-list — @tiptap/extension-task-list is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): @tiptap/extension-text-style — @tiptap/extension-text-style is pinned at 2.27.2; registry.npmjs.org publishes 3.34.0 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • + 82 more in this group — see findings.md.
D24 · Comment Value · doc comments repeat the names · ×9
  • doc comments repeat the names packages/bruno-app/src/components/SingleLineEditor/index.js:317 — 25 of 423 documented parameters and 5 of 411 summaries in `@usebruno/app` only repeat the member or parameter name (e.g. "Clear all newline markers" for `_clearNewlineMarkers`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/bruno-cli/src/utils/filesystem.js:123 — 1 of 45 documented parameters and 0 of 40 summaries in `@usebruno/cli` only repeat the member or parameter name (e.g. "The path to the file." for `filePath`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/bruno-common/src/utils/prompt-variables.ts:50 — 0 of 6 documented parameters and 1 of 66 summaries in `@usebruno/common` only repeat the member or parameter name (e.g. "Extract prompt variables from an object." for `extractPromptVariables`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/bruno-converters/src/openapi/openapi-common.js:603 — 16 of 147 documented parameters and 3 of 146 summaries in `@usebruno/converters` only repeat the member or parameter name (e.g. "Name of the example" for `exampleName`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/bruno-js/src/bru.js:637 — 8 of 132 documented parameters and 1 of 188 summaries in `@usebruno/js` only repeat the member or parameter name (e.g. "The key." for `key`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/bruno-lang/v2/src/common/semantic-utils.js:126 — 0 of 12 documented parameters and 1 of 15 summaries in `@usebruno/lang` only repeat the member or parameter name (e.g. "Maps a pair list to file key-value pairs" for `mapPairListToKeyValPairsFile`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names packages/bruno-requests/src/auth/edgegrid-helper.js:23 — 20 of 118 documented parameters and 6 of 119 summaries in `@usebruno/requests` only repeat the member or parameter name (e.g. "Sign an EdgeGrid request." for `signEdgeGridRequest`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names REDACTED:124 — 15 of 75 documented parameters and 2 of 133 summaries in `bruno` only repeat the member or parameter name (e.g. "The collection object" for `collection`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names tests/utils/page/actions.ts:39 — 161 of 408 documented parameters and 7 of 509 summaries in `usebruno` only repeat the member or parameter name (e.g. "The page object" for `page`). Delete the restating tags, or add what the name does not say.
D10 · Test Quality · Skipped (documented) · ×1
  • Skipped (documented): a test() call whose underlying promise rejects packages/bruno-js/tests/utils-results.spec.js:198 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: @usebruno/common — @usebruno/common: abstractness 0.03, instability 0.00, distance 0.97 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-b2e72e11777a4adb876ce277ad05bc40/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-b2e72e11777a4adb876ce277ad05bc40/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt .140artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .20artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .2artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 2 file(s) — `packages/bruno-common/src/api-docs/index.ts`, `packages/bruno-converters/src/openapi/openapi-common.js` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .1artifacts/raw/trivy-fs.json

Run 01a1d65c-4a84-70cd-a601-0ebc96382b99 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md