Public report of usebruno/bruno, published 24 October 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.10.5). Watchdog 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, 24 October 2026, 19:15 UTC · Survey ID cd_8646c3c71702427aab44a1d19adb8783

usebruno/bruno

Measured 24 October 2026, 18:44 UTC, at code version ab6e3ef

Regression: 1 dimension fell since the last survey Supply-chain provenance & signing: not measured

A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.

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 39out of 100 At risk Down 3 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: 256,769 lines of product code in 17 projects, tests not counted · Estimated rebuild effort: about 2.6 person-years · Weakest lens: Production Readiness, 31

Findings by how serious they are

147 critical 2161 serious 347 minor

5 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks 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

Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
24 October 2026, 18:44 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 Watchdog. It is open to any tool that implements it, and today Watchdog 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. Watchdog works 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 ▸

84of 88 dimensions measured by tools. The other 4 are advisory notes from an AI model, which explain the code but don't count towards the score.
2509of 2655 findings point to an exact file and line, so you can open each one in the code. The other 146 concern the repository as a whole, such as missing documentation.
88dimensions across 7 lenses, read from 256,769 lines of product code in 17 projects.
Chapters

Executive summary

usebruno/bruno scores 39 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.

The weakest lens counts most in the score, and here that is Production Readiness, which scores 31 and is rated Weak. Its Dependency Hygiene dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 9 Outdated (npm) finding(s) in Dependency Hygiene and to resolve the 1 Malicious package finding(s) in Malicious Dependencies, and if Production Readiness rose to 70, the score would rise from 39 to about 45.

147 findings are critical: 55 in Static Analysis (SAST), 44 in Dependency Vulnerabilities, 21 in Dependency Hygiene, ten in Keyboard semantics, seven in Web-Security Posture, three in Forms & labels, two in Circular Imports, two in Test Quality, one in Change Coupling, one in Knowledge Freshness and one in Malicious Dependencies.

Watchdog couldn't measure 4 dimensions in this code, among them Navigability, Structured logging and Captive dependencies, so they are left out of the score. The product code is 256,769 lines, which would take an estimated 2.6 person-years, around €380,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 33 · counts for 25%Code Health 47 · counts for 14%Accessibility 49 · counts for 8%Performance 69 · counts for 4%Maturity 78 · counts for 2%Architecture 87 · counts for 1%

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

Code composition: what the lines of code are
Product code 58%Tests 42%
New since the last survey: 287 findings

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

Watchdog compares 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: 2013 findings

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

  • Cyclomatic Complexity · index.ScriptErrorCard (cyclomatic 47) packages/bruno-app/src/components/ResponsePane/ScriptError/index.js
  • Cyclomatic Complexity · collection.processCollectionItems (cyclomatic 29) packages/bruno-cli/src/utils/collection.js
  • Cyclomatic Complexity · index.getErrorSourceInfo (cyclomatic 16) packages/bruno-app/src/components/ResponsePane/ScriptError/index.js
  • Cognitive Complexity · collection.processCollectionItems (cognitive 51) packages/bruno-cli/src/utils/collection.js
  • Cognitive Complexity · index.ExportEnvironmentModal (cognitive 38) packages/bruno-app/src/components/Environments/Common/ExportEnvironmentModal/index.js
  • Cognitive Complexity · index.getErrorSourceInfo (cognitive 34) packages/bruno-app/src/components/ResponsePane/ScriptError/index.js
  • Cognitive Complexity · handleNavigate (cognitive 21) packages/bruno-app/src/components/ResponsePane/ScriptError/index.js
  • Cognitive Complexity · index.ScriptErrorCard::handleNavigate (cognitive 20) packages/bruno-app/src/components/ResponsePane/ScriptError/index.js
  • Cognitive Complexity · index.ScriptErrorCard (cognitive 20) packages/bruno-app/src/components/ResponsePane/ScriptError/index.js
  • Cognitive Complexity · collection-reader.readCollectionForApiSpec (cognitive 19) packages/bruno-electron/src/utils/collection-reader.js
  • God Classes · FunctionTooLong: index.ScriptErrorCard packages/bruno-app/src/components/ResponsePane/ScriptError/index.js
  • God Classes · FunctionTooLong: index.BulkActionsDropdown packages/bruno-app/src/components/Sidebar/Collections/BulkActionsDropdown/index.js
  • God Classes · FunctionTooLong: index.Collections packages/bruno-app/src/components/Sidebar/Collections/index.js
  • God Classes · FunctionTooLong: index.ResponsePane packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/AiChatSidebar/index.js packages/bruno-app/src/components/AiChatSidebar/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/utils/snapshot/index.js packages/bruno-app/src/utils/snapshot/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-electron/src/ipc/ai/index.js packages/bruno-electron/src/ipc/ai/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/Preferences/AI/index.js packages/bruno-app/src/components/Preferences/AI/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-electron/src/ipc/ai/chat.js packages/bruno-electron/src/ipc/ai/chat.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/AIAssist/index.js packages/bruno-app/src/components/AIAssist/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/pages/Bruno/index.js packages/bruno-app/src/pages/Bruno/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/utils/ai/index.js packages/bruno-app/src/utils/ai/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-converters/src/wsdl/wsdl-to-bruno.js packages/bruno-converters/src/wsdl/wsdl-to-bruno.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleResponseHeaders/index.js packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleResponseHeaders/index.js
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js
  • Churn × Complexity Hotspots · Hotspot: REDACTED REDACTED
  • Churn × Complexity Hotspots · Hotspot: packages/bruno-app/src/providers/ReduxStore/slices/chat.js packages/bruno-app/src/providers/ReduxStore/slices/chat.js
  • Churn × Complexity Hotspots · Repeated repair: packages/bruno-app/src/components/DataTypeSelector/index.js packages/bruno-app/src/components/DataTypeSelector/index.js
  • Dependency Vulnerabilities · Critical CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · Medium vulnerability: [GHSA redacted] REDACTED
  • Supply-chain Provenance & Signing · REDACTED
  • Code Duplication · Duplication concentrated across 60 sibling directories (1156 clone groups) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js
  • Code Duplication · Duplication concentrated across 13 sibling directories (20 clone groups) packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js
  • Code Duplication · Duplication concentrated across 5 sibling directories (12 clone groups) packages/bruno-electron/src/ipc/collection.js
  • Code Duplication · Duplication concentrated across 2 sibling directories (5 clone groups) packages/bruno-app/src/components/RequestTabs/ExampleTab/index.js
  • Code Duplication · Wholesale file copy (504 identical lines × 2 files) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js
  • Code Duplication · Wholesale file copy (434 identical lines × 3 files) packages/bruno-app/src/themes/dark/catppuccin-frappe.js
  • Code Duplication · Wholesale file copy (431 identical lines × 2 files) packages/bruno-app/src/themes/dark/gruvbox.js
  • Code Duplication · Wholesale file copy (416 identical lines × 2 files) packages/bruno-app/src/themes/dark/cyberdream-dark.js
  • Code Duplication · Duplicated block with local edits (311 matched lines × 2 locations) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js
  • Code Duplication · Duplicated block with local edits (200 matched lines × 2 locations) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js
  • Code Duplication · Wholesale file copy (170 identical lines × 2 files) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js
  • Code Duplication · Duplicated block with local edits (136 matched lines × 2 locations) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Code Duplication · Duplicated block with local edits (125 matched lines × 2 locations) packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js
  • Code Duplication · Duplicated block with local edits (103 matched lines × 2 locations) packages/bruno-app/src/components/MultiLineEditor/index.js
  • Code Duplication · Duplicated block with local edits (100 matched lines × 2 locations) packages/bruno-app/src/components/ResponsePane/GrpcResponsePane/index.js
  • Code Duplication · Duplicated block with local edits (99 matched lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block with local edits (96 matched lines × 2 locations) packages/bruno-app/src/components/FileEditor/CodeEditor/index.js
  • Code Duplication · Duplicated block with local edits (94 matched lines × 2 locations) packages/bruno-app/src/components/Sidebar/Collections/Collection/ExportCollection/ExportToPostman/index.js
  • Code Duplication · Duplicated block (93 lines × 2 locations) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js
  • Code Duplication · Duplicated block with local edits (86 matched lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block with local edits (85 matched lines × 2 locations) packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js
  • Code Duplication · Duplicated block with local edits (85 matched lines × 2 locations) packages/bruno-converters/src/openapi/openapi-to-bruno.js
  • Code Duplication · Duplicated block with local edits (84 matched lines × 2 locations) packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/Tabs/ImportPathsTab/index.js
  • Code Duplication · Duplicated block (83 lines × 2 locations) packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js
  • Code Duplication · Duplicated block (83 lines × 4 locations) packages/bruno-app/src/themes/dark/catppuccin-frappe.js
  • Code Duplication · Duplicated block with local edits (83 matched lines × 2 locations) packages/bruno-filestore/src/formats/yml/items/stringifyGraphQLRequest.ts
  • Code Duplication · Duplicated block with local edits (82 matched lines × 2 locations) packages/bruno-app/src/components/CollectionSettings/Protobuf/index.js
  • Code Duplication · Duplicated block (80 lines × 2 locations) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
  • Code Duplication · Duplicated block (78 lines × 3 locations) packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js
  • Code Duplication · Duplicated block (76 lines × 2 locations) packages/bruno-app/src/components/RequestPane/Assertions/AssertionRow/index.js
  • Code Duplication · Duplicated block with local edits (75 matched lines × 2 locations) packages/bruno-electron/src/ipc/network/prepare-request.js
  • Code Duplication · Duplicated block with local edits (74 matched lines × 2 locations) packages/bruno-app/src/components/AppView/index.js
  • Code Duplication · Duplicated block (70 lines × 2 locations) packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js
  • Code Duplication · Duplicated block with local edits (70 matched lines × 2 locations) packages/bruno-app/src/components/RequestPane/GrpcRequestPane/GrpcAuth/index.js
  • Code Duplication · Duplicated block (70 lines × 2 locations) packages/bruno-app/src/components/RequestPane/Settings/ToggleSelector/index.js
  • Code Duplication · Duplicated block with local edits (70 matched lines × 2 locations) packages/bruno-js/src/runtime/script-runtime.js
  • Code Duplication · Duplicated block (69 lines × 2 locations) packages/bruno-cli/src/runner/prepare-request.js
  • Code Duplication · Duplicated block with local edits (69 matched lines × 2 locations) packages/bruno-filestore/src/formats/yml/items/stringifyGrpcRequest.ts
  • Code Duplication · Duplicated block with local edits (68 matched lines × 2 locations) packages/bruno-app/src/components/Environments/EnvironmentSettings/CreateEnvironment/index.js
  • Code Duplication · Duplicated block with local edits (68 matched lines × 2 locations) packages/bruno-app/src/components/MockServer/CloneMockServerModal/index.js
  • Code Duplication · Duplicated block with local edits (67 matched lines × 2 locations) packages/bruno-app/src/components/RequestPane/GrpcRequestPane/index.js
  • Code Duplication · Duplicated block (66 lines × 3 locations) packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js
  • Code Duplication · Duplicated block with local edits (65 matched lines × 2 locations) packages/bruno-app/src/components/EnvironmentVariablesTable/index.js
  • Code Duplication · Duplicated block (64 lines × 2 locations) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js
  • Code Duplication · Duplicated block with local edits (64 matched lines × 2 locations) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleHeaders/index.js
  • Code Duplication · Wholesale file copy (63 identical lines × 2 files) packages/bruno-app/src/components/FolderSettings/AuthMode/index.js
  • Code Duplication · Duplicated block with local edits (63 matched lines × 2 locations) packages/bruno-electron/src/ipc/collection.js
  • Code Duplication · Duplicated block with local edits (62 matched lines × 2 locations) packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffHeaders.js
  • Code Duplication · Duplicated block with local edits (62 matched lines × 2 locations) packages/bruno-app/src/components/MultiLineEditor/index.js
  • Code Duplication · Duplicated block (62 lines × 2 locations) packages/bruno-app/src/themes/dark/dark-monochrome.js
  • Code Duplication · Duplicated block (61 lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block with local edits (59 matched lines × 2 locations) packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js
  • Code Duplication · Duplicated block (59 lines × 2 locations) packages/bruno-app/src/themes/dark/dark.js
Rebuild cost: about €380,000 · Estimate
Cost to rebuild€130,000 to €630,000, for 2,102 to 6,668 hours of work, about 2.6 person-years for 1 to 5 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 39. 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: 256,769 lines of product code

How the estimate is made: Watchdog prices 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 Outdated (npm) finding(s) in Dependency Hygiene — start with REDACTED (9).
Raises the score by about 5 points · Low effort · Dependency Hygiene
2
Resolve the 1 Malicious package finding(s) in Malicious Dependencies — start with REDACTED.
Raises the score by about 4 points · Low effort · Malicious Dependencies
3
Resolve the 10 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (10).
Raises the score by about 5 points · Medium effort · Dependency Hygiene

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
10 files are changed often and are hard to read, which makes them the likeliest places for a mistake. They also have under half their code tested, or were 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 these files therefore carries more risk than the overall score suggests.
Based on: Churn × Complexity Hotspots (53 files) · Code Coverage (62 files under half tested) · Bus Factor (0 files written almost entirely by one person) · The files: REDACTED, REDACTED and REDACTED
What to do: Add tests to these files and have a second person review every change to them, starting with REDACTED, REDACTED and REDACTED.
Where the investment is most exposed · Value at risk
This code would cost about €380,000 to build again, about 2.6 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 Outdated (npm) finding(s) in Dependency Hygiene. Of all the actions in this report, it raises the score most for the work it takes: about 5 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 Watchdog estimates the extra work at 8% to 19% on every change. The history of the code shows how much it changes: about 168,757 lines over the last 90 days, which is about 684,403 lines a year. At that pace, the extra work comes to an estimated 142.6 to 855.5 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 Watchdog's 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; 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 — a layering smell or cycle. A clean layered graph 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/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/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/tests tests @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.

471 modules, with 77 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; 431 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 packages.bruno-app.src.components.CollectionSettings.Auth.EdgeGridAuth2 packages.bruno-common.src.generate-code3 packages.bruno-common.src.generate-code.har.edgegrid4 packages.bruno-common.src.utils.datatype5 packages.bruno-common.src.utils.environment-variables6 packages.bruno-common.src.utils.url7 packages.bruno-filestore.src.formats.bru.utils8 packages.bruno-filestore.src.types9 packages.bruno-graphql-docs.src.components.DocExplorer10 packages.bruno-js.src.readonly-property-list11 packages.bruno-requests.src.auth12 packages.bruno-requests.src.network.system-proxy.types13 packages.bruno-schema-types.src.collection.folder14 packages.bruno-schema-types.src.collection.item15 packages.bruno-schema-types.src.requests.grpc16 packages.bruno-schema-types.src.requests.http17 packages.bruno-schema-types.src.requests.websocket18 packages.bruno-sqlite.src.node.statements19 tests.benchmarks.utils.memory20 packages.bruno-common.src.generate-code.har21 packages.bruno-common.src.utils22 packages.bruno-converters.src.opencollection.common.datatype23 packages.bruno-converters.src.opencollection.items24 packages.bruno-filestore.src.formats.yml.items25 packages.bruno-filestore.src.formats.yml.parseCollection26 packages.bruno-filestore.src.workers27 packages.bruno-js.src.property-list28 packages.bruno-sqlite.src.node.files29 tests.benchmarks.runner.runner-allocation_bench30 tests.benchmarks.utils.collection-generator31 tests.utils.fixtures.generator32 tests.utils.page33 packages.bruno-converters.src.opencollection34 packages.bruno-converters.src.opencollection.common35 packages.bruno-filestore36 packages.bruno-filestore.src.formats.yml37 packages.bruno-filestore.src.formats.yml.common38 packages.bruno-sqlite.src.node39 tests.benchmarks.utils40 tests.utils.fixtures
1 packages.bruno-app.src.components.CollectionSettings.Auth.EdgeGridAuth
2 packages.bruno-common.src.generate-code
3 packages.bruno-common.src.generate-code.har.edgegrid
4 packages.bruno-common.src.utils.datatype
5 packages.bruno-common.src.utils.environment-variables
6 packages.bruno-common.src.utils.url
7 packages.bruno-filestore.src.formats.bru.utils
8 packages.bruno-filestore.src.types
9 packages.bruno-graphql-docs.src.components.DocExplorer
10 packages.bruno-js.src.readonly-property-list
11 packages.bruno-requests.src.auth
12 packages.bruno-requests.src.network.system-proxy.types
13 packages.bruno-schema-types.src.collection.folder
14 packages.bruno-schema-types.src.collection.item
15 packages.bruno-schema-types.src.requests.grpc
16 packages.bruno-schema-types.src.requests.http
17 packages.bruno-schema-types.src.requests.websocket
18 packages.bruno-sqlite.src.node.statements
19 tests.benchmarks.utils.memory
20 packages.bruno-common.src.generate-code.har11
21 packages.bruno-common.src.utils12
22 packages.bruno-converters.src.opencollection.common.datatype1
23 packages.bruno-converters.src.opencollection.items111
24 packages.bruno-filestore.src.formats.yml.items111
25 packages.bruno-filestore.src.formats.yml.parseCollection1
26 packages.bruno-filestore.src.workers2
27 packages.bruno-js.src.property-list1
28 packages.bruno-sqlite.src.node.files1
29 tests.benchmarks.runner.runner-allocation_bench2
30 tests.benchmarks.utils.collection-generator1
31 tests.utils.fixtures.generator3
32 tests.utils.page111
33 packages.bruno-converters.src.opencollection1
34 packages.bruno-converters.src.opencollection.common1
35 packages.bruno-filestore21
36 packages.bruno-filestore.src.formats.yml211
37 packages.bruno-filestore.src.formats.yml.common11
38 packages.bruno-sqlite.src.node11
39 tests.benchmarks.utils21
40 tests.utils.fixtures116
Uses a module listed above itPart of a loopThe module itself
1 packages.bruno-app.src.components.CollectionSettings.Auth.EdgeGridAuth2 packages.bruno-common.src.generate-code3 packages.bruno-common.src.generate-code.har.edgegrid4 packages.bruno-common.src.utils.datatype5 packages.bruno-common.src.utils.environment-variables6 packages.bruno-common.src.utils.url7 packages.bruno-filestore.src.formats.bru.utils8 packages.bruno-filestore.src.types9 packages.bruno-graphql-docs.src.components.DocExplorer10 packages.bruno-js.src.readonly-property-list11 packages.bruno-requests.src.auth12 packages.bruno-requests.src.network.system-proxy.types13 packages.bruno-schema-types.src.collection.folder14 packages.bruno-schema-types.src.collection.item15 packages.bruno-schema-types.src.requests.grpc16 packages.bruno-schema-types.src.requests.http17 packages.bruno-schema-types.src.requests.websocket18 packages.bruno-sqlite.src.node.statements19 tests.benchmarks.utils.memory20 packages.bruno-common.src.generate-code.har21 packages.bruno-common.src.utils22 packages.bruno-converters.src.opencollection.common.datatype23 packages.bruno-converters.src.opencollection.items24 packages.bruno-filestore.src.formats.yml.items25 packages.bruno-filestore.src.formats.yml.parseCollection26 packages.bruno-filestore.src.workers27 packages.bruno-js.src.property-list28 packages.bruno-sqlite.src.node.files29 tests.benchmarks.runner.runner-allocation_bench30 tests.benchmarks.utils.collection-generator31 tests.utils.fixtures.generator32 tests.utils.page33 packages.bruno-converters.src.opencollection34 packages.bruno-converters.src.opencollection.common35 packages.bruno-filestore36 packages.bruno-filestore.src.formats.yml37 packages.bruno-filestore.src.formats.yml.common38 packages.bruno-sqlite.src.node39 tests.benchmarks.utils40 tests.utils.fixturespackages.bruno-app.src.components.CollectionSettings.Auth.EdgeGridAuth1packages.bruno-common.src.generate-code2packages.bruno-common.src.generate-code.har.edgegrid3packages.bruno-common.src.utils.datatype4packages.bruno-common.src.utils.environment-variables5packages.bruno-common.src.utils.url6packages.bruno-filestore.src.formats.bru.utils7packages.bruno-filestore.src.types8packages.bruno-graphql-docs.src.components.DocExplorer9packages.bruno-js.src.readonly-property-list10packages.bruno-requests.src.auth11packages.bruno-requests.src.network.system-proxy.types12packages.bruno-schema-types.src.collection.folder13packages.bruno-schema-types.src.collection.item14packages.bruno-schema-types.src.requests.grpc15packages.bruno-schema-types.src.requests.http16packages.bruno-schema-types.src.requests.websocket17packages.bruno-sqlite.src.node.statements18tests.benchmarks.utils.memory19packages.bruno-common.src.generate-code.har20packages.bruno-common.src.utils21packages.bruno-converters.src.opencollection.common.datatype22packages.bruno-converters.src.opencollection.items23packages.bruno-filestore.src.formats.yml.items24packages.bruno-filestore.src.formats.yml.parseCollection25packages.bruno-filestore.src.workers26packages.bruno-js.src.property-list27packages.bruno-sqlite.src.node.files28tests.benchmarks.runner.runner-allocation_bench29tests.benchmarks.utils.collection-generator30tests.utils.fixtures.generator31tests.utils.page32packages.bruno-converters.src.opencollection33packages.bruno-converters.src.opencollection.common34packages.bruno-filestore35packages.bruno-filestore.src.formats.yml36packages.bruno-filestore.src.formats.yml.common37packages.bruno-sqlite.src.node38tests.benchmarks.utils39tests.utils.fixtures401112111111112112131111121211111121116+431 more modules (most-connected shown)

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

At a glance — Architecture · 87% · Strong ·

At a glance — Maturity · 78% · Strong ·

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

At a glance — Security · 33% · Weak · gated by D29, D30, D43, S1 ·

At a glance — Accessibility · 49% · Weak · 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 — Injection134High / Critical
A03:2025 — Software Supply Chain Failures66High / Critical
A02:2025 — Security Misconfiguration2Medium
A08:2025 — Software or Data Integrity Failures1High / Critical

Roadmap

Immediately remove the malicious package and resolve all deprecated dependencies to secure the project foundation. Strengthen the web-security posture by disabling the rejection of unauthorized TLS certificates and properly configuring certificate validation across all affected sites. Finally, clean up the dependency tree by removing unused packages, explicitly declaring unlisted imports, and moving test-only dependencies to devDependencies.

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

Do thisHelpsEffortDimension
Resolve the 9 Outdated (npm) finding(s) in Dependency Hygiene — start with REDACTED (9).+5.2 ptsLowDependency Hygiene
Resolve the 1 Malicious package finding(s) in Malicious Dependencies — start with REDACTED.+3.8 ptsLowMalicious Dependencies
Resolve the 10 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (10).+5.4 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. This repository constructs a TLS client that accepts any certificate at 2 sites, not one: `packages/bruno-cli/src/commands/import.js:105` (`rejectUnauthorized: false`), `packages/bruno-cli/src/commands/import.js:174` (`rejectUnauthorized: false`). Each is a separate decision — fixing only the line this row cites leaves the others in place.+5.3 ptsMediumWeb-Security Posture
Resolve the 3 One package at two majors across the workspace finding(s) in Dependency Hygiene.+2.4 ptsLowDependency Hygiene
Resolve the 2 No assertions (empty test) finding(s) in Test Quality — start with utils-results.spec.js (2).+1.7 ptsLowTest Quality
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+3.2 ptsMediumDependency Hygiene
Resolve the 39 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (35), REDACTED (4).+2.5 ptsMediumDependency Vulnerabilities

File quality

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

FileScoreBandWorst signal
REDACTED0.0SlopDependency Vulnerabilities: Critical vulnerability: REDACTED
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
REDACTED4.1MixedDependency Vulnerabilities: Critical CVE: 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.2MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.6MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.9MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.9MixedStatic 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 — 147

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 — 2161

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 — 347

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

Could not be resolved — 5

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

Watchdog 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. 84 of 88 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 1.0 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three 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; ◐ Advisory — an LLM prose judgement. 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; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 88 dimensions across the health lenses
D1D2D3D5D6D8D9D10D11D12D13D14D15D16D17D19D20D21D22D23D26D28D29D30D31D34D35D43D44AC2AC3AC4AC5AC6AC7AX10AX3AX4AX6AX8C2GD1IC1M1M2M3M4P1P10P2P3P4P6P7PF1PF3R1R10R11R2R3R4R5R6R7R8R9S1X1X12X13X14X15X16X17X18X19X2X21X22X23X24X25X28X29X3X30X5

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, 2509 of 2655 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, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — 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
Watchdog 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 · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3 · 3.2.533✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 01a16f3a-a55b-7b28-b4e0-127e02d43437.

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.

  • D27 Navigability — not measured this run — Watchdog 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
  • D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog 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` 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 — Watchdog 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-app/src/utils/snapshot/index.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.
  • AXR1 Runtime accessibility — not measured this run — Watchdog 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 did not expose a crawlable HTTP endpoint in time — no runtime evidence.
  • IC1 Incompleteness & stubs — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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.
  • 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 — Watchdog measured this, but not all of it. What it 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. 31 further occurrence(s) are not listed individually; the score already reflects all 71.
  • R10 Code Duplication — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 1015 further occurrence(s) are not listed individually; the score already reflects all 1055.
  • R3 Large Files — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 86 further occurrence(s) are not listed individually; the score already reflects all 126.
  • R4 Test Coverage — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 771 further occurrence(s) are not listed individually; the score already reflects all 811.
  • R7 Dead Code — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 176 further occurrence(s) are not listed individually; the score already reflects all 216.
  • X3 Exception handling — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 125 further occurrence(s) are not listed individually; the score already reflects all 165.
  • X4 Structured logging — not measured this run — Watchdog 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 log through no library that carries a message's values as fields (pino, winston, bunyan, tslog, LogTape, roarr; Python's logging, structlog; PHP's PSR-3 loggers), so its log calls cannot be judged, 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

Watchdog assesses the repository exactly as committed, and only the repository. By design it does 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 Watchdog's 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.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • 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 is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
  • D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
  • 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.
  • 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.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • 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: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • 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.

The LLM boundary

LLM-set scores this run (4): D19, D21, D22, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

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

648 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) · ×6REDACTED:512
registerOpenAPISyncIpc::(anonymous)::compareSpecs (cyclomatic 21) · ×4packages/bruno-electron/src/ipc/openapi-sync.js:903
index.VarsTable (cyclomatic 22) · ×3packages/bruno-app/src/components/CollectionSettings/Vars/VarsTable/index.js:21
index.EnvironmentList (cyclomatic 125) · ×2packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44
authOAuth2 (cyclomatic 77) · ×2packages/bruno-lang/v2/src/bruToJson.js:865

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

What to do

  1. Bring the 256 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with registerRendererEventHandlers (cyclomatic 378), collection.registerRendererEventHandlers (cyclomatic 373), jsonToBru (cyclomatic 311). — 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 256 together lifts Cyclomatic 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.
  2. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

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

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

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

What to do

  1. Bring the 317 bodies over 30 down to 30 or less in Cognitive Complexity — start with collection.registerRendererEventHandlers (cognitive 491), openapi-sync.registerOpenAPISyncIpc (cognitive 408), 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 317 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.
  2. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D3 · God Classes5.2 / 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.2 / 10 · rule-coverage 100% · ceiling Prevented

271 god class(es) detected.

FunctionTooLong: index.registerNetworkIpc · ×220REDACTED:474
FileTooLong: collections/index.js · ×44packages/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:19

What to do

  1. Resolve the 220 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 (220 warning-level).
  2. Resolve the 44 FileTooLong finding(s) in God Classes — start with REDACTED (17), actions.js (2), REDACTED (2). — One of this dimension's main actionable groups (44 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).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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 6 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).
  2. Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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.5 / 10Stronggated by 78 serious findings✓ Tool-verified

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

Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, 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.5 / 10 · rule-coverage 100% · ceiling Verified

Line coverage 63.9% — 78 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-js/; jest via `npm ci --ignore-scripts` in packages/bruno-lang/; jest via `npm ci --ignore-scripts` in packages/bruno-query/; jest via `npm ci --ignore-scripts` in packages/bruno-requests/; jest via `npm ci --ignore-scripts` in packages/bruno-schema/).

Low coverage: packages/bruno-cli/src/utils/filesystem.js · ×78packages/bruno-cli/src/utils/filesystem.js:1

What to do

  1. Resolve the 78 Low coverage finding(s) in Code Coverage — start with REDACTED (4), assertions.ts (3), auth.ts (3). — One of this dimension's main actionable groups (78 warning-level).
  2. Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

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

10210 test methods: 10148 unit, 62 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 10210 `it`/`test` case(s) across 1080 test file(s) declaring at least one; its tier split is read from package names and paths only.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.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

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

No assertions (empty test): awaited directly · ×2packages/bruno-js/tests/utils-results.spec.js:80
No assertions: calls undo/redo · ×92packages/bruno-app/src/ui/RichTextEditor/components/EditorToolbar/index.spec.js:201
Skipped test: should throw Error when JSON parsing fails · ×13packages/bruno-converters/tests/postman/postman-env-to-bruno-env.spec.js:161
Mock-dominated test: uses an explicitly provided onLinkClick prop even on an editable field · ×56packages/bruno-app/src/components/CodeEditor/index.spec.js:333
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 92 No assertions finding(s) in Test Quality — start with utils-results.spec.js (5), collection-apps.spec.ts (4), headerList.spec.ts (4). — One of this dimension's main actionable groups (92 warning-level).
  3. Resolve the 13 Skipped test finding(s) in Test Quality — start with symlinks.spec.ts (3), scoped-variables.test.js (2), clone-branch-selection.spec.ts (2). — One of this dimension's main actionable groups (13 warning-level).
  4. Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests pass reliably, with no flakiness.

Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.

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

0 flaky across 1 measured tier(s). JavaScript/TypeScript (jest via `npm ci --ignore-scripts` in the repository root (2309 tests); jest via `npm ci --ignore-scripts` in packages/bruno-app/ (0 tests); jest via `npm ci --ignore-scripts` in packages/bruno-cli/ (438 tests); jest via `npm ci --ignore-scripts` in packages/bruno-common/ (681 tests); jest via `npm ci --ignore-scripts` in packages/bruno-converters/ (1533 tests); jest via `npm ci --ignore-scripts` in packages/bruno-electron/ (566 tests); jest via `npm ci --ignore-scripts` in packages/bruno-filestore/ (300 tests); jest via `npm ci --ignore-scripts` in packages/bruno-js/ (707 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); jest via `npm ci --ignore-scripts` in packages/bruno-requests/ (497 tests); jest via `npm ci --ignore-scripts` in packages/bruno-schema/ (52 tests)): measured (0 flaky).

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

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

What it measures: Whether dependencies are current, secure, and not bloated.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.

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

123 outdated direct production npm dependency(ies) of 183 graded, 3 pinning defect(s), across 21 REDACTED (21 of them the product) and 5 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 8 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 · ×10REDACTED:39
One package at two majors across the workspace: @faker-js/faker · ×3
Outdated (npm): chalk · ×9REDACTED:61
Outdated (npm): @ai-sdk/anthropic · ×114

What to do

  1. Resolve the 10 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (10). — One of this dimension's main actionable groups (10 warning-level).
  2. Resolve the 9 Outdated (npm) finding(s) in Dependency Hygiene — start with REDACTED (9). — One of this dimension's main actionable groups (9 recommendation-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).
  4. Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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 Compliance10.0 / 10Exemplary○ Nothing flagged

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 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 183 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 183 production dependency(ies) this repository's committed lockfile resolves, across 21 product REDACTED manifest(s). Its 173 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ 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. 2 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.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots8.9 / 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 8.9 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: packages/bruno-electron/src/ipc/collection.js (12×373=4476); REDACTED (17×221=3757); REDACTED (15×145=2175) Repeated repair below the complexity floor: packages/bruno-common/src/utils/index.ts (5 of 9 changes were fixes); tests/utils/page/mock-server.ts (4 of 7 changes were fixes); REDACTED (4 of 4 changes were fixes)

Hotspot: packages/bruno-electron/src/ipc/collection.js · ×154packages/bruno-electron/src/ipc/collection.js:196
Repeated repair: packages/bruno-common/src/utils/index.ts · ×6packages/bruno-common/src/utils/index.ts:94

What to do

  1. Resolve the 154 Hotspot finding(s) in Churn × Complexity Hotspots — start with REDACTED (97), index.jsx (3), REDACTED (2). — One of this dimension's main actionable groups (154 warning-level).
  2. Resolve the 6 Repeated repair finding(s) in Churn × Complexity Hotspots — start with REDACTED (2), REDACTED, mock-server.ts. — One of this dimension's main actionable groups (6 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

81 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is packages/bruno-converters/src/wsdl/wsdl-to-bruno.js. Counted over 833 of the 1731 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 19650 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 · ×20packages/bruno-common/src/runner/runner-summary.ts:3

What to do

  1. Resolve the 20 TodoComment finding(s) in Explicit Debt — start with folder.ts (3), websocket.ts (2), runner-summary.ts. — One of this dimension's main actionable groups (20 warning-level).
  2. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D19 · Documentation QualityExemplary◐ Sampled · advisory

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

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

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

The repository's root README and the packages/bruno-cli/README.md give an excellent overview of Bruno as an API client with its purpose, features, and a clear directory structure. The architecture/design docs (Bruno-CLI, Bruno-Converters, Bruno-Filestore, Bruno-SQLite) are well written for their audience, covering installation, usage examples, command-line options, and future format support. All visible documents are complete and well structured; the only unshown section is a clip marker, not a defect. The repository's READMEs and architecture/Docs markdown files are well structured: the root README gives an overview of Bruno CLI Docker images, installation/build steps, usage examples (docker-compose run bruno-cli), and a standalone demo; each docker image directory has its own focused README with build commands, usage, and links to its own documentation. The Playwright testing guide is a single cohesive document covering prerequisites, codegen workflow, manual test creation, test structure, fixtures, running tests, best practices, and troubleshooting, plus an outline of every section it names.

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

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

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

Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.

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

No architecture decision records were found.

No ADRs found

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality. — 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 ConsistencyExemplary◐ Sampled · advisory

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

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

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

0 naming inconsistencies across 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D22 · Internal API ConsistencyStronggated by 1 serious finding◐ Sampled · advisory

What it measures: Whether the internal API surface is consistent and coherent.

Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.

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

1 API inconsistencies across a 400-member sample of 118 exposed types.

Redundant operation: `parseRequestAndRedactBody` appears to be a specialized wrapper around `parseRequest` that adds redaction logic. Since redaction is a side-effect/concern that should ideally be handled by a separate utility (like `redact-large-text-blocks`) or applied post-parse, having two distinct entry points for parsing creates confusion about which one to use for standard parsing.

What to do

  1. Resolve the 1 Redundant operation finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d22_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

No domain types leak across context boundaries (16 contexts).

✓ On the Gold path — maintain.

Detailed fixes: d23_recommendation.md.

D26 · Project Cohesion5.3 / 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, LLM-independent.

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

4 of 16 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

136 finding(s): 0 critical, 55 high, 79 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 7 file(s) — `packages/bruno-app/src/components/EnvironmentVariablesTable/index.js`, `REDACTED` (line 22), `REDACTED` (line 22), `packages/bruno-common/src/api-docs/index.ts` (lines 107–109), `packages/bruno-electron/src/app/collection-watcher.js`, … (+2 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

+ 15 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 Vulnerabilities0.0 / 10Critical✓ 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.

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

66 finding(s): 5 critical, 39 high, 16 medium, 6 low.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 39 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (35), REDACTED (4). — One of this dimension's main actionable groups (39 issue-level).
  2. Resolve the 4 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (3), REDACTED. — One of this dimension's main actionable groups (4 issue-level).
  3. Resolve the 1 Critical vulnerability 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 833 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is REDACTED. Counted over 833 of the 1731 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned knowledgeREDACTED: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 REDACTED. — 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%; REDACTED↔REDACTED 71%; test-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 · ×3packages/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 3 Change coupling finding(s) in Change Coupling — start with script-runtime.js, REDACTED, SpecialTab.js. — One of this dimension's main actionable groups (3 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. Scored 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. SCORED, not informational.

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:758, packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionRow/index.jsx:574
  • The repo's own CSS styles .search-box-icon with `cursor: pointer`, so this <div> is a control — but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a <button>, or add role + tabIndex={0} + a key handler. — packages/bruno-graphql-docs/src/components/DocExplorer/SearchBox.tsx:36
  • 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.6 / 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 .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.
AC7 · A11y enforcement4.0 / 10Weak✓ Tool-verified

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

Coverage: Population: the repository's own tooling configuration — lint config, test and CI files — NOT the markup. It is read for a configured accessibility checker and an automated accessibility assertion (axe/pa11y/Lighthouse, or a native-toolkit equivalent), and it credits an INVOCATION, never a mention: a licence filename, an import comment or a doc reference earns no rung. Enforcement configured entirely outside the repository leaves no evidence here and cannot be credited.

  • No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 37 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.

What to do

  • Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with @axe-core/playwright in tests, then gate axe/pa11y/Lighthouse in CI.
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.

What to do

  • The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
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 isolation10.0 / 10Exemplary✓ 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.

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.

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:88
  • `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)8.8 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

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

What to do

  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 6 of 22 project(s) that lack one — worth up to 0.5 pts.
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 repo is organised deliberately — src/test separation and consistent project naming.

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

M4 · Documentation accuracy9.4 / 10Exemplary◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

  • docs/contributing/contributing_de.md links to `docs/development_de.md`, but `docs/contributing/docs/development_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/contributing/contributing_de.md:28
  • docs/contributing/contributing_fa.md links to `docs/development_fa.md`, but `docs/contributing/docs/development_fa.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/contributing/contributing_fa.md:28
  • docs/contributing/contributing_fr.md names Node.js 20, but the repository declares pinned 18, pinned 22. 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/contributing/contributing_fr.md:24
  • docs/contributing/contributing_it.md names Node.js 20, but the repository declares pinned 18, pinned 22. 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/contributing/contributing_it.md:24
  • docs/contributing/contributing_it.md links to `docs/development_it.md`, but `docs/contributing/docs/development_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/contributing/contributing_it.md:28
  • docs/contributing/contributing_kr.md names Node.js 20, but the repository declares pinned 18, pinned 22. 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/contributing/contributing_kr.md:24
  • docs/contributing/contributing_ru.md links to `docs/development_ru.md`, but `docs/contributing/docs/development_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/contributing/contributing_ru.md:28
  • docs/contributing/contributing_ua.md links to `docs/development_ua.md`, but `docs/contributing/docs/development_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/contributing/contributing_ua.md:28
  • 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
  • packages/bruno-tests/readme.md links to `LICENSE`, but `packages/bruno-tests/LICENSE` 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. — packages/bruno-tests/readme.md:32

What to do

  • Reconcile the README with reality: docs/contributing/contributing_de.md links to `docs/development_de.md`, but `docs/contributing/docs/development_de.md` does not exist; docs/contributing/contributing_fa.md links to `docs/development_fa.md`, but `docs/contributing/docs/development_fa.md` does not exist; docs/contributing/contributing_fr.md names Node.js 20, but the repository declares pinned 18, pinned 22; docs/contributing/contributing_it.md names Node.js 20, but the repository declares pinned 18, pinned 22; docs/contributing/contributing_it.md links to `docs/development_it.md`, but `docs/contributing/docs/development_it.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 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`.
  • `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/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
  • `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 104 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:104
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 107 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:107
  • `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 133 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:133
  • `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
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 66 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:66
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 245 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:245
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 344 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:344
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 462 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:462
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 677 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:677
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 735 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:735
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 828 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:828
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 944 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:944
  • `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 1020 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:1020
  • `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/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
  • `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/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

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.
  • Add OpenTelemetry tracing/metrics (@opentelemetry/sdk-node) so requests are traceable across the system, not just health-probable.
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 24744 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.

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 the language 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. (×3) — packages/bruno-cli/src/commands/docs/generate.js:137, packages/bruno-cli/src/commands/import.js:334, packages/bruno-cli/src/commands/import.js:347
  • `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. (×2) — packages/bruno-cli/src/commands/docs/generate.js:138, packages/bruno-cli/src/commands/import.js:310
  • `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:134
  • `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:198
  • `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:233
  • `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:242
  • `fs.readdirSync` 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/import.js:327
  • `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:348, packages/bruno-cli/src/commands/run.js:668
  • `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:491
  • `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:961
  • `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:26
  • `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:421
  • `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:440, REDACTED:441, REDACTED:449
  • `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 `notarize` 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:14
  • `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
  • `fs.rmdirSync` 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:279

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.

  • 822 typed · 2042 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 (+2036 more).

What to do

  • Migrate the remaining .js/.jsx files to TypeScript.
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.

  • 1176 duplicated blocks under packages/bruno-app/src/components/ have copies in at least two of the sibling directories AIAssist, AiChatSidebar, AppPreviewKeepAlive, AppTitleBar, AppView, BodyModeSelector (+55 more sibling(s) not listed) — 103 of them are reported below, and 1073 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 1176 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 1176 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 1176 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
  • 134 duplicated blocks under packages/bruno-app/src/ have copies in at least two of the sibling directories components, hooks, pages, providers, ui, utils — 21 of them are reported below, and 113 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 134 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 134 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 134 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
  • 114 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 (+6 more sibling(s) not listed) — 102 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 114 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 114 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 114 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
  • 54 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 27 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 54 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 54 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 54 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
  • 31 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 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 31 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 31 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 31 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
  • 25 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) — 8 of them are reported below, and 17 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 25 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 25 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 25 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:11
  • 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
  • 19 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 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 19 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 19 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 19 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/CollectionSettings/Auth/ have copies in at least two of the sibling directories ApiKeyAuth, AuthMode, AwsV4Auth, BasicAuth, BearerAuth, DigestAuth (+4 more sibling(s) not listed) — 3 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 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/CollectionSettings/Auth/BasicAuth/index.js:12
  • 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:109
  • 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:261
  • 15 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) — 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/ui/MaskedInput/index.js:38
  • 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
  • 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:1461
  • 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 — 621 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:261 · packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:135 — 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:261
  • 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 — 172 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/MockServer/MockResponse/index.js:90 · packages/bruno-app/src/components/ResponseExample/index.js:23 — the two spans are one implementation copied and then locally edited — 747 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:90
  • 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-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-app/src/components/MultiLineEditor/index.js:257 · packages/bruno-app/src/components/SingleLineEditor/index.js:137 — the two spans are one implementation copied and then locally edited — 788 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:257
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2447 · packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2815 — 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:2447
  • packages/bruno-cli/src/utils/proxy-util.js:22 · packages/bruno-electron/src/utils/proxy-util.js:23 — the two spans are one implementation copied and then locally edited — 799 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-cli/src/utils/proxy-util.js:22

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:3 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:3
  • 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:104
  • handler has cyclomatic complexity 117 and cognitive complexity 192; 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:298
  • 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 82 and cognitive complexity 99; 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:71
  • prepareRequest has cyclomatic complexity 78 and cognitive complexity 148; 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
  • (anonymous) has cyclomatic complexity 72 and cognitive complexity 153; 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:1361
  • 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. — REDACTED:1565
  • transformOpenapiRequestItem has cyclomatic complexity 61 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 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:254
  • (anonymous) has cyclomatic complexity 59 and cognitive complexity 119; 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
  • 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

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
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 4090 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 3369 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
  • REDACTED 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. — REDACTED:1
  • packages/bruno-electron/src/ipc/collection.js has 2452 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 2404 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
  • packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js has 2075 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
  • REDACTED has 2068 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/ipc/openapi-sync.js has 1717 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 1649 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 1297 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/wsdl/wsdl-to-bruno.js has 1144 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/utils/postman-to-bruno-translator.js has 1142 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/postman/postman-to-bruno.js has 1112 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/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/utils/codemirror/autocomplete.js has 1090 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/components/EnvironmentVariablesTable/index.js has 1056 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-converters/src/openapi/openapi-to-bruno.js has 1037 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-requests/src/grpc/grpc-client.js has 974 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-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 935 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 928 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 928 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-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
  • packages/bruno-cli/src/commands/run.js has 916 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
  • REDACTED has 910 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
  • 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 884 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
  • REDACTED has 864 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/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-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 780 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 759 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
  • packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js has 752 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/CollectionHeader/index.js:1
  • packages/bruno-app/src/utils/snapshot/index.js has 746 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/snapshot/index.js:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage4.9 / 10Weak✓ 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) — REDACTED: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.

  • 192 outdated package(s); JS/npm CVEs scored in D30

What to do

  • Bump outdated dependencies to current versions to limit upgrade debt.
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.6 / 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 103 application, 70 tooling and 1275 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 (103 application, 70 tooling, 1275 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 (×27) — 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/ui/MaskedInput/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/MaskedInput/StyledWrapper.js
  • no import path from any entry point (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/ui/TextInput/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/TextInput/StyledWrapper.js
  • no import path from any entry point (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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. (×21) — tests/ssl/client-certs/server/index.js:18, tests/ssl/client-certs/server/index.js:19, tests/collection/generate-docs/generate-docs.spec.ts:1, …
  • 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. (×2)
  • 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.
  • Only test files import it (first: packages/bruno-app/src/components/Accordion/Accordion.spec.jsx:4) — move it to devDependencies. — REDACTED:21

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. The server controls — HTTPS enforcement, HSTS, cookie flags, 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. (×2) — packages/bruno-cli/src/commands/import.js:105, packages/bruno-cli/src/commands/import.js:174
  • 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:200, packages/bruno-cli/src/runner/prepare-request.js:270, packages/bruno-electron/src/ipc/network/prepare-request.js:76, …
  • `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:510

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. This repository constructs a TLS client that accepts any certificate at 2 sites, not one: `packages/bruno-cli/src/commands/import.js:105` (`rejectUnauthorized: false`), `packages/bruno-cli/src/commands/import.js:174` (`rejectUnauthorized: false`). Each is a separate decision — fixing only the line this row cites leaves the others in place.
  • 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:199` (createHash("sha1")), `packages/bruno-cli/src/runner/prepare-request.js:269` (createHash("sha1")), `packages/bruno-electron/src/ipc/network/prepare-request.js:75` (createHash("sha1")), `packages/bruno-electron/src/ipc/network/prepare-request.js:341` (createHash("sha1")), `packages/bruno-electron/src/ipc/openapi-sync.js:63` (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:200`.
  • 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. (×23) — packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:479, packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:521, packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:589, …

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.

X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. 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 `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. 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.

X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.

Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. 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.

  • `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
  • `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
  • `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
  • `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
  • `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
  • `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

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.
X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.

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 propagation4.9 / 10Weak✓ 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/7 async functions that make a cancellable request (fetch, axios, ky, ofetch) 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.
  • `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
  • `readOpenApiFile` 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:88
  • `readWSDLFile` 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:157
  • `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
  • `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
  • `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

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.

X22 · Contradicted release guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.

Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.

X23 · Unguarded diagnostic materialisation10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. 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 `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

X24 · Document value interpolated into markup unescaped4.4 / 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 markup built here 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:64
  • `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:69
  • `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:38
  • `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:784
  • `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
  • `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:28

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.
X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.

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.

  • `catch` 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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — packages/bruno-app/plugins/remote-images/utils.js:47
  • 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. (×23) — packages/bruno-app/plugins/remote-images/utils.js:77, packages/bruno-app/plugins/remote-images/loader.cjs:55, packages/bruno-app/src/components/AiChatSidebar/index.js:209, …
  • `.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. (×13) — packages/bruno-app/plugins/remote-images/loader.cjs:92, packages/bruno-app/plugins/remote-images/loader.cjs:98, packages/bruno-app/plugins/remote-images/loader.cjs:105, …
  • `.catch((error) => {})` 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. (×3) — packages/bruno-app/src/components/Preferences/Beta/index.js:143, packages/bruno-app/src/components/Preferences/General/index.js:139, packages/bruno-app/src/components/Preferences/ProxySettings/index.js:92

What to do

  • Swallowed exception (caught, then discarded)
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 22035 source line(s) of the 191 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.

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
AC7 · A11y enforcementenforcement — no page criterionEnforcement posture (process)

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 Health47%Weak — gated by D1, D2, R1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture87%StrongStrongest area.
Maturity78%StrongSolid.
Readiness31%Weak — gated by R5, R8, P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security33%Weak — gated by D29, D30, D43, S1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility49%Weak — 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 builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). 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 — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X6 Hand-rolled structured-format parsing — 9 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 24 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 — 38 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 did not expose a crawlable HTTP endpoint in time — no runtime evidence 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.
  • 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.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.cjs,.js,.mjs,.tsx), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D32 Data Compliance (PII/GDPR) — 1 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.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • 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 317 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 applicable: TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • 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.
  • 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 — 147 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.
D30 · Dependency Vulnerabilities · High CVE · ×39
  • 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
  • + 14 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • 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:200 — 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:270 — 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:76 — 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:342 — 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:772 — 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:783 — 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:584 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
D30 · Dependency Vulnerabilities · Critical CVE · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
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:758 — 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:574 — 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
S1 · Web-Security Posture · TLS certificate validation disabled · ×2
  • TLS certificate validation disabled packages/bruno-cli/src/commands/import.js:105 — `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.
  • TLS certificate validation disabled packages/bruno-cli/src/commands/import.js:174 — `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.
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.
AC4 · Keyboard semantics · Clickable element isn't keyboard-operable · ×1
  • Clickable element isn't keyboard-operable packages/bruno-graphql-docs/src/components/DocExplorer/SearchBox.tsx:36 — The repo's own CSS styles .search-box-icon with `cursor: pointer`, so this <div> is a control — but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a <button>, or add role + tabIndex={0} + a key handler.
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 vulnerability · ×1
  • REDACTED
D34 · Knowledge Freshness · Orphaned knowledge · ×1
  • Orphaned knowledge REDACTED: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/collection/generate-docs/generate-docs.spec.ts:1 — 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 '@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:3 — 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.
Serious — 2161 finding(s)
D3 · God Classes · FunctionTooLong · ×220
  • FunctionTooLong: index.registerNetworkIpc REDACTED:474 — FunctionTooLong — registerNetworkIpc runs 1259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1159 over it, 12.59× 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 758 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 658 over it, 7.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: index.EnvironmentList packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:43 — FunctionTooLong — EnvironmentList runs 754 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 654 over it, 7.54× 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:104 — 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:65 — 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:77 — FunctionTooLong — CollectionItemRow runs 536 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 436 over it, 5.36× 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:71 — FunctionTooLong — RequestTabPanel runs 496 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 396 over it, 4.96× 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:163 — 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 391 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 291 over it, 3.91× 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:18 — FunctionTooLong — OAuth2AuthorizationCode runs 383 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 283 over it, 3.83× 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:176 — 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:32 — 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.
  • + 195 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×154
  • Hotspot: packages/bruno-electron/src/ipc/collection.js packages/bruno-electron/src/ipc/collection.js:196 — packages/bruno-electron/src/ipc/collection.js changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 373 in collection.registerRendererEventHandlers at line 196. 4 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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 17 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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:104 — REDACTED changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 145 in run-single-request.runSingleRequest at line 104. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:77 — packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 107 in index.CollectionItemRow at line 77. 1 of those changes was a fix/bug commit, and the other 16 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/components/EnvironmentVariablesTable/index.js packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:244 — packages/bruno-app/src/components/EnvironmentVariablesTable/index.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 137 in index.EnvironmentVariablesTable at line 244. 6 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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-app/src/utils/collections/index.js packages/bruno-app/src/utils/collections/index.js:176 — packages/bruno-app/src/utils/collections/index.js changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in index.transformCollectionToSaveToExportAsFile at line 176. 4 of those changes were fix/bug commits, and the other 14 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/RequestTabs/RequestTab/index.js packages/bruno-app/src/components/RequestTabs/RequestTab/index.js:38 — packages/bruno-app/src/components/RequestTabs/RequestTab/index.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 132 in index.RequestTab at line 38. 5 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/components/MockServer/CreateMockServerModal/index.js packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:163 — packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 105 in index.CreateMockServerModal at line 163. 7 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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-cli/src/commands/run.js packages/bruno-cli/src/commands/run.js:298 — packages/bruno-cli/src/commands/run.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 132 in run.handler at line 298. 4 of those changes were fix/bug commits, and the other 4 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/providers/ReduxStore/slices/collections/actions.js packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1122 — packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in actions.handleMultipleCollectionItemsDrop at line 1122. 5 of those changes were fix/bug commits, and the other 19 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/utils/codemirror/brunoVarInfo.js packages/bruno-app/src/utils/codemirror/brunoVarInfo.js:232 — packages/bruno-app/src/utils/codemirror/brunoVarInfo.js changed 8 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/RequestTabPanel/index.js packages/bruno-app/src/components/RequestTabPanel/index.js:71 — packages/bruno-app/src/components/RequestTabPanel/index.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 161 in index.RequestTabPanel at line 71. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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-converters/src/postman/postman-to-bruno.js packages/bruno-converters/src/postman/postman-to-bruno.js:462 — packages/bruno-converters/src/postman/postman-to-bruno.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 115 in postman-to-bruno.importPostmanV2CollectionItem at line 462. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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-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 11 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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-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 125 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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 125 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/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 13 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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-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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/MockServer/MockServerDashboard/index.js packages/bruno-app/src/components/MockServer/MockServerDashboard/index.js:43 — packages/bruno-app/src/components/MockServer/MockServerDashboard/index.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in index.MockServerDashboard 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/MockServer/MockServerDashboard/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/RequestTabs/CollectionHeader/index.js packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:65 — packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 115 in index.CollectionHeader at line 65. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/RequestTabs/CollectionHeader/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/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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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/workspace.js packages/bruno-electron/src/ipc/workspace.js:55 — packages/bruno-electron/src/ipc/workspace.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 99 in workspace.registerWorkspaceIpc at line 55. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +05:30' --full-history --no-merges -- packages/bruno-electron/src/ipc/workspace.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/bruno-to-postman.js packages/bruno-converters/src/postman/bruno-to-postman.js:151 — packages/bruno-converters/src/postman/bruno-to-postman.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 152 in bruno-to-postman.brunoToPostman at line 151. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +05:30' --full-history --no-merges -- packages/bruno-converters/src/postman/bruno-to-postman.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/openapi/openapi-to-bruno.js packages/bruno-converters/src/openapi/openapi-to-bruno.js:254 — 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 111 in openapi-to-bruno.transformOpenapiRequestItem at line 254. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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.
  • + 129 more in this group — see findings.md.
D10 · Test Quality · No assertions · ×92
  • No assertions: calls undo/redo packages/bruno-app/src/ui/RichTextEditor/components/EditorToolbar/index.spec.js:201 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: resolves the inheritance chain of the environment it runs with in a %s collection packages/bruno-cli/tests/integration/environment-inheritance.spec.js:59 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: resolves the inheritance chain of a global environment packages/bruno-cli/tests/integration/environment-inheritance.spec.js:127 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: all values should match their expected patterns packages/bruno-common/src/utils/faker-functions.spec.ts:21 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: generic throw packages/bruno-js/tests/utils-results.spec.js:42 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: async fail packages/bruno-js/tests/utils-results.spec.js:67 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: async 10ms packages/bruno-js/tests/utils-results.spec.js:119 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: async 30ms packages/bruno-js/tests/utils-results.spec.js:122 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: async 60ms packages/bruno-js/tests/utils-results.spec.js:125 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: stays clean after a sync interpolation expression that starts async work packages/bruno-js/tests/quickjs-teardown.spec.js:121 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: bru.ctx.listRequests sees every request in the collection tests/apps/collection-apps.spec.ts:130 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: bru.ctx.runRequest executes a request by pathname and reflects the response tests/apps/collection-apps.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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: bru.ctx.variables.runtime.set persists into bru.ctx.variables.resolved tests/apps/collection-apps.spec.ts:188 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: bru.ctx.collection exposes the active collection tests/apps/collection-apps.spec.ts:205 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: bru.ctx.submitRequest sends the request and resolves with the response tests/apps/apps-ctx-api.spec.ts:132 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: bru.ctx.variables.runtime.set persists for subsequent sends tests/apps/apps-ctx-api.spec.ts:155 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Request: switching back to the saved mode restores its credentials tests/auth/auth-mode-switch.spec.ts:20 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Collection: switching back to the saved mode restores its credentials tests/auth/auth-mode-switch.spec.ts:60 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Folder: switching back to the saved mode restores its credentials tests/auth/auth-mode-switch.spec.ts:80 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Send individual requests tests/auth/akamai-edgegrid/akamai-edgegrid-runner.spec.ts:48 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Send individual requests tests/auth/akamai-edgegrid/akamai-edgegrid-runner.spec.ts:55 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: detects API key auth in ${mode} mode tests/auth/apikey/apikey-runner.spec.ts:8 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Send individual requests tests/auth/oauth1/oauth1-runner.spec.ts:118 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: Send individual requests tests/auth/oauth1/oauth1-runner.spec.ts:172 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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: mount ${format} collection with ${size} requests tests/benchmarks/mounting/collection-mount.bench.ts:71 — 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* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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.
  • + 67 more in this group — see findings.md.
D8 · Code Coverage · Low coverage · ×78
  • Low coverage: packages/bruno-cli/src/utils/filesystem.js packages/bruno-cli/src/utils/filesystem.js:1 — 34.8% line coverage (32/92).
  • 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-electron/src/ipc/network/interpolate-string.js packages/bruno-electron/src/ipc/network/interpolate-string.js:1 — 25.0% line coverage (6/24).
  • Low coverage: packages/bruno-electron/src/ipc/network/ws-event-handlers.js packages/bruno-electron/src/ipc/network/ws-event-handlers.js:1 — 2.2% line coverage (4/182).
  • Low coverage: packages/bruno-electron/src/utils/proxy-util.js packages/bruno-electron/src/utils/proxy-util.js:1 — 33.1% line coverage (40/121).
  • Low coverage: packages/bruno-js/src/sandbox/node-vm/console.js packages/bruno-js/src/sandbox/node-vm/console.js:1 — 21.6% line coverage (8/37).
  • Low coverage: packages/bruno-js/src/sandbox/quickjs/shims/local-module.js packages/bruno-js/src/sandbox/quickjs/shims/local-module.js:1 — 35.0% line coverage (7/20).
  • Low coverage: packages/bruno-js/src/sandbox/quickjs/shims/require.js packages/bruno-js/src/sandbox/quickjs/shims/require.js:1 — 22.2% line coverage (2/9).
  • Low coverage: packages/bruno-js/src/sandbox/quickjs/shims/lib/uuid.js packages/bruno-js/src/sandbox/quickjs/shims/lib/uuid.js:1 — 38.5% line coverage (5/13).
  • Low coverage: packages/bruno-js/src/sandbox/quickjs/utils/index.js packages/bruno-js/src/sandbox/quickjs/utils/index.js:1 — 5.6% line coverage (6/107).
  • 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/bruno-cli/src/commands/import.js packages/bruno-cli/src/commands/import.js:1 — 22.0% line coverage (35/159).
  • Low coverage: packages/bruno-cli/src/runner/interpolate-string.js packages/bruno-cli/src/runner/interpolate-string.js:1 — 27.3% line coverage (6/22).
  • Low coverage: REDACTED REDACTED:1 — 48.2% line coverage (93/193).
  • Low coverage: REDACTED REDACTED:1 — 45.5% line coverage (178/391).
  • Low coverage: packages/bruno-cli/src/store/tokenStore.js packages/bruno-cli/src/store/tokenStore.js:1 — 21.7% line coverage (5/23).
  • Low coverage: packages/bruno-cli/src/utils/bru.js packages/bruno-cli/src/utils/bru.js:1 — 17.9% line coverage (10/56).
  • Low coverage: packages/bruno-cli/src/utils/form-data.js packages/bruno-cli/src/utils/form-data.js:1 — 21.4% line coverage (6/28).
  • Low coverage: packages/bruno-cli/src/utils/proxy-util.js packages/bruno-cli/src/utils/proxy-util.js:1 — 26.6% line coverage (25/94).
  • Low coverage: packages/bruno-cli/src/utils/sanitize-results.js packages/bruno-cli/src/utils/sanitize-results.js:1 — 45.8% line coverage (11/24).
  • Low coverage: packages/bruno-common/src/runner/reports/html/template.ts packages/bruno-common/src/runner/reports/html/template.ts:1 — 22.2% line coverage (2/9).
  • Low coverage: packages/bruno-common/src/runner/utils/index.ts packages/bruno-common/src/runner/utils/index.ts:1 — 45.0% line coverage (9/20).
  • Low coverage: packages/bruno-common/src/utils/string.ts packages/bruno-common/src/utils/string.ts:1 — 12.5% line coverage (1/8).
  • Low coverage: packages/bruno-common/src/utils/type-helpers.ts packages/bruno-common/src/utils/type-helpers.ts:1 — 33.3% line coverage (2/6).
  • Low coverage: packages/bruno-converters/src/opencollection/common/assertions.ts packages/bruno-converters/src/opencollection/common/assertions.ts:1 — 33.3% line coverage (6/18).
  • + 53 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×44
  • FileTooLong: collections/index.js packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js — FileTooLong — 3135 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 (256-4297). The bar is 500 significant lines; this is 2635 over it, 6.27× 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 — 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 — 2503 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 2003 over it, 5.01× 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 — 1845 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 (196-2802). The bar is 500 significant lines; this is 1345 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 — 1687 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 1187 over it, 3.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.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 1615 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-2282). The bar is 500 significant lines; this is 1115 over it, 3.23× 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: 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: ipc/openapi-sync.js packages/bruno-electron/src/ipc/openapi-sync.js — FileTooLong — 1146 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 646 over it, 2.29× 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 — 1086 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 586 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 — 970 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 470 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 — 888 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 388 over it, 1.78× 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: postman/postman-to-bruno.js packages/bruno-converters/src/postman/postman-to-bruno.js — FileTooLong — 826 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 326 over it, 1.65× 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 — 800 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: EnvironmentList (44-1023). The bar is 500 significant lines; this is 300 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: EnvironmentList/index.js packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js — FileTooLong — 795 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: EnvironmentList (43-1024). The bar is 500 significant lines; this is 295 over it, 1.59× 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: 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: openapi/openapi-to-bruno.js packages/bruno-converters/src/openapi/openapi-to-bruno.js — FileTooLong — 774 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 274 over it, 1.55× 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/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: wsdl/wsdl-to-bruno.js packages/bruno-converters/src/wsdl/wsdl-to-bruno.js — FileTooLong — 734 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 234 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: REDACTED REDACTED — FileTooLong — 720 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 (104-1045). The bar is 500 significant lines; this is 220 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: commands/run.js packages/bruno-cli/src/commands/run.js — FileTooLong — 711 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 67% of them inside a single declaration: handler (298-1001). The bar is 500 significant lines; this is 211 over it, 1.42× 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 — 711 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: BulkImportCollectionLocation (133-942). The bar is 500 significant lines; this is 211 over it, 1.42× 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: SaveTransientRequest/index.js packages/bruno-app/src/components/SaveTransientRequest/index.js — FileTooLong — 685 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SaveTransientRequest (28-830). The bar is 500 significant lines; this is 185 over it, 1.37× 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.
  • + 19 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:134 — `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:198 — `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:233 — `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:242 — `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:310 — `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:327 — `fs.readdirSync` 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:334 — `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/import.js:347 — `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/run.js:348 — `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:491 — `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:668 — `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:961 — `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:26 — `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:421 — `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: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:441 — `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:449 — `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.
  • Sync-over-async blocking packages/bruno-cli/src/utils/filesystem.js:76 — `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.
  • + 15 more in this group — see findings.md.
R4 · Test Coverage · No test reaches this file · ×40
  • No test reaches this file REDACTED: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/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/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/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.
  • 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.
  • + 15 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×39
  • Swallowed exception (empty catch) packages/bruno-app/plugins/remote-images/utils.js:77 — 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-app/plugins/remote-images/loader.cjs:55 — 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-app/plugins/remote-images/loader.cjs:92 — `.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-app/plugins/remote-images/loader.cjs:98 — `.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-app/plugins/remote-images/loader.cjs:105 — `.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-app/src/components/AiChatSidebar/index.js:209 — 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-app/src/components/AiChatSidebar/index.js:282 — 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-app/src/components/AiChatSidebar/index.js:510 — 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-app/src/components/AiChatSidebar/index.js:667 — 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-app/src/components/AiChatSidebar/PopoutWindow/index.js:100 — 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-app/src/components/AppView/webview-bridge.js:208 — `.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-app/src/components/AppView/webview-bridge.js:209 — 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-app/src/components/AppView/webview-bridge.js:265 — 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-app/src/components/CodeEditor/state-persistence.js:63 — 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-app/src/components/CodeEditor/state-persistence.js:105 — 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-app/src/components/CodeEditor/state-persistence.js:108 — 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-app/src/components/CodeEditor/state-persistence.js:111 — 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-app/src/components/CodeEditor/state-persistence.js:129 — 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-app/src/components/CodeEditor/state-persistence.js:134 — 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-app/src/components/CodeEditor/index.js:248 — 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-app/src/components/CodeEditor/index.js:258 — 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-app/src/components/Devtools/Console/TerminalTab/index.js:212 — 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-app/src/components/ErrorCapture/index.js:96 — 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-app/src/components/MigrateCollectionToYmlModal/index.js:129 — `.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-app/src/components/MigrateCollectionToYmlModal/index.js:141 — `.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.
  • + 14 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.
D29 · Static Analysis (SAST) · REDACTED · ×29
  • 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
  • + 4 more in this group — see findings.md.
X1 · Async correctness · `async` Promise executor · ×23
  • `async` Promise executor packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:479 — 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:521 — 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:589 — 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:995 — 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:1154 — 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:1951 — 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:3173 — 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:3413 — 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:3423 — 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:3432 — 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:3444 — 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:789 — 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-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 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/utils/git.js:154 — 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:563 — 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:815 — 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:830 — 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:1041 — 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-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 scripts/build-electron.js:51 — 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 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.
  • 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-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-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/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-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-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-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-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/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/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 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 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/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/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/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/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.
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:3 — packages/bruno-app/src/utils/exporters/opencollection.js:3 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.
D30 · Dependency Vulnerabilities · Medium CVE · ×14
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D10 · Test Quality · Skipped test · ×13
  • 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 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
  • 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: 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: (unnamed test) tests/collection/draft/draft-values-in-requests.spec.ts:116 — 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/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/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
D12 · Dependency Hygiene · Deprecated · ×10
  • Deprecated: eslint REDACTED:39 — 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:46 — 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: electron-notarize REDACTED:64 — electron-notarize 1.2.2, declared in REDACTED, is marked deprecated by its publisher: "Please use @electron/notarize moving forward. There is no API change, just a package name change". Replace it with the package or version that message names, or record why this one must stay.
  • Deprecated: uuid REDACTED:85 — 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 REDACTED:36 — rimraf 3.0.2, declared in REDACTED, 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:27 — 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:37 — 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.
  • Deprecated: multer REDACTED:46 — multer 1.4.5-lts.1, declared in REDACTED, is marked deprecated by its publisher: "Multer 1.x is impacted by a number of vulnerabilities, which have been patched in 2.x. You should upgrade to the latest 2.x version.". Replace it with the package or version that message names, or record why this one must stay.
D2 · Cognitive Complexity · (anonymous) · ×10
  • (anonymous)::o (cognitive 47) REDACTED: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) REDACTED: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) REDACTED: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) REDACTED: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) REDACTED: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) REDACTED: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) REDACTED: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) REDACTED: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) REDACTED: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:199 — 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:269 — 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:75 — 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:341 — 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:63 — 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.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×9
  • 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:64 — `description.slice(3)` is text this program did not author, and it is written into the text of an element through markup built here 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:69 — `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:38 — `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/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:784 — `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 REDACTED:28 — `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.
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:88 — `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-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.
  • 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-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-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-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-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.
D29 · Static Analysis (SAST) · REDACTED · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D1 · Cyclomatic Complexity · (anonymous) · ×6
  • (anonymous)::o (cyclomatic 28) REDACTED: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) REDACTED: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) REDACTED: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) REDACTED: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) REDACTED: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.
D15 · Churn × Complexity Hotspots · Repeated repair · ×6
  • Repeated repair: packages/bruno-common/src/utils/index.ts packages/bruno-common/src/utils/index.ts:94 — packages/bruno-common/src/utils/index.ts changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 5 (its worst body is index.resolveTimeoutSetting at line 94), 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: match `form-urlencoded` and `multipart` media types, ignoring params and case (#9425)”; “fix(datatype): Variable type validation flag reference mismatch issue (#8878)”; “fix: remove the 50 cap on maxRedirects and normalise it on every read path (#8855)”; “fix(generate-code): generate code for url interpolation (#7308)”. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +05:30' --full-history --no-merges -- packages/bruno-common/src/utils/index.ts`: 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: tests/utils/page/mock-server.ts tests/utils/page/mock-server.ts:101 — tests/utils/page/mock-server.ts changed 7 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 2 (its worst body is (anonymous) at line 101), 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): Fixed Delay and Duration columns overlapping in the mock server request log (#9256)”; “fix(mock-server): clearing validation errors on modal (#9172)”; “fix(app): scoped mock server API spec options to the active workspace (#9077)”; “fix(mock-server): bring the UI in line with the rest of Bruno (#8880)”. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +05:30' --full-history --no-merges -- tests/utils/page/mock-server.ts`: 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 4 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 2 (its worst body is index.app.use() at line 99), 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)”; “Fix/collection runner loader issue (#8783)”. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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.
  • 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 4 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 13 (its worst body is editor.buildMockResponseEditorItem at line 19), 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): use in app modal instead of native close confirm (#9515)”; “fix(mock-server): fixing status text on response panel for mock response (#9013)”; “fix(mock-server): bring the UI in line with the rest of Bruno (#8880)”. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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 4 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 4 (its worst body is index.Advanced at line 11), 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(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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +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: packages/bruno-app/src/components/RequestTabs/RequestTab/ConfirmRequestClose/index.js packages/bruno-app/src/components/RequestTabs/RequestTab/ConfirmRequestClose/index.js:7 — packages/bruno-app/src/components/RequestTabs/RequestTab/ConfirmRequestClose/index.js 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 1 (its worst body is index.ConfirmRequestClose at line 7), 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: adding overflow for long names on confirm modal (#9605)”; “fix(mock-server): use in app modal instead of native close confirm (#9515)”; “Fix/modal overlap with text editor (#8962)”. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 15:50:09 +05:30' --until='2026-10-24 15:50:09 +05:30' --full-history --no-merges -- packages/bruno-app/src/components/RequestTabs/RequestTab/ConfirmRequestClose/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.
X2 · Cancellation propagation · Async function without AbortSignal · ×6
  • 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 })`.
  • Async function without AbortSignal: readOpenApiFile packages/bruno-cli/src/commands/import.js:88 — `readOpenApiFile` 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: readWSDLFile packages/bruno-cli/src/commands/import.js:157 — `readWSDLFile` 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: 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: 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 })`.
D1 · Cyclomatic Complexity · registerOpenAPISyncIpc · ×4
  • registerOpenAPISyncIpc::(anonymous)::compareSpecs (cyclomatic 21) packages/bruno-electron/src/ipc/openapi-sync.js:903 — 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:1481 — 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:1296 — 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:1396 — 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.
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 REDACTED; 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 REDACTED, 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.
D2 · Cognitive Complexity · registerOpenAPISyncIpc · ×3
  • registerOpenAPISyncIpc::(anonymous)::findAndRemoveRequest (cognitive 35) packages/bruno-electron/src/ipc/openapi-sync.js:1481 — 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:903 — 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:1396 — 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) REDACTED: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) REDACTED: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:199 — ClassTooLong — 453 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 53 over it, 1.13× 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.
D35 · Change Coupling · Change coupling · ×3
  • 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 71% of the time (17 of the 24 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 `97467c57` feat: add blur event handling to MultiLineEditor and SingleLineEditor…; `8c9cad6d` fix: cURL paste not updating request tab editors visually (#7610); `c8d835ef` fix: re-apply masking in MultiLineEditor and SingleLineEditor after s… — 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.
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 125) · ×2
  • index.EnvironmentList (cyclomatic 125) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44 — index.EnvironmentList has cyclomatic complexity 125 (threshold 15). Of this number, 26 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 125) packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:43 — index.EnvironmentList has cyclomatic complexity 125 (threshold 15). Of this number, 26 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) REDACTED: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) REDACTED: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 · index.ClientCertSettings (cyclomatic 38) · ×2
  • index.ClientCertSettings (cyclomatic 38) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:74 — 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 272, 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.
  • 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 · (anonymous) (cyclomatic 26) · ×2
  • (anonymous) (cyclomatic 26) REDACTED: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) REDACTED: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:141 — 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 133) · ×2
  • index.EnvironmentList (cognitive 133) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:44 — index.EnvironmentList has cognitive complexity 133 (threshold 15). Drivers by points: if/else 65 (75 pts), boolean chains 50, ternaries 6 (8 pts) (nesting depth added 12). Of this number, 19 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 133) packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/index.js:43 — index.EnvironmentList has cognitive complexity 133 (threshold 15). Drivers by points: if/else 65 (75 pts), boolean chains 50, ternaries 6 (8 pts) (nesting depth added 12). Of this number, 19 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 · (anonymous) (cognitive 78) · ×2
  • (anonymous) (cognitive 78) REDACTED: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.
  • (anonymous) (cognitive 78) packages/bruno-app/src/ui/MenuDropdown/index.js:60 — (anonymous) has cognitive complexity 78 (threshold 15). Drivers by points: if/else 33 (43 pts), boolean chains 24, ternaries 11 (nesting depth added 10). Most of this is not in the body itself: 6 of the 78 points are its own statements and the rest belongs to 42 function items inside it that branch (a function literal at line 238, getMenuItemProps, a function literal at line 319, …). 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 · 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:141 — 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) REDACTED: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) REDACTED: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
D30 · Dependency Vulnerabilities · Medium vulnerability · ×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 (104 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (104 matched lines × 2 locations) packages/bruno-app/src/components/MultiLineEditor/index.js:257 — packages/bruno-app/src/components/MultiLineEditor/index.js:257 · packages/bruno-app/src/components/SingleLineEditor/index.js:137 — the two spans are one implementation copied and then locally edited — 788 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 (104 matched lines × 2 locations) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2447 — packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2447 · packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:2815 — 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.
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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (~29 LoC) · ×2
  • Dead file (~29 LoC) packages/bruno-app/src/components/ResponsePane/ResponseActions/StyledWrapper.js — no import path from any entry point (103 application, 70 tooling, 1275 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
  • Dead file (~29 LoC) packages/bruno-app/src/components/Sidebar/Collections/SelectCollection/index.js — no import path from any entry point (103 application, 70 tooling, 1275 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
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 (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.
AC7 · A11y enforcement · Accessibility enforcement below the top rung · ×1
  • Accessibility enforcement below the top rung — No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 37 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
D1 · Cyclomatic Complexity · registerRendererEventHandlers (cyclomatic 378) · ×1
  • registerRendererEventHandlers (cyclomatic 378) packages/bruno-electron/src/ipc/collection.js:196 — 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 117 function items inside it that branch (a function literal at line 2682, a function literal at line 345, a function literal at line 1021, …). 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 253) · ×1
  • openapi-sync.registerOpenAPISyncIpc (cyclomatic 253) packages/bruno-electron/src/ipc/openapi-sync.js:880 — openapi-sync.registerOpenAPISyncIpc has cyclomatic complexity 253 (threshold 15). Most of this is not in the body itself: 1 of the 253 points is its own statement and the rest belongs to 20 function literals inside it that branch (lines 1361, 1085, 903, …). 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:71 — RequestTabPanel has cyclomatic complexity 162 (threshold 15). Of this number, 82 points are the body's own statements and 80 belong to 55 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:104 — 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 · EnvironmentVariablesTable (cyclomatic 143) · ×1
  • EnvironmentVariablesTable (cyclomatic 143) packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:244 — EnvironmentVariablesTable has cyclomatic complexity 143 (threshold 15). Of this number, 22 points are the body's own statements and 121 belong to 103 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 · 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 · run.handler (cyclomatic 132) · ×1
  • run.handler (cyclomatic 132) packages/bruno-cli/src/commands/run.js:298 — run.handler has cyclomatic complexity 132 (threshold 15). Of this number, 120 points are the body's own statements and 12 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 · 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 119) · ×1
  • CollectionHeader (cyclomatic 119) packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:65 — CollectionHeader has cyclomatic complexity 119 (threshold 15). Of this number, 55 points are the body's own statements and 64 belong to 74 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:462 — 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 467, 784, 636, …). 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 · openapi-to-bruno.transformOpenapiRequestItem (cyclomatic 111) · ×1
  • openapi-to-bruno.transformOpenapiRequestItem (cyclomatic 111) packages/bruno-converters/src/openapi/openapi-to-bruno.js:254 — openapi-to-bruno.transformOpenapiRequestItem has cyclomatic complexity 111 (threshold 15). Of this number, 61 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.CreateMockServerModal (cyclomatic 105) · ×1
  • index.CreateMockServerModal (cyclomatic 105) packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:163 — index.CreateMockServerModal has cyclomatic complexity 105 (threshold 15). Of this number, 46 points are the body's own statements and 59 belong to 14 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 · (anonymous) (cyclomatic 102) · ×1
  • (anonymous) (cyclomatic 102) REDACTED: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 · index.BulkImportCollectionLocation (cyclomatic 90) · ×1
  • index.BulkImportCollectionLocation (cyclomatic 90) REDACTED:133 — index.BulkImportCollectionLocation has cyclomatic complexity 90 (threshold 15). Of this number, 28 points are the body's own statements and 62 belong to 26 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 · 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 · prepareRequest (cyclomatic 85) · ×1
  • prepareRequest (cyclomatic 85) packages/bruno-cli/src/runner/prepare-request.js:16 — prepareRequest has cyclomatic complexity 85 (threshold 15). Of this number, 78 points are the body's own statements and 7 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 · 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 · (anonymous) (cyclomatic 84) · ×1
  • (anonymous) (cyclomatic 84) packages/bruno-app/src/components/CodeMirrorSearch/index.js:11 — (anonymous) has cyclomatic complexity 84 (threshold 15). Most of this is not in the body itself: 15 of the 84 points are its own statements and the rest belongs to 36 function items inside it that branch ((anonymous)::onKeyDown, a function literal at line 41, a function literal at line 336, …). 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 83) · ×1
  • index.CodeMirrorSearch (cyclomatic 83) packages/bruno-app/src/components/CodeMirrorSearch/index.js:11 — index.CodeMirrorSearch has cyclomatic complexity 83 (threshold 15). Of this number, 17 points are the body's own statements and 66 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 · 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 · 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:176 — 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:21 — 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 54 function items inside it that branch (a function literal at line 83, a function literal at line 449, 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 · index.MenuDropdown (cyclomatic 69) · ×1
  • index.MenuDropdown (cyclomatic 69) packages/bruno-app/src/ui/MenuDropdown/index.js:60 — index.MenuDropdown has cyclomatic complexity 69 (threshold 15). Most of this is not in the body itself: 7 of the 69 points are its own statements and the rest belongs to 22 function items inside it that branch (getMenuItemProps, a function literal at line 238, 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 69) · ×1
  • (anonymous) (cyclomatic 69) packages/bruno-app/src/ui/MenuDropdown/index.js:60 — (anonymous) has cyclomatic complexity 69 (threshold 15). Most of this is not in the body itself: 7 of the 69 points are its own statements and the rest belongs to 42 function items inside it that branch (getMenuItemProps, a function literal at line 238, 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 · 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.MockResponse (cyclomatic 66) · ×1
  • index.MockResponse (cyclomatic 66) packages/bruno-app/src/components/MockServer/MockResponse/index.js:33 — index.MockResponse has cyclomatic complexity 66 (threshold 15). Most of this is not in the body itself: 12 of the 66 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 · swagger2-to-bruno.transformSwaggerRequestItem (cyclomatic 66) · ×1
  • swagger2-to-bruno.transformSwaggerRequestItem (cyclomatic 66) packages/bruno-converters/src/openapi/swagger2-to-bruno.js:130 — swagger2-to-bruno.transformSwaggerRequestItem has cyclomatic complexity 66 (threshold 15). Of this number, 32 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 · (anonymous) (cyclomatic 66) · ×1
  • (anonymous) (cyclomatic 66) REDACTED: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:29 — 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 176, a function literal at line 96, a function literal at line 42, …). 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) REDACTED: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 · index.OverviewSection (cyclomatic 61) · ×1
  • index.OverviewSection (cyclomatic 61) packages/bruno-app/src/components/OpenAPISyncTab/OverviewSection/index.js:41 — index.OverviewSection has cyclomatic complexity 61 (threshold 15). Of this number, 37 points are the body's own statements and 24 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 · 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) REDACTED: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 · 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:15 — 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 59, 132, 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.
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 · (anonymous) (cyclomatic 51) · ×1
  • (anonymous) (cyclomatic 51) REDACTED: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 · 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 · index.CollectionItemRow (cyclomatic 49) · ×1
  • index.CollectionItemRow (cyclomatic 49) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemRow/index.jsx:77 — index.CollectionItemRow has cyclomatic complexity 49 (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 · 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 · switchWorkspace (cyclomatic 49) · ×1
  • switchWorkspace (cyclomatic 49) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:624 — switchWorkspace 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 19 function literals inside it that branch (lines 625, 678, 686, …). 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 · 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 · openapi-sync.compareRequestFields (cyclomatic 47) · ×1
  • openapi-sync.compareRequestFields (cyclomatic 47) packages/bruno-electron/src/ipc/openapi-sync.js:775 — openapi-sync.compareRequestFields has cyclomatic complexity 47 (threshold 15). Of this number, 45 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 · prepareRequest (cyclomatic 47) · ×1
  • prepareRequest (cyclomatic 47) packages/bruno-electron/src/ipc/network/prepare-request.js:379 — prepareRequest has cyclomatic complexity 47 (threshold 15). Of this number, 38 points are the body's own statements and 9 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 · addTab (cyclomatic 47) · ×1
  • addTab (cyclomatic 47) packages/bruno-app/src/providers/ReduxStore/slices/tabs.js:75 — 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 · ImportCollectionLocation (cyclomatic 47) · ×1
  • ImportCollectionLocation (cyclomatic 47) packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js:107 — ImportCollectionLocation has cyclomatic complexity 47 (threshold 15). Of this number, 28 points are the body's own statements and 19 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.AwsV4Auth (cyclomatic 46) · ×1
  • index.AwsV4Auth (cyclomatic 46) packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js:12 — index.AwsV4Auth has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 10 of the 46 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 · 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) REDACTED: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 · queryBuilder.walkSelectionSet (cyclomatic 45) · ×1
  • queryBuilder.walkSelectionSet (cyclomatic 45) packages/bruno-app/src/utils/graphql/queryBuilder.js:611 — queryBuilder.walkSelectionSet has cyclomatic complexity 45 (threshold 15). Of this number, 44 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 · 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 · index.AwsV4Auth (cyclomatic 44) · ×1
  • index.AwsV4Auth (cyclomatic 44) packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js:12 — index.AwsV4Auth has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 9 of the 44 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 · 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 · 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 · actions.handleMultipleCollectionItemsDrop (cyclomatic 42) · ×1
  • actions.handleMultipleCollectionItemsDrop (cyclomatic 42) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1122 — actions.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 8 function literals inside it that branch (lines 1154, 1161, 1123, …). 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.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 · 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 · CertFileInput (cyclomatic 42) · ×1
  • CertFileInput (cyclomatic 42) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:33 — CertFileInput has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 4 of the 42 points are its own statements and the rest belongs to 37 function items inside it that branch (ClientCertSettings, a function literal at line 272, 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.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 · 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 · 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 · (anonymous) (cyclomatic 40) · ×1
  • (anonymous) (cyclomatic 40) packages/bruno-electron/src/index.js:205 — (anonymous) has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 13 of the 40 points are its own statements and the rest belongs to 45 function items inside it that branch (a function literal at line 452, a function literal at line 282, a function literal at line 277, …). 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 · 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 · FileTab.FileTab (cyclomatic 39) · ×1
  • FileTab.FileTab (cyclomatic 39) packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js:36 — FileTab.FileTab has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 2 of the 39 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 · 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 · ProxySettings (cyclomatic 39) · ×1
  • ProxySettings (cyclomatic 39) packages/bruno-app/src/components/CollectionSettings/ProxySettings/index.js:15 — ProxySettings has cyclomatic complexity 39 (threshold 15). Of this number, 18 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 · SetAsVariablePopover (cyclomatic 39) · ×1
  • SetAsVariablePopover (cyclomatic 39) REDACTED:42 — SetAsVariablePopover has cyclomatic complexity 39 (threshold 15). Of this number, 22 points are the body's own statements and 17 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.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 · 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:12 — 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:249 — 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 · 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.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 · 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 · openapi-to-bruno.getParameterEntries (cyclomatic 36) · ×1
  • openapi-to-bruno.getParameterEntries (cyclomatic 36) packages/bruno-converters/src/openapi/openapi-to-bruno.js:137 — openapi-to-bruno.getParameterEntries has cyclomatic complexity 36 (threshold 15). Of this number, 28 points are the body's own statements and 8 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 · 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:205 — index.app.on("ready") has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 10 of the 35 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 452, a function literal at line 282, a function literal at line 277, …). 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:2364 — 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 2365, 2404, 2512, …). 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 · OAuth1 (cyclomatic 35) · ×1
  • OAuth1 (cyclomatic 35) packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js:32 — OAuth1 has cyclomatic complexity 35 (threshold 15). Of this number, 27 points are the body's own statements and 8 belong to 25 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.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 · CollectionsSection (cyclomatic 34) · ×1
  • CollectionsSection (cyclomatic 34) packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js:44 — CollectionsSection has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 15 of the 34 points are its own statements and the rest belongs to 47 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.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 45, 147, 173, …). 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 · getVariableScope (cyclomatic 33) · ×1
  • getVariableScope (cyclomatic 33) packages/bruno-app/src/utils/collections/index.js:1927 — getVariableScope has cyclomatic complexity 33 (threshold 15). Of this number, 30 points are the body's own statements and 3 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 · 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:272 — 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.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 · 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:352 — 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:3553 — 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.AdditionalParams (cyclomatic 30) · ×1
  • index.AdditionalParams (cyclomatic 30) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js:12 — index.AdditionalParams has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 10 of the 30 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 191, 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.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.DocsTagList (cyclomatic 30) · ×1
  • index.DocsTagList (cyclomatic 30) packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/DocsTagList/index.jsx:8 — index.DocsTagList 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 · 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:299 — 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:17 — 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.Oauth2ActionButtons (cyclomatic 29) · ×1
  • index.Oauth2ActionButtons (cyclomatic 29) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Oauth2ActionButtons/index.js:14 — index.Oauth2ActionButtons 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 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.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 · aiGhostText.setupAiAutocomplete (cyclomatic 29) · ×1
  • aiGhostText.setupAiAutocomplete (cyclomatic 29) packages/bruno-app/src/utils/codemirror/aiGhostText.js:319 — aiGhostText.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 5 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.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:1074 — 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 1136). 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 · 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 · 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:752 — 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:3442 — 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 · 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:20 — 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) REDACTED: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.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.ShareCollection (cyclomatic 27) · ×1
  • index.ShareCollection (cyclomatic 27) packages/bruno-app/src/components/ShareCollection/index.js:20 — index.ShareCollection 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 7 function items inside it that branch (handleProceed, a function literal at line 29, 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.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.getRequestFromCurlCommand (cyclomatic 27) · ×1
  • index.getRequestFromCurlCommand (cyclomatic 27) packages/bruno-app/src/utils/curl/index.js:6 — index.getRequestFromCurlCommand has cyclomatic complexity 27 (threshold 15). 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, 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 · 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:39 — 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.parseOpenApiCollection · ×1
  • openapi-to-bruno.parseOpenApiCollection::buildCollectionAuth (cyclomatic 27) packages/bruno-converters/src/openapi/openapi-to-bruno.js:1040 — openapi-to-bruno.parseOpenApiCollection::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:294 — 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:21 — 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 · buildXmlBody (cyclomatic 26) · ×1
  • buildXmlBody (cyclomatic 26) packages/bruno-converters/src/openapi/openapi-common.js:188 — buildXmlBody has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 8 function items inside it that branch (buildElement, a function literal at line 232, 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.
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 20). 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:174 — 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:45 — 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:628 — 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 · 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 · 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 · index.interpolateRequest (cyclomatic 24) · ×1
  • index.interpolateRequest (cyclomatic 24) REDACTED:176 — index.interpolateRequest has cyclomatic complexity 24 (threshold 15). Of this number, 20 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 · 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 · digestauth-helper.addDigestInterceptor (cyclomatic 24) · ×1
  • digestauth-helper.addDigestInterceptor (cyclomatic 24) packages/bruno-requests/src/auth/digestauth-helper.js:35 — digestauth-helper.addDigestInterceptor has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 3 of the 24 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 · send-request.createSendRequest (cyclomatic 24) · ×1
  • send-request.createSendRequest (cyclomatic 24) packages/bruno-requests/src/scripting/send-request.ts:138 — send-request.createSendRequest 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 items inside it that branch (a function literal at line 189, buildTimeline, recordEntry). 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 · collectionChangeFileEvent (cyclomatic 24) · ×1
  • collectionChangeFileEvent (cyclomatic 24) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:3233 — 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:1384 — 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 1403, 1465, 1491, …). 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 · queryBuilder.collectVariablesFromSelections (cyclomatic 23) · ×1
  • queryBuilder.collectVariablesFromSelections (cyclomatic 23) packages/bruno-app/src/utils/graphql/queryBuilder.js:178 — queryBuilder.collectVariablesFromSelections 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 · 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:1192 — 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 1246, 1216, 1204, …). 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:306 — 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.ConnectionSettingsModal (cyclomatic 22) · ×1
  • index.ConnectionSettingsModal (cyclomatic 22) packages/bruno-app/src/components/OpenAPISyncTab/ConnectionSettingsModal/index.js:9 — index.ConnectionSettingsModal has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body's own statements and 7 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 · 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 · chat.sendAiMessage (cyclomatic 22) · ×1
  • chat.sendAiMessage (cyclomatic 22) packages/bruno-app/src/providers/ReduxStore/slices/chat.js:248 — chat.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 9 function literals inside it that branch (lines 310, 258, 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.
D1 · Cyclomatic Complexity · index.transformRequestToSaveToFilesystem (cyclomatic 22) · ×1
  • index.transformRequestToSaveToFilesystem (cyclomatic 22) packages/bruno-app/src/utils/collections/index.js:704 — 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 · 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:308 — 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 · 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.RequestTabs (cyclomatic 21) · ×1
  • index.RequestTabs (cyclomatic 21) packages/bruno-app/src/components/RequestTabs/index.js:17 — index.RequestTabs has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 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 55, a function literal at line 58, getTabClassname, …). 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:2185 — 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 2206, a function literal at line 2217, a function literal at line 2194, …). 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:107 — 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 148, 109, 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.
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 · import.handler (cyclomatic 21) · ×1
  • import.handler (cyclomatic 21) packages/bruno-cli/src/commands/import.js:248 — import.handler 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 · persist-variables.mergeScriptVarsIntoEnvList (cyclomatic 21) · ×1
  • persist-variables.mergeScriptVarsIntoEnvList (cyclomatic 21) packages/bruno-cli/src/utils/persist-variables.js:207 — persist-variables.mergeScriptVarsIntoEnvList has cyclomatic complexity 21 (threshold 15). Of this number, 13 points are the body's own statements and 8 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 · 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:454 — 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:1006 — 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) REDACTED: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 · 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 · BulkImportCollectionLocation · ×1
  • BulkImportCollectionLocation::onSubmit (cyclomatic 21) REDACTED:302 — 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 · 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 · OAuth2AuthorizationCode (cyclomatic 21) · ×1
  • OAuth2AuthorizationCode (cyclomatic 21) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:18 — OAuth2AuthorizationCode has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body's own statements and 7 belong to 23 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.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:1700 — 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:4095 — 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:583 — 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 589, 675, 659, …). 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.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 · index.RunnerTags (cyclomatic 19) · ×1
  • index.RunnerTags (cyclomatic 19) packages/bruno-app/src/components/RunnerResults/RunnerTags/index.jsx:7 — index.RunnerTags 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 4 function items inside it that branch (handleAddTag, handleRemoveTag, handleValidation, …). 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.getCollectionName (cyclomatic 19) · ×1
  • index.getCollectionName (cyclomatic 19) packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js:26 — 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 · openapi-common.getDefaultValueForSchema (cyclomatic 19) · ×1
  • openapi-common.getDefaultValueForSchema (cyclomatic 19) packages/bruno-converters/src/openapi/openapi-common.js:132 — openapi-common.getDefaultValueForSchema 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 · 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 · 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:3078 — 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) REDACTED: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 · 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.readOpenApiFile (cyclomatic 18) · ×1
  • import.readOpenApiFile (cyclomatic 18) packages/bruno-cli/src/commands/import.js:88 — import.readOpenApiFile has cyclomatic complexity 18 (threshold 15). Of this number, 17 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 · 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:363 — 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-filestore/src/writeCollectionToDisk/index.ts:55 — 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 · useSearchBarHandle.useSearchBarHandle (cyclomatic 17) · ×1
  • useSearchBarHandle.useSearchBarHandle (cyclomatic 17) packages/bruno-app/src/components/CodeMirrorSearch/useSearchBarHandle.js:10 — useSearchBarHandle.useSearchBarHandle has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 64, 35, 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.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.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:419 — 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.SetAsVariableProvider (cyclomatic 17) · ×1
  • index.SetAsVariableProvider (cyclomatic 17) packages/bruno-app/src/providers/SetAsVariable/index.js:25 — index.SetAsVariableProvider 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 4 function literals inside it that branch (lines 73, 37, 44, …). 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.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:66 — 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 98, a function literal at line 110, …). 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 · index.buildPostData (cyclomatic 17) · ×1
  • index.buildPostData (cyclomatic 17) REDACTED:528 — index.buildPostData has cyclomatic complexity 17 (threshold 15). 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, 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 · openapi-to-bruno.paramEntriesFromValue (cyclomatic 17) · ×1
  • openapi-to-bruno.paramEntriesFromValue (cyclomatic 17) packages/bruno-converters/src/openapi/openapi-to-bruno.js:56 — 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:334 — 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:295 — (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 · 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 · snippet-generator.generateSnippet (cyclomatic 16) · ×1
  • snippet-generator.generateSnippet (cyclomatic 16) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/utils/snippet-generator.js:54 — snippet-generator.generateSnippet 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 · 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 · index.useOverflowCollapse (cyclomatic 16) · ×1
  • index.useOverflowCollapse (cyclomatic 16) packages/bruno-app/src/hooks/useOverflowCollapse/index.js:11 — index.useOverflowCollapse 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 literals inside it that branch (lines 53, 81, 27, …). 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 · 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 · 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:616 — 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 631, 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 · 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 · openapi-common.getExampleFromSchema (cyclomatic 16) · ×1
  • openapi-common.getExampleFromSchema (cyclomatic 16) packages/bruno-converters/src/openapi/openapi-common.js:362 — openapi-common.getExampleFromSchema 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 · 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:237 — 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:153 — 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 159, 175, 209, …). 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:199 — 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:1248 — 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:2962 — 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 2965, 3040, 2995, …). 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:431 — 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.
D1 · Cyclomatic Complexity · OAuth2PasswordCredentials (cyclomatic 16) · ×1
  • OAuth2PasswordCredentials (cyclomatic 16) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:16 — OAuth2PasswordCredentials has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body's own statements and 4 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 · OAuth2ClientCredentials (cyclomatic 16) · ×1
  • OAuth2ClientCredentials (cyclomatic 16) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js:16 — OAuth2ClientCredentials has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body's own statements and 4 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.
D2 · Cognitive Complexity · collection.registerRendererEventHandlers (cognitive 491) · ×1
  • collection.registerRendererEventHandlers (cognitive 491) packages/bruno-electron/src/ipc/collection.js:196 — 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 1412, a function literal at line 345, a function literal at line 1679, …). 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 408) · ×1
  • openapi-sync.registerOpenAPISyncIpc (cognitive 408) packages/bruno-electron/src/ipc/openapi-sync.js:880 — openapi-sync.registerOpenAPISyncIpc has cognitive complexity 408 (threshold 15). Drivers by points: if/else 91 (197 pts), boolean chains 89, error handling 24 (46 pts), ternaries 18 (45 pts), loops 18 (31 pts) (nesting depth added 168). None of this is in the body itself: all 408 points belong to 20 function literals inside it that branch (lines 1361, 1085, 1481, …). 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:462 — 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 467, 784, 636, …). 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:104 — 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 208) · ×1
  • handler (cognitive 208) packages/bruno-cli/src/commands/run.js:298 — handler has cognitive complexity 208 (threshold 15). Drivers by points: if/else 83 (135 pts), boolean chains 34, loops 8 (19 pts), error handling 8 (17 pts), ternaries 3 (nesting depth added 72). Of this number, 192 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 · index.RequestTabPanel (cognitive 205) · ×1
  • index.RequestTabPanel (cognitive 205) packages/bruno-app/src/components/RequestTabPanel/index.js:71 — index.RequestTabPanel has cognitive complexity 205 (threshold 15). Drivers by points: if/else 90 (128 pts), ternaries 25 (39 pts), boolean chains 36, match/switch 2 (nesting depth added 52). Of this number, 104 points are the body's own statements and 101 belong to 22 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 156) · ×1
  • prepareRequest (cognitive 156) packages/bruno-cli/src/runner/prepare-request.js:16 — prepareRequest has cognitive complexity 156 (threshold 15). Drivers by points: if/else 62 (121 pts), error handling 4 (17 pts), boolean chains 16, other 1, ternaries 1 (nesting depth added 72). Of this number, 148 points are the body's own statements and 8 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.EnvironmentVariablesTable (cognitive 150) · ×1
  • index.EnvironmentVariablesTable (cognitive 150) packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:244 — index.EnvironmentVariablesTable has cognitive complexity 150 (threshold 15). Drivers by points: if/else 43 (52 pts), boolean chains 51, ternaries 34 (47 pts) (nesting depth added 22). Of this number, 18 points are the body's own statements and 132 belong to 39 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 · 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 · transformOpenapiRequestItem (cognitive 147) · ×1
  • transformOpenapiRequestItem (cognitive 147) packages/bruno-converters/src/openapi/openapi-to-bruno.js:254 — transformOpenapiRequestItem has cognitive complexity 147 (threshold 15). Drivers by points: if/else 47 (69 pts), boolean chains 49, ternaries 9 (24 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 40). Of this number, 76 points are the body's own statements and 71 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 · 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.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.CreateMockServerModal (cognitive 122) · ×1
  • index.CreateMockServerModal (cognitive 122) packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.js:163 — index.CreateMockServerModal has cognitive complexity 122 (threshold 15). Drivers by points: ternaries 30 (42 pts), boolean chains 38, if/else 29 (33 pts), error handling 5 (9 pts) (nesting depth added 20). Of this number, 50 points are the body's own statements and 72 belong to 14 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 · 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 · index.BulkImportCollectionLocation (cognitive 110) · ×1
  • index.BulkImportCollectionLocation (cognitive 110) REDACTED:133 — index.BulkImportCollectionLocation has cognitive complexity 110 (threshold 15). Drivers by points: if/else 25 (42 pts), boolean chains 36, ternaries 19 (26 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 27). Of this number, 28 points are the body's own statements and 82 belong to 26 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 · 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:77 — 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, 47 points are the body's own statements and 60 belong to 22 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 105) · ×1
  • index.CollectionHeader (cognitive 105) packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:65 — index.CollectionHeader has cognitive complexity 105 (threshold 15). Drivers by points: boolean chains 45, if/else 38 (41 pts), ternaries 14 (17 pts), error handling 1 (2 pts) (nesting depth added 7). Of this number, 48 points are the body's own statements and 57 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) REDACTED: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 · VisualDiffBody (cognitive 96) · ×1
  • VisualDiffBody (cognitive 96) packages/bruno-app/src/components/Git/VisualDiffViewer/VisualDiffBody.js:23 — VisualDiffBody has cognitive complexity 96 (threshold 15). Drivers by points: boolean chains 44, ternaries 25 (28 pts), if/else 23 (24 pts) (nesting depth added 4). Most of this is not in the body itself: 12 of the 96 points are its own statements and the rest belongs to 17 function items inside it that branch (a function literal at line 177, a function literal at line 143, renderGraphqlBody, …). 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:21 — 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 83, a function literal at line 449, 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:176 — 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.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 83) · ×1
  • (anonymous) (cognitive 83) packages/bruno-app/src/components/CodeMirrorSearch/index.js:11 — (anonymous) has cognitive complexity 83 (threshold 15). Drivers by points: if/else 35 (38 pts), boolean chains 28, ternaries 12 (15 pts), error handling 1, other 1 (nesting depth added 6). Most of this is not in the body itself: 12 of the 83 points are its own statements and the rest belongs to 36 function items inside it that branch (a function literal at line 41, (anonymous)::onKeyDown, a function literal at line 151, …). 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 · walkSelectionSet (cognitive 81) · ×1
  • walkSelectionSet (cognitive 81) packages/bruno-app/src/utils/graphql/queryBuilder.js:611 — 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:3442 — 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 · index.MenuDropdown (cognitive 78) · ×1
  • index.MenuDropdown (cognitive 78) packages/bruno-app/src/ui/MenuDropdown/index.js:60 — index.MenuDropdown has cognitive complexity 78 (threshold 15). Drivers by points: if/else 33 (43 pts), boolean chains 24, ternaries 11 (nesting depth added 10). Most of this is not in the body itself: 6 of the 78 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 238, getMenuItemProps, a function literal at line 319, …). 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 78) · ×1
  • transformSwaggerRequestItem (cognitive 78) packages/bruno-converters/src/openapi/swagger2-to-bruno.js:130 — transformSwaggerRequestItem has cognitive complexity 78 (threshold 15). Drivers by points: boolean chains 35, if/else 21 (27 pts), ternaries 6 (14 pts), loops 1 (2 pts) (nesting depth added 15). Of this number, 35 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 · index.MockResponse (cognitive 77) · ×1
  • index.MockResponse (cognitive 77) packages/bruno-app/src/components/MockServer/MockResponse/index.js:33 — index.MockResponse has cognitive complexity 77 (threshold 15). Drivers by points: if/else 26 (35 pts), boolean chains 29, error handling 6, ternaries 6, loops 1 (nesting depth added 9). Most of this is not in the body itself: 11 of the 77 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 · 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:29 — 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 176, a function literal at line 96, 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 · 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 · index.CodeMirrorSearch (cognitive 74) · ×1
  • index.CodeMirrorSearch (cognitive 74) packages/bruno-app/src/components/CodeMirrorSearch/index.js:11 — index.CodeMirrorSearch has cognitive complexity 74 (threshold 15). Drivers by points: if/else 32 (34 pts), boolean chains 26, ternaries 11 (13 pts), error handling 1 (nesting depth added 4). Most of this is not in the body itself: 15 of the 74 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 177, a function literal at line 151, …). 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 73) · ×1
  • (anonymous) (cognitive 73) REDACTED: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 · 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 · 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 · prepareRequest (cognitive 70) · ×1
  • prepareRequest (cognitive 70) packages/bruno-electron/src/ipc/network/prepare-request.js:379 — prepareRequest has cognitive complexity 70 (threshold 15). Drivers by points: if/else 31 (50 pts), boolean chains 10, error handling 2 (6 pts), other 2, ternaries 2 (nesting depth added 23). Of this number, 60 points are the body's own statements and 10 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 · 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) REDACTED: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 · openapi-sync.compareRequestFields (cognitive 66) · ×1
  • openapi-sync.compareRequestFields (cognitive 66) packages/bruno-electron/src/ipc/openapi-sync.js:775 — openapi-sync.compareRequestFields has cognitive complexity 66 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 21, ternaries 2 (4 pts), error handling 1 (2 pts) (nesting depth added 23). Of this number, 64 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 · 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 · 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:3553 — 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:75 — 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:1074 — 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 1136, 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 · 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:3233 — 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:15 — 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 59, 132, 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 · actions.handleMultipleCollectionItemsDrop (cognitive 56) · ×1
  • actions.handleMultipleCollectionItemsDrop (cognitive 56) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:1122 — actions.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 8 function literals inside it that branch (lines 1154, 1161, 1123, …). 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 · 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 · index.OverviewSection (cognitive 55) · ×1
  • index.OverviewSection (cognitive 55) packages/bruno-app/src/components/OpenAPISyncTab/OverviewSection/index.js:41 — index.OverviewSection has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 31, ternaries 16 (17 pts), if/else 7 (nesting depth added 1). Of this number, 34 points are the body's own statements and 21 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 · 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:178 — 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 · 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 · switchWorkspace (cognitive 53) · ×1
  • switchWorkspace (cognitive 53) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:624 — switchWorkspace has cognitive complexity 53 (threshold 15). Drivers by points: boolean chains 22, 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 53 points belong to 19 function literals inside it that branch (lines 625, 686, 715, …). 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 · 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) REDACTED: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 · 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 45, 173, 123, …). 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 · updateVariableInScope (cognitive 47) · ×1
  • updateVariableInScope (cognitive 47) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:2364 — 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 2365, 2404, 2512, …). 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 · CertFileInput (cognitive 47) · ×1
  • CertFileInput (cognitive 47) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:33 — CertFileInput has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 17, boolean chains 11, loops 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 47 points are its own statements and the rest belongs to 37 function items inside it that branch (ClientCertSettings, a function literal at line 272, 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 · ImportCollectionLocation (cognitive 47) · ×1
  • ImportCollectionLocation (cognitive 47) packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js:107 — ImportCollectionLocation has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 19, if/else 10 (14 pts), ternaries 10 (11 pts), loops 2, error handling 1 (nesting depth added 5). Of this number, 22 points are the body's own statements and 25 belong to 25 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 · 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 · (anonymous) (cognitive 46) · ×1
  • (anonymous) (cognitive 46) packages/bruno-electron/src/index.js:205 — (anonymous) has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (21 pts), error handling 9 (12 pts), boolean chains 8, ternaries 5 (nesting depth added 5). Most of this is not in the body itself: 13 of the 46 points are its own statements and the rest belongs to 45 function items inside it that branch (a function literal at line 452, a function literal at line 282, 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 · 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 · index.AwsV4Auth (cognitive 45) · ×1
  • index.AwsV4Auth (cognitive 45) packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js:12 — index.AwsV4Auth has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 44, ternaries 1. Most of this is not in the body itself: 9 of the 45 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 · 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) REDACTED: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 · FileTab.FileTab (cognitive 44) · ×1
  • FileTab.FileTab (cognitive 44) packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js:36 — FileTab.FileTab has cognitive complexity 44 (threshold 15). Drivers by points: if/else 31 (33 pts), error handling 4 (5 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 1 of the 44 points is its own statement 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.
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/RequestPane/Auth/AwsV4Auth/index.js:12 — index.AwsV4Auth has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 43. Most of this is not in the body itself: 8 of the 43 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 · 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:107 — 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 148, 109, 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.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.ClientCertSettings (cognitive 42) · ×1
  • index.ClientCertSettings (cognitive 42) packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js:74 — index.ClientCertSettings has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 10 (14 pts), boolean chains 10 (nesting depth added 7). Most of this is not in the body itself: 7 of the 42 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 272, 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.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.SetAsVariablePopover (cognitive 42) · ×1
  • index.SetAsVariablePopover (cognitive 42) REDACTED:42 — index.SetAsVariablePopover has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 17 (21 pts), if/else 8 (13 pts), boolean chains 8 (nesting depth added 9). Of this number, 19 points are the body's own statements and 23 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 · index.authToHeaders (cognitive 42) · ×1
  • index.authToHeaders (cognitive 42) REDACTED:352 — 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 · 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:1700 — 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 · 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 · getParameterEntries (cognitive 40) · ×1
  • getParameterEntries (cognitive 40) packages/bruno-converters/src/openapi/openapi-to-bruno.js:137 — getParameterEntries has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 19, if/else 14 (17 pts), ternaries 2 (4 pts) (nesting depth added 5). Of this number, 32 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 · index.ProxySettings (cognitive 39) · ×1
  • index.ProxySettings (cognitive 39) packages/bruno-app/src/components/CollectionSettings/ProxySettings/index.js:15 — index.ProxySettings has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 18, if/else 15, ternaries 5 (6 pts) (nesting depth added 1). Of this number, 17 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 · 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 · getVariableScope (cognitive 39) · ×1
  • getVariableScope (cognitive 39) packages/bruno-app/src/utils/collections/index.js:1927 — getVariableScope has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 6, ternaries 5, other 4, loops 1 (nesting depth added 8). Of this number, 36 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 · componentDidUpdate (cognitive 39) · ×1
  • componentDidUpdate (cognitive 39) packages/bruno-app/src/components/MultiLineEditor/index.js:272 — 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.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:249 — 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 · openapi-to-bruno.parseOpenApiCollection · ×1
  • openapi-to-bruno.parseOpenApiCollection::buildCollectionAuth (cognitive 35) packages/bruno-converters/src/openapi/openapi-to-bruno.js:1040 — openapi-to-bruno.parseOpenApiCollection::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:294 — 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 · 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:299 — 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 · 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 · import.handler (cognitive 34) · ×1
  • import.handler (cognitive 34) packages/bruno-cli/src/commands/import.js:248 — import.handler has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (26 pts), ternaries 2 (4 pts), boolean chains 3, error handling 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 · index.app.on("ready") (cognitive 34) · ×1
  • index.app.on("ready") (cognitive 34) packages/bruno-electron/src/index.js:205 — index.app.on("ready") has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 8, error handling 4 (5 pts), ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 34 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 452, a function literal at line 282, 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:1384 — 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 1403, 1465, 1491, …). 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 · BulkImportCollectionLocation · ×1
  • BulkImportCollectionLocation::onSubmit (cognitive 34) REDACTED:302 — BulkImportCollectionLocation::onSubmit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, error handling 2 (5 pts), ternaries 1 (3 pts), loops 1 (2 pts) (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 · parseComplexTypeContent (cognitive 34) · ×1
  • parseComplexTypeContent (cognitive 34) packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:306 — 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:1196 — 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 · OAuth1 (cognitive 34) · ×1
  • OAuth1 (cognitive 34) packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js:32 — OAuth1 has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 23, if/else 5, ternaries 5, error handling 1. Of this number, 26 points are the body's own statements and 8 belong to 25 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.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:1390 — 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 · 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 · 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.AdditionalParams (cognitive 31) · ×1
  • index.AdditionalParams (cognitive 31) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js:12 — index.AdditionalParams has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 15, if/else 9 (11 pts), ternaries 5 (nesting depth added 2). Most of this is not in the body itself: 9 of the 31 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 191, 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.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 · 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:3078 — 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:616 — 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 631, 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 · 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:39 — 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:174 — 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.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.DocsTagList (cognitive 29) · ×1
  • index.DocsTagList (cognitive 29) packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/DocsTagList/index.jsx:8 — index.DocsTagList 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:308 — 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:334 — 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:110 — 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:154 — 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:454 — 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.ConnectionSettingsModal (cognitive 28) · ×1
  • index.ConnectionSettingsModal (cognitive 28) packages/bruno-app/src/components/OpenAPISyncTab/ConnectionSettingsModal/index.js:9 — index.ConnectionSettingsModal has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 10 (11 pts), if/else 3 (8 pts), boolean chains 5, error handling 2 (4 pts) (nesting depth added 8). Of this number, 15 points are the body's own statements and 13 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.OpenAPISyncTab (cognitive 28) · ×1
  • index.OpenAPISyncTab (cognitive 28) packages/bruno-app/src/components/OpenAPISyncTab/index.js:17 — 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 · openapi-common.getDefaultValueForSchema (cognitive 28) · ×1
  • openapi-common.getDefaultValueForSchema (cognitive 28) packages/bruno-converters/src/openapi/openapi-common.js:132 — openapi-common.getDefaultValueForSchema has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, ternaries 1 (4 pts) (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 · 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 · digestauth-helper.addDigestInterceptor (cognitive 28) · ×1
  • digestauth-helper.addDigestInterceptor (cognitive 28) packages/bruno-requests/src/auth/digestauth-helper.js:35 — digestauth-helper.addDigestInterceptor has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 11 (nesting depth added 6). Most of this is not in the body itself: 2 of the 28 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 · 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 · send-request.createSendRequest (cognitive 28) · ×1
  • send-request.createSendRequest (cognitive 28) packages/bruno-requests/src/scripting/send-request.ts:138 — send-request.createSendRequest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 5 (7 pts), boolean chains 6, ternaries 3 (4 pts), loops 2 (3 pts) (nesting depth added 6). None of this is in the body itself: all 28 points belong to 3 function items inside it that branch (a function literal at line 189, buildTimeline, recordEntry). 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 · grpcResponseReceived (cognitive 28) · ×1
  • grpcResponseReceived (cognitive 28) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:752 — 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:583 — 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 589, 675, 659, …). 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:1006 — 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 · 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 · constructor (cognitive 28) · ×1
  • constructor (cognitive 28) packages/bruno-js/src/bru.js:45 — 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 · 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 · import.readOpenApiFile (cognitive 27) · ×1
  • import.readOpenApiFile (cognitive 27) packages/bruno-cli/src/commands/import.js:88 — import.readOpenApiFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 4 (8 pts), boolean chains 3 (nesting depth added 9). Of this number, 26 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 · 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:12 — 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:199 — 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) REDACTED: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:628 — 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 · buildXmlBody (cognitive 27) · ×1
  • buildXmlBody (cognitive 27) packages/bruno-converters/src/openapi/openapi-common.js:188 — buildXmlBody has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, ternaries 7 (9 pts), if/else 6, other 1 (nesting depth added 2). Most of this is not in the body itself: 11 of the 27 points are its own statements and the rest belongs to 8 function items inside it that branch (buildElement, a function literal at line 232, 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 · 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 · 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:451 — 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 · updateQueryParam (cognitive 26) · ×1
  • updateQueryParam (cognitive 26) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:1407 — 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 · CollectionsSection (cognitive 26) · ×1
  • CollectionsSection (cognitive 26) packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js:44 — CollectionsSection has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 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 26 points are its own statements and the rest belongs to 47 function items inside it that branch (handleStartRequest, a function literal at line 208, 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 · utils.parseMessageSegments (cognitive 25) · ×1
  • utils.parseMessageSegments (cognitive 25) packages/bruno-app/src/components/AiChatSidebar/utils.js:16 — 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:21 — 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 23, …). 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:1192 — 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 1246, 1216, 1204, …). 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 · 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:2962 — 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 2965, 3040, 2995, …). 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:1611 — 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 · 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.RunnerTags (cognitive 24) · ×1
  • index.RunnerTags (cognitive 24) packages/bruno-app/src/components/RunnerResults/RunnerTags/index.jsx:7 — index.RunnerTags has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 3 (nesting depth added 6). None of this is in the body itself: all 24 points belong to 4 function items inside it that branch (handleAddTag, handleRemoveTag, handleValidation, …). 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.ShareCollection (cognitive 24) · ×1
  • index.ShareCollection (cognitive 24) packages/bruno-app/src/components/ShareCollection/index.js:20 — index.ShareCollection has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 7, error handling 2, match/switch 1. Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (handleProceed, a function literal at line 29, 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 · 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 · index.getRequestFromCurlCommand (cognitive 24) · ×1
  • index.getRequestFromCurlCommand (cognitive 24) packages/bruno-app/src/utils/curl/index.js:6 — index.getRequestFromCurlCommand has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 9, error handling 2 (nesting depth added 1). Of this number, 23 points are the body's own statements and 1 belongs to one function item 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 · translate-postman-scripts.parentPort.on("message") (cognitive 24) · ×1
  • translate-postman-scripts.parentPort.on("message") (cognitive 24) packages/bruno-converters/src/workers/scripts/translate-postman-scripts.js:4 — translate-postman-scripts.parentPort.on("message") has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4, error handling 1 (nesting depth added 11). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 13, 7). 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 · git.discardChanges (cognitive 24) · ×1
  • git.discardChanges (cognitive 24) packages/bruno-electron/src/utils/git.js:153 — 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 159, 175, 209, …). 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 · 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 · 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 · AppView (cognitive 24) · ×1
  • AppView (cognitive 24) packages/bruno-app/src/components/AppView/index.js:148 — AppView has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, 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 24 points are its own statements and the rest belongs to 16 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:20 — 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 · 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:1426 — 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 · persist-variables.mergeScriptVarsIntoEnvList (cognitive 23) · ×1
  • persist-variables.mergeScriptVarsIntoEnvList (cognitive 23) packages/bruno-cli/src/utils/persist-variables.js:207 — persist-variables.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 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 · WSDLParser.parseBindings (cognitive 23) · ×1
  • WSDLParser.parseBindings (cognitive 23) packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:549 — 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 556). 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:1164 — 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:2296 — 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:704 — 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 · 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.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 · queryBuilder.walkInputObjectValue (cognitive 22) · ×1
  • queryBuilder.walkInputObjectValue (cognitive 22) packages/bruno-app/src/utils/graphql/queryBuilder.js:553 — 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 · postman-to-bruno.importScriptsFromEvents (cognitive 22) · ×1
  • postman-to-bruno.importScriptsFromEvents (cognitive 22) packages/bruno-converters/src/postman/postman-to-bruno.js:206 — 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 207). 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 · openapi-common.getExampleFromSchema (cognitive 22) · ×1
  • openapi-common.getExampleFromSchema (cognitive 22) packages/bruno-converters/src/openapi/openapi-common.js:362 — openapi-common.getExampleFromSchema has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5 (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 · 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:1081 — 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 1085). 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:1132 — 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 1136). 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:543 — 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 590, 562, 563, …). 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:980 — 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 995, 980, 1047). 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:431 — 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 20). 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 · 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 · 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:56 — 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:396 — 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 404, 419, 423, …). 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:1886 — 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) REDACTED: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.RequestTabs (cognitive 20) · ×1
  • index.RequestTabs (cognitive 20) packages/bruno-app/src/components/RequestTabs/index.js:17 — index.RequestTabs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 4 (5 pts) (nesting depth added 1). Of this number, 10 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 · 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 (cognitive 20) · ×1
  • actions.closeTabs (cognitive 20) packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:3698 — actions.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 3 function literals inside it that branch (lines 3706, 3698, 3723). 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:2137 — 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:2185 — 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 2206, a function literal at line 2217, a function literal at line 2194, …). 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:66 — 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 98, a function literal at line 110, …). 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:53 — 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:35 — 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 37, 50, 69). 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 · maskJsonInterpolations (cognitive 20) · ×1
  • maskJsonInterpolations (cognitive 20) packages/bruno-electron/src/ipc/openapi-sync.js:461 — 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:97 — 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.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 · 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 · import.readWSDLFile (cognitive 19) · ×1
  • import.readWSDLFile (cognitive 19) packages/bruno-cli/src/commands/import.js:157 — import.readWSDLFile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 5). 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 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-to-bruno.resolveRefs (cognitive 19) · ×1
  • openapi-to-bruno.resolveRefs (cognitive 19) packages/bruno-converters/src/openapi/openapi-to-bruno.js:773 — openapi-to-bruno.resolveRefs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 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 · 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:236 — 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:363 — 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:259 — 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:1475 — 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:1533 — 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 1536, 1591, 1597, …). 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:1642 — 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 1645, 1699, 1705, …). 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:364 — 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 · OAuth2AuthorizationCode (cognitive 19) · ×1
  • OAuth2AuthorizationCode (cognitive 19) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:18 — OAuth2AuthorizationCode has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, ternaries 7, if/else 3, error handling 1, loops 1. Of this number, 13 points are the body's own statements and 6 belong to 23 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 · 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 · useSearchBarHandle.useSearchBarHandle (cognitive 18) · ×1
  • useSearchBarHandle.useSearchBarHandle (cognitive 18) packages/bruno-app/src/components/CodeMirrorSearch/useSearchBarHandle.js:10 — useSearchBarHandle.useSearchBarHandle has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, ternaries 3 (6 pts), if/else 5 (nesting depth added 3). None of this is in the body itself: all 18 points belong to 6 function literals inside it that branch (lines 64, 35, 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.
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 · 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:1502 — 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 · 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:237 — 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:416 — 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 419). 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 · mergeTreeItems (cognitive 18) · ×1
  • mergeTreeItems (cognitive 18) packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js:65 — 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 72). 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:2255 — 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:896 — 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 900, 942, 964, …). 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:74 — 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 · 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.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 · snippet-generator.generateSnippet (cognitive 17) · ×1
  • snippet-generator.generateSnippet (cognitive 17) packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/utils/snippet-generator.js:54 — snippet-generator.generateSnippet has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 3, error handling 1 (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.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 · index.interpolateRequest (cognitive 17) · ×1
  • index.interpolateRequest (cognitive 17) REDACTED:176 — index.interpolateRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, error handling 1 (3 pts), match/switch 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 · index.buildPostData (cognitive 17) · ×1
  • index.buildPostData (cognitive 17) REDACTED:528 — index.buildPostData has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 7, if/else 1, match/switch 1 (nesting depth added 4). 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 · 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:1028 — 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 1042, 1060). 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:206 — 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:22 — 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-filestore/src/writeCollectionToDisk/index.ts:55 — 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 · 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:3182 — 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 3194, 3196, 3204). 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 · mergeJsonValues (cognitive 17) · ×1
  • mergeJsonValues (cognitive 17) packages/bruno-electron/src/ipc/openapi-sync.js:535 — mergeJsonValues has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (6 pts), boolean chains 2, loops 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 · hydrateSnapshotForOpenedCollection (cognitive 17) · ×1
  • hydrateSnapshotForOpenedCollection (cognitive 17) packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:486 — hydrateSnapshotForOpenedCollection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 4). None of this is in the body itself: all 17 points belong to 5 function literals inside it that branch (lines 487, 515, 507, …). 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:395 — 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 · remove (cognitive 17) · ×1
  • remove (cognitive 17) packages/bruno-js/src/header-list.js:303 — remove has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts) (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.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 · index.SetAsVariableProvider (cognitive 16) · ×1
  • index.SetAsVariableProvider (cognitive 16) packages/bruno-app/src/providers/SetAsVariable/index.js:25 — index.SetAsVariableProvider has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 6, ternaries 4. 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 73, 37, 44, …). 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:880 — 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:171 — 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:623 — 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:3346 — 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:3812 — 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:2579 — 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 2579, 2608, 2595, …). 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:1026 — 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 · 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:511 — 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:585 — 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 602, 590, 593, …). 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:295 — (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.
D22 · Internal API Consistency · Redundant operation · ×1
  • Redundant operation: `parseRequestAndRedactBody` appears to be a specialized wrapper around `parseRequest` that adds redaction logic. Since redaction is a side-effect/concern that should ideally be handled by a separate utility (like `redact-large-text-blocks`) or applied post-parse, having two distinct entry points for parsing creates confusion about which one to use for standard parsing. — Remove `parseRequestAndRedactBody` from the public index. Expose `redactLargeBruTextBlocks` and `restoreRedactedBlocks` as separate utilities, allowing consumers to compose parsing and redaction explicitly if needed, or handle redaction internally in a single `parseRequest` method with an optional `redact` flag. (signatures: packages.bruno-filestore.src.index.index.parseRequest(content: string, options?: ParseOptions): any | packages.bruno-filestore.src.index.index.parseRequestAndRedactBody(content: string, options?: ParseOptions): any)
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
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:19 — 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.
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:68 — `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 — 822 typed · 2042 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 (+2036 more).
R10 · Code Duplication · Duplication concentrated across 61 sibling directories (1176 clone groups) · ×1
  • Duplication concentrated across 61 sibling directories (1176 clone groups) packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js:1 — 1176 duplicated blocks under packages/bruno-app/src/components/ have copies in at least two of the sibling directories AIAssist, AiChatSidebar, AppPreviewKeepAlive, AppTitleBar, AppView, BodyModeSelector (+55 more sibling(s) not listed) — 103 of them are reported below, and 1073 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 1176 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 1176 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 1176 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 (134 clone groups) · ×1
  • Duplication concentrated across 6 sibling directories (134 clone groups) packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:56 — 134 duplicated blocks under packages/bruno-app/src/ have copies in at least two of the sibling directories components, hooks, pages, providers, ui, utils — 21 of them are reported below, and 113 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 134 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 134 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 134 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 12 sibling directories (114 clone groups) · ×1
  • Duplication concentrated across 12 sibling directories (114 clone groups) packages/bruno-cli/src/utils/proxy-util.js:22 — 114 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 (+6 more sibling(s) not listed) — 102 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 114 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 114 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 114 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 (54 clone groups) · ×1
  • Duplication concentrated across 25 sibling directories (54 clone groups) packages/bruno-app/src/components/RequestPane/GrpcRequestPane/GrpcAuth/index.js:16 — 54 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 27 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 54 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 54 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 54 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 (31 clone groups) · ×1
  • Duplication concentrated across 11 sibling directories (31 clone groups) packages/bruno-app/src/components/Sidebar/CreateCollection/index.js:98 — 31 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 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 31 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 31 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 31 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 (25 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (25 clone groups) packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js:11 — 25 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) — 8 of them are reported below, and 17 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 25 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 25 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 25 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 (19 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (19 clone groups) packages/bruno-app/src/components/Sidebar/Collections/Collection/MoveToWorkspace/ConfirmMoveDrafts.js:117 — 19 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 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 19 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 19 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 19 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 (16 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (16 clone groups) packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js:12 — 16 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 (+4 more sibling(s) not listed) — 3 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 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 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:109 — 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 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:261 — 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 10 sibling directories (15 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (15 clone groups) packages/bruno-app/src/ui/MaskedInput/index.js:38 — 15 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) — 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 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 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:1461 — 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 (621 identical lines × 2 files) · ×1
  • Wholesale file copy (621 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 — 621 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 (180 lines × 2 locations) · ×1
  • Duplicated block (180 lines × 2 locations) packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:261 — packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js:261 · packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js:135 — 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 (172 identical lines × 2 files) · ×1
  • Wholesale file copy (172 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 — 172 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 (127 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (127 matched lines × 2 locations) packages/bruno-app/src/components/MockServer/MockResponse/index.js:90 — packages/bruno-app/src/components/MockServer/MockResponse/index.js:90 · packages/bruno-app/src/components/ResponseExample/index.js:23 — the two spans are one implementation copied and then locally edited — 747 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 (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 (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 (105 matched lines × 2 locations) · ×1
  • 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.
R10 · Code Duplication · Duplicated block with local edits (100 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (100 matched lines × 2 locations) packages/bruno-cli/src/utils/proxy-util.js:22 — packages/bruno-cli/src/utils/proxy-util.js:22 · packages/bruno-electron/src/utils/proxy-util.js:23 — the two spans are one implementation copied and then locally edited — 799 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:104 — 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 117, cognitive 192) · ×1
  • Complex function handler (cyclomatic 117, cognitive 192) packages/bruno-cli/src/commands/run.js:298 — handler has cyclomatic complexity 117 and cognitive complexity 192; 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 82, cognitive 99) · ×1
  • Complex function RequestTabPanel (cyclomatic 82, cognitive 99) packages/bruno-app/src/components/RequestTabPanel/index.js:71 — RequestTabPanel has cyclomatic complexity 82 and cognitive complexity 99; 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 78, cognitive 148) · ×1
  • Complex function prepareRequest (cyclomatic 78, cognitive 148) packages/bruno-cli/src/runner/prepare-request.js:16 — prepareRequest has cyclomatic complexity 78 and cognitive complexity 148; 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 72, cognitive 153) · ×1
  • Complex function (anonymous) (cyclomatic 72, cognitive 153) packages/bruno-electron/src/ipc/openapi-sync.js:1361 — (anonymous) has cyclomatic complexity 72 and cognitive complexity 153; 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) REDACTED: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 transformOpenapiRequestItem (cyclomatic 61, cognitive 76) · ×1
  • Complex function transformOpenapiRequestItem (cyclomatic 61, cognitive 76) packages/bruno-converters/src/openapi/openapi-to-bruno.js:254 — transformOpenapiRequestItem has cyclomatic complexity 61 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 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 119) · ×1
  • Complex function (anonymous) (cyclomatic 59, cognitive 119) REDACTED:1458 — (anonymous) has cyclomatic complexity 59 and cognitive complexity 119; 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 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.
R3 · Large Files · packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js · ×1
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js: 4090 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 4090 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: 3369 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 3369 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: 3212 lines of code REDACTED:1 — REDACTED 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: 2452 lines of code packages/bruno-electron/src/ipc/collection.js:1 — packages/bruno-electron/src/ipc/collection.js has 2452 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: 2404 lines of code packages/bruno-app/src/utils/collections/index.js:1 — packages/bruno-app/src/utils/collections/index.js has 2404 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: 2075 lines of code packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js:1 — packages/bruno-app/src/components/OpenAPISyncTab/StyledWrapper.js has 2075 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: 2068 lines of code REDACTED:1 — REDACTED has 2068 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: 1717 lines of code packages/bruno-electron/src/ipc/openapi-sync.js:1 — packages/bruno-electron/src/ipc/openapi-sync.js has 1717 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: 1649 lines of code packages/bruno-electron/src/utils/git.js:1 — packages/bruno-electron/src/utils/git.js has 1649 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: 1297 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 1297 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/wsdl/wsdl-to-bruno.js · ×1
  • packages/bruno-converters/src/wsdl/wsdl-to-bruno.js: 1144 lines of code packages/bruno-converters/src/wsdl/wsdl-to-bruno.js:1 — packages/bruno-converters/src/wsdl/wsdl-to-bruno.js has 1144 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: 1142 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 1142 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: 1112 lines of code packages/bruno-converters/src/postman/postman-to-bruno.js:1 — packages/bruno-converters/src/postman/postman-to-bruno.js has 1112 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/utils/codemirror/autocomplete.js · ×1
  • packages/bruno-app/src/utils/codemirror/autocomplete.js: 1090 lines of code packages/bruno-app/src/utils/codemirror/autocomplete.js:1 — packages/bruno-app/src/utils/codemirror/autocomplete.js has 1090 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: 1056 lines of code packages/bruno-app/src/components/EnvironmentVariablesTable/index.js:1 — packages/bruno-app/src/components/EnvironmentVariablesTable/index.js has 1056 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: 1037 lines of code packages/bruno-converters/src/openapi/openapi-to-bruno.js:1 — packages/bruno-converters/src/openapi/openapi-to-bruno.js has 1037 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: 974 lines of code packages/bruno-requests/src/grpc/grpc-client.js:1 — packages/bruno-requests/src/grpc/grpc-client.js has 974 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: 935 lines of code REDACTED:1 — REDACTED has 935 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: 928 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 928 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: 928 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 928 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 · packages/bruno-cli/src/commands/run.js · ×1
  • packages/bruno-cli/src/commands/run.js: 916 lines of code packages/bruno-cli/src/commands/run.js:1 — packages/bruno-cli/src/commands/run.js has 916 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: 910 lines of code REDACTED:1 — REDACTED has 910 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 · 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: 884 lines of code packages/bruno-app/src/globalStyles.js:1 — packages/bruno-app/src/globalStyles.js has 884 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: 864 lines of code REDACTED:1 — REDACTED has 864 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-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: 780 lines of code packages/bruno-common/src/runner/reports/html/template.ts:1 — packages/bruno-common/src/runner/reports/html/template.ts has 780 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: 759 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 759 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/CollectionHeader/index.js · ×1
  • packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js: 752 lines of code packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js:1 — packages/bruno-app/src/components/RequestTabs/CollectionHeader/index.js has 752 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/snapshot/index.js · ×1
  • packages/bruno-app/src/utils/snapshot/index.js: 746 lines of code packages/bruno-app/src/utils/snapshot/index.js:1 — packages/bruno-app/src/utils/snapshot/index.js has 746 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 — 192 outdated package(s); JS/npm CVEs scored in D30
R7 · Dead Code · Dead file (~1009 LoC) · ×1
  • Dead file (~1009 LoC) packages/bruno-cli/src/commands/run.js — no import path from any entry point (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (~108 LoC) · ×1
  • Dead file (~108 LoC) packages/bruno-app/src/ui/TextInput/index.js — no import path from any entry point (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (~104 LoC) · ×1
  • Dead file (~104 LoC) packages/bruno-app/src/ui/MaskedInput/index.js — no import path from any entry point (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (~83 LoC) · ×1
  • Dead file (~83 LoC) packages/bruno-app/src/ui/MaskedInput/StyledWrapper.js — no import path from any entry point (103 application, 70 tooling, 1275 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/ui/MaskedInput/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 (~82 LoC) · ×1
  • Dead file (~82 LoC) packages/bruno-app/src/ui/MaskedTextfield/StyledWrapper.js — no import path from any entry point (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (~57 LoC) · ×1
  • Dead file (~57 LoC) packages/bruno-app/src/ui/TextInput/StyledWrapper.js — no import path from any entry point (103 application, 70 tooling, 1275 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/bruno-app/src/ui/TextInput/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 (~48 LoC) · ×1
  • Dead file (~48 LoC) packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleDescription/index.js — no import path from any entry point (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (103 application, 70 tooling, 1275 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 (~30 LoC) · ×1
  • Dead file (~30 LoC) packages/bruno-app/src/components/ResponsePane/WsResponsePane/WSResponseSortOrder/index.js — no import path from any entry point (103 application, 70 tooling, 1275 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 '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 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 · 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.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×1
  • Swallowed exception (caught, then discarded) packages/bruno-app/plugins/remote-images/utils.js:47 — `catch` 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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Minor — 231 finding(s)
D10 · Test Quality · Mock-dominated test · ×56
  • Mock-dominated test: uses an explicitly provided onLinkClick prop even on an editable field packages/bruno-app/src/components/CodeEditor/index.spec.js:333 — This test sets up 3 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: tears down and reconfigures when onLinkClick is removed from an editable field packages/bruno-app/src/components/CodeEditor/index.spec.js:409 — This test sets up 3 test doubles (for example `jest.fn`) against 0 real object(s) of its own, and its only verification is 5 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: replaces all matches via a single replaceRange call with the reconstructed text packages/bruno-app/src/components/CodeMirrorSearch/CodeMirrorSearch.spec.jsx:382 — This test sets up 4 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: creates the mock server when the API spec is valid packages/bruno-app/src/components/MockServer/CreateMockServerModal/index.spec.js:196 — 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 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: keeps the tab open and reports the error when saving fails packages/bruno-app/src/components/MockServer/RequestTabs/MockResponseTab/index.spec.js:93 — 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 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: downloads a body kept in main by passing the response to the save handler packages/bruno-app/src/components/ResponsePane/LargeResponseWarning/index.spec.js:65 — 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 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: surfaces a save failure from main packages/bruno-app/src/components/ResponsePane/LargeResponseWarning/index.spec.js:85 — 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: fetches on Enter without also submitting the form packages/bruno-app/src/components/Sidebar/ApiSpecs/CreateApiSpec/index.spec.js:583 — 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 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: removes extra spaces around the version before saving, then closes packages/bruno-app/src/components/Sidebar/Collections/Collection/ChangeCollectionVersion/index.spec.js:98 — This test sets up 3 test doubles (for example `a double assigned in a shared setup`) 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: deletes every entry, closes the tabs of a deleted folder and its descendants, then clears selection and closes packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/DeleteCollectionItems/index.spec.js:76 — This test sets up 3 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: reports a failed deletion via toast but still deletes the rest and clears the selection packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/DeleteCollectionItems/index.spec.js:99 — This test sets up 4 test doubles (for example `jest.fn`) against 1 real object(s) of its own, and its only verification is 5 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: waits for all removal promises to settle, leaves modal open on partial failure, and reports failed collections packages/bruno-app/src/components/Sidebar/Collections/Collection/RemoveCollections/index.spec.js:61 — This test sets up 6 test doubles (for example `jest.fn`) against 3 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: dispatches newApp with a sanitized filename and shows success toast packages/bruno-app/src/components/Sidebar/NewApp/index.spec.js:95 — This test sets up 4 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 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: shows the thunk error message on failure and does not close the modal packages/bruno-app/src/components/Sidebar/NewApp/index.spec.js:128 — This test sets up 4 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 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: falls back to a generic error message when the thunk rejects without a message packages/bruno-app/src/components/Sidebar/NewApp/index.spec.js:142 — 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: does not dispatch on an empty or blank name packages/bruno-app/src/components/Sidebar/NewApp/index.spec.js:152 — 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 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: dispatches only once when both paths fire (native submit + confirm click) packages/bruno-app/src/components/Sidebar/NewApp/index.spec.js:191 — 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 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: ignores a second confirm click fired in the same tick as the first packages/bruno-app/src/components/Sidebar/NewApp/index.spec.js:205 — 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 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: onDoubleClick calls onWidthChange(null) to reset packages/bruno-app/src/hooks/useDragResize/index.spec.js:148 — 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: ResizeObserver re-clamps the persisted width when the container shrinks packages/bruno-app/src/hooks/useDragResize/index.spec.js:167 — This test sets up 4 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: mouseup calls onResizeEnd with the final width packages/bruno-app/src/hooks/useResizablePanel/index.spec.js:157 — 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: names every spec it could not save in one message and stays open packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.spec.js:121 — This test sets up 4 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 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: saves the specs that can be written even when one of them fails packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.spec.js:141 — 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 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: discards the spec draft when the user closes tabs without saving packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.spec.js:162 — 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 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: keeps the spec draft when another workspace still has the same spec open packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.spec.js:178 — 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 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.
  • + 31 more in this group — see findings.md.
P2 · Observability · Console output used as the logging channel · ×31
  • 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/edgegrid-helper.js:116 — `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.
  • 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.
  • Console output used as the logging channel packages/bruno-requests/src/auth/digestauth-helper.js:76 — `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.
  • Console output used as the logging channel packages/bruno-requests/src/auth/digestauth-helper.js:80 — `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.
  • Console output used as the logging channel packages/bruno-requests/src/auth/digestauth-helper.js:86 — `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.
  • Console output used as the logging channel packages/bruno-requests/src/auth/digestauth-helper.js:104 — `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 104 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:107 — `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 107 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:133 — `packages/bruno-requests/src/auth/digestauth-helper.js` reports through `console.*` at line 133 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 packages/bruno-requests/src/grpc/grpc-client.js:66 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 66 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:245 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 245 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:344 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 344 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:462 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 462 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:677 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 677 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:735 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 735 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:828 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 828 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:944 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 944 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:1020 — `packages/bruno-requests/src/grpc/grpc-client.js` reports through `console.*` at line 1020 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.
  • + 6 more in this group — see findings.md.
M4 · Documentation accuracy · README/code drift · ×26
  • README/code drift docs/contributing/contributing_de.md:28 — docs/contributing/contributing_de.md links to `docs/development_de.md`, but `docs/contributing/docs/development_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/contributing/contributing_fa.md:28 — docs/contributing/contributing_fa.md links to `docs/development_fa.md`, but `docs/contributing/docs/development_fa.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/contributing/contributing_fr.md:24 — docs/contributing/contributing_fr.md names Node.js 20, but the repository declares pinned 18, pinned 22. 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/contributing/contributing_it.md:24 — docs/contributing/contributing_it.md names Node.js 20, but the repository declares pinned 18, pinned 22. 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/contributing/contributing_it.md:28 — docs/contributing/contributing_it.md links to `docs/development_it.md`, but `docs/contributing/docs/development_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/contributing/contributing_kr.md:24 — docs/contributing/contributing_kr.md names Node.js 20, but the repository declares pinned 18, pinned 22. 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/contributing/contributing_ru.md:28 — docs/contributing/contributing_ru.md links to `docs/development_ru.md`, but `docs/contributing/docs/development_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/contributing/contributing_ua.md:28 — docs/contributing/contributing_ua.md links to `docs/development_ua.md`, but `docs/contributing/docs/development_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_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.
  • + 1 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×25
  • Duplicated predicate packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/index.js:26 — `!!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:144 — `!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:471 — `!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:475 — `!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:598 — `!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:922 — `!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.
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:174 — `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:60 — `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:54 — `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:87 — `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:95 — `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:3522 — `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.
D16 · Bus Factor · Off-boarding risk · ×10
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 14 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-app/src/components/MigrateCollectionToYmlModal/index.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 (+6 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #2 — If anonymized user #2 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 #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/components/CodeMirrorSearch/StyledWrapper.js, packages/bruno-app/src/ui/Checkbox/StyledWrapper.js, packages/bruno-app/storybook/preview.jsx (+3 more). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #4 — If anonymized user #4 becomes unavailable, 7 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-filestore/src/formats/bru/utils/redact-large-text-blocks.ts, packages/bruno-electron/src/services/pool/jobs/parse-file.js, packages/bruno-common/src/utils/jsonToDotenv.ts, packages/bruno-sqlite/scripts/verify-migrations.ts. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #5 — If anonymized user #5 becomes unavailable, 7 significant file(s) lose their only recent owner: packages/bruno-app/src/components/OpenAPISyncTab/OverviewSection/index.js, packages/bruno-app/src/components/OpenAPISyncTab/CollectionStatusSection/index.js, packages/bruno-app/src/providers/ReduxStore/slices/openapi-sync.js, packages/bruno-app/src/components/OpenAPISyncTab/SpecDiffModal/index.js, packages/bruno-app/src/components/OpenAPISyncTab/SpecStatusSection/index.js, packages/bruno-app/src/components/OpenAPISyncTab/OpenAPISyncHeader/index.js, packages/bruno-app/src/components/OpenAPISpecTab/index.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #6 — If anonymized user #6 becomes unavailable, 5 significant file(s) lose their only recent owner: packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/DocsTagList/index.jsx, 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, packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/DocsTagList/StyledWrapper.js. Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #7 — If anonymized user #7 becomes unavailable, 4 significant file(s) lose their only recent owner: packages/bruno-js/src/header-list.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, 4 significant file(s) lose their only recent owner: packages/bruno-app/src/components/MultipartFileChipsCell/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 #9 — If anonymized user #9 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/bruno-converters/src/wsdl/wsdl-to-bruno.js, packages/bruno-app/src/components/Sidebar/OpenCollection/index.js, packages/bruno-converters/src/wsdl/schema-graph.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-electron/src/ipc/network/grpc-script-orchestration.js, packages/bruno-app/src/components/Preferences/ClientCertSettings/index.js, packages/bruno-app/src/components/RunnerResults/RunnerFilter/StyledWrapper.js. Pair on, review, or document these before any departure.
D12 · Dependency Hygiene · Outdated (npm) · ×9
  • Outdated (npm): chalk REDACTED:61 — 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:111 — 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): graphql-request REDACTED: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): nanoid REDACTED: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 REDACTED: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-inspector REDACTED: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:85 — 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 · ×9
  • 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.
  • Hand-rolled JSON/XML parsing via regex packages/bruno-app/src/components/MigrateCollectionToYmlModal/index.js:414 — 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:442 — 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:444 — 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/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/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.
D30 · Dependency Vulnerabilities · Low CVE · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
C2 · Access Controls · No named authorization policies · ×1
  • No named authorization policies — 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) — 7 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 (81 single-owned of 833 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 833 of the 1731 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)) (+1 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-common/src/utils/environment-inheritance.ts, packages/bruno-requests/src/utils/ca-cert.ts, packages/bruno-app/src/components/SelectionList/StyledWrapper.js, packages/bruno-app/src/components/SelectionList/index.js, 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 (+3 more).
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found — 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/`.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 4 of 16 project(s) overshoot their size bounds, lowering Project Cohesion to 5.3/10. The most over is `packages/bruno-app` (171598 LoC, 852 module-visible types across 662 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 833 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 833 of the 1731 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 — 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 24744 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.
R8 · Dependency Hygiene · Test-only dependency '@testing-library/user-event' in production deps · ×1
  • Test-only dependency '@testing-library/user-event' in production deps REDACTED:21 — Only test files import it (first: packages/bruno-app/src/components/Accordion/Accordion.spec.jsx:4) — move it to devDependencies.
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:510 — `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/7 async functions that make a cancellable request (fetch, axios, ky, ofetch) 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 (`!`) reduce the strict null checking score · ×1
  • Null assertions (`!`) reduce the strict null checking score — ~0.9 `!` null assertions per 1k TypeScript source lines — 19 assertion(s) across the 22035 source line(s) of the 191 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.
Minor — 116 finding(s)
D12 · Dependency Hygiene · Outdated (npm) · ×114
  • Outdated (npm): @ai-sdk/anthropic — @ai-sdk/anthropic is pinned at 3.0.15; registry.npmjs.org publishes 4.0.88 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.102 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.5 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.1156.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): @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.4; registry.npmjs.org publishes 1.14.6 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.13.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.49.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.1; registry.npmjs.org publishes 14.6.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): @tiptap/extension-code-block-lowlight — @tiptap/extension-code-block-lowlight is pinned at 2.27.2; registry.npmjs.org publishes 3.32.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.32.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.32.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.32.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.32.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.32.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.32.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.32.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.32.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.32.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.32.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/pm — @tiptap/pm is pinned at 2.27.2; registry.npmjs.org publishes 3.32.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.
  • + 89 more in this group — see findings.md.
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.04, instability 0.00, distance 0.96 — 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/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-86d1a619f9dd4b99937057e416c91127/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/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-86d1a619f9dd4b99937057e416c91127/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/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off .136artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update66artifacts/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 1 file(s) — `packages/bruno-common/src/api-docs/index.ts` — 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/** . --skip-db-update1artifacts/raw/trivy-fs.json

Run 01a16f3a-a55b-7b28-b4e0-127e02d43437 · 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