Public report of zellij-org/zellij, published 25 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 reportMeasured 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, 25 October 2026, 22:06 UTC · Survey ID cd_06b896c35bb747a4a1c0096cc803c353
zellij-org/zellij
Measured 25 October 2026, 22:02 UTC, at code version ffb334a
No regression since the last survey
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.
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
Down 4 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: 367,510 lines of product code in 19 projects, tests not counted · Estimated rebuild effort: about 3.3 person-years · Weakest lens: Code Health, 34
Findings by how serious they are
69 critical2131 serious104 minor
12 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
25 October 2026, 22:02 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.
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 ▸
75of 75 dimensions measured by tools.
2235of 2304 findings point to an exact file and line, so you can open each one in the code. The other 69 concern the repository as a whole, such as missing documentation.
75dimensions across 8 lenses, read from 367,510 lines of product code in 19 projects.
zellij-org/zellij falls short of our standard for a preview release, held back most by its Code Health lens, the quality of the code itself. It scores 47 out of 100 and is rated Adequate, and 58 of its 69 critical findings are security problems.
Code Health, at 34, is the weakest lens and counts most in the score. The best first step is adding type checking, worth about 5 points. Recording design decisions comes next, worth about 2 points. Raising Code Health to 67 would lift the score to about 56.
Forty-three pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Ten pipeline steps run downloads nobody checks, and ten sets of files in separate parts keep changing together, which points to hidden dependencies. Pinning each tool to an exact version, checking each download against a checksum and making the hidden dependencies explicit would close these risks. Fixing the weaknesses the scanner points to would fix the three security weaknesses in the code, and setting a waiting period for automatic updates would deal with the automatic dependency update that takes a new release at once. The form field without a label needs a label.
The product code is 367,510 lines, about €480,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 forThe 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.
If Code Health rose from 34 to 67, the lowest score rated Strong, the score would rise from 47 to about 56.
Code composition: what the lines of code are
Product code 70%Tests 30%
New since the last survey: 470 findings
These 470 critical or serious findings weren't in the previous survey, on 11 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: 135 findings
These 135 critical or serious findings were in the previous survey, on 11 October 2026, and are gone from this one. The first 100 are listed here.
€160,000 to €790,000, for 2,632 to 8,350 hours of work, about 3.3 person-years for 1 to 7 engineers
Difficulty of the problem
Standard, 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 47. 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.
Size
Large: 367,510 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
Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
Raises the score by about 5 points · Medium effort · Type Safety
2
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Raises the score by about 2 points · Low effort · ADR Quality
3
Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
Raises the score by about 4 points · Medium effort · Large Files
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.
Where the investment is most exposed · Value at risk
This code would cost about €480,000 to build again, about 3.3 person-years of work. Its weakest lens is Code Health, at 34 (Weak). Code Health is about how easy the code is to read and change safely, and code that is hard to read is slow and risky to change, so every future change costs more than it should. Because the weakest lens counts most in the score, work on Code Health also moves the score most.
Based on: the rebuild estimate · the Code Health grade · how much each lens counts
What to do: Start with the Code Health actions in Top priorities.
If you do one thing first · First action
Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up. Of all the actions in this report, it raises the score most for the work it takes: about 5 points for medium effort. 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 6.2 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 5% to 10% on every change. The history of the code shows how much it changes: about 401,357 lines over the last 90 days, which is about 1,627,726 lines a year. At that pace, the extra work comes to an estimated 185 to 1110.2 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 · Code Duplication · 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.
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.
552 modules, with 2197 dependencies between them. 3 loops run through 223 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 512 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.
xtask.flags uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break xtask.flags, while a change to xtask.flags can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: xtask.flags uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in zellij_utils.assets.prost.api.input_mode uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_utils.assets.prost.api.input_mode uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.assets.prost.api.input_mode, while a change to zellij_utils.assets.prost.api.input_mode can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.assets.prost.api.input_mode uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in zellij_utils.assets.prost.api.plugin_command.highlight_style uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_utils.assets.prost.api.plugin_command.highlight_style uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.assets.prost.api.plugin_command.highlight_style, while a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.assets.prost.api.plugin_command.highlight_style uses a module listed above it, which is the healthy direction.
3 pairs of types, where a type in zellij_utils.assets.prost.api.style uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_utils.assets.prost.api.style uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.assets.prost.api.style, while a change to zellij_utils.assets.prost.api.style can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.assets.prost.api.style uses a module listed above it, which is the healthy direction.
5→17 zellij_utils.assets.prost.api.style uses zellij_server.ui.components.textpart of a loop✕
Connections
1 pair of types, where a type in zellij_utils.assets.prost.api.style uses a type in zellij_server.ui.components.text.
zellij_utils.assets.prost.api.style uses zellij_server.ui.components.text, so a change to zellij_server.ui.components.text can break zellij_utils.assets.prost.api.style, while a change to zellij_utils.assets.prost.api.style can't break zellij_server.ui.components.text.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_utils.pane_size uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.pane_size, while a change to zellij_utils.pane_size can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.pane_size uses a module listed above it, which is the healthy direction.
6→22 zellij_utils.pane_size uses configuration.theme_samplepart of a loop✕
Connections
2 pairs of types, where a type in zellij_utils.pane_size uses a type in configuration.theme_sample.
zellij_utils.pane_size uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_utils.pane_size, while a change to zellij_utils.pane_size can't break configuration.theme_sample.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
6→34 zellij_utils.pane_size uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
6 pairs of types, where a type in zellij_utils.pane_size uses a type in zellij_utils.assets.prost.api.action.
zellij_utils.pane_size uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_utils.pane_size, while a change to zellij_utils.pane_size can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
6 pairs of types, where a type in zellij_utils.assets.prost.api.prompt uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_utils.assets.prost.api.prompt uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.assets.prost.api.prompt, while a change to zellij_utils.assets.prost.api.prompt can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.assets.prost.api.prompt uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.prompt uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_utils.assets.prost.api.prompt, while a change to zellij_utils.assets.prost.api.prompt can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_utils.assets.prost.api.prompt uses a module listed above it, which is the healthy direction.
54 pairs of types, where a type in zellij_utils.assets.prost.api.plugin_command uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.assets.prost.api.plugin_command uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: zellij_utils.assets.prost.api.plugin_command uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in zellij_utils.assets.prost.api.plugin_command uses a type in zellij_utils.assets.prost.api.plugin_command.highlight_style.
zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_utils.assets.prost.api.plugin_command uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_utils.assets.prost.api.plugin_command uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: zellij_utils.assets.prost.api.plugin_command uses a module listed above it, which is the healthy direction.
8→9 zellij_utils.assets.prost.api.plugin_command uses zellij_utils.datapart of a loop✕
Connections
1 pair of types, where a type in zellij_utils.assets.prost.api.plugin_command uses a type in zellij_utils.data.
zellij_utils.assets.prost.api.plugin_command uses zellij_utils.data, so a change to zellij_utils.data can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_utils.data.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
8→11 zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.eventpart of a loop✕
Connections
38 pairs of types, where a type in zellij_utils.assets.prost.api.plugin_command uses a type in zellij_utils.assets.prost.api.event. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_utils.assets.prost.api.event.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
8→19 zellij_utils.assets.prost.api.plugin_command uses configuration.pagepart of a loop✕
Connections
1 pair of types, where a type in zellij_utils.assets.prost.api.plugin_command uses a type in configuration.page.
zellij_utils.assets.prost.api.plugin_command uses configuration.page, so a change to configuration.page can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break configuration.page.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
8→33 zellij_utils.assets.prost.api.plugin_command uses zellij_server.panes.terminal_panepart of a loop✕
Connections
74 pairs of types, where a type in zellij_utils.assets.prost.api.plugin_command uses a type in zellij_server.panes.terminal_pane. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
zellij_utils.assets.prost.api.plugin_command uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
8→34 zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
14 pairs of types, where a type in zellij_utils.assets.prost.api.plugin_command uses a type in zellij_utils.assets.prost.api.action.
zellij_utils.assets.prost.api.plugin_command uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_utils.assets.prost.api.plugin_command, while a change to zellij_utils.assets.prost.api.plugin_command can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_utils.data uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.data uses a module listed above it, which is the healthy direction.
zellij_utils.data uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: zellij_utils.data uses a module listed above it, which is the healthy direction.
zellij_utils.data uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_utils.data uses a module listed above it, which is the healthy direction.
zellij_utils.data uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_utils.data uses a module listed above it, which is the healthy direction.
zellij_utils.data uses zellij_utils.pane_size, so a change to zellij_utils.pane_size can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.pane_size.
Position
Below the diagonal: zellij_utils.data uses a module listed above it, which is the healthy direction.
zellij_utils.data uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: zellij_utils.data uses a module listed above it, which is the healthy direction.
9→11 zellij_utils.data uses zellij_utils.assets.prost.api.eventpart of a loop✕
Connections
37 pairs of types, where a type in zellij_utils.data uses a type in zellij_utils.assets.prost.api.event. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
zellij_utils.data uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.assets.prost.api.event.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
9→12 zellij_utils.data uses zellij_utils.assets.prost_ipc.client_server_contractpart of a loop✕
Connections
9 pairs of types, where a type in zellij_utils.data uses a type in zellij_utils.assets.prost_ipc.client_server_contract.
zellij_utils.data uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
9→33 zellij_utils.data uses zellij_server.panes.terminal_panepart of a loop✕
Connections
11 pairs of types, where a type in zellij_utils.data uses a type in zellij_server.panes.terminal_pane.
zellij_utils.data uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
9→34 zellij_utils.data uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
18 pairs of types, where a type in zellij_utils.data uses a type in zellij_utils.assets.prost.api.action.
zellij_utils.data uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_utils.data, while a change to zellij_utils.data can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
2 pairs of types, where a type in zellij_tile.ui_components.widget_common uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_tile.ui_components.widget_common uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_tile.ui_components.widget_common, while a change to zellij_tile.ui_components.widget_common can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_tile.ui_components.widget_common uses a module listed above it, which is the healthy direction.
zellij_tile.ui_components.widget_common uses zellij_utils.data, so a change to zellij_utils.data can break zellij_tile.ui_components.widget_common, while a change to zellij_tile.ui_components.widget_common can't break zellij_utils.data.
Position
Below the diagonal: zellij_tile.ui_components.widget_common uses a module listed above it, which is the healthy direction.
10→34 zellij_tile.ui_components.widget_common uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
3 pairs of types, where a type in zellij_tile.ui_components.widget_common uses a type in zellij_utils.assets.prost.api.action.
zellij_tile.ui_components.widget_common uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_tile.ui_components.widget_common, while a change to zellij_tile.ui_components.widget_common can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
25 pairs of types, where a type in zellij_utils.assets.prost.api.event uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_utils.assets.prost.api.event uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.assets.prost.api.event, while a change to zellij_utils.assets.prost.api.event can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.assets.prost.api.event uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.event uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_utils.assets.prost.api.event, while a change to zellij_utils.assets.prost.api.event can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_utils.assets.prost.api.event uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.event uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break zellij_utils.assets.prost.api.event, while a change to zellij_utils.assets.prost.api.event can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: zellij_utils.assets.prost.api.event uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.event uses zellij_utils.data, so a change to zellij_utils.data can break zellij_utils.assets.prost.api.event, while a change to zellij_utils.assets.prost.api.event can't break zellij_utils.data.
Position
Below the diagonal: zellij_utils.assets.prost.api.event uses a module listed above it, which is the healthy direction.
11→12 zellij_utils.assets.prost.api.event uses zellij_utils.assets.prost_ipc.client_server_contractpart of a loop✕
Connections
2 pairs of types, where a type in zellij_utils.assets.prost.api.event uses a type in zellij_utils.assets.prost_ipc.client_server_contract.
zellij_utils.assets.prost.api.event uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_utils.assets.prost.api.event, while a change to zellij_utils.assets.prost.api.event can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
11→33 zellij_utils.assets.prost.api.event uses zellij_server.panes.terminal_panepart of a loop✕
Connections
18 pairs of types, where a type in zellij_utils.assets.prost.api.event uses a type in zellij_server.panes.terminal_pane.
zellij_utils.assets.prost.api.event uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_utils.assets.prost.api.event, while a change to zellij_utils.assets.prost.api.event can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
11→34 zellij_utils.assets.prost.api.event uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
8 pairs of types, where a type in zellij_utils.assets.prost.api.event uses a type in zellij_utils.assets.prost.api.action.
zellij_utils.assets.prost.api.event uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_utils.assets.prost.api.event, while a change to zellij_utils.assets.prost.api.event can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
10 pairs of types, where a type in zellij_utils.assets.prost_ipc.client_server_contract uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_utils.assets.prost_ipc.client_server_contract uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.assets.prost_ipc.client_server_contract, while a change to zellij_utils.assets.prost_ipc.client_server_contract can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.assets.prost_ipc.client_server_contract uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost_ipc.client_server_contract uses xtask.flags, so a change to xtask.flags can break zellij_utils.assets.prost_ipc.client_server_contract, while a change to zellij_utils.assets.prost_ipc.client_server_contract can't break xtask.flags.
Position
Below the diagonal: zellij_utils.assets.prost_ipc.client_server_contract uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost_ipc.client_server_contract uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_utils.assets.prost_ipc.client_server_contract, while a change to zellij_utils.assets.prost_ipc.client_server_contract can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_utils.assets.prost_ipc.client_server_contract uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost_ipc.client_server_contract uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break zellij_utils.assets.prost_ipc.client_server_contract, while a change to zellij_utils.assets.prost_ipc.client_server_contract can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: zellij_utils.assets.prost_ipc.client_server_contract uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost_ipc.client_server_contract uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_utils.assets.prost_ipc.client_server_contract, while a change to zellij_utils.assets.prost_ipc.client_server_contract can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_utils.assets.prost_ipc.client_server_contract uses a module listed above it, which is the healthy direction.
12→22 zellij_utils.assets.prost_ipc.client_server_contract uses configuration.theme_samplepart of a loop✕
Connections
8 pairs of types, where a type in zellij_utils.assets.prost_ipc.client_server_contract uses a type in configuration.theme_sample.
zellij_utils.assets.prost_ipc.client_server_contract uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_utils.assets.prost_ipc.client_server_contract, while a change to zellij_utils.assets.prost_ipc.client_server_contract can't break configuration.theme_sample.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→33 zellij_utils.assets.prost_ipc.client_server_contract uses zellij_server.panes.terminal_panepart of a loop✕
Connections
48 pairs of types, where a type in zellij_utils.assets.prost_ipc.client_server_contract uses a type in zellij_server.panes.terminal_pane. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
zellij_utils.assets.prost_ipc.client_server_contract uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_utils.assets.prost_ipc.client_server_contract, while a change to zellij_utils.assets.prost_ipc.client_server_contract can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→34 zellij_utils.assets.prost_ipc.client_server_contract uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
53 pairs of types, where a type in zellij_utils.assets.prost_ipc.client_server_contract uses a type in zellij_utils.assets.prost.api.action. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
zellij_utils.assets.prost_ipc.client_server_contract uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_utils.assets.prost_ipc.client_server_contract, while a change to zellij_utils.assets.prost_ipc.client_server_contract can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_utils.input.command uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.input.command, while a change to zellij_utils.input.command can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.input.command uses a module listed above it, which is the healthy direction.
zellij_utils.input.command uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_utils.input.command, while a change to zellij_utils.input.command can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_utils.input.command uses a module listed above it, which is the healthy direction.
13→34 zellij_utils.input.command uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
1 pair of types, where a type in zellij_utils.input.command uses a type in zellij_utils.assets.prost.api.action.
zellij_utils.input.command uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_utils.input.command, while a change to zellij_utils.input.command can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_utils.input.window uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.input.window, while a change to zellij_utils.input.window can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.input.window uses a module listed above it, which is the healthy direction.
zellij_utils.input.window uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_utils.input.window, while a change to zellij_utils.input.window can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_utils.input.window uses a module listed above it, which is the healthy direction.
zellij_utils.input.window uses zellij_utils.data, so a change to zellij_utils.data can break zellij_utils.input.window, while a change to zellij_utils.input.window can't break zellij_utils.data.
Position
Below the diagonal: zellij_utils.input.window uses a module listed above it, which is the healthy direction.
zellij_utils.input.window uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_utils.input.window, while a change to zellij_utils.input.window can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_utils.input.window uses a module listed above it, which is the healthy direction.
14→16 zellij_utils.input.window uses zellij_utils.input.configpart of a loop✕
Connections
1 pair of types, where a type in zellij_utils.input.window uses a type in zellij_utils.input.config.
zellij_utils.input.window uses zellij_utils.input.config, so a change to zellij_utils.input.config can break zellij_utils.input.window, while a change to zellij_utils.input.window can't break zellij_utils.input.config.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→34 zellij_utils.input.window uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
1 pair of types, where a type in zellij_utils.input.window uses a type in zellij_utils.assets.prost.api.action.
zellij_utils.input.window uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_utils.input.window, while a change to zellij_utils.input.window can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
3 pairs of types, where a type in zellij_server.panes.terminal_character uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_server.panes.terminal_character uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.panes.terminal_character, while a change to zellij_server.panes.terminal_character can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.panes.terminal_character uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_character uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_server.panes.terminal_character, while a change to zellij_server.panes.terminal_character can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_server.panes.terminal_character uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_character uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.panes.terminal_character, while a change to zellij_server.panes.terminal_character can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.panes.terminal_character uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_character uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server.panes.terminal_character, while a change to zellij_server.panes.terminal_character can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server.panes.terminal_character uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_character uses zellij_utils.input.command, so a change to zellij_utils.input.command can break zellij_server.panes.terminal_character, while a change to zellij_server.panes.terminal_character can't break zellij_utils.input.command.
Position
Below the diagonal: zellij_server.panes.terminal_character uses a module listed above it, which is the healthy direction.
zellij_utils.input.config uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.input.config, while a change to zellij_utils.input.config can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.input.config uses a module listed above it, which is the healthy direction.
zellij_utils.input.config uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_utils.input.config, while a change to zellij_utils.input.config can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_utils.input.config uses a module listed above it, which is the healthy direction.
zellij_utils.input.config uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break zellij_utils.input.config, while a change to zellij_utils.input.config can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: zellij_utils.input.config uses a module listed above it, which is the healthy direction.
zellij_utils.input.config uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_utils.input.config, while a change to zellij_utils.input.config can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_utils.input.config uses a module listed above it, which is the healthy direction.
zellij_utils.input.config uses zellij_utils.input.window, so a change to zellij_utils.input.window can break zellij_utils.input.config, while a change to zellij_utils.input.config can't break zellij_utils.input.window.
Position
Below the diagonal: zellij_utils.input.config uses a module listed above it, which is the healthy direction.
16→34 zellij_utils.input.config uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
1 pair of types, where a type in zellij_utils.input.config uses a type in zellij_utils.assets.prost.api.action.
zellij_utils.input.config uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_utils.input.config, while a change to zellij_utils.input.config can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
1 pair of types, where a type in zellij_server.ui.components.text uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_server.ui.components.text uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.ui.components.text, while a change to zellij_server.ui.components.text can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.ui.components.text uses a module listed above it, which is the healthy direction.
zellij_server.ui.components.text uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_server.ui.components.text, while a change to zellij_server.ui.components.text can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_server.ui.components.text uses a module listed above it, which is the healthy direction.
zellij_server.ui.components.text uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_server.ui.components.text, while a change to zellij_server.ui.components.text can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_server.ui.components.text uses a module listed above it, which is the healthy direction.
zellij_server.ui.components.text uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.ui.components.text, while a change to zellij_server.ui.components.text can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.ui.components.text uses a module listed above it, which is the healthy direction.
zellij_server.ui.components.text uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server.ui.components.text, while a change to zellij_server.ui.components.text can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server.ui.components.text uses a module listed above it, which is the healthy direction.
zellij_server.ui.components.text uses zellij_server.panes.terminal_character, so a change to zellij_server.panes.terminal_character can break zellij_server.ui.components.text, while a change to zellij_server.ui.components.text can't break zellij_server.panes.terminal_character.
Position
Below the diagonal: zellij_server.ui.components.text uses a module listed above it, which is the healthy direction.
zellij_window.scene uses xtask.flags, so a change to xtask.flags can break zellij_window.scene, while a change to zellij_window.scene can't break xtask.flags.
Position
Below the diagonal: zellij_window.scene uses a module listed above it, which is the healthy direction.
zellij_window.scene uses zellij_tile.ui_components.widget_common, so a change to zellij_tile.ui_components.widget_common can break zellij_window.scene, while a change to zellij_window.scene can't break zellij_tile.ui_components.widget_common.
Position
Below the diagonal: zellij_window.scene uses a module listed above it, which is the healthy direction.
zellij_window.scene uses zellij_utils.input.window, so a change to zellij_utils.input.window can break zellij_window.scene, while a change to zellij_window.scene can't break zellij_utils.input.window.
Position
Below the diagonal: zellij_window.scene uses a module listed above it, which is the healthy direction.
zellij_window.scene uses zellij_server.panes.terminal_character, so a change to zellij_server.panes.terminal_character can break zellij_window.scene, while a change to zellij_window.scene can't break zellij_server.panes.terminal_character.
Position
Below the diagonal: zellij_window.scene uses a module listed above it, which is the healthy direction.
configuration.page uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break configuration.page, while a change to configuration.page can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: configuration.page uses a module listed above it, which is the healthy direction.
configuration.page uses zellij_utils.data, so a change to zellij_utils.data can break configuration.page, while a change to configuration.page can't break zellij_utils.data.
Position
Below the diagonal: configuration.page uses a module listed above it, which is the healthy direction.
configuration.page uses zellij_tile.ui_components.widget_common, so a change to zellij_tile.ui_components.widget_common can break configuration.page, while a change to configuration.page can't break zellij_tile.ui_components.widget_common.
Position
Below the diagonal: configuration.page uses a module listed above it, which is the healthy direction.
configuration.page uses zellij_server.ui.components.text, so a change to zellij_server.ui.components.text can break configuration.page, while a change to configuration.page can't break zellij_server.ui.components.text.
Position
Below the diagonal: configuration.page uses a module listed above it, which is the healthy direction.
19→21 configuration.page uses configuration.setup_screenpart of a loop✕
Connections
1 pair of types, where a type in configuration.page uses a type in configuration.setup_screen.
configuration.page uses configuration.setup_screen, so a change to configuration.setup_screen can break configuration.page, while a change to configuration.page can't break configuration.setup_screen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→34 configuration.page uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
3 pairs of types, where a type in configuration.page uses a type in zellij_utils.assets.prost.api.action.
configuration.page uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break configuration.page, while a change to configuration.page can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
configuration.list_editor uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break configuration.list_editor, while a change to configuration.list_editor can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: configuration.list_editor uses a module listed above it, which is the healthy direction.
configuration.list_editor uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break configuration.list_editor, while a change to configuration.list_editor can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: configuration.list_editor uses a module listed above it, which is the healthy direction.
configuration.list_editor uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break configuration.list_editor, while a change to configuration.list_editor can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: configuration.list_editor uses a module listed above it, which is the healthy direction.
configuration.list_editor uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break configuration.list_editor, while a change to configuration.list_editor can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: configuration.list_editor uses a module listed above it, which is the healthy direction.
configuration.list_editor uses zellij_utils.data, so a change to zellij_utils.data can break configuration.list_editor, while a change to configuration.list_editor can't break zellij_utils.data.
Position
Below the diagonal: configuration.list_editor uses a module listed above it, which is the healthy direction.
configuration.list_editor uses configuration.page, so a change to configuration.page can break configuration.list_editor, while a change to configuration.list_editor can't break configuration.page.
Position
Below the diagonal: configuration.list_editor uses a module listed above it, which is the healthy direction.
20→21 configuration.list_editor uses configuration.setup_screenpart of a loop✕
Connections
1 pair of types, where a type in configuration.list_editor uses a type in configuration.setup_screen.
configuration.list_editor uses configuration.setup_screen, so a change to configuration.setup_screen can break configuration.list_editor, while a change to configuration.list_editor can't break configuration.setup_screen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
20→34 configuration.list_editor uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
4 pairs of types, where a type in configuration.list_editor uses a type in zellij_utils.assets.prost.api.action.
configuration.list_editor uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break configuration.list_editor, while a change to configuration.list_editor can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
configuration.setup_screen uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break configuration.setup_screen, while a change to configuration.setup_screen can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: configuration.setup_screen uses a module listed above it, which is the healthy direction.
configuration.setup_screen uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break configuration.setup_screen, while a change to configuration.setup_screen can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: configuration.setup_screen uses a module listed above it, which is the healthy direction.
configuration.setup_screen uses zellij_utils.data, so a change to zellij_utils.data can break configuration.setup_screen, while a change to configuration.setup_screen can't break zellij_utils.data.
Position
Below the diagonal: configuration.setup_screen uses a module listed above it, which is the healthy direction.
configuration.setup_screen uses zellij_server.ui.components.text, so a change to zellij_server.ui.components.text can break configuration.setup_screen, while a change to configuration.setup_screen can't break zellij_server.ui.components.text.
Position
Below the diagonal: configuration.setup_screen uses a module listed above it, which is the healthy direction.
configuration.setup_screen uses configuration.list_editor, so a change to configuration.list_editor can break configuration.setup_screen, while a change to configuration.setup_screen can't break configuration.list_editor.
Position
Below the diagonal: configuration.setup_screen uses a module listed above it, which is the healthy direction.
21→34 configuration.setup_screen uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
1 pair of types, where a type in configuration.setup_screen uses a type in zellij_utils.assets.prost.api.action.
configuration.setup_screen uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break configuration.setup_screen, while a change to configuration.setup_screen can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
configuration.theme_sample uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break configuration.theme_sample, while a change to configuration.theme_sample can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: configuration.theme_sample uses a module listed above it, which is the healthy direction.
configuration.theme_sample uses zellij_utils.data, so a change to zellij_utils.data can break configuration.theme_sample, while a change to configuration.theme_sample can't break zellij_utils.data.
Position
Below the diagonal: configuration.theme_sample uses a module listed above it, which is the healthy direction.
configuration.theme_sample uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break configuration.theme_sample, while a change to configuration.theme_sample can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: configuration.theme_sample uses a module listed above it, which is the healthy direction.
configuration.theme_sample uses configuration.setup_screen, so a change to configuration.setup_screen can break configuration.theme_sample, while a change to configuration.theme_sample can't break configuration.setup_screen.
Position
Below the diagonal: configuration.theme_sample uses a module listed above it, which is the healthy direction.
zellij_server.output uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.output, while a change to zellij_server.output can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
zellij_server.output uses zellij_utils.pane_size, so a change to zellij_utils.pane_size can break zellij_server.output, while a change to zellij_server.output can't break zellij_utils.pane_size.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
zellij_server.output uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break zellij_server.output, while a change to zellij_server.output can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
zellij_server.output uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.output, while a change to zellij_server.output can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
zellij_server.output uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_server.output, while a change to zellij_server.output can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
zellij_server.output uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server.output, while a change to zellij_server.output can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
zellij_server.output uses zellij_server.panes.terminal_character, so a change to zellij_server.panes.terminal_character can break zellij_server.output, while a change to zellij_server.output can't break zellij_server.panes.terminal_character.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
zellij_server.output uses configuration.list_editor, so a change to configuration.list_editor can break zellij_server.output, while a change to zellij_server.output can't break configuration.list_editor.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
zellij_server.output uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_server.output, while a change to zellij_server.output can't break configuration.theme_sample.
Position
Below the diagonal: zellij_server.output uses a module listed above it, which is the healthy direction.
23→33 zellij_server.output uses zellij_server.panes.terminal_panepart of a loop✕
Connections
4 pairs of types, where a type in zellij_server.output uses a type in zellij_server.panes.terminal_pane.
zellij_server.output uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_server.output, while a change to zellij_server.output can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
2 pairs of types, where a type in zellij_server.plugins.wasm_bridge uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_server.plugins.wasm_bridge uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.plugins.wasm_bridge uses a module listed above it, which is the healthy direction.
zellij_server.plugins.wasm_bridge uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: zellij_server.plugins.wasm_bridge uses a module listed above it, which is the healthy direction.
zellij_server.plugins.wasm_bridge uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: zellij_server.plugins.wasm_bridge uses a module listed above it, which is the healthy direction.
zellij_server.plugins.wasm_bridge uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.plugins.wasm_bridge uses a module listed above it, which is the healthy direction.
zellij_server.plugins.wasm_bridge uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_server.plugins.wasm_bridge uses a module listed above it, which is the healthy direction.
zellij_server.plugins.wasm_bridge uses zellij_utils.input.command, so a change to zellij_utils.input.command can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_utils.input.command.
Position
Below the diagonal: zellij_server.plugins.wasm_bridge uses a module listed above it, which is the healthy direction.
zellij_server.plugins.wasm_bridge uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break configuration.theme_sample.
Position
Below the diagonal: zellij_server.plugins.wasm_bridge uses a module listed above it, which is the healthy direction.
24→30 zellij_server.plugins.wasm_bridge uses zellij_server.thread_buspart of a loop✕
Connections
2 pairs of types, where a type in zellij_server.plugins.wasm_bridge uses a type in zellij_server.thread_bus.
zellij_server.plugins.wasm_bridge uses zellij_server.thread_bus, so a change to zellij_server.thread_bus can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_server.thread_bus.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
24→33 zellij_server.plugins.wasm_bridge uses zellij_server.panes.terminal_panepart of a loop✕
Connections
1 pair of types, where a type in zellij_server.plugins.wasm_bridge uses a type in zellij_server.panes.terminal_pane.
zellij_server.plugins.wasm_bridge uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
24→34 zellij_server.plugins.wasm_bridge uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
5 pairs of types, where a type in zellij_server.plugins.wasm_bridge uses a type in zellij_utils.assets.prost.api.action.
zellij_server.plugins.wasm_bridge uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_server.plugins.wasm_bridge, while a change to zellij_server.plugins.wasm_bridge can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_window.connection uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_window.connection, while a change to zellij_window.connection can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_window.connection uses a module listed above it, which is the healthy direction.
zellij_window.connection uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_window.connection, while a change to zellij_window.connection can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_window.connection uses a module listed above it, which is the healthy direction.
zellij_window.connection uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_window.connection, while a change to zellij_window.connection can't break configuration.theme_sample.
Position
Below the diagonal: zellij_window.connection uses a module listed above it, which is the healthy direction.
25→27 zellij_window.connection uses zellij_utils.ipcpart of a loop✕
Connections
2 pairs of types, where a type in zellij_window.connection uses a type in zellij_utils.ipc.
zellij_window.connection uses zellij_utils.ipc, so a change to zellij_utils.ipc can break zellij_window.connection, while a change to zellij_window.connection can't break zellij_utils.ipc.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_server.panes.grid uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses zellij_server.panes.terminal_character, so a change to zellij_server.panes.terminal_character can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_server.panes.terminal_character.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses configuration.list_editor, so a change to configuration.list_editor can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break configuration.list_editor.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
zellij_server.panes.grid uses zellij_server.output, so a change to zellij_server.output can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_server.output.
Position
Below the diagonal: zellij_server.panes.grid uses a module listed above it, which is the healthy direction.
26→34 zellij_server.panes.grid uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
3 pairs of types, where a type in zellij_server.panes.grid uses a type in zellij_utils.assets.prost.api.action.
zellij_server.panes.grid uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_server.panes.grid, while a change to zellij_server.panes.grid can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_utils.ipc uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.ipc, while a change to zellij_utils.ipc can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.ipc uses a module listed above it, which is the healthy direction.
zellij_utils.ipc uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_utils.ipc, while a change to zellij_utils.ipc can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_utils.ipc uses a module listed above it, which is the healthy direction.
zellij_utils.ipc uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_utils.ipc, while a change to zellij_utils.ipc can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_utils.ipc uses a module listed above it, which is the healthy direction.
zellij_utils.ipc uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_utils.ipc, while a change to zellij_utils.ipc can't break configuration.theme_sample.
Position
Below the diagonal: zellij_utils.ipc uses a module listed above it, which is the healthy direction.
zellij_utils.ipc uses zellij_window.connection, so a change to zellij_window.connection can break zellij_utils.ipc, while a change to zellij_utils.ipc can't break zellij_window.connection.
Position
Below the diagonal: zellij_utils.ipc uses a module listed above it, which is the healthy direction.
zellij_server uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server, while a change to zellij_server can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
zellij_server uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break zellij_server, while a change to zellij_server can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
zellij_server uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server, while a change to zellij_server can't break zellij_utils.data.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
zellij_server uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_server, while a change to zellij_server can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
zellij_server uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server, while a change to zellij_server can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
zellij_server uses zellij_utils.input.command, so a change to zellij_utils.input.command can break zellij_server, while a change to zellij_server can't break zellij_utils.input.command.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
zellij_server uses zellij_utils.input.config, so a change to zellij_utils.input.config can break zellij_server, while a change to zellij_server can't break zellij_utils.input.config.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
zellij_server uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_server, while a change to zellij_server can't break configuration.theme_sample.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
zellij_server uses zellij_utils.ipc, so a change to zellij_utils.ipc can break zellij_server, while a change to zellij_server can't break zellij_utils.ipc.
Position
Below the diagonal: zellij_server uses a module listed above it, which is the healthy direction.
28→30 zellij_server uses zellij_server.thread_buspart of a loop✕
Connections
2 pairs of types, where a type in zellij_server uses a type in zellij_server.thread_bus.
zellij_server uses zellij_server.thread_bus, so a change to zellij_server.thread_bus can break zellij_server, while a change to zellij_server can't break zellij_server.thread_bus.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
28→34 zellij_server uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
2 pairs of types, where a type in zellij_server uses a type in zellij_utils.assets.prost.api.action.
zellij_server uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_server, while a change to zellij_server can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_server.screen uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in zellij_server.screen uses a type in xtask.flags.
The types involved
zellij_server.screen.Screen → xtask.flags.Run
Direction
zellij_server.screen uses xtask.flags, so a change to xtask.flags can break zellij_server.screen, while a change to zellij_server.screen can't break xtask.flags.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.input.command, so a change to zellij_utils.input.command can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.input.command.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.input.config, so a change to zellij_utils.input.config can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.input.config.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_server.screen, while a change to zellij_server.screen can't break configuration.theme_sample.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_server.plugins.wasm_bridge, so a change to zellij_server.plugins.wasm_bridge can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_server.plugins.wasm_bridge.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_server.panes.grid, so a change to zellij_server.panes.grid can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_server.panes.grid.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
zellij_server.screen uses zellij_utils.ipc, so a change to zellij_utils.ipc can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.ipc.
Position
Below the diagonal: zellij_server.screen uses a module listed above it, which is the healthy direction.
29→30 zellij_server.screen uses zellij_server.thread_buspart of a loop✕
Connections
2 pairs of types, where a type in zellij_server.screen uses a type in zellij_server.thread_bus.
zellij_server.screen uses zellij_server.thread_bus, so a change to zellij_server.thread_bus can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_server.thread_bus.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→32 zellij_server.screen uses zellij_server.tabpart of a loop✕
Connections
5 pairs of types, where a type in zellij_server.screen uses a type in zellij_server.tab.
zellij_server.screen uses zellij_server.tab, so a change to zellij_server.tab can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_server.tab.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→33 zellij_server.screen uses zellij_server.panes.terminal_panepart of a loop✕
Connections
4 pairs of types, where a type in zellij_server.screen uses a type in zellij_server.panes.terminal_pane.
zellij_server.screen uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→34 zellij_server.screen uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
12 pairs of types, where a type in zellij_server.screen uses a type in zellij_utils.assets.prost.api.action.
zellij_server.screen uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_server.screen, while a change to zellij_server.screen can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_server.thread_bus uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.thread_bus, while a change to zellij_server.thread_bus can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.thread_bus uses a module listed above it, which is the healthy direction.
zellij_server.thread_bus uses zellij_server, so a change to zellij_server can break zellij_server.thread_bus, while a change to zellij_server.thread_bus can't break zellij_server.
Position
Below the diagonal: zellij_server.thread_bus uses a module listed above it, which is the healthy direction.
zellij_server.thread_bus uses zellij_server.screen, so a change to zellij_server.screen can break zellij_server.thread_bus, while a change to zellij_server.thread_bus can't break zellij_server.screen.
Position
Below the diagonal: zellij_server.thread_bus uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in zellij_server.panes.tiled_panes uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_server.panes.tiled_panes uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses xtask.flags, so a change to xtask.flags can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break xtask.flags.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_utils.pane_size, so a change to zellij_utils.pane_size can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.pane_size.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_utils.input.command, so a change to zellij_utils.input.command can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.input.command.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break configuration.theme_sample.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_server.output, so a change to zellij_server.output can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_server.output.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
zellij_server.panes.tiled_panes uses zellij_server.thread_bus, so a change to zellij_server.thread_bus can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_server.thread_bus.
Position
Below the diagonal: zellij_server.panes.tiled_panes uses a module listed above it, which is the healthy direction.
31→33 zellij_server.panes.tiled_panes uses zellij_server.panes.terminal_panepart of a loop✕
Connections
1 pair of types, where a type in zellij_server.panes.tiled_panes uses a type in zellij_server.panes.terminal_pane.
zellij_server.panes.tiled_panes uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
31→34 zellij_server.panes.tiled_panes uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
2 pairs of types, where a type in zellij_server.panes.tiled_panes uses a type in zellij_utils.assets.prost.api.action.
zellij_server.panes.tiled_panes uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_server.panes.tiled_panes, while a change to zellij_server.panes.tiled_panes can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
zellij_server.tab uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
2 pairs of types, where a type in zellij_server.tab uses a type in xtask.flags.
The types involved
zellij_server.tab.Pane → xtask.flags.Run
zellij_server.tab.Tab → xtask.flags.Run
Direction
zellij_server.tab uses xtask.flags, so a change to xtask.flags can break zellij_server.tab, while a change to zellij_server.tab can't break xtask.flags.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.pane_size, so a change to zellij_utils.pane_size can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.pane_size.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_utils.input.command, so a change to zellij_utils.input.command can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.input.command.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_server.tab, while a change to zellij_server.tab can't break configuration.theme_sample.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_server.output, so a change to zellij_server.output can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_server.output.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_server.panes.grid, so a change to zellij_server.panes.grid can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_server.panes.grid.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_server.screen, so a change to zellij_server.screen can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_server.screen.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_server.thread_bus, so a change to zellij_server.thread_bus can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_server.thread_bus.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
zellij_server.tab uses zellij_server.panes.tiled_panes, so a change to zellij_server.panes.tiled_panes can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_server.panes.tiled_panes.
Position
Below the diagonal: zellij_server.tab uses a module listed above it, which is the healthy direction.
32→33 zellij_server.tab uses zellij_server.panes.terminal_panepart of a loop✕
Connections
5 pairs of types, where a type in zellij_server.tab uses a type in zellij_server.panes.terminal_pane.
zellij_server.tab uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_server.panes.terminal_pane.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
32→34 zellij_server.tab uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
12 pairs of types, where a type in zellij_server.tab uses a type in zellij_utils.assets.prost.api.action.
zellij_server.tab uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_server.tab, while a change to zellij_server.tab can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
2 pairs of types, where a type in zellij_server.panes.terminal_pane uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_server.panes.terminal_pane uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses xtask.flags, so a change to xtask.flags can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break xtask.flags.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.pane_size, so a change to zellij_utils.pane_size can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.pane_size.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.data, so a change to zellij_utils.data can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.data.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_utils.input.command, so a change to zellij_utils.input.command can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.input.command.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_server.panes.terminal_character, so a change to zellij_server.panes.terminal_character can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_server.panes.terminal_character.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break configuration.theme_sample.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_server.output, so a change to zellij_server.output can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_server.output.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_server.panes.grid, so a change to zellij_server.panes.grid can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_server.panes.grid.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
zellij_server.panes.terminal_pane uses zellij_server.tab, so a change to zellij_server.tab can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_server.tab.
Position
Below the diagonal: zellij_server.panes.terminal_pane uses a module listed above it, which is the healthy direction.
33→34 zellij_server.panes.terminal_pane uses zellij_utils.assets.prost.api.actionpart of a loop✕
Connections
2 pairs of types, where a type in zellij_server.panes.terminal_pane uses a type in zellij_utils.assets.prost.api.action.
zellij_server.panes.terminal_pane uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_server.panes.terminal_pane, while a change to zellij_server.panes.terminal_pane can't break zellij_utils.assets.prost.api.action.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29 pairs of types, where a type in zellij_utils.assets.prost.api.action uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
zellij_utils.assets.prost.api.action uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_utils.assets.prost.api.action, while a change to zellij_utils.assets.prost.api.action can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_utils.assets.prost.api.action uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.action uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break zellij_utils.assets.prost.api.action, while a change to zellij_utils.assets.prost.api.action can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: zellij_utils.assets.prost.api.action uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.action uses zellij_utils.data, so a change to zellij_utils.data can break zellij_utils.assets.prost.api.action, while a change to zellij_utils.assets.prost.api.action can't break zellij_utils.data.
Position
Below the diagonal: zellij_utils.assets.prost.api.action uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.action uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_utils.assets.prost.api.action, while a change to zellij_utils.assets.prost.api.action can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_utils.assets.prost.api.action uses a module listed above it, which is the healthy direction.
zellij_utils.assets.prost.api.action uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_utils.assets.prost.api.action, while a change to zellij_utils.assets.prost.api.action can't break zellij_server.panes.terminal_pane.
Position
Below the diagonal: zellij_utils.assets.prost.api.action uses a module listed above it, which is the healthy direction.
bars.compact_bar uses zellij_utils.assets.prost.api.input_mode, so a change to zellij_utils.assets.prost.api.input_mode can break bars.compact_bar, while a change to bars.compact_bar can't break zellij_utils.assets.prost.api.input_mode.
Position
Below the diagonal: bars.compact_bar uses a module listed above it, which is the healthy direction.
bars.compact_bar uses zellij_utils.data, so a change to zellij_utils.data can break bars.compact_bar, while a change to bars.compact_bar can't break zellij_utils.data.
Position
Below the diagonal: bars.compact_bar uses a module listed above it, which is the healthy direction.
bars.compact_bar uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break bars.compact_bar, while a change to bars.compact_bar can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: bars.compact_bar uses a module listed above it, which is the healthy direction.
bars.compact_bar uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break bars.compact_bar, while a change to bars.compact_bar can't break zellij_utils.assets.prost.api.action.
Position
Below the diagonal: bars.compact_bar uses a module listed above it, which is the healthy direction.
configuration.settings_screen uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break configuration.settings_screen, while a change to configuration.settings_screen can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: configuration.settings_screen uses a module listed above it, which is the healthy direction.
configuration.settings_screen uses zellij_utils.assets.prost.api.plugin_command, so a change to zellij_utils.assets.prost.api.plugin_command can break configuration.settings_screen, while a change to configuration.settings_screen can't break zellij_utils.assets.prost.api.plugin_command.
Position
Below the diagonal: configuration.settings_screen uses a module listed above it, which is the healthy direction.
configuration.settings_screen uses zellij_utils.data, so a change to zellij_utils.data can break configuration.settings_screen, while a change to configuration.settings_screen can't break zellij_utils.data.
Position
Below the diagonal: configuration.settings_screen uses a module listed above it, which is the healthy direction.
configuration.settings_screen uses zellij_tile.ui_components.widget_common, so a change to zellij_tile.ui_components.widget_common can break configuration.settings_screen, while a change to configuration.settings_screen can't break zellij_tile.ui_components.widget_common.
Position
Below the diagonal: configuration.settings_screen uses a module listed above it, which is the healthy direction.
configuration.settings_screen uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break configuration.settings_screen, while a change to configuration.settings_screen can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: configuration.settings_screen uses a module listed above it, which is the healthy direction.
configuration.settings_screen uses zellij_server.ui.components.text, so a change to zellij_server.ui.components.text can break configuration.settings_screen, while a change to configuration.settings_screen can't break zellij_server.ui.components.text.
Position
Below the diagonal: configuration.settings_screen uses a module listed above it, which is the healthy direction.
configuration.settings_screen uses configuration.list_editor, so a change to configuration.list_editor can break configuration.settings_screen, while a change to configuration.settings_screen can't break configuration.list_editor.
Position
Below the diagonal: configuration.settings_screen uses a module listed above it, which is the healthy direction.
configuration.settings_screen uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break configuration.settings_screen, while a change to configuration.settings_screen can't break zellij_utils.assets.prost.api.action.
Position
Below the diagonal: configuration.settings_screen uses a module listed above it, which is the healthy direction.
prompt.ui uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break prompt.ui, while a change to prompt.ui can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
prompt.ui uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break prompt.ui, while a change to prompt.ui can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
prompt.ui uses zellij_utils.assets.prost.api.prompt, so a change to zellij_utils.assets.prost.api.prompt can break prompt.ui, while a change to prompt.ui can't break zellij_utils.assets.prost.api.prompt.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
prompt.ui uses zellij_tile.ui_components.widget_common, so a change to zellij_tile.ui_components.widget_common can break prompt.ui, while a change to prompt.ui can't break zellij_tile.ui_components.widget_common.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
prompt.ui uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break prompt.ui, while a change to prompt.ui can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
prompt.ui uses zellij_server.ui.components.text, so a change to zellij_server.ui.components.text can break prompt.ui, while a change to prompt.ui can't break zellij_server.ui.components.text.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
prompt.ui uses configuration.setup_screen, so a change to configuration.setup_screen can break prompt.ui, while a change to prompt.ui can't break configuration.setup_screen.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
prompt.ui uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break prompt.ui, while a change to prompt.ui can't break zellij_server.panes.terminal_pane.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
prompt.ui uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break prompt.ui, while a change to prompt.ui can't break zellij_utils.assets.prost.api.action.
Position
Below the diagonal: prompt.ui uses a module listed above it, which is the healthy direction.
3 pairs of types, where a type in zellij_window.window.desktop uses a type in zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
zellij_window.window.desktop uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_window.window.desktop uses a module listed above it, which is the healthy direction.
zellij_window.window.desktop uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_window.window.desktop uses a module listed above it, which is the healthy direction.
zellij_window.window.desktop uses zellij_window.scene, so a change to zellij_window.scene can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break zellij_window.scene.
Position
Below the diagonal: zellij_window.window.desktop uses a module listed above it, which is the healthy direction.
zellij_window.window.desktop uses configuration.page, so a change to configuration.page can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break configuration.page.
Position
Below the diagonal: zellij_window.window.desktop uses a module listed above it, which is the healthy direction.
zellij_window.window.desktop uses zellij_window.connection, so a change to zellij_window.connection can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break zellij_window.connection.
Position
Below the diagonal: zellij_window.window.desktop uses a module listed above it, which is the healthy direction.
zellij_window.window.desktop uses zellij_utils.ipc, so a change to zellij_utils.ipc can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break zellij_utils.ipc.
Position
Below the diagonal: zellij_window.window.desktop uses a module listed above it, which is the healthy direction.
zellij_window.window.desktop uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break zellij_server.panes.terminal_pane.
Position
Below the diagonal: zellij_window.window.desktop uses a module listed above it, which is the healthy direction.
zellij_window.window.desktop uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break zellij_utils.assets.prost.api.action.
Position
Below the diagonal: zellij_window.window.desktop uses a module listed above it, which is the healthy direction.
38→40 zellij_window.window.desktop uses zellij_window.windowpart of a loop✕
Connections
2 pairs of types, where a type in zellij_window.window.desktop uses a type in zellij_window.window.
zellij_window.window.desktop uses zellij_window.window, so a change to zellij_window.window can break zellij_window.window.desktop, while a change to zellij_window.window.desktop can't break zellij_window.window.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
bars.status_bar uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break bars.status_bar, while a change to bars.status_bar can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
bars.status_bar uses zellij_utils.assets.prost.api.plugin_command.highlight_style, so a change to zellij_utils.assets.prost.api.plugin_command.highlight_style can break bars.status_bar, while a change to bars.status_bar can't break zellij_utils.assets.prost.api.plugin_command.highlight_style.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
bars.status_bar uses zellij_utils.assets.prost.api.style, so a change to zellij_utils.assets.prost.api.style can break bars.status_bar, while a change to bars.status_bar can't break zellij_utils.assets.prost.api.style.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
bars.status_bar uses zellij_utils.data, so a change to zellij_utils.data can break bars.status_bar, while a change to bars.status_bar can't break zellij_utils.data.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
bars.status_bar uses zellij_utils.assets.prost.api.event, so a change to zellij_utils.assets.prost.api.event can break bars.status_bar, while a change to bars.status_bar can't break zellij_utils.assets.prost.api.event.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
bars.status_bar uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break bars.status_bar, while a change to bars.status_bar can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
bars.status_bar uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break bars.status_bar, while a change to bars.status_bar can't break zellij_server.panes.terminal_pane.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
bars.status_bar uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break bars.status_bar, while a change to bars.status_bar can't break zellij_utils.assets.prost.api.action.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
bars.status_bar uses bars.compact_bar, so a change to bars.compact_bar can break bars.status_bar, while a change to bars.status_bar can't break bars.compact_bar.
Position
Below the diagonal: bars.status_bar uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response, so a change to zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response can break zellij_window.window, while a change to zellij_window.window can't break zellij_utils.assets.prost.api.plugin_command.copy_keybind_preset_response.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_utils.data, so a change to zellij_utils.data can break zellij_window.window, while a change to zellij_window.window can't break zellij_utils.data.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_utils.assets.prost_ipc.client_server_contract, so a change to zellij_utils.assets.prost_ipc.client_server_contract can break zellij_window.window, while a change to zellij_window.window can't break zellij_utils.assets.prost_ipc.client_server_contract.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_utils.input.window, so a change to zellij_utils.input.window can break zellij_window.window, while a change to zellij_window.window can't break zellij_utils.input.window.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_utils.input.config, so a change to zellij_utils.input.config can break zellij_window.window, while a change to zellij_window.window can't break zellij_utils.input.config.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_window.scene, so a change to zellij_window.scene can break zellij_window.window, while a change to zellij_window.window can't break zellij_window.scene.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses configuration.theme_sample, so a change to configuration.theme_sample can break zellij_window.window, while a change to zellij_window.window can't break configuration.theme_sample.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_window.connection, so a change to zellij_window.connection can break zellij_window.window, while a change to zellij_window.window can't break zellij_window.connection.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_utils.ipc, so a change to zellij_utils.ipc can break zellij_window.window, while a change to zellij_window.window can't break zellij_utils.ipc.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_server.panes.terminal_pane, so a change to zellij_server.panes.terminal_pane can break zellij_window.window, while a change to zellij_window.window can't break zellij_server.panes.terminal_pane.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_utils.assets.prost.api.action, so a change to zellij_utils.assets.prost.api.action can break zellij_window.window, while a change to zellij_window.window can't break zellij_utils.assets.prost.api.action.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
zellij_window.window uses zellij_window.window.desktop, so a change to zellij_window.window.desktop can break zellij_window.window, while a change to zellij_window.window can't break zellij_window.window.desktop.
Position
Below the diagonal: zellij_window.window uses a module listed above it, which is the healthy direction.
At a glance — Code Health · 34% · Weak · gated by D1, D2, R1, R3, X3 ·
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 category
Findings
Severity
A05:2025 — Injection
70
High / Critical
A03:2025 — Software Supply Chain Failures
24
Medium
A02:2025 — Security Misconfiguration
1
High / Critical
Roadmap
Begin by introducing type safety to the frontend through a build-time check or incremental conversion of high-traffic modules to prevent runtime errors. Simultaneously, improve maintainability by splitting large, complex files into smaller, focused modules and eliminating all empty catch blocks to ensure exceptions are properly handled. Finally, harden the user experience and compliance by enforcing accessibility standards in CI, including visible focus styles, reduced motion support, and sufficient color contrast.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
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.
Enforce accessibility in the test suite you already have: assert the accessibility invariants over the HTML your app renders — parse the rendered output in an existing test, or drive a real browser from one — and gate that test in CI so a regression blocks the merge.
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 — 69
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 — 2131
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 — 104
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 12
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. 75 of 75 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.9 — 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 — 75 dimensions across the health lenses
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
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, 2235 of 2304 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.)
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.
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.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — 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. Coverage NOT MEASURED: test source is present (.rs) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
D11 Test Reliability — 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. Test source is present (.rs) and this repository declares a Cargo test suite (repository root, 371 test files), but it was not re-run: no test result was produced. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D19 Documentation Quality — 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. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
D19 Documentation Quality — 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. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
D21 Naming Consistency — 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. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
D22 Internal API Consistency — 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. D22's deterministic call-shape rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
D24 Comment Value — 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's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
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. `zellij-client/assets/addon-webgl.js` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
AX6 Interface segregation — 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 is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing 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. User interface: 2 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. Boot: crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:2222: page.goto: net::ERR_INVALID_HTTP_RESPONSE at http://127.0.0.1:2222/
Call log:
- navigating to "http://127.0.0.1:2222/", waiting until "load"
.
GD1 Unfinished & placeholder code — 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, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Rust is most of its product and is not read 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.
IC1 Incompleteness & stubs — 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, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and this repository's Rust is most of its product and is not read 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.
M4 Documentation accuracy — 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. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9). Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
X5 Nullable reference types — 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 MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's Rust is not read 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.
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.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
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.
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.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D20 ADR Quality: ADR quality 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.
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 Dockerfile (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.
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.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
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.
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.
252 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was zellij_server::screen::screen_thread_main at 825. A further 60 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 ScreenContext::from at 315 — they are counted neither in the figure above nor in this dimension's score. 12 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: zellij-server/src/plugins/zellij_exports.rs (zellij_server::plugins::zellij_exports::host_run_plugin_command at 254), zellij-utils/src/input/config_settings.rs (zellij_utils::input::config_settings::copy_setting at 108), default-plugins/bars/src/compact_bar/action_types.rs (ActionType::description at 39), zellij-utils/src/data.rs (BareKey::from_bytes_with_u at 39), zellij-utils/src/ipc/enum_conversions.rs (BareKey::try_from at 34), and 7 more not listed here. 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.
+ 83 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 4 bodies over 240 down to 240 or less in Cyclomatic Complexity — start with zellij_server::screen::screen_thread_main (cyclomatic 825), PluginCommand::try_from (cyclomatic 582), Action::try_from (cyclomatic 298). — 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 4 together lifts Cyclomatic Complexity from 3.8 to about 5.1/10, projected with the scoring formula itself and assuming each lands exactly at 240; a cleaner split scores higher.
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.
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.
+ 125 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 4 bodies over 240 down to 240 or less in Cognitive Complexity — start with zellij_server::screen::screen_thread_main (cognitive 1821), PluginCommand::try_from (cognitive 664), zellij_server::start_server_impl (cognitive 376). — 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 4 together lifts Cognitive Complexity from 2.0 to about 3.5/10, projected with the scoring formula itself and assuming each lands exactly at 240; a cleaner split scores higher.
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.
Do you agree with this assessment?
D3 · God Classes8.1 / 10Strong✓ 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.
+ 2 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 107 FileTooLong finding(s) in God Classes — start with mod.rs (10), lib.rs (3), main.rs (3). — One of this dimension's main actionable groups (107 warning-level).
Resolve the 83 MethodTooLong finding(s) in God Classes — start with mod.rs (14), screen.rs (8), main.rs (6). — One of this dimension's main actionable groups (83 warning-level).
Resolve the 61 FunctionTooLong finding(s) in God Classes — start with lib.rs (6), mod.rs (4), one_line_ui.rs (4). — One of this dimension's main actionable groups (61 warning-level).
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.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
646 duplicated block group(s) detected. A further 38 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 12 of the 684 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
+ 168 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 42 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with mod.rs (10), kdl_layout_parser.rs (3), components.rs (2). — One of this dimension's main actionable groups (42 warning-level).
Resolve the 42 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with mod.rs (9), tiled_pane_grid.rs (3), zellij_exports.rs (3). — One of this dimension's main actionable groups (42 warning-level).
Resolve the 38 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with mod.rs (10), floating_pane_grid.rs (3), bindings_list.rs (2). — One of this dimension's main actionable groups (38 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling9.6 / 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.
19 production modules (Cargo), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 1 module(s) off the main sequence, with abstractness counted on 17 of the 19 (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: zellij-tile
What to do
Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
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.
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.
Low cohesion: Distribution (LCOM4 8) · ×8zellij-utils/src/distribution.rs:75
What to do
Resolve the 8 Low cohesion finding(s) in Cohesion (LCOM4) — start with os_input_output.rs (2), distribution.rs, scene.rs. — One of this dimension's main actionable groups (8 warning-level).
Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
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.
7183 test methods: 6286 unit, 892 integration, 0 BDD, 5 e2e. The Rust suite contributes 7183 `#[test]` function(s) across 371 file(s) declaring at least one; its unit/integration split is Cargo's own — 82 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
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.
52 outdated, 0 yanked direct Cargo dependencies. 113 of 114 direct crates were graded against crates.io (0 not published there, 1 not resolved by a committed REDACTED). Only DIRECT edges are graded: a transitive crate cannot be moved past what its parent's requirement admits, so reporting one would be advice its owner cannot take. A newer release is reported only where this repository's OWN requirement already admits it, so the remedy is `cargo update` and never a manifest edit — which means a release outside the declared range is deliberately NOT charged, because a written-down constraint is a decision rather than a defect. Note that a bare requirement is a CARET, and for a 0.x crate its ceiling is the minor. Whether any crate is UNMAINTAINED is not graded — crates.io publishes no maintenance status, and release age does not stand in for one. Known CVEs in this dependency graph are D30's question, read from REDACTED there.
Outdated: anyhow · ×52
What to do
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.
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.
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.
0 of 625 shipped crate(s) use a banned license. Licences were resolved from crates.io over the crates a consumer compiles — this repository's REDACTED closed over its manifests' `[dependencies]` and `[build-dependencies]`. Crates it asks for ONLY under `[dev-dependencies]` are excluded: they are not compiled by anything that depends on this repository. This repository publishes itself under MIT, which is its own choice and is not judged here.
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.
Top hotspots: zellij-server/src/screen.rs (36×825=29700); zellij-utils/src/plugin_api/plugin_command.rs (13×582=7566); zellij-server/src/route.rs (23×277=6371) Repeated repair below the complexity floor: zellij-server/src/tab/layout_applier.rs (4 of 7 changes were fixes); zellij-utils/src/consts.rs (4 of 7 changes were fixes); zellij-utils/src/session_serialization.rs (3 of 4 changes were fixes)
Resolve the 58 Hotspot finding(s) in Churn × Complexity Hotspots — start with mod.rs (9), main.rs (4), lib.rs (3). — One of this dimension's main actionable groups (58 warning-level).
Resolve the 3 Repeated repair finding(s) in Churn × Complexity Hotspots — start with layout_applier.rs, consts.rs, session_serialization.rs. — One of this dimension's main actionable groups (3 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D16 · Bus Factor9.1 / 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.
35 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is zellij-server/src/panes/tiled_panes/mod.rs. Counted over 407 of the 480 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
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.
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.
177 deducted task-comment markers across 367510 LoC (0.0/KLoC) → score 9.9. 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.
Resolve the 147 TodoComment finding(s) in Explicit Debt — start with mod.rs (36), grid.rs (14), zellij_exports.rs (11). — One of this dimension's main actionable groups (147 warning-level).
Resolve the 18 FixmeComment finding(s) in Explicit Debt — start with mod.rs (4), data.rs (2), terminal_pane.rs (2). — One of this dimension's main actionable groups (18 warning-level).
Resolve the 10 XxxComment finding(s) in Explicit Debt — start with tab_tests.rs (10). — One of this dimension's main actionable groups (10 warning-level).
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.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
1 of 1 documentation facets pass in full. 11 document(s) read across 1 unit(s).
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
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.
3 of 19 build units (Cargo) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion
What to do
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.
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.
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).
70 finding(s): 0 critical, 57 high, 13 medium, 0 low. 42 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 4 file(s) — `zellij-client/assets/addon-webgl.js` (line 1), `zellij-client/assets/xterm.js`, `zellij-server/src/plugins/zellij_exports.rs` (line 6602), `zellij-window/src/app/instance.rs` (line 101) — 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 2 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
+ 3 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 10 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (7), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (10 issue-level).
Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3). — One of this dimension's main actionable groups (3 issue-level).
No action in Static Analysis (SAST) — all 42 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (42 issue-level, 0 of them charged here).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Resolve the 6 Medium advisory (unmaintained) finding(s) in Dependency Vulnerabilities — start with REDACTED (6). — One of this dimension's main actionable groups (6 warning-level).
Resolve the 6 Medium advisory (unsound) finding(s) in Dependency Vulnerabilities — start with REDACTED (6). — One of this dimension's main actionable groups (6 warning-level).
Resolve the 3 Medium vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED (3). — One of this dimension's main actionable groups (3 warning-level).
Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
4 of 407 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is zellij-server/src/pty_writer.rs. Counted over 407 of the 480 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
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.
Resolve the 10 Boundary-crossing change coupling finding(s) in Change Coupling — start with screen.rs (4), main.rs (3), route.rs (2). — One of this dimension's main actionable groups (10 issue-level).
Resolve the 2 Change coupling finding(s) in Change Coupling — start with mod.rs, plugin_pane.rs. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with screen.rs. — 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.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
+ 1 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 3 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
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.
1 end-of-life runtime(s) and 0 end-of-life framework(s), read from 2 platform declaration(s) and 0 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.
Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with rust-toolchain.toml. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d44_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
Frontend & cross-cutting dimensions
R = React/JS · M = Maturity · P = Readiness.
AC2 · Forms & labels5.0 / 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 control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. — zellij-client/assets/modals.js:351
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.
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.
No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="terminal">, so there is no content here to wrap — render the <main> from the component mounted into it. — zellij-client/assets/index.html:2
What to do
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
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.
`.xterm.focus` 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. — zellij-client/assets/xterm.css:53
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.
Do you agree with this assessment?
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 automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge. What was searched, so you can tell an absence from a miss: the 2 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 test suite you already have: assert the accessibility invariants over the HTML your app renders — parse the rendered output in an existing test, or drive a real browser from one — and gate that test in CI so a regression blocks the merge.
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.
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.
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.
Do you agree with this assessment?
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.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
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.
Other · Event Sourcing — Whether the recovery-replay fold is deterministic — state derived purely from each event's own fields, no clock/random/IO on the replay path.
Method: Roslyn syntax scan (event-sourcing gated): Apply/When folds checked for forbidden tokens (DateTime.Now, Guid.NewGuid, Random, IO), stripped of comments/strings. Deterministic, hard fact per fold.
Other · Event Sourcing — Whether domain events stay immutable (private fields, set once) rather than carrying mutable state.
Method: Roslyn scan (event-sourcing gated): persisted events checked for public setters; immutability verified per property/field. Deterministic, hard fact.
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
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 21 of 22 project(s) that lack one — worth up to 1.9 pts.
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.
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.
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.
Do you agree with this assessment?
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.
Do you agree with this assessment?
P2 · Observability6.0 / 10Adequate✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
Only 6/9 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `default-plugins/fixture-plugin-for-tests`, `xtask`, `zellij-tile`.
What to do
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Consider OpenTelemetry tracing/metrics (opentelemetry with tracing-opentelemetry) and a health-check endpoint (a /health route on your axum/actix router) for operability.
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 cargo-audit / cargo-deny (or clippy) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 29403 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: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
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.
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.
Do you agree with this assessment?
R1 · Type Safety0.0 / 10Critical✓ 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.
0 typed · 19 plain JS — the untyped files are zellij-client/assets/app.js, zellij-client/assets/auth.js, zellij-client/assets/connection.js, zellij-client/assets/ime-bypass.js, zellij-client/assets/index.js, zellij-client/assets/input.js (+13 more).
What to do
Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
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.
zellij-client/assets/app.js:2267 · zellij-client/assets/mobile-ui.js:640 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — zellij-client/assets/app.js:2267
zellij-client/assets/app.js:1326 · zellij-client/assets/touch.js:7 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:1326
zellij-client/assets/app.js:1792 · zellij-client/assets/mobile-ui.js:165 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:1792
zellij-client/assets/app.js:658 · zellij-client/assets/soft-keyboard.js:14 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:658
zellij-client/assets/app.js:3116 · zellij-client/assets/websockets.js:85 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:3116
zellij-client/assets/app.js:1182 · zellij-client/assets/mobile-pan.js:1 — the two spans are one implementation copied and then locally edited — 710 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. — zellij-client/assets/app.js:1182
zellij-client/assets/app.js:1054 · zellij-client/assets/pinch.js:7 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:1054
zellij-client/assets/app.js:457 · zellij-client/assets/terminal.js:5 — the two spans are one implementation copied and then locally edited — 686 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. — zellij-client/assets/app.js:457
zellij-client/assets/app.js:1679 · zellij-client/assets/mobile-ui.js:52 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:1679
zellij-client/assets/app.js:3344 · zellij-client/assets/websockets.js:313 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:3344
zellij-client/assets/app.js:215 · zellij-client/assets/auth.js:11 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:215
zellij-client/assets/app.js:955 · zellij-client/assets/key-handler.js:4 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:955
zellij-client/assets/app.js:596 · zellij-client/assets/ime-bypass.js:1 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:596
zellij-client/assets/app.js:1630 · zellij-client/assets/mobile-ui.js:3 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — zellij-client/assets/app.js:1630
zellij-client/assets/app.js:3074 · zellij-client/assets/websockets.js:43 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:3074
zellij-client/assets/app.js:133 · zellij-client/assets/connection.js:59 — the two spans are one implementation copied and then locally edited — 252 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. — zellij-client/assets/app.js:133
zellij-client/assets/app.js:412 · zellij-client/assets/links.js:9 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:412
zellij-client/assets/modals.js:397 · zellij-client/assets/modals.js:460 — the two spans are one implementation copied and then locally edited — 242 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. — zellij-client/assets/modals.js:397
zellij-client/assets/app.js:1016 · zellij-client/assets/mouse.js:1 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:1016
zellij-client/assets/app.js:922 · zellij-client/assets/soft-keyboard.js:278 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:922
zellij-client/assets/app.js:3485 · zellij-client/assets/index.js:12 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:3485
zellij-client/assets/app.js:305 · zellij-client/assets/auth.js:101 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:305
zellij-client/assets/app.js:26 · zellij-client/assets/utils.js:26 — the two spans are one implementation copied and then locally edited — 144 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. — zellij-client/assets/app.js:26
zellij-client/assets/app.js:383 · zellij-client/assets/keyboard.js:10 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:383
zellij-client/assets/app.js:1604 · zellij-client/assets/input.js:14 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:1604
zellij-client/assets/app.js:902 · zellij-client/assets/soft-keyboard.js:258 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:902
zellij-client/assets/app.js:342 · zellij-client/assets/auth.js:138 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:342
zellij-client/assets/app.js:645 · zellij-client/assets/soft-keyboard.js:1 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — zellij-client/assets/app.js:645
zellij-client/assets/modals.js:368 · zellij-client/assets/modals.js:571 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — zellij-client/assets/modals.js:368
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.
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.
(anonymous) has cyclomatic complexity 23 and cognitive complexity 28; 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. (×2) — zellij-client/assets/app.js:956, zellij-client/assets/key-handler.js:5
onmessage has cyclomatic complexity 22 and cognitive complexity 37; 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. (×2) — zellij-client/assets/app.js:3265, zellij-client/assets/websockets.js:234
(anonymous) has cyclomatic complexity 18 and cognitive complexity 20; 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. (×2) — zellij-client/assets/app.js:1477, zellij-client/assets/touch.js:158
getCellPixelDimensions has cyclomatic complexity 15 and cognitive complexity 9; 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) — zellij-client/assets/app.js:3046, zellij-client/assets/websockets.js:15
ctrlByte has cyclomatic complexity 13 and cognitive complexity 12; 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) — zellij-client/assets/app.js:2490, zellij-client/assets/mobile-ui.js:863
(anonymous) has cyclomatic complexity 12 and cognitive complexity 14; 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. (×2) — zellij-client/assets/app.js:3198, zellij-client/assets/websockets.js:167
handleReconnection has cyclomatic complexity 11 and cognitive complexity 22; 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. (×2) — zellij-client/assets/app.js:133, zellij-client/assets/connection.js:59
refresh has cyclomatic complexity 11 and cognitive complexity 13; 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. (×2) — zellij-client/assets/app.js:1112, zellij-client/assets/pinch.js:65
(anonymous) has cyclomatic complexity 11 and cognitive complexity 11; 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. (×2) — zellij-client/assets/app.js:1400, zellij-client/assets/touch.js:81
What to do
Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
Do you agree with this assessment?
R3 · Large Files1.6 / 10Critical✓ 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.
zellij-client/assets/app.js has 3216 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — zellij-client/assets/app.js:1
zellij-client/assets/mobile-ui.js has 1293 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — zellij-client/assets/mobile-ui.js:1
zellij-client/assets/modals.js has 509 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — zellij-client/assets/modals.js:1
zellij-client/assets/websockets.js has 410 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — zellij-client/assets/websockets.js:1
What to do
Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
Do you agree with this assessment?
R7 · Dead Code10.0 / 10Exemplary✓ 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.
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.
Other · Security — Read from this repository's Rust 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. This repository serves HTTP itself (`axum_server::from_tcp_rustls(` (zellij-client/src/web_client/mod.rs:287)), so its Rust source was also read for the server controls: TLS served or HSTS set, security response headers, cookie flags and inbound validation — each credited where its Rust spelling appears in production source, not proven on every route. A Rocket 0.5 application is credited the headers Rocket's default `Shield` sends unless it attaches its own, and its cookie jar's SameSite=Strict default; a session middleware its default cookie flags.
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.
No handler of this repository's Rust server answers 400, 413 or 422 (`StatusCode::BAD_REQUEST`, `HttpResponse::BadRequest()`, `Status::BadRequest`, tonic `Status::invalid_argument`), and nothing declares validation — no `validator`/`garde` derive, no body limit (`DefaultBodyLimit::max`, `RequestBodyLimitLayer`, `JsonConfig::default().limit(…)`, Rocket `Limits`) — nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (−2.0 on this card.) The server: `axum_server::from_tcp_rustls(` (zellij-client/src/web_client/mod.rs:287).
What to do
Validate what the server reads from a request — path, query, headers, body size and shape — and answer what fails with 400 (413 for an oversized body) before a handler acts on it: derive `validator::Validate` (or `garde::Validate`) on the request types and reject with `StatusCode::BAD_REQUEST`, and cap bodies with `DefaultBodyLimit::max`/`RequestBodyLimitLayer` or actix's `JsonConfig::default().limit(…)`.
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.
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.
Do you agree with this assessment?
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.
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.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader2.2 / 10Critical✓ Tool-verified
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.
`len` is read from the bytes being parsed at line 568 (`u32::from_le_bytes`), then used to size a `vec![…; n]` at line 570 — and nowhere in its scope is `len` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with `memory allocation of … bytes failed` — an abort, not a panic, so no `catch_unwind` intercepts it and the whole process dies; a 64-bit length past `isize::MAX` panics with `capacity overflow` instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound `len` against the bytes actually remaining and a maximum the format allows before allocating. — zellij-utils/src/ipc.rs:570
`len` is read from the bytes being parsed at line 118 (`u32::from_le_bytes`), then used to size a `vec![…; n]` at line 120 — and nowhere in its scope is `len` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with `memory allocation of … bytes failed` — an abort, not a panic, so no `catch_unwind` intercepts it and the whole process dies; a 64-bit length past `isize::MAX` panics with `capacity overflow` instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound `len` against the bytes actually remaining and a maximum the format allows before allocating. — zellij-utils/src/web_server_commands.rs:120
`len` is read from the bytes being parsed at line 32 (`u32::from_le_bytes`), then used to size a `vec![…; n]` at line 35 — and nowhere in its scope is `len` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with `memory allocation of … bytes failed` — an abort, not a panic, so no `catch_unwind` intercepts it and the whole process dies; a 64-bit length past `isize::MAX` panics with `capacity overflow` instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound `len` against the bytes actually remaining and a maximum the format allows before allocating. — zellij-client/src/web_client/ipc_listener.rs:35
What to do
Each finding names the read that takes the length from the input and the site that spends it, and states that the value is never compared in between. Confirm from the two, then bound the length against the remaining stream before using it.
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.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged
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.
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.
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.
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 2/6 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.
`checkConnection` 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 })`. (×2) — zellij-client/assets/app.js:103, zellij-client/assets/connection.js:29
`login` 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 })`. (×2) — zellij-client/assets/app.js:241, zellij-client/assets/auth.js:37
What to do
Thread an AbortSignal through async functions that make requests, so the work stops when its caller gives up.
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.
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.
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.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged
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.
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.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `for` loop leaves the `RefCell` it is walking alone — safe Rust rejects a body that changes the collection its loop borrows at compile time, except through interior mutability: a `RefCell` borrowed in the loop's header stays borrowed until the loop ends, so a `borrow_mut()` of it inside the body panics with `already borrowed: BorrowMutError` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
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.
Do you agree with this assessment?
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.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×18) — zellij-client/assets/app.js:586, zellij-client/assets/app.js:762, zellij-client/assets/app.js:1103, …
What to do
Swallowed exception (empty catch)
Do you agree with this assessment?
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.
Do you agree with this assessment?
WCAG coverage — what static analysis assessed
Statically assessed 10 of 55 WCAG 2.2 Level A/AA success criteria (18%; ≈20% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 45 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).
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.
Unscored — 2 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.
X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 10 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 — 55 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.
AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
AX1 Captive dependencies — Not applicable: Rust with no dependency-injection crate has no container to hand one lifetime's instance to another — every value is owned by the code that builds it, and the borrow checker rejects a longer-lived value keeping a borrow of a shorter-lived one.
AX2 Stateful singletons — Not applicable: Rust's compiler refuses unsynchronised shared mutation — a value shared across threads must be Sync — so the race this check looks for cannot be written. 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
AX6 Interface segregation — not assessed — interface segregation is computed over a type surface 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
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXR1 Runtime accessibility — The runtime tier booted this repository's service, but crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:2222: page.goto: net::ERR_INVALID_HTTP_RESPONSE at http://127.0.0.1:2222/
Call log:
- navigating to "http://127.0.0.1:2222/", waiting until "load"
. This repository also has a user interface (2 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates) that the booted service does not serve, and this scan has no strategy that reaches it — so no WCAG success criterion was verified in a rendered page on this run. That is a gap in OUR tooling, not a finding about your application: nothing here says the interface is inaccessible. The static accessibility checks still ran.
AXS1 Runtime exposed surface — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no data at rest for these controls to protect.
C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store 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, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound.
C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over.
D10 Test Quality — ~160291 lines of test source are present (.rs) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D11 Test Reliability — Test reliability not included — the .rs suite was found but not re-run
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.
D21 Naming Consistency — Naming consistency is measured on C# only; JavaScript, Rust not measured.
D22 Internal API Consistency — API consistency is measured on C# only; the exposed Rust surface was not measured.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Aggregate roots were found in only one source directory (zellij-server), which is a layered codebase, not two contexts. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — D24 reads C# and Visual Basic comments only — this repository's production source is .rs, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
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 (.rs), 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.
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
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Domain Modelling — applicable but not scored (3 signals for this style, 3 needed — the count is met but a required primary signal is absent): 1 aggregate root(s) (types guarding their own state behind command methods — this language has no AggregateRoot base to inherit); 51 value object(s); 8 domain event(s); its domain events are published by services or handlers — no domain entity raises one; no aggregate is declared and no domain structure surrounds the state-guarding types: not claimed as DDD
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — 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
P12 CI test-gate honesty — 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'.
P7 Outbound HTTP resilience — no outbound HTTP usage detected — no HTTP client call or construction in the JavaScript/TypeScript, Rust source (service entry point: zellij-client/src/web_client/mod.rs:246 (Router::new()))
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 — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `#[bench]`, criterion's `bench_function`/`bench_with_input`, `#[divan::bench]` or `#[library_benchmark]` in any `.rs` file, or criterion, divan, iai or a `[[bench]]` target in a Cargo.toml, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
PF2 Allocation hygiene — Not applicable: Rust spells out every heap allocation and makes borrowed slices (&[T], &str) its ordinary parameter types, so the allocation-aware style this card rewards elsewhere is the language's baseline rather than a rung to climb.
R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
R4 Test Coverage — the JS/TS workspace (19 production file(s)) has no JavaScript/TypeScript test, but it is 1.88% of this repository's production source and the other 98.12% carries 160,291 line(s) of test code this pass cannot read — an incidental frontend's reachability is not the repository's test posture, so it is not scored as one
R5 Dependency Freshness — no package-lock.json — dependency freshness not measured (would require an npm lockfile); JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
R6 Tooling — no package.json in the repository — test/lint/typecheck wiring is read from package.json scripts (corroborated against CI), so this project's own toolchain isn't measured here
R8 Dependency Hygiene — Not measured — no package.json declares any dependency, so there is nothing to check imports against (imports may resolve through a host runtime rather than node).
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. Rust's compiler refuses the unsynchronised version: a collection shared between a callback's thread and the waiting body must be `Sync`, which a `Vec`, `VecDeque` or `HashMap` is only behind a `Mutex`/`RwLock`, so the race this check looks for cannot be written in safe Rust. 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.
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 — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Rust was read, and it logs through none: the `log` crate's macros take one finished message (as log4net does in C#; its `kv` values are an opt-in its backends mostly drop), `println!`/`eprintln!` are not loggers, or it makes no log call outside its tests and examples at all. Calls through `tracing` (`tracing::info!`, or `info!` imported from it) would be judged.
X5 Nullable reference types — 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
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
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.
Boundary-crossing change coupling: screen.rs ↔ protobuf_conversion.rs zellij-server/src/screen.rs:1— `zellij-server/src/screen.rs` (context zellij-server) and `zellij-utils/src/ipc/protobuf_conversion.rs` (context zellij-utils) sit in DIFFERENT parts of the tree yet change together 95% of the time (21 of the 22 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 21 shared commits counted here, the most recent 3 are `2fce032c` fix(kitty-graphics): zlib-compress images forwarded to the host termi…; `e4b7a399` fix: allow setting an explicit theme hue rather than guessing (#5536); `f42ca3c7` feat: select OSC 133 command output on triple click (#5460) — run `git show` on any of them.
Boundary-crossing change coupling: route.rs ↔ action.rs zellij-server/src/route.rs:1— `zellij-server/src/route.rs` (context zellij-server) and `zellij-utils/src/plugin_api/action.rs` (context zellij-utils) sit in DIFFERENT parts of the tree yet change together 89% of the time (24 of the 27 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 24 shared commits counted here, the most recent 3 are `4bfda976` Allow creating panes/tabs from the CLI without changing focus to them…; `8ce05f0b` Layout string flag (#4956); `91e7297b` Warning and duplication cleanups (#4857) — run `git show` on any of them.
Boundary-crossing change coupling: screen.rs ↔ action.rs zellij-server/src/screen.rs:1— `zellij-server/src/screen.rs` (context zellij-server) and `zellij-utils/src/plugin_api/action.rs` (context zellij-utils) sit in DIFFERENT parts of the tree yet change together 81% of the time (22 of the 27 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 22 shared commits counted here, the most recent 3 are `4bfda976` Allow creating panes/tabs from the CLI without changing focus to them…; `8ce05f0b` Layout string flag (#4956); `91e7297b` Warning and duplication cleanups (#4857) — run `git show` on any of them.
Boundary-crossing change coupling: route.rs ↔ protobuf_conversion.rs zellij-server/src/route.rs:1— `zellij-server/src/route.rs` (context zellij-server) and `zellij-utils/src/ipc/protobuf_conversion.rs` (context zellij-utils) sit in DIFFERENT parts of the tree yet change together 77% of the time (17 of the 22 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 17 shared commits counted here, the most recent 3 are `2fce032c` fix(kitty-graphics): zlib-compress images forwarded to the host termi…; `c3c7e659` fix(sixel): only advertise capability if host terminal supports it (#…; `4bfda976` Allow creating panes/tabs from the CLI without changing focus to them… — run `git show` on any of them.
Boundary-crossing change coupling: screen.rs ↔ plugin_command.rs zellij-server/src/screen.rs:1— `zellij-server/src/screen.rs` (context zellij-server) and `zellij-utils/src/plugin_api/plugin_command.rs` (context zellij-utils) sit in DIFFERENT parts of the tree yet change together 58% of the time (19 of the 33 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 19 shared commits counted here, the most recent 3 are `0591ca54` feat(nested-sessions): report a guest's input mode and key bindings t…; `aa29cbaf` Some idle CPU and disk/io fixes, new CommandChanged plugin Event (#5063); `6e0dd8e5` Atomic show hide floating panes (#4764) — run `git show` on any of them.
Boundary-crossing change coupling: zellij_exports.rs ↔ action.rs zellij-server/src/plugins/zellij_exports.rs:1— `zellij-server/src/plugins/zellij_exports.rs` (context zellij-server) and `zellij-utils/src/plugin_api/action.rs` (context zellij-utils) sit in DIFFERENT parts of the tree yet change together 56% of the time (15 of the 27 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 15 shared commits counted here, the most recent 3 are `4bfda976` Allow creating panes/tabs from the CLI without changing focus to them…; `8ce05f0b` Layout string flag (#4956); `91e7297b` Warning and duplication cleanups (#4857) — run `git show` on any of them.
Boundary-crossing change coupling: main.rs ↔ zellij_exports.rs default-plugins/fixture-plugin-for-tests/src/main.rs:1— `default-plugins/fixture-plugin-for-tests/src/main.rs` (context default-plugins) and `zellij-server/src/plugins/zellij_exports.rs` (context zellij-server) sit in DIFFERENT parts of the tree yet change together 55% of the time (12 of the 22 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 12 shared commits counted here, the most recent 3 are `0591ca54` feat(nested-sessions): report a guest's input mode and key bindings t…; `91e7297b` Warning and duplication cleanups (#4857); `56d31239` fix: translate plugin paths in api (add missing methods) (#4767) — run `git show` on any of them.
Boundary-crossing change coupling: screen.rs ↔ event.rs zellij-server/src/screen.rs:1— `zellij-server/src/screen.rs` (context zellij-server) and `zellij-utils/src/plugin_api/event.rs` (context zellij-utils) sit in DIFFERENT parts of the tree yet change together 52% of the time (11 of the 21 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 11 shared commits counted here, the most recent 3 are `0591ca54` feat(nested-sessions): report a guest's input mode and key bindings t…; `aa29cbaf` Some idle CPU and disk/io fixes, new CommandChanged plugin Event (#5063); `12ee6075` fix: performance regression when switching tabs (#4918) — run `git show` on any of them.
Boundary-crossing change coupling: main.rs ↔ plugin_command.rs default-plugins/fixture-plugin-for-tests/src/main.rs:1— `default-plugins/fixture-plugin-for-tests/src/main.rs` (context default-plugins) and `zellij-utils/src/plugin_api/plugin_command.rs` (context zellij-utils) sit in DIFFERENT parts of the tree yet change together 50% of the time (11 of the 22 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 11 shared commits counted here, the most recent 3 are `0591ca54` feat(nested-sessions): report a guest's input mode and key bindings t…; `2035e052` Highlight priority levels (#4827); `85d29a1e` fix: click links with alt-click (#4809) — run `git show` on any of them.
Boundary-crossing change coupling: main.rs ↔ zellij_exports.rs default-plugins/session-manager/src/main.rs:1— `default-plugins/session-manager/src/main.rs` (context default-plugins) and `zellij-server/src/plugins/zellij_exports.rs` (context zellij-server) sit in DIFFERENT parts of the tree yet change together 50% of the time (10 of the 20 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 10 shared commits counted here, the most recent 3 are `fc6c5942` Welcome screen del fix (#5160); `aa29cbaf` Some idle CPU and disk/io fixes, new CommandChanged plugin Event (#5063); `82178222` Handle errors in route loop (#4655) — run `git show` on any of them.
AC2 · Forms & labels· <input> without a programmatic label · ×1
<input> without a programmatic label zellij-client/assets/modals.js:351— This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
TodoComment zellij-utils/src/cli.rs:1198— // TODO: we might want to not re-use — 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 zellij-utils/src/cli.rs:1935— // TODO: we might want to not re-use — 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 zellij-utils/src/data.rs:4219— // TODO: consider including the actual keybind here? — 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 zellij-utils/src/data.rs:4888— // TODO: rename to ScanHostFolder — 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 zellij-utils/src/downloader.rs:45— // TODO: timeout? — 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 zellij-utils/src/downloader.rs:59— // TODO: timeout? — 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 zellij-utils/src/downloader.rs:149— // TODO: timeout? — 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 zellij-server/src/background_jobs.rs:387— // TODO: timeout? — 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 zellij-utils/src/lib.rs:61— // TODO(hartan): Remove this re-export for the next minor release. — 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 zellij-utils/src/pane_size.rs:141— // TODO: elsewhere? — 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 zellij-utils/src/session_serialization.rs:322— // TODO: line number in layouts? — 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 zellij-utils/src/setup.rs:818— // of our assets, this distinction is made when parsing the layout - TODO: ideally, this — 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 zellij-utils/src/web_authentication_tokens.rs:1— // TODO: GATE THIS WHOLE FILE AND RELEVANT DEPS BEHIND web_server_capability — 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 zellij-utils/src/plugin_api/action.rs:1219— // TODO: at some point we might want to support a payload here — 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 zellij-utils/src/plugin_api/event.rs:3202— // TODO: replace default — 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 zellij-utils/src/plugin_api/plugin_command.rs:4395— // TODO: not accurate? — 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 zellij-utils/src/kdl/mod.rs:2638— // TODO: consider supporting this if there's a need — 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 zellij-utils/src/kdl/mod.rs:2677— // TODO: consider supporting this if there's a need — 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 zellij-utils/src/kdl/mod.rs:2644— // TODO: support this — 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 zellij-utils/src/kdl/mod.rs:2683— // TODO: support this — 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 zellij-server/src/plugins/zellij_exports.rs:2679— // TODO: support this — 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 zellij-server/src/plugins/zellij_exports.rs:2881— // TODO: support this — 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 zellij-server/src/plugins/zellij_exports.rs:2935— // TODO: support this — 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 zellij-server/src/plugins/zellij_exports.rs:2998— // TODO: support this — 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 zellij-server/src/plugins/zellij_exports.rs:3054— // TODO: support this — 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.
FileTooLong: src/screen.rs zellij-server/src/screen.rs— FileTooLong — 12051 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 11551 over it, 24.10× 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: tab/mod.rs zellij-server/src/tab/mod.rs— FileTooLong — 7100 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 90% of them inside a single declaration: Tab (2 blocks, 256-9313). The bar is 500 significant lines; this is 6600 over it, 14.20× 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: kdl/mod.rs zellij-utils/src/kdl/mod.rs— FileTooLong — 6766 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 6266 over it, 13.53× 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: panes/grid.rs zellij-server/src/panes/grid.rs— FileTooLong — 5108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 73% of them inside a single declaration: Grid (6 blocks, 934-6385), declaring 36 free functions. The bar is 500 significant lines; this is 4608 over it, 10.22× 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: plugins/zellij_exports.rs zellij-server/src/plugins/zellij_exports.rs— FileTooLong — 5083 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 283 free functions. The bar is 500 significant lines; this is 4583 over it, 10.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: plugin_api/plugin_command.rs zellij-utils/src/plugin_api/plugin_command.rs— FileTooLong — 4765 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 4265 over it, 9.53× 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/protobuf_conversion.rs zellij-utils/src/ipc/protobuf_conversion.rs— FileTooLong — 4212 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 3712 over it, 8.42× 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/data.rs zellij-utils/src/data.rs— FileTooLong — 4191 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 3691 over it, 8.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: src/lib.rs zellij-server/src/lib.rs— FileTooLong — 3674 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 37 free functions. The bar is 500 significant lines; this is 3174 over it, 7.35× 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/route.rs zellij-server/src/route.rs— FileTooLong — 3222 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 34 free functions. The bar is 500 significant lines; this is 2722 over it, 6.44× 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: plugin_api/event.rs zellij-utils/src/plugin_api/event.rs— FileTooLong — 3068 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 2568 over it, 6.14× 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/main.rs default-plugins/session-manager/src/main.rs— FileTooLong — 2969 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 95% of them inside a single declaration: State (5 blocks, 55-3931). The bar is 500 significant lines; this is 2469 over it, 5.94× 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: plugin_api/action.rs zellij-utils/src/plugin_api/action.rs— FileTooLong — 2917 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 2417 over it, 5.83× 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: plugins/wasm_bridge.rs zellij-server/src/plugins/wasm_bridge.rs— FileTooLong — 2786 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 83% of them inside a single declaration: WasmBridge (2 blocks, 273-3342). The bar is 500 significant lines; this is 2286 over it, 5.57× 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: output/mod.rs zellij-server/src/output/mod.rs— FileTooLong — 2671 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 33 free functions. The bar is 500 significant lines; this is 2171 over it, 5.34× 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: tiled_panes/mod.rs zellij-server/src/panes/tiled_panes/mod.rs— FileTooLong — 2571 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 95% of them inside a single declaration: TiledPanes (2 blocks, 72-3403). The bar is 500 significant lines; this is 2071 over it, 5.14× 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: assets/app.js zellij-client/assets/app.js— FileTooLong — 2418 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 1918 over it, 4.84× 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/shim.rs zellij-tile/src/shim.rs— FileTooLong — 2212 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 274 free functions. The bar is 500 significant lines; this is 1712 over it, 4.42× 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: kdl/kdl_layout_parser.rs zellij-utils/src/kdl/kdl_layout_parser.rs— FileTooLong — 2160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 99% of them inside a single declaration: KdlLayoutParser (2 blocks, 37-2707). The bar is 500 significant lines; this is 1660 over it, 4.32× 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: src/list_editor.rs default-plugins/configuration/src/list_editor.rs— FileTooLong — 2146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1646 over it, 4.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: input/config_file_edit.rs zellij-utils/src/input/config_file_edit.rs— FileTooLong — 2077 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 126 free functions. The bar is 500 significant lines; this is 1577 over it, 4.15× 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/pty.rs zellij-server/src/pty.rs— FileTooLong — 2029 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 61% of them inside a single declaration: Pty (3 blocks, 228-2604). The bar is 500 significant lines; this is 1529 over it, 4.06× 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: input/actions.rs zellij-utils/src/input/actions.rs— FileTooLong — 2015 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 93% of them inside a single declaration: Action (4 blocks, 161-2646). The bar is 500 significant lines; this is 1515 over it, 4.03× 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: src/window.rs zellij-window/src/window.rs— FileTooLong — 1991 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 66% of them inside a single declaration: App (3 blocks, 216-2054), declaring 32 free functions. The bar is 500 significant lines; this is 1491 over it, 3.98× 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: src/inbox.rs default-plugins/session-manager/src/inbox.rs— FileTooLong — 1972 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 65% of them inside a single declaration: Inbox (2 blocks, 317-2334). The bar is 500 significant lines; this is 1472 over it, 3.94× 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.
MethodTooLong: Action.actions_from_cli zellij-utils/src/input/actions.rs:933— MethodTooLong — actions_from_cli runs 1304 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 1204 over it, 13.04× 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: Grid.csi_dispatch zellij-server/src/panes/grid.rs:5613— MethodTooLong — csi_dispatch runs 469 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 369 over it, 4.69× 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: ScreenContext.from zellij-server/src/screen.rs:1228— MethodTooLong — from runs 425 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) 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.
MethodTooLong: KeybindProcessor.get_tooltip_entries default-plugins/bars/src/compact_bar/keybind_utils.rs:279— MethodTooLong — get_tooltip_entries runs 299 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 199 over it, 2.99× 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: TiledPanes.render zellij-server/src/panes/tiled_panes/mod.rs:1212— MethodTooLong — render runs 273 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 173 over it, 2.73× 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: Grid.osc_dispatch zellij-server/src/panes/grid.rs:5206— MethodTooLong — osc_dispatch runs 240 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 140 over it, 2.40× 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: TiledPaneGrid.change_pane_size zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:230— MethodTooLong — change_pane_size runs 213 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 113 over it, 2.13× 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: Screen.render_to_clients zellij-server/src/screen.rs:5640— MethodTooLong — render_to_clients runs 209 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 109 over it, 2.09× 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: ActionPicker.render default-plugins/configuration/src/action_picker.rs:1455— MethodTooLong — render runs 206 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 106 over it, 2.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.
MethodTooLong: Options.merge_from_cli zellij-utils/src/input/options.rs:866— MethodTooLong — merge_from_cli runs 201 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 101 over it, 2.01× 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: FloatingPanes.render zellij-server/src/panes/floating_panes/mod.rs:560— MethodTooLong — render runs 195 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 95 over it, 1.95× 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: Options.merge zellij-utils/src/input/options.rs:664— MethodTooLong — merge runs 194 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 94 over it, 1.94× 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: State.handle_event default-plugins/session-manager/src/main.rs:358— MethodTooLong — handle_event runs 191 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 91 over it, 1.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.
MethodTooLong: SectionedList.render_styled default-plugins/configuration/src/list_editor.rs:2542— MethodTooLong — render_styled runs 188 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 88 over it, 1.88× 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: SessionMetaData.propagate_configuration_changes zellij-server/src/lib.rs:1242— MethodTooLong — propagate_configuration_changes runs 186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 86 over it, 1.86× 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: State.handle_selection default-plugins/session-manager/src/main.rs:1803— MethodTooLong — handle_selection runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 82 over it, 1.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.
MethodTooLong: Grid.resize_and_reflow zellij-server/src/panes/grid.rs:1836— MethodTooLong — resize_and_reflow runs 180 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 80 over it, 1.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.
MethodTooLong: WasmBridge.load_plugin_with_kind zellij-server/src/plugins/wasm_bridge.rs:408— MethodTooLong — load_plugin_with_kind runs 179 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 79 over it, 1.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.
MethodTooLong: MouseHandler.execute_mouse_action zellij-server/src/tab/mouse_handler.rs:978— MethodTooLong — execute_mouse_action runs 176 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 76 over it, 1.76× 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: Pty.apply_run_instruction zellij-server/src/pty.rs:1732— MethodTooLong — apply_run_instruction runs 167 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 67 over it, 1.67× 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: Pty.spawn_terminals_for_layout zellij-server/src/pty.rs:1310— MethodTooLong — spawn_terminals_for_layout runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Setup.check_defaults_config zellij-utils/src/setup.rs:554— MethodTooLong — check_defaults_config runs 157 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 57 over it, 1.57× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ClientToServerMsg.try_from zellij-utils/src/ipc/protobuf_conversion.rs:254— MethodTooLong — try_from runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 55 over it, 1.55× 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: State.render_classic default-plugins/session-manager/src/main.rs:966— MethodTooLong — render_classic runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.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.
MethodTooLong: EntryForm.render_dialog default-plugins/configuration/src/list_editor.rs:586— MethodTooLong — render_dialog runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53× 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: zellij_server::screen::screen_thread_main zellij-server/src/screen.rs:10547— FunctionTooLong — zellij_server::screen::screen_thread_main runs 4346 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 4246 over it, 43.46× 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: zellij_server::route::route_action_with_origin zellij-server/src/route.rs:357— FunctionTooLong — zellij_server::route::route_action_with_origin runs 1903 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 1803 over it, 19.03× 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: configuration::settings::describe default-plugins/configuration/src/settings.rs:210— FunctionTooLong — configuration::settings::describe runs 1309 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 1209 over it, 13.09× 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: zellij_server::start_server_impl zellij-server/src/lib.rs:3773— FunctionTooLong — zellij_server::start_server_impl runs 1290 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 1190 over it, 12.90× 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: zellij_server::plugins::plugin_thread_main zellij-server/src/plugins/mod.rs:371— FunctionTooLong — zellij_server::plugins::plugin_thread_main runs 1030 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 930 over it, 10.30× 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: zellij_server::plugins::zellij_exports::host_run_plugin_command zellij-server/src/plugins/zellij_exports.rs:621— FunctionTooLong — zellij_server::plugins::zellij_exports::host_run_plugin_command runs 697 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 597 over it, 6.97× 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: zellij_server::route::route_thread_main zellij-server/src/route.rs:2833— FunctionTooLong — zellij_server::route::route_thread_main runs 695 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 595 over it, 6.95× 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: zellij_server::background_jobs::background_jobs_main zellij-server/src/background_jobs.rs:332— FunctionTooLong — zellij_server::background_jobs::background_jobs_main runs 603 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 503 over it, 6.03× 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: zellij_server::pty::pty_thread_main zellij-server/src/pty.rs:249— FunctionTooLong — zellij_server::pty::pty_thread_main runs 572 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 472 over it, 5.72× 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: zellij_client::start_client zellij-client/src/lib.rs:1149— FunctionTooLong — zellij_client::start_client runs 440 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 340 over it, 4.40× 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: zellij::main src/lib.rs:49— FunctionTooLong — zellij::main runs 356 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 256 over it, 3.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.
FunctionTooLong: zellij_server::init_session zellij-server/src/lib.rs:5481— FunctionTooLong — zellij_server::init_session runs 278 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 178 over it, 2.78× 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: session_manager::panel::render_session_tree default-plugins/session-manager/src/panel.rs:721— FunctionTooLong — session_manager::panel::render_session_tree runs 257 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 157 over it, 2.57× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: zellij_server::ui::boundaries::combine_symbols zellij-server/src/ui/boundaries.rs:112— FunctionTooLong — zellij_server::ui::boundaries::combine_symbols runs 249 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 149 over it, 2.49× 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: modals.createModalStyles zellij-client/assets/modals.js:1— FunctionTooLong — createModalStyles runs 241 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 141 over it, 2.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: zellij_server::plugins::zellij_exports::required_permission zellij-server/src/plugins/zellij_exports.rs:6654— FunctionTooLong — zellij_server::plugins::zellij_exports::required_permission runs 232 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 132 over it, 2.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: zellij_client::web_client::server_listener::zellij_server_listener zellij-client/src/web_client/server_listener.rs:27— FunctionTooLong — zellij_client::web_client::server_listener::zellij_server_listener runs 206 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 106 over it, 2.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.
FunctionTooLong: zellij::commands::start_client src/commands.rs:709— FunctionTooLong — zellij::commands::start_client runs 203 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 103 over it, 2.03× 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: app.installTouchGestures zellij-client/assets/app.js:1326— FunctionTooLong — installTouchGestures runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03× 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: touch.installTouchGestures zellij-client/assets/touch.js:7— FunctionTooLong — installTouchGestures runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03× 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: zellij_utils::input::config_settings::copy_setting zellij-utils/src/input/config_settings.rs:737— FunctionTooLong — zellij_utils::input::config_settings::copy_setting runs 197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 97 over it, 1.97× 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: bars::status_bar::one_line_ui::secondary_keybinds default-plugins/bars/src/status_bar/one_line_ui.rs:837— FunctionTooLong — bars::status_bar::one_line_ui::secondary_keybinds runs 193 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 93 over it, 1.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: zellij_utils::input::config_settings::option_values zellij-utils/src/input/config_settings.rs:104— FunctionTooLong — zellij_utils::input::config_settings::option_values runs 185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 85 over it, 1.85× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: bars::status_bar::one_line_ui::get_keys_and_hints default-plugins/bars/src/status_bar/one_line_ui.rs:1521— FunctionTooLong — bars::status_bar::one_line_ui::get_keys_and_hints runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.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: zellij_client::cli_client::plan_prompt zellij-client/src/cli_client.rs:500— FunctionTooLong — zellij_client::cli_client::plan_prompt runs 180 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 80 over it, 1.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.
Hotspot: zellij-server/src/screen.rs zellij-server/src/screen.rs:10547— zellij-server/src/screen.rs changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 825 in zellij_server::screen::screen_thread_main at line 10547. 17 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/screen.rs`: 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: zellij-utils/src/plugin_api/plugin_command.rs zellij-utils/src/plugin_api/plugin_command.rs:733— zellij-utils/src/plugin_api/plugin_command.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 582 in PluginCommand::try_from at line 733. 2 of those changes were fix/bug commits, and the other 11 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/plugin_api/plugin_command.rs`: 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: zellij-server/src/route.rs zellij-server/src/route.rs:357— zellij-server/src/route.rs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 277 in zellij_server::route::route_action_with_origin at line 357. 8 of those changes were fix/bug commits, and the other 15 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/route.rs`: 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: zellij-utils/src/kdl/mod.rs zellij-utils/src/kdl/mod.rs:691— zellij-utils/src/kdl/mod.rs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 238 in Action::to_kdl at line 691. 3 of those changes were fix/bug commits, and the other 20 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/kdl/mod.rs`: 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: zellij-server/src/plugins/zellij_exports.rs zellij-server/src/plugins/zellij_exports.rs:621— zellij-server/src/plugins/zellij_exports.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 254 in zellij_server::plugins::zellij_exports::host_run_plugin_command at line 621. 5 of those changes were fix/bug commits, and the other 13 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/plugins/zellij_exports.rs`: 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: zellij-utils/src/ipc/protobuf_conversion.rs zellij-utils/src/ipc/protobuf_conversion.rs:2656— zellij-utils/src/ipc/protobuf_conversion.rs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 193 in Action::try_from at line 2656. 5 of those changes were fix/bug commits, and the other 18 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/ipc/protobuf_conversion.rs`: 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: zellij-server/src/panes/grid.rs zellij-server/src/panes/grid.rs:5613— zellij-server/src/panes/grid.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 171 in Grid::csi_dispatch at line 5613. 8 of those changes were fix/bug commits, 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/panes/grid.rs`: 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: zellij-server/src/lib.rs zellij-server/src/lib.rs:3773— zellij-server/src/lib.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 167 in zellij_server::start_server_impl at line 3773. 6 of those changes were fix/bug commits, 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/lib.rs`: 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: zellij-utils/src/plugin_api/action.rs zellij-utils/src/plugin_api/action.rs:109— zellij-utils/src/plugin_api/action.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 298 in Action::try_from at line 109. 2 of those changes were fix/bug commits, and the other 10 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/plugin_api/action.rs`: 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: zellij-utils/src/input/actions.rs zellij-utils/src/input/actions.rs:933— zellij-utils/src/input/actions.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 218 in Action::actions_from_cli at line 933. 2 of those changes were fix/bug commits, and the other 12 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/input/actions.rs`: 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: zellij-utils/src/plugin_api/event.rs zellij-utils/src/plugin_api/event.rs:248— zellij-utils/src/plugin_api/event.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 160 in Event::try_from at line 248. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/plugin_api/event.rs`: 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: default-plugins/configuration/src/settings.rs default-plugins/configuration/src/settings.rs:210— default-plugins/configuration/src/settings.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 173 in configuration::settings::describe at line 210. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- default-plugins/configuration/src/settings.rs`: 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: zellij-client/src/lib.rs zellij-client/src/lib.rs:1149— zellij-client/src/lib.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in zellij_client::start_client at line 1149. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-client/src/lib.rs`: 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: zellij-server/src/panes/tiled_panes/mod.rs zellij-server/src/panes/tiled_panes/mod.rs:1212— zellij-server/src/panes/tiled_panes/mod.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in TiledPanes::render at line 1212. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/panes/tiled_panes/mod.rs`: 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: default-plugins/fixture-plugin-for-tests/src/main.rs default-plugins/fixture-plugin-for-tests/src/main.rs:420— default-plugins/fixture-plugin-for-tests/src/main.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 167 in State::update at line 420. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- default-plugins/fixture-plugin-for-tests/src/main.rs`: 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: zellij-server/src/plugins/mod.rs zellij-server/src/plugins/mod.rs:371— zellij-server/src/plugins/mod.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 120 in zellij_server::plugins::plugin_thread_main at line 371. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/plugins/mod.rs`: 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: zellij-server/src/background_jobs.rs zellij-server/src/background_jobs.rs:332— zellij-server/src/background_jobs.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in zellij_server::background_jobs::background_jobs_main at line 332. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/background_jobs.rs`: 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: zellij-server/src/tab/mod.rs zellij-server/src/tab/mod.rs:5059— zellij-server/src/tab/mod.rs changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in Tab::write_to_pane_id at line 5059. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/tab/mod.rs`: 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: zellij-utils/src/input/config_settings.rs zellij-utils/src/input/config_settings.rs:737— zellij-utils/src/input/config_settings.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 108 in zellij_utils::input::config_settings::copy_setting at line 737. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/input/config_settings.rs`: 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: zellij-server/src/panes/floating_panes/mod.rs zellij-server/src/panes/floating_panes/mod.rs:560— zellij-server/src/panes/floating_panes/mod.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in FloatingPanes::render at line 560. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/panes/floating_panes/mod.rs`: 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: default-plugins/session-manager/src/main.rs default-plugins/session-manager/src/main.rs:358— default-plugins/session-manager/src/main.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in State::handle_event at line 358. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- default-plugins/session-manager/src/main.rs`: 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: zellij-server/src/pty.rs zellij-server/src/pty.rs:249— zellij-server/src/pty.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in zellij_server::pty::pty_thread_main at line 249. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/pty.rs`: 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: zellij-server/src/tab/mouse_handler.rs zellij-server/src/tab/mouse_handler.rs:1915— zellij-server/src/tab/mouse_handler.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in MouseHandler::behaviour_action at line 1915. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/tab/mouse_handler.rs`: 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: zellij-client/src/web_client/server_listener.rs zellij-client/src/web_client/server_listener.rs:27— zellij-client/src/web_client/server_listener.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in zellij_client::web_client::server_listener::zellij_server_listener at line 27. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-client/src/web_client/server_listener.rs`: 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: zellij-server/src/panes/terminal_pane.rs zellij-server/src/panes/terminal_pane.rs:555— zellij-server/src/panes/terminal_pane.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TerminalPane::render_frame at line 555. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/panes/terminal_pane.rs`: 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.
ClassTooLong: Tab zellij-server/src/tab/mod.rs:256— ClassTooLong — 6365 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 436 methods, 2 blocks, lines 256-9313. The bar is 400 significant lines; this is 5965 over it, 15.91× 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: Screen zellij-server/src/screen.rs:1990— ClassTooLong — 6097 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 418 methods, 2 blocks, lines 1990-10474. The bar is 400 significant lines; this is 5697 over it, 15.24× 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: Grid zellij-server/src/panes/grid.rs:934— ClassTooLong — 3714 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 201 methods, 6 blocks, lines 934-6385. The bar is 400 significant lines; this is 3314 over it, 9.29× 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: State default-plugins/session-manager/src/main.rs:55— ClassTooLong — 2816 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 124 methods, 5 blocks, lines 55-3931. The bar is 400 significant lines; this is 2416 over it, 7.04× 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: TiledPanes zellij-server/src/panes/tiled_panes/mod.rs:72— ClassTooLong — 2449 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 159 methods, 2 blocks, lines 72-3403. The bar is 400 significant lines; this is 2049 over it, 6.12× 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: WasmBridge zellij-server/src/plugins/wasm_bridge.rs:273— ClassTooLong — 2312 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 90 methods, 2 blocks, lines 273-3342. The bar is 400 significant lines; this is 1912 over it, 5.78× 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: KdlLayoutParser zellij-utils/src/kdl/kdl_layout_parser.rs:37— ClassTooLong — 2134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 71 methods, 2 blocks, lines 37-2707. The bar is 400 significant lines; this is 1734 over it, 5.34× 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: Action zellij-utils/src/input/actions.rs:161— ClassTooLong — 1873 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 7 methods, 4 blocks, lines 161-2646. The bar is 400 significant lines; this is 1473 over it, 4.68× 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: SettingsScreen default-plugins/configuration/src/settings_screen.rs:97— ClassTooLong — 1802 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 111 methods, 3 blocks, lines 97-2461. The bar is 400 significant lines; this is 1402 over it, 4.51× 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: TiledPaneGrid zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:29— ClassTooLong — 1712 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 73 methods, 2 blocks, lines 29-2300. The bar is 400 significant lines; this is 1312 over it, 4.28× 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: MouseHandler zellij-server/src/tab/mouse_handler.rs:470— ClassTooLong — 1593 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 50 methods. The bar is 400 significant lines; this is 1193 over it, 3.98× 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: FloatingPanes zellij-server/src/panes/floating_panes/mod.rs:40— ClassTooLong — 1514 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 118 methods, 2 blocks, lines 40-2008. The bar is 400 significant lines; this is 1114 over it, 3.79× 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: App zellij-window/src/window.rs:216— ClassTooLong — 1305 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 120 methods, 3 blocks, lines 216-2054. The bar is 400 significant lines; this is 905 over it, 3.26× 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: Inbox default-plugins/session-manager/src/inbox.rs:317— ClassTooLong — 1288 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 92 methods, 2 blocks, lines 317-2334. The bar is 400 significant lines; this is 888 over it, 3.22× 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: TerminalPane zellij-server/src/panes/terminal_pane.rs:132— ClassTooLong — 1241 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 20 methods, 3 blocks, lines 132-1874. The bar is 400 significant lines; this is 841 over it, 3.10× 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: Pty zellij-server/src/pty.rs:228— ClassTooLong — 1228 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 27 methods, 3 blocks, lines 228-2604. The bar is 400 significant lines; this is 828 over it, 3.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.
ClassTooLong: PaneFrame zellij-server/src/ui/pane_boundaries_frame.rs:116— ClassTooLong — 1124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 62 methods, 2 blocks, lines 116-1519. The bar is 400 significant lines; this is 724 over it, 2.81× 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: ThemesScreen default-plugins/configuration/src/themes_screen.rs:275— ClassTooLong — 1098 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 44 methods, 5 blocks, lines 275-1678. The bar is 400 significant lines; this is 698 over it, 2.75× 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: StackedPanes zellij-server/src/panes/tiled_panes/stacked_panes.rs:14— ClassTooLong — 1039 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 49 methods, 2 blocks, lines 14-1246. The bar is 400 significant lines; this is 639 over it, 2.60× 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: LayoutApplier zellij-server/src/tab/layout_applier.rs:27— ClassTooLong — 960 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 30 methods, 2 blocks, lines 27-1290. The bar is 400 significant lines; this is 560 over it, 2.40× 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: KeysScreen default-plugins/configuration/src/keys_screen.rs:40— ClassTooLong — 925 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 55 methods, 2 blocks, lines 40-1272. The bar is 400 significant lines; this is 525 over it, 2.31× 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: KittyGrid zellij-server/src/panes/kitty_graphics/grid_state.rs:77— ClassTooLong — 799 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 33 methods, 2 blocks, lines 77-1095. The bar is 400 significant lines; this is 399 over it, 2.00× 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: BindingsList default-plugins/configuration/src/bindings_list.rs:230— ClassTooLong — 798 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 46 methods, 2 blocks, lines 230-1258. The bar is 400 significant lines; this is 398 over it, 2.00× 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: SectionedList default-plugins/configuration/src/list_editor.rs:1728— ClassTooLong — 798 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 42 methods, 2 blocks, lines 1728-2864. The bar is 400 significant lines; this is 398 over it, 2.00× 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: SetupScreen default-plugins/configuration/src/setup_screen.rs:138— ClassTooLong — 786 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 45 methods, 2 blocks, lines 138-1195. The bar is 400 significant lines; this is 386 over it, 1.97× 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.
zellij_server::screen::screen_thread_main (cognitive 1821) zellij-server/src/screen.rs:10547— zellij_server::screen::screen_thread_main has cognitive complexity 1821 (threshold 15). Drivers by points: if/else 421 (1364 pts), loops 98 (321 pts), match/switch 35 (122 pts), boolean chains 14 (nesting depth added 1253). 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.
zellij_server::start_server_impl (cognitive 376) zellij-server/src/lib.rs:3773— zellij_server::start_server_impl has cognitive complexity 376 (threshold 15). Drivers by points: if/else 81 (253 pts), loops 21 (74 pts), match/switch 14 (40 pts), boolean chains 9 (nesting depth added 251). 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.
zellij_server::background_jobs::background_jobs_main (cognitive 210) zellij-server/src/background_jobs.rs:332— zellij_server::background_jobs::background_jobs_main has cognitive complexity 210 (threshold 15). Drivers by points: if/else 40 (119 pts), match/switch 13 (46 pts), loops 15 (43 pts), boolean chains 2 (nesting depth added 140). Of this number, 197 points are the body's own statements and 13 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.
zellij_server::plugins::plugin_thread_main (cognitive 192) zellij-server/src/plugins/mod.rs:371— zellij_server::plugins::plugin_thread_main has cognitive complexity 192 (threshold 15). Drivers by points: if/else 39 (100 pts), match/switch 18 (68 pts), loops 8 (23 pts), boolean chains 1 (nesting depth added 126). 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.
zellij_server::route::route_thread_main (cognitive 180) zellij-server/src/route.rs:2833— zellij_server::route::route_thread_main has cognitive complexity 180 (threshold 15). Drivers by points: if/else 33 (122 pts), match/switch 9 (36 pts), loops 4 (13 pts), boolean chains 9 (nesting depth added 125). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_server::route::route_action_with_origin (cognitive 175) zellij-server/src/route.rs:357— zellij_server::route::route_action_with_origin has cognitive complexity 175 (threshold 15). Drivers by points: if/else 73 (131 pts), match/switch 15 (27 pts), boolean chains 17 (nesting depth added 70). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_server::pty::pty_thread_main (cognitive 138) zellij-server/src/pty.rs:249— zellij_server::pty::pty_thread_main has cognitive complexity 138 (threshold 15). Drivers by points: if/else 25 (77 pts), match/switch 18 (57 pts), loops 2 (4 pts) (nesting depth added 93). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_server::output::flatten_chunks (cognitive 98) zellij-server/src/output/mod.rs:580— zellij_server::output::flatten_chunks has cognitive complexity 98 (threshold 15). Drivers by points: if/else 25 (72 pts), loops 6 (17 pts), match/switch 1 (5 pts), boolean chains 4 (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_server::output::serialize_chunks (cognitive 78) zellij-server/src/output/mod.rs:831— zellij_server::output::serialize_chunks has cognitive complexity 78 (threshold 15). Drivers by points: if/else 24 (68 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 49). 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.
zellij_server::output::serialize_kitty_frame (cognitive 64) zellij-server/src/output/mod.rs:1207— zellij_server::output::serialize_kitty_frame has cognitive complexity 64 (threshold 15). Drivers by points: match/switch 8 (30 pts), loops 9 (17 pts), if/else 5 (15 pts), boolean chains 2 (nesting depth added 40). 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.
zellij_server::attention::shell::decode_ansi_c (cognitive 47) zellij-server/src/attention/shell.rs:330— zellij_server::attention::shell::decode_ansi_c has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 6 (20 pts), if/else 5 (14 pts), loops 4 (13 pts) (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.
zellij_server::output::flatten_kitty_frame (cognitive 44) zellij-server/src/output/mod.rs:288— zellij_server::output::flatten_kitty_frame has cognitive complexity 44 (threshold 15). Drivers by points: loops 9 (17 pts), match/switch 5 (15 pts), if/else 4 (10 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_server::pty_writer::pty_writer_main (cognitive 38) zellij-server/src/pty_writer.rs:53— zellij_server::pty_writer::pty_writer_main has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 4 (13 pts), loops 3 (6 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_server::panes::kitty_graphics::parser::parse_control_data (cognitive 37) zellij-server/src/panes/kitty_graphics/parser.rs:317— zellij_server::panes::kitty_graphics::parser::parse_control_data has cognitive complexity 37 (threshold 15). Drivers by points: match/switch 8 (21 pts), if/else 5 (13 pts), boolean chains 2, loops 1 (nesting depth added 21). 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.
zellij_server::tab::mouse_handler::edge_and_delta_to_strategies (cognitive 37) zellij-server/src/tab/mouse_handler.rs:340— zellij_server::tab::mouse_handler::edge_and_delta_to_strategies has cognitive complexity 37 (threshold 15). Drivers by points: if/else 24 (36 pts), match/switch 1 (nesting depth added 12). 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.
zellij_server::plugins::shared::wasm_module_exports_function (cognitive 36) zellij-server/src/plugins/shared.rs:59— zellij_server::plugins::shared::wasm_module_exports_function has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 2 (4 pts), boolean chains 2 (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.
zellij_server::ui::components::menu::menu (cognitive 32) zellij-server/src/ui/components/menu.rs:59— zellij_server::ui::components::menu::menu has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 2, match/switch 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.
zellij_server::panes::nested_session_modal::guest_modal_segment_row (cognitive 29) zellij-server/src/panes/nested_session_modal.rs:41— zellij_server::panes::nested_session_modal::guest_modal_segment_row has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 6 (9 pts), boolean chains 1 (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.
zellij_server::plugins::shared::apply_events_job (cognitive 27) zellij-server/src/plugins/shared.rs:435— zellij_server::plugins::shared::apply_events_job has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 2 (4 pts), boolean chains 2, 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.
zellij_server::attention::program_status::parse (cognitive 25) zellij-server/src/attention/program_status.rs:99— zellij_server::attention::program_status::parse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 4, boolean chains 3, 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.
zellij_server::attention::shell::decode_printf_q (cognitive 25) zellij-server/src/attention/shell.rs:427— zellij_server::attention::shell::decode_printf_q has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (7 pts), boolean chains 3, match/switch 1 (2 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.
zellij_server::panes::grid::transfer_rows_from_lines_above_to_viewport (cognitive 25) zellij-server/src/panes/grid.rs:451— zellij_server::panes::grid::transfer_rows_from_lines_above_to_viewport has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 1 (4 pts), loops 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.
zellij_server::screen::denormalize_notification_response (cognitive 25) zellij-server/src/screen.rs:143— zellij_server::screen::denormalize_notification_response has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 1, loops 1, match/switch 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.
zellij_server::ui::components::table::table (cognitive 25) zellij-server/src/ui/components/table.rs:10— zellij_server::ui::components::table::table has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (3 pts), boolean chains 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.
zellij_server::panes::kitty_graphics::parser::run_payload_pipeline (cognitive 24) zellij-server/src/panes/kitty_graphics/parser.rs:551— zellij_server::panes::kitty_graphics::parser::run_payload_pipeline has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, match/switch 2 (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.
TooManyMethods: Tab zellij-server/src/tab/mod.rs:256— TooManyMethods — 436 methods, declared across 2 files: tab/mod.rs (385), tab/popup.rs (51). The bar is 30 methods; this is 406 over it, 14.53× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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.
TooManyMethods: Screen zellij-server/src/screen.rs:1990— TooManyMethods — 418 methods, declared across 5 files: src/screen.rs (273), screen/popups.rs (52), screen/attention.rs (43), screen/live_view.rs (30), +1 more file(s). The bar is 30 methods; this is 388 over it, 13.93× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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.
TooManyMethods: Grid zellij-server/src/panes/grid.rs:934— TooManyMethods — 201 methods, declared across 2 files: panes/grid.rs (186), panes/search.rs (15). The bar is 30 methods; this is 171 over it, 6.70× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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.
TooManyMethods: TiledPanes zellij-server/src/panes/tiled_panes/mod.rs:72— TooManyMethods — 159 methods. The bar is 30 methods; this is 129 over it, 5.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.
TooManyMethods: State default-plugins/session-manager/src/main.rs:55— TooManyMethods — 124 methods. The bar is 30 methods; this is 94 over it, 4.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.
TooManyMethods: App zellij-window/src/window.rs:216— TooManyMethods — 120 methods. The bar is 30 methods; this is 90 over it, 4.00× 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.
TooManyMethods: FloatingPanes zellij-server/src/panes/floating_panes/mod.rs:40— TooManyMethods — 118 methods. The bar is 30 methods; this is 88 over it, 3.93× 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.
TooManyMethods: SettingsScreen default-plugins/configuration/src/settings_screen.rs:97— TooManyMethods — 111 methods. The bar is 30 methods; this is 81 over it, 3.70× 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.
TooManyMethods: Inbox default-plugins/session-manager/src/inbox.rs:317— TooManyMethods — 92 methods. The bar is 30 methods; this is 62 over it, 3.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.
TooManyMethods: WasmBridge zellij-server/src/plugins/wasm_bridge.rs:273— TooManyMethods — 90 methods. The bar is 30 methods; this is 60 over it, 3.00× 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.
TooManyMethods: TiledPaneGrid zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:29— TooManyMethods — 73 methods. The bar is 30 methods; this is 43 over it, 2.43× 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.
TooManyMethods: KdlLayoutParser zellij-utils/src/kdl/kdl_layout_parser.rs:37— TooManyMethods — 71 methods. The bar is 30 methods; this is 41 over it, 2.37× 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.
TooManyMethods: PaneFrame zellij-server/src/ui/pane_boundaries_frame.rs:116— TooManyMethods — 62 methods. The bar is 30 methods; this is 32 over it, 2.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.
TooManyMethods: TextInput zellij-tile/src/ui_components/text_input.rs:41— TooManyMethods — 60 methods. The bar is 30 methods; this is 30 over it, 2.00× 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.
TooManyMethods: KeysScreen default-plugins/configuration/src/keys_screen.rs:40— TooManyMethods — 55 methods. The bar is 30 methods; this is 25 over it, 1.83× 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.
TooManyMethods: Page default-plugins/about/src/pages.rs:27— TooManyMethods — 54 methods, declared across 3 files: src/pages.rs (31), src/tips.rs (13), src/onboarding.rs (10). The bar is 30 methods; this is 24 over it, 1.80× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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.
TooManyMethods: AttentionTracker zellij-server/src/attention/tracker.rs:231— TooManyMethods — 54 methods. The bar is 30 methods; this is 24 over it, 1.80× 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.
TooManyMethods: MouseHandler zellij-server/src/tab/mouse_handler.rs:470— TooManyMethods — 50 methods. The bar is 30 methods; this is 20 over it, 1.67× 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.
TooManyMethods: StackedPanes zellij-server/src/panes/tiled_panes/stacked_panes.rs:14— TooManyMethods — 49 methods. The bar is 30 methods; this is 19 over it, 1.63× 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.
TooManyMethods: BindingsList default-plugins/configuration/src/bindings_list.rs:230— TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× 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.
TooManyMethods: SetupScreen default-plugins/configuration/src/setup_screen.rs:138— TooManyMethods — 45 methods. The bar is 30 methods; this is 15 over it, 1.50× 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.
TooManyMethods: ThemesScreen default-plugins/configuration/src/themes_screen.rs:275— TooManyMethods — 44 methods. The bar is 30 methods; this is 14 over it, 1.47× 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.
TooManyMethods: CompactBar default-plugins/bars/src/compact_bar/mod.rs:171— TooManyMethods — 43 methods. The bar is 30 methods; this is 13 over it, 1.43× 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.
TooManyMethods: SectionedList default-plugins/configuration/src/list_editor.rs:1728— TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× 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.
TooManyMethods: Row zellij-server/src/panes/grid.rs:6436— TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× 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.
Duplicated block (10 lines × 2) default-plugins/configuration/src/bindings_list.rs:1157— default-plugins/configuration/src/bindings_list.rs:1157-1166 | default-plugins/configuration/src/themes_screen.rs:1360-1369 — before extracting anything, compare `default-plugins/configuration/src/bindings_list.rs` and `default-plugins/configuration/src/themes_screen.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) default-plugins/configuration/src/list_editor.rs:2146— default-plugins/configuration/src/list_editor.rs:2146-2155 | default-plugins/configuration/src/list_editor.rs:2177-2186 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) default-plugins/session-manager/src/inbox.rs:263— default-plugins/session-manager/src/inbox.rs:263-272 | default-plugins/session-manager/src/inbox.rs:1591-1600 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) default-plugins/session-manager/src/main.rs:1266— default-plugins/session-manager/src/main.rs:1266-1275 | default-plugins/session-manager/src/main.rs:1509-1518 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) default-plugins/session-manager/src/ui/components.rs:133— default-plugins/session-manager/src/ui/components.rs:133-144 | default-plugins/session-manager/src/ui/components.rs:190-199 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-client/src/remote_attach/websockets.rs:267— zellij-client/src/remote_attach/websockets.rs:267-276 | zellij-client/src/remote_attach/websockets.rs:278-287 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/lib.rs:4514— zellij-server/src/lib.rs:4514-4523 | zellij-server/src/lib.rs:4587-4596 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/lib.rs:5049— zellij-server/src/lib.rs:5049-5058 | zellij-server/src/lib.rs:5081-5090 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/output/mod.rs:310— zellij-server/src/output/mod.rs:310-319 | zellij-server/src/output/mod.rs:1228-1237 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/panes/nested_session_modal.rs:300— zellij-server/src/panes/nested_session_modal.rs:300-309 | zellij-server/src/panes/nested_session_modal.rs:310-319 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:2160— zellij-server/src/panes/tiled_panes/mod.rs:2160-2169 | zellij-server/src/panes/tiled_panes/mod.rs:2195-2204 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:636— zellij-server/src/panes/tiled_panes/stacked_panes.rs:636-645 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:712-721 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:1057— zellij-server/src/panes/tiled_panes/stacked_panes.rs:1057-1066 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:1076-1085 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/plugins/plugin_loader.rs:296— zellij-server/src/plugins/plugin_loader.rs:296-305 | zellij-server/src/plugins/plugin_loader.rs:409-418 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/pty.rs:2168— zellij-server/src/pty.rs:2168-2177 | zellij-server/src/pty.rs:2344-2353 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/screen.rs:2888— zellij-server/src/screen.rs:2888-2897 | zellij-server/src/screen.rs:2921-2930 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/session_layout_metadata.rs:42— zellij-server/src/session_layout_metadata.rs:42-51 | zellij-server/src/session_layout_metadata.rs:53-62 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/tab/mod.rs:6457— zellij-server/src/tab/mod.rs:6457-6466 | zellij-server/src/tab/mod.rs:6542-6551 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-server/src/tab/mod.rs:8956— zellij-server/src/tab/mod.rs:8956-8965 | zellij-server/src/tab/mod.rs:8968-8977 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-tile/src/shim.rs:2373— zellij-tile/src/shim.rs:2373-2382 | zellij-tile/src/shim.rs:2755-2764 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-utils/src/input/config_file_edit.rs:1752— zellij-utils/src/input/config_file_edit.rs:1752-1761 | zellij-utils/src/kdl/mod.rs:7123-7132 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) zellij-utils/src/input/layout.rs:1501— zellij-utils/src/input/layout.rs:1501-1510 | zellij-utils/src/input/layout.rs:1541-1550 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:1389— zellij-utils/src/kdl/kdl_layout_parser.rs:1389-1398 | zellij-utils/src/kdl/kdl_layout_parser.rs:1809-1818 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-utils/src/kdl/mod.rs:2366— zellij-utils/src/kdl/mod.rs:2366-2375 | zellij-utils/src/kdl/mod.rs:2535-2544 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) zellij-utils/src/kdl/mod.rs:2486— zellij-utils/src/kdl/mod.rs:2486-2495 | zellij-utils/src/kdl/mod.rs:2539-2548 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) default-plugins/bars/src/status_bar/mod.rs:866— default-plugins/bars/src/status_bar/mod.rs:866-873 | default-plugins/bars/src/status_bar/one_line_ui.rs:1925-1932 — before extracting anything, compare `default-plugins/bars/src/status_bar/mod.rs` and `default-plugins/bars/src/status_bar/one_line_ui.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) default-plugins/bars/src/status_bar/one_line_ui.rs:1314— default-plugins/bars/src/status_bar/one_line_ui.rs:1314-1321 | default-plugins/bars/src/status_bar/one_line_ui.rs:1364-1371 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) default-plugins/bars/src/timers.rs:35— default-plugins/bars/src/timers.rs:35-42 | default-plugins/session-manager/src/timers.rs:24-31 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) default-plugins/configuration/src/bindings_list.rs:746— default-plugins/configuration/src/bindings_list.rs:746-753 | default-plugins/configuration/src/themes_screen.rs:1163-1170 — before extracting anything, compare `default-plugins/configuration/src/bindings_list.rs` and `default-plugins/configuration/src/themes_screen.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) default-plugins/configuration/src/bindings_list.rs:1108— default-plugins/configuration/src/bindings_list.rs:1108-1115 | default-plugins/configuration/src/themes_screen.rs:1331-1339 — before extracting anything, compare `default-plugins/configuration/src/bindings_list.rs` and `default-plugins/configuration/src/themes_screen.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) default-plugins/configuration/src/list_editor.rs:290— default-plugins/configuration/src/list_editor.rs:290-297 | default-plugins/configuration/src/list_editor.rs:366-373 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/lib.rs:5039— zellij-server/src/lib.rs:5039-5047 | zellij-server/src/lib.rs:5072-5079 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/panes/nested_session_modal.rs:291— zellij-server/src/panes/nested_session_modal.rs:291-298 | zellij-server/src/panes/nested_session_modal.rs:306-313 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:396— zellij-server/src/panes/tiled_panes/mod.rs:396-403 | zellij-server/src/panes/tiled_panes/mod.rs:474-481 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1040— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1040-1047 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1114-1121 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1483— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1483-1490 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1508-1515 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1534— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1534-1541 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1564-1571 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/plugins/wasm_bridge.rs:3542— zellij-server/src/plugins/wasm_bridge.rs:3542-3549 | zellij-server/src/plugins/wasm_bridge.rs:3641-3648 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/plugins/zellij_exports.rs:3546— zellij-server/src/plugins/zellij_exports.rs:3546-3553 | zellij-server/src/plugins/zellij_exports.rs:3640-3647 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/plugins/zellij_exports.rs:3580— zellij-server/src/plugins/zellij_exports.rs:3580-3587 | zellij-server/src/plugins/zellij_exports.rs:3607-3614 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/plugins/zellij_exports.rs:5367— zellij-server/src/plugins/zellij_exports.rs:5367-5374 | zellij-server/src/plugins/zellij_exports.rs:5381-5388 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/tab/mod.rs:4306— zellij-server/src/tab/mod.rs:4306-4313 | zellij-server/src/tab/mod.rs:4356-4363 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-server/src/tab/mod.rs:7027— zellij-server/src/tab/mod.rs:7027-7034 | zellij-server/src/tab/mod.rs:7066-7073 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-utils/src/desktop_integration/platform.rs:1790— zellij-utils/src/desktop_integration/platform.rs:1790-1797 | zellij-window/src/app_registration.rs:89-96 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) zellij-utils/src/input/context_menu.rs:45— zellij-utils/src/input/context_menu.rs:45-52 | zellij-utils/src/input/keybinds.rs:128-135 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) zellij-utils/src/input/layout.rs:2060— zellij-utils/src/input/layout.rs:2060-2067 | zellij-utils/src/input/layout.rs:2088-2095 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-utils/src/input/window.rs:676— zellij-utils/src/input/window.rs:676-683 | zellij-utils/src/input/window.rs:738-745 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-utils/src/input/window.rs:1164— zellij-utils/src/input/window.rs:1164-1171 | zellij-utils/src/input/window.rs:1235-1242 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:1074— zellij-utils/src/kdl/kdl_layout_parser.rs:1074-1081 | zellij-utils/src/kdl/kdl_layout_parser.rs:1112-1119 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:2419— zellij-utils/src/kdl/kdl_layout_parser.rs:2419-2426 | zellij-utils/src/kdl/kdl_layout_parser.rs:2437-2444 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) default-plugins/bars/src/compact_bar/clipboard_utils.rs:5— default-plugins/bars/src/compact_bar/clipboard_utils.rs:5-13 | default-plugins/bars/src/status_bar/second_line.rs:405-413 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) default-plugins/bars/src/status_bar/one_line_ui.rs:1574— default-plugins/bars/src/status_bar/one_line_ui.rs:1574-1582 | default-plugins/bars/src/status_bar/second_line.rs:138-146 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) default-plugins/bars/src/status_bar/second_line.rs:435— default-plugins/bars/src/status_bar/second_line.rs:435-443 | default-plugins/bars/src/status_bar/second_line.rs:529-537 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) default-plugins/configuration/src/bindings_list.rs:987— default-plugins/configuration/src/bindings_list.rs:987-995 | default-plugins/configuration/src/bindings_list.rs:1023-1031 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) default-plugins/configuration/src/bindings_list.rs:1037— default-plugins/configuration/src/bindings_list.rs:1037-1045 | default-plugins/configuration/src/list_editor.rs:2544-2552 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) default-plugins/prompt/src/ui.rs:1013— default-plugins/prompt/src/ui.rs:1013-1021 | default-plugins/prompt/src/ui.rs:1084-1092 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) default-plugins/share/src/main.rs:307— default-plugins/share/src/main.rs:307-315 | default-plugins/share/src/main.rs:323-331 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) default-plugins/share/src/ui_components.rs:364— default-plugins/share/src/ui_components.rs:364-372 | default-plugins/share/src/ui_components.rs:531-539 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) src/commands.rs:558— src/commands.rs:558-566 | src/commands.rs:608-616 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-client/src/os_input_output.rs:404— zellij-client/src/os_input_output.rs:404-412 | zellij-client/src/os_input_output.rs:415-423 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:621— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:621-629 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:743-751 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:633— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:633-641 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1051-1059 — `zellij-server/src/panes/floating_panes/floating_pane_grid.rs` and `zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 2) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:691— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:691-699 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:717-725 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:571— zellij-server/src/panes/floating_panes/mod.rs:571-579 | zellij-server/src/panes/tiled_panes/mod.rs:1225-1233 — `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:757— zellij-server/src/panes/floating_panes/mod.rs:757-765 | zellij-server/src/panes/tiled_panes/mod.rs:1475-1483 — `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:2379— zellij-server/src/panes/tiled_panes/mod.rs:2379-2387 | zellij-server/src/panes/tiled_panes/mod.rs:2639-2647 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:2423— zellij-server/src/panes/tiled_panes/mod.rs:2423-2431 | zellij-server/src/panes/tiled_panes/mod.rs:2692-2700 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:597— zellij-server/src/panes/tiled_panes/stacked_panes.rs:597-605 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:616-624 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/plugins/zellij_exports.rs:6525— zellij-server/src/plugins/zellij_exports.rs:6525-6533 | zellij-utils/src/input/actions.rs:2056-2064 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) zellij-server/src/route.rs:3369— zellij-server/src/route.rs:3369-3377 | zellij-server/src/route.rs:3403-3413 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/tab/layout_applier.rs:210— zellij-server/src/tab/layout_applier.rs:210-218 | zellij-server/src/tab/layout_applier.rs:283-291 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/tab/mod.rs:6525— zellij-server/src/tab/mod.rs:6525-6533 | zellij-server/src/tab/mod.rs:6615-6623 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-server/src/tab/mod.rs:8996— zellij-server/src/tab/mod.rs:8996-9004 | zellij-server/src/tab/mod.rs:9008-9016 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-utils/src/data.rs:4398— zellij-utils/src/data.rs:4398-4406 | zellij-utils/src/data.rs:4407-4415 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) zellij-utils/src/input/actions.rs:2498— zellij-utils/src/input/actions.rs:2498-2506 | zellij-utils/src/input/actions.rs:2539-2547 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) default-plugins/about/src/onboarding.rs:478— default-plugins/about/src/onboarding.rs:478-488 | default-plugins/configuration/src/setup_screen.rs:1310-1320 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (11 lines × 2) default-plugins/bars/src/compact_bar/mod.rs:719— default-plugins/bars/src/compact_bar/mod.rs:719-729 | default-plugins/bars/src/tab_bar/mod.rs:475-485 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/tab_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 102 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (11 lines × 2) default-plugins/bars/src/status_bar/mod.rs:509— default-plugins/bars/src/status_bar/mod.rs:509-519 | default-plugins/bars/src/tab_bar/mod.rs:304-314 — `default-plugins/bars/src/status_bar/mod.rs` and `default-plugins/bars/src/tab_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (11 lines × 2) default-plugins/session-manager/src/main.rs:1431— default-plugins/session-manager/src/main.rs:1431-1441 | default-plugins/session-manager/src/main.rs:1696-1706 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) default-plugins/session-manager/src/resurrectable_sessions.rs:164— default-plugins/session-manager/src/resurrectable_sessions.rs:164-174 | default-plugins/session-manager/src/ui/components.rs:1371-1381 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (11 lines × 2) default-plugins/session-manager/src/session_list.rs:172— default-plugins/session-manager/src/session_list.rs:172-182 | default-plugins/session-manager/src/session_list.rs:227-237 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) src/lib.rs:409— src/lib.rs:409-419 | src/lib.rs:422-432 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/output/mod.rs:645— zellij-server/src/output/mod.rs:645-655 | zellij-server/src/output/mod.rs:707-717 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/output/mod.rs:2294— zellij-server/src/output/mod.rs:2294-2304 | zellij-server/src/output/mod.rs:2456-2466 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:906— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:906-916 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:927-937 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:393— zellij-server/src/panes/floating_panes/mod.rs:393-403 | zellij-server/src/panes/tiled_panes/mod.rs:3258-3268 — `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (11 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:941— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:941-951 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1140-1150 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:967— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:967-977 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1000-1010 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/plugins/zellij_exports.rs:1773— zellij-server/src/plugins/zellij_exports.rs:1773-1783 | zellij-server/src/plugins/zellij_exports.rs:1920-1930 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/plugins/zellij_exports.rs:2434— zellij-server/src/plugins/zellij_exports.rs:2434-2444 | zellij-server/src/plugins/zellij_exports.rs:3897-3907 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/pty.rs:1110— zellij-server/src/pty.rs:1110-1120 | zellij-server/src/pty.rs:2224-2234 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/screen.rs:11316— zellij-server/src/screen.rs:11316-11326 | zellij-server/src/screen.rs:11338-11348 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/screen.rs:11331— zellij-server/src/screen.rs:11331-11341 | zellij-server/src/screen.rs:11353-11363 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/screen.rs:16033— zellij-server/src/screen.rs:16033-16043 | zellij-server/src/screen.rs:16061-16071 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/screen/mirror.rs:206— zellij-server/src/screen/mirror.rs:206-216 | zellij-server/src/screen/mirror.rs:360-370 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/tab/mod.rs:4485— zellij-server/src/tab/mod.rs:4485-4495 | zellij-server/src/tab/mod.rs:4588-4598 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/tab/mod.rs:5268— zellij-server/src/tab/mod.rs:5268-5278 | zellij-server/src/tab/mod.rs:5286-5296 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/tab/mod.rs:7171— zellij-server/src/tab/mod.rs:7171-7181 | zellij-server/src/tab/mod.rs:7221-7231 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-server/src/tab/mouse_handler.rs:2354— zellij-server/src/tab/mouse_handler.rs:2354-2364 | zellij-server/src/tab/mouse_handler.rs:2403-2413 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) zellij-utils/src/input/config_file_edit.rs:685— zellij-utils/src/input/config_file_edit.rs:685-695 | zellij-utils/src/input/config_file_edit.rs:1289-1299 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
zellij_utils::input::config::watch_config_file_changes (cognitive 79) zellij-utils/src/input/config.rs:479— zellij_utils::input::config::watch_config_file_changes has cognitive complexity 79 (threshold 15). Drivers by points: if/else 14 (49 pts), match/switch 5 (17 pts), loops 4 (9 pts), boolean chains 4 (nesting depth added 52). Of this number, 73 points are the body's own statements and 6 belong to 2 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.
zellij_utils::input::config_file_edit::desired_menu_statements (cognitive 60) zellij-utils/src/input/config_file_edit.rs:1816— zellij_utils::input::config_file_edit::desired_menu_statements has cognitive complexity 60 (threshold 15). Drivers by points: if/else 23 (44 pts), boolean chains 8, loops 6 (8 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_utils::input::config::watch_keybinds_dir_changes (cognitive 53) zellij-utils/src/input/config.rs:770— zellij_utils::input::config::watch_keybinds_dir_changes has cognitive complexity 53 (threshold 15). Drivers by points: if/else 8 (34 pts), match/switch 3 (11 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_utils::prompt::parse_field (cognitive 46) zellij-utils/src/prompt.rs:361— zellij_utils::prompt::parse_field has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (24 pts), match/switch 11 (20 pts), boolean chains 2 (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.
zellij_utils::kdl::parse_bind_blocks (cognitive 40) zellij-utils/src/kdl/mod.rs:5906— zellij_utils::kdl::parse_bind_blocks has cognitive complexity 40 (threshold 15). Drivers by points: loops 9 (20 pts), if/else 8 (18 pts), boolean chains 2 (nesting depth added 21). 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.
zellij_utils::input::layout::split_space (cognitive 37) zellij-utils/src/input/layout.rs:1877— zellij_utils::input::layout::split_space has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (24 pts), match/switch 6 (11 pts), loops 2 (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.
zellij_utils::input::not_wasm::cast_crossterm_key (cognitive 37) zellij-utils/src/input/mod.rs:348— zellij_utils::input::not_wasm::cast_crossterm_key has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 5, match/switch 3 (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.
zellij_utils::input::config_file_edit::apply_theme_colours (cognitive 36) zellij-utils/src/input/config_file_edit.rs:2139— zellij_utils::input::config_file_edit::apply_theme_colours has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (24 pts), match/switch 3 (6 pts), loops 2 (5 pts), boolean chains 1 (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.
zellij_utils::input::config::watch_layout_dir_changes (cognitive 35) zellij-utils/src/input/config.rs:698— zellij_utils::input::config::watch_layout_dir_changes has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (21 pts), match/switch 2 (7 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_utils::input::config_file_edit::list_edits (cognitive 33) zellij-utils/src/input/config_file_edit.rs:134— zellij_utils::input::config_file_edit::list_edits has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 5 (9 pts), boolean chains 5 (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.
zellij_utils::prompt::parse_request (cognitive 33) zellij-utils/src/prompt.rs:1373— zellij_utils::prompt::parse_request has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (25 pts), match/switch 5 (8 pts) (nesting depth added 17). 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.
zellij_utils::input::keybinds::shortcut_for_action (cognitive 32) zellij-utils/src/input/keybinds.rs:122— zellij_utils::input::keybinds::shortcut_for_action has cognitive complexity 32 (threshold 15). Drivers by points: if/else 4 (17 pts), loops 6 (15 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.
zellij_utils::structured_render::decode (cognitive 31) zellij-utils/src/structured_render.rs:1355— zellij_utils::structured_render::decode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 3, loops 3 (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.
zellij_utils::input::config_file_edit::edit_node_list (cognitive 28) zellij-utils/src/input/config_file_edit.rs:1323— zellij_utils::input::config_file_edit::edit_node_list has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (25 pts), match/switch 1 (2 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.
zellij_utils::input::context_menu::context_menu_shortcut (cognitive 27) zellij-utils/src/input/context_menu.rs:32— zellij_utils::input::context_menu::context_menu_shortcut has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 5 (11 pts) (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.
zellij_utils::input::context_menu::merge_menu_statements (cognitive 26) zellij-utils/src/input/context_menu.rs:186— zellij_utils::input::context_menu::merge_menu_statements has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 4 (11 pts), loops 1 (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.
zellij_utils::kdl::load_plugins_to_kdl (cognitive 25) zellij-utils/src/kdl/mod.rs:7330— zellij_utils::kdl::load_plugins_to_kdl has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (5 pts), match/switch 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.
zellij_utils::desktop_integration::plan_setup (cognitive 24) zellij-utils/src/desktop_integration/mod.rs:119— zellij_utils::desktop_integration::plan_setup has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 3 (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.
zellij_utils::input::config_blocks::keybinding_entries (cognitive 22) zellij-utils/src/input/config_blocks.rs:936— zellij_utils::input::config_blocks::keybinding_entries has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (6 pts), loops 2 (3 pts), boolean chains 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.
zellij_utils::input::keybind_presets::collect_placeholders (cognitive 22) zellij-utils/src/input/keybind_presets.rs:367— zellij_utils::input::keybind_presets::collect_placeholders has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (8 pts), boolean chains 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.
zellij_utils::input::config_blocks::shared_block_names (cognitive 20) zellij-utils/src/input/config_blocks.rs:899— zellij_utils::input::config_blocks::shared_block_names has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 5 (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.
zellij_utils::input::config_file_edit::keybind_edits (cognitive 20) zellij-utils/src/input/config_file_edit.rs:327— zellij_utils::input::config_file_edit::keybind_edits has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 pts), boolean chains 3 (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.
zellij_utils::input::config_file_edit::rebased_expected_config (cognitive 20) zellij-utils/src/input/config_file_edit.rs:2684— zellij_utils::input::config_file_edit::rebased_expected_config has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (5 pts), loops 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.
zellij_utils::kdl::mouse_binding_node (cognitive 20) zellij-utils/src/kdl/mod.rs:6261— zellij_utils::kdl::mouse_binding_node has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 pts), match/switch 2 (4 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.
zellij_utils::input::config_blocks::mousebinding_entries (cognitive 19) zellij-utils/src/input/config_blocks.rs:1083— zellij_utils::input::config_blocks::mousebinding_entries has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 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.
Duplicated block (7 lines × 2) default-plugins/bars/src/compact_bar/line.rs:98— default-plugins/bars/src/compact_bar/line.rs:98-104 | default-plugins/bars/src/tab_bar/line.rs:23-29 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 2) default-plugins/bars/src/compact_bar/tab.rs:12— default-plugins/bars/src/compact_bar/tab.rs:12-18 | default-plugins/bars/src/tab_bar/tab.rs:12-18 — `default-plugins/bars/src/compact_bar/tab.rs` and `default-plugins/bars/src/tab_bar/tab.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7 lines × 2) default-plugins/configuration/src/keybindings_screen.rs:735— default-plugins/configuration/src/keybindings_screen.rs:735-741 | default-plugins/configuration/src/mousebindings_screen.rs:1053-1059 — before extracting anything, compare `default-plugins/configuration/src/keybindings_screen.rs` and `default-plugins/configuration/src/mousebindings_screen.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) default-plugins/configuration/src/list_editor.rs:668— default-plugins/configuration/src/list_editor.rs:668-674 | default-plugins/configuration/src/mousebindings_screen.rs:1043-1049 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) default-plugins/session-manager/src/main.rs:2610— default-plugins/session-manager/src/main.rs:2610-2616 | default-plugins/session-manager/src/main.rs:3549-3555 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) default-plugins/session-manager/src/ui/components.rs:1298— default-plugins/session-manager/src/ui/components.rs:1298-1304 | default-plugins/session-manager/src/ui/components.rs:1331-1337 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) default-plugins/share/src/token_management_screen.rs:441— default-plugins/share/src/token_management_screen.rs:441-447 | default-plugins/share/src/token_management_screen.rs:485-491 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-client/src/remote_attach/auth.rs:59— zellij-client/src/remote_attach/auth.rs:59-66 | zellij-client/src/remote_attach/auth.rs:87-93 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-client/src/remote_attach/http_client.rs:51— zellij-client/src/remote_attach/http_client.rs:51-57 | zellij-client/src/remote_attach/http_client.rs:95-101 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:671— zellij-server/src/panes/tiled_panes/stacked_panes.rs:671-677 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:745-751 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-server/src/pty.rs:2315— zellij-server/src/pty.rs:2315-2321 | zellij-server/src/pty.rs:2362-2368 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-server/src/ui/pane_boundaries_frame.rs:376— zellij-server/src/ui/pane_boundaries_frame.rs:376-382 | zellij-server/src/ui/pane_boundaries_frame.rs:384-390 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-tile/src/shim.rs:1199— zellij-tile/src/shim.rs:1199-1205 | zellij-tile/src/shim.rs:1210-1216 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-tile/src/shim.rs:2069— zellij-tile/src/shim.rs:2069-2075 | zellij-tile/src/shim.rs:2434-2440 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-tile/src/ui_components/menu_list.rs:364— zellij-tile/src/ui_components/menu_list.rs:364-370 | zellij-tile/src/ui_components/side_menu.rs:94-100 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) zellij-utils/src/input/keybind_presets.rs:545— zellij-utils/src/input/keybind_presets.rs:545-551 | zellij-utils/src/input/keybind_presets.rs:573-579 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-utils/src/input/options.rs:758— zellij-utils/src/input/options.rs:758-764 | zellij-utils/src/input/options.rs:971-977 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-utils/src/input/window.rs:690— zellij-utils/src/input/window.rs:690-696 | zellij-utils/src/input/window.rs:724-730 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:2664— zellij-utils/src/kdl/kdl_layout_parser.rs:2664-2670 | zellij-utils/src/kdl/kdl_layout_parser.rs:2684-2690 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) zellij-utils/src/plugin_api/plugin_command.rs:3076— zellij-utils/src/plugin_api/plugin_command.rs:3076-3082 | zellij-utils/src/plugin_api/plugin_command.rs:3121-3127 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) default-plugins/bars/src/compact_bar/tab.rs:23— default-plugins/bars/src/compact_bar/tab.rs:23-29 | default-plugins/bars/src/tab_bar/tab.rs:22-28 — `default-plugins/bars/src/compact_bar/tab.rs` and `default-plugins/bars/src/tab_bar/tab.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7 lines × 2) default-plugins/layout-manager/src/screens/import_layout.rs:64— default-plugins/layout-manager/src/screens/import_layout.rs:64-70 | default-plugins/layout-manager/src/screens/new_layout_from_session.rs:38-44 — before extracting anything, compare `default-plugins/layout-manager/src/screens/import_layout.rs` and `default-plugins/layout-manager/src/screens/new_layout_from_session.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:1934— zellij-server/src/panes/floating_panes/mod.rs:1934-1940 | zellij-server/src/panes/tiled_panes/mod.rs:3341-3347 — `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7 lines × 2) zellij-utils/src/input/config_blocks.rs:860— zellij-utils/src/input/config_blocks.rs:860-866 | zellij-utils/src/input/session_suggestions.rs:110-116 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) zellij-server/src/plugins/wasm_bridge.rs:1794— zellij-server/src/plugins/wasm_bridge.rs:1794-1800 | zellij-server/src/tab/popup.rs:878-884 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) default-plugins/bars/src/compact_bar/mod.rs:431— default-plugins/bars/src/compact_bar/mod.rs:431-436 | default-plugins/bars/src/status_bar/mod.rs:484-489 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/status_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (6 lines × 2) default-plugins/bars/src/status_bar/one_line_ui.rs:1974— default-plugins/bars/src/status_bar/one_line_ui.rs:1974-1979 | default-plugins/bars/src/status_bar/one_line_ui.rs:1984-1989 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) default-plugins/configuration/src/keys_screen.rs:825— default-plugins/configuration/src/keys_screen.rs:825-830 | default-plugins/configuration/src/keys_screen.rs:840-845 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) default-plugins/configuration/src/list_editor.rs:309— default-plugins/configuration/src/list_editor.rs:309-314 | default-plugins/configuration/src/list_editor.rs:385-390 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) default-plugins/strider/src/shared.rs:9— default-plugins/strider/src/shared.rs:9-14 | default-plugins/strider/src/shared.rs:16-21 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-client/src/remote_attach/auth.rs:104— zellij-client/src/remote_attach/auth.rs:104-109 | zellij-client/src/remote_attach/auth.rs:155-160 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-server/src/background_jobs.rs:1270— zellij-server/src/background_jobs.rs:1270-1275 | zellij-server/src/plugins/zellij_exports.rs:4092-4097 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) zellij-server/src/plugins/zellij_exports.rs:5495— zellij-server/src/plugins/zellij_exports.rs:5495-5500 | zellij-server/src/route.rs:3633-3642 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) zellij-utils/src/data.rs:3117— zellij-utils/src/data.rs:3117-3122 | zellij-utils/src/data.rs:3169-3174 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:1997— zellij-utils/src/kdl/kdl_layout_parser.rs:1997-2002 | zellij-utils/src/kdl/kdl_layout_parser.rs:2061-2066 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-utils/src/kdl/mod.rs:976— zellij-utils/src/kdl/mod.rs:976-981 | zellij-utils/src/kdl/mod.rs:1416-1421 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-utils/src/kdl/mod.rs:1153— zellij-utils/src/kdl/mod.rs:1153-1158 | zellij-utils/src/kdl/mod.rs:1196-1201 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-utils/src/kdl/mod.rs:8225— zellij-utils/src/kdl/mod.rs:8225-8230 | zellij-utils/src/kdl/mod.rs:8254-8259 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-utils/src/kdl/mod.rs:8235— zellij-utils/src/kdl/mod.rs:8235-8240 | zellij-utils/src/kdl/mod.rs:8245-8250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-utils/src/kdl/mod.rs:8448— zellij-utils/src/kdl/mod.rs:8448-8453 | zellij-utils/src/kdl/mod.rs:8458-8463 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-utils/src/kdl/mod.rs:8476— zellij-utils/src/kdl/mod.rs:8476-8481 | zellij-utils/src/kdl/mod.rs:8486-8491 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-utils/src/plugin_api/event.rs:3841— zellij-utils/src/plugin_api/event.rs:3841-3846 | zellij-utils/src/plugin_api/plugin_command.rs:315-320 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) zellij-utils/src/remote_session_tokens.rs:99— zellij-utils/src/remote_session_tokens.rs:99-104 | zellij-utils/src/web_authentication_tokens.rs:298-303 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) zellij-window/src/app/icon.rs:62— zellij-window/src/app/icon.rs:62-67 | zellij-window/src/app/icon.rs:71-76 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) zellij-window/src/app/tray/linux.rs:323— zellij-window/src/app/tray/linux.rs:323-328 | zellij-window/src/app/tray/linux.rs:352-357 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) default-plugins/bars/src/compact_bar/mod.rs:68— default-plugins/bars/src/compact_bar/mod.rs:68-73 | default-plugins/bars/src/tab_bar/mod.rs:53-58 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/tab_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 102 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (6 lines × 2) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:942— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:942-947 | zellij-server/src/panes/tiled_panes/mod.rs:3413-3418 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:1862— zellij-server/src/panes/floating_panes/mod.rs:1862-1867 | zellij-server/src/panes/tiled_panes/mod.rs:3285-3290 — `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (6 lines × 2) zellij-server/src/panes/plugin_pane.rs:872— zellij-server/src/panes/plugin_pane.rs:872-877 | zellij-server/src/panes/terminal_pane.rs:1316-1321 — before extracting anything, compare `zellij-server/src/panes/plugin_pane.rs` and `zellij-server/src/panes/terminal_pane.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) zellij-server/src/panes/terminal_pane.rs:119— zellij-server/src/panes/terminal_pane.rs:119-124 | zellij-utils/src/data.rs:4034-4039 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Screen::render_to_clients (cognitive 130) zellij-server/src/screen.rs:5640— Screen::render_to_clients has cognitive complexity 130 (threshold 15). Drivers by points: if/else 32 (93 pts), loops 12 (33 pts), boolean chains 4 (nesting depth added 82). 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.
Screen::handle_mouse_event (cognitive 53) zellij-server/src/screen.rs:9687— Screen::handle_mouse_event has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (48 pts), boolean chains 4, match/switch 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Screen::apply_layout (cognitive 50) zellij-server/src/screen.rs:6427— Screen::apply_layout has cognitive complexity 50 (threshold 15). Drivers by points: if/else 25 (40 pts), loops 5 (9 pts), boolean chains 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.
Screen::switch_active_tab (cognitive 42) zellij-server/src/screen.rs:2743— Screen::switch_active_tab has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (27 pts), match/switch 3 (8 pts), loops 2 (7 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Screen::apply_theme_mode (cognitive 36) zellij-server/src/screen.rs:9359— Screen::apply_theme_mode has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (22 pts), if/else 6 (12 pts), boolean chains 1, match/switch 1 (nesting depth added 20). 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.
Screen::subscribe_to_pane_renders (cognitive 36) zellij-server/src/screen.rs:10241— Screen::subscribe_to_pane_renders has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (29 pts), match/switch 1 (4 pts), loops 2 (3 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.
Screen::deliver_subscriber_updates_from_map (cognitive 28) zellij-server/src/screen.rs:10371— Screen::deliver_subscriber_updates_from_map has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 5 (6 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.
Screen::handle_nested_session_message_from_pane (cognitive 25) zellij-server/src/screen.rs:4024— Screen::handle_nested_session_message_from_pane has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (7 pts), loops 2 (6 pts) (nesting depth added 14). 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.
Screen::report_mobile_state (cognitive 24) zellij-server/src/screen.rs:7293— Screen::report_mobile_state has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (6 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Screen::get_layout_metadata (cognitive 23) zellij-server/src/screen.rs:9872— Screen::get_layout_metadata has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 3 (5 pts), match/switch 2 (4 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.
Screen::change_mode (cognitive 22) zellij-server/src/screen.rs:7869— Screen::change_mode has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, match/switch 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.
Screen::focus_plugin_pane (cognitive 22) zellij-server/src/screen.rs:8373— Screen::focus_plugin_pane has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (3 pts), boolean chains 2, 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.
Screen::handle_live_view_mouse_event (cognitive 21) zellij-server/src/screen/live_view.rs:493— Screen::handle_live_view_mouse_event has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5 (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.
Screen::targeted_plugin_ids (cognitive 21) zellij-server/src/screen.rs:8217— Screen::targeted_plugin_ids has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (4 pts), boolean chains 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.
Screen::apply_initial_attention_flags (cognitive 20) zellij-server/src/screen/attention.rs:125— Screen::apply_initial_attention_flags has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (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.
Screen::set_live_view (cognitive 20) zellij-server/src/screen/live_view.rs:144— Screen::set_live_view has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (19 pts), 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.
Screen::remove_client (cognitive 20) zellij-server/src/screen.rs:6729— Screen::remove_client has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 3 (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.
Screen::break_multiple_panes_to_tab_with_index (cognitive 20) zellij-server/src/screen.rs:8775— Screen::break_multiple_panes_to_tab_with_index has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (5 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.
Screen::show_guest_modals_for_new_client (cognitive 18) zellij-server/src/screen.rs:4955— Screen::show_guest_modals_for_new_client has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (7 pts), match/switch 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.
Screen::stack_panes (cognitive 18) zellij-server/src/screen.rs:9557— Screen::stack_panes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 1 (4 pts), loops 2 (3 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.
Screen::recompute_tab_size (cognitive 17) zellij-server/src/screen.rs:3087— Screen::recompute_tab_size has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 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.
Screen::sync_nested_guest_fullscreen_state (cognitive 17) zellij-server/src/screen.rs:5357— Screen::sync_nested_guest_fullscreen_state has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 5 (6 pts), 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.
Screen::add_client (cognitive 17) zellij-server/src/screen.rs:6620— Screen::add_client has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, 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.
Screen::sync_live_views (cognitive 16) zellij-server/src/screen/live_view.rs:423— Screen::sync_live_views has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4, boolean chains 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.
Screen::forward_desktop_notifications (cognitive 16) zellij-server/src/screen.rs:6142— Screen::forward_desktop_notifications has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 2 (7 pts), if/else 3 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Duplicated block (14 lines × 2) default-plugins/multiple-select/src/main.rs:477— default-plugins/multiple-select/src/main.rs:477-490 | default-plugins/multiple-select/src/main.rs:497-510 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) default-plugins/session-manager/src/help.rs:157— default-plugins/session-manager/src/help.rs:157-170 | default-plugins/session-manager/src/inbox.rs:2599-2612 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (14 lines × 2) default-plugins/session-manager/src/ui/components.rs:890— default-plugins/session-manager/src/ui/components.rs:890-903 | default-plugins/session-manager/src/ui/components.rs:909-922 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/lib.rs:5220— zellij-server/src/lib.rs:5220-5233 | zellij-server/src/lib.rs:5236-5249 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:855— zellij-server/src/panes/tiled_panes/mod.rs:855-868 | zellij-server/src/panes/tiled_panes/mod.rs:921-934 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1776— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1776-1789 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2031-2044 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/plugins/plugin_loader.rs:272— zellij-server/src/plugins/plugin_loader.rs:272-285 | zellij-server/src/plugins/plugin_loader.rs:385-398 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/plugins/zellij_exports.rs:2639— zellij-server/src/plugins/zellij_exports.rs:2639-2652 | zellij-server/src/plugins/zellij_exports.rs:2698-2711 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/plugins/zellij_exports.rs:2739— zellij-server/src/plugins/zellij_exports.rs:2739-2752 | zellij-server/src/plugins/zellij_exports.rs:2800-2813 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/pty.rs:2316— zellij-server/src/pty.rs:2316-2329 | zellij-server/src/pty.rs:2433-2446 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/screen.rs:9960— zellij-server/src/screen.rs:9960-9973 | zellij-server/src/screen.rs:10006-10019 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/session_layout_metadata.rs:145— zellij-server/src/session_layout_metadata.rs:145-158 | zellij-server/src/session_layout_metadata.rs:160-173 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/tab/mod.rs:1966— zellij-server/src/tab/mod.rs:1966-1979 | zellij-server/src/tab/mod.rs:2059-2072 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/tab/mod.rs:3707— zellij-server/src/tab/mod.rs:3707-3720 | zellij-server/src/tab/mod.rs:3785-3798 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/tab/mod.rs:6505— zellij-server/src/tab/mod.rs:6505-6518 | zellij-server/src/tab/mod.rs:6591-6604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/ui/pane_boundaries_frame.rs:674— zellij-server/src/ui/pane_boundaries_frame.rs:674-687 | zellij-server/src/ui/pane_boundaries_frame.rs:709-722 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-tile/src/shim.rs:2224— zellij-tile/src/shim.rs:2224-2237 | zellij-tile/src/shim.rs:2285-2298 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-utils/src/desktop_integration/platform.rs:1771— zellij-utils/src/desktop_integration/platform.rs:1771-1784 | zellij-window/src/app_registration.rs:71-84 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 2) zellij-utils/src/input/config.rs:713— zellij-utils/src/input/config.rs:713-726 | zellij-utils/src/input/config.rs:787-800 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:382— zellij-utils/src/kdl/kdl_layout_parser.rs:382-395 | zellij-utils/src/kdl/mod.rs:7404-7417 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (14 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:761— zellij-utils/src/kdl/kdl_layout_parser.rs:761-774 | zellij-utils/src/kdl/kdl_layout_parser.rs:1374-1387 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-utils/src/kdl/mod.rs:7298— zellij-utils/src/kdl/mod.rs:7298-7311 | zellij-utils/src/kdl/mod.rs:7358-7371 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/screen.rs:8280— zellij-server/src/screen.rs:8280-8293 | zellij-server/src/screen.rs:8320-8334 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) zellij-server/src/plugins/zellij_exports.rs:4947— zellij-server/src/plugins/zellij_exports.rs:4947-4960 | zellij-server/src/plugins/zellij_exports.rs:5009-5022 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) default-plugins/bars/src/status_bar/mod.rs:806— default-plugins/bars/src/status_bar/mod.rs:806-817 | default-plugins/bars/src/status_bar/one_line_ui.rs:2003-2014 — before extracting anything, compare `default-plugins/bars/src/status_bar/mod.rs` and `default-plugins/bars/src/status_bar/one_line_ui.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) default-plugins/configuration/src/bindings_list.rs:378— default-plugins/configuration/src/bindings_list.rs:378-389 | default-plugins/configuration/src/themes_screen.rs:397-408 — before extracting anything, compare `default-plugins/configuration/src/bindings_list.rs` and `default-plugins/configuration/src/themes_screen.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) default-plugins/configuration/src/bindings_list.rs:938— default-plugins/configuration/src/bindings_list.rs:938-949 | default-plugins/configuration/src/bindings_list.rs:974-985 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) default-plugins/configuration/src/keybindings_screen.rs:815— default-plugins/configuration/src/keybindings_screen.rs:815-826 | default-plugins/configuration/src/mousebindings_screen.rs:1128-1139 — before extracting anything, compare `default-plugins/configuration/src/keybindings_screen.rs` and `default-plugins/configuration/src/mousebindings_screen.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) default-plugins/layout-manager/src/screens/layout_list/mod.rs:427— default-plugins/layout-manager/src/screens/layout_list/mod.rs:427-438 | default-plugins/layout-manager/src/screens/layout_list/mod.rs:570-581 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) default-plugins/session-manager/src/help.rs:39— default-plugins/session-manager/src/help.rs:39-50 | default-plugins/session-manager/src/help.rs:75-86 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:1348— zellij-server/src/panes/floating_panes/mod.rs:1348-1359 | zellij-server/src/panes/tiled_panes/mod.rs:2721-2732 — `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (12 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:1826— zellij-server/src/panes/floating_panes/mod.rs:1826-1837 | zellij-server/src/panes/tiled_panes/mod.rs:3270-3281 — `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (12 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:695— zellij-server/src/panes/tiled_panes/stacked_panes.rs:695-706 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:772-783 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:415— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:415-426 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:428-439 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2057— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2057-2068 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2130-2141 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/plugins/zellij_exports.rs:5754— zellij-server/src/plugins/zellij_exports.rs:5754-5765 | zellij-server/src/plugins/zellij_exports.rs:5841-5852 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/screen.rs:5666— zellij-server/src/screen.rs:5666-5677 | zellij-server/src/screen.rs:5839-5850 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/tab/layout_applier.rs:591— zellij-server/src/tab/layout_applier.rs:591-602 | zellij-server/src/tab/layout_applier.rs:642-653 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-tile/src/ui_components/menu_list.rs:284— zellij-tile/src/ui_components/menu_list.rs:284-295 | zellij-tile/src/ui_components/scroll_view.rs:201-212 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) zellij-tile/src/ui_components/menu_list.rs:537— zellij-tile/src/ui_components/menu_list.rs:537-548 | zellij-tile/src/ui_components/side_menu.rs:250-261 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) zellij-utils/src/plugin_api/event.rs:269— zellij-utils/src/plugin_api/event.rs:269-280 | zellij-utils/src/plugin_api/event.rs:1973-1984 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) default-plugins/layout-manager/src/screens/import_layout.rs:42— default-plugins/layout-manager/src/screens/import_layout.rs:42-53 | default-plugins/layout-manager/src/screens/new_layout_from_session.rs:16-27 — before extracting anything, compare `default-plugins/layout-manager/src/screens/import_layout.rs` and `default-plugins/layout-manager/src/screens/new_layout_from_session.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) zellij-server/src/panes/plugin_pane.rs:911— zellij-server/src/panes/plugin_pane.rs:911-922 | zellij-server/src/panes/terminal_pane.rs:1383-1394 — before extracting anything, compare `zellij-server/src/panes/plugin_pane.rs` and `zellij-server/src/panes/terminal_pane.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) zellij-utils/src/input/actions.rs:1847— zellij-utils/src/input/actions.rs:1847-1858 | zellij-utils/src/input/actions.rs:2012-2023 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/route.rs:2251— zellij-server/src/route.rs:2251-2262 | zellij-server/src/route.rs:2281-2292 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/screen.rs:15012— zellij-server/src/screen.rs:15012-15023 | zellij-server/src/screen.rs:15043-15054 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) zellij-server/src/plugins/zellij_exports.rs:2483— zellij-server/src/plugins/zellij_exports.rs:2483-2494 | zellij-server/src/plugins/zellij_exports.rs:2960-2971 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) default-plugins/fixture-plugin-for-tests/src/main.rs:1059— default-plugins/fixture-plugin-for-tests/src/main.rs:1059-1070 | default-plugins/fixture-plugin-for-tests/src/main.rs:1077-1088 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
zellij_server::screen::screen_thread_main (cyclomatic 825) zellij-server/src/screen.rs:10547— zellij_server::screen::screen_thread_main has cyclomatic complexity 825 (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.
zellij_server::route::route_action_with_origin (cyclomatic 277) zellij-server/src/route.rs:357— zellij_server::route::route_action_with_origin has cyclomatic complexity 277 (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.
zellij_server::start_server_impl (cyclomatic 167) zellij-server/src/lib.rs:3773— zellij_server::start_server_impl has cyclomatic complexity 167 (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.
zellij_server::plugins::plugin_thread_main (cyclomatic 120) zellij-server/src/plugins/mod.rs:371— zellij_server::plugins::plugin_thread_main has cyclomatic complexity 120 (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.
zellij_server::route::route_thread_main (cyclomatic 99) zellij-server/src/route.rs:2833— zellij_server::route::route_thread_main has cyclomatic complexity 99 (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.
zellij_server::background_jobs::background_jobs_main (cyclomatic 94) zellij-server/src/background_jobs.rs:332— zellij_server::background_jobs::background_jobs_main has cyclomatic complexity 94 (threshold 15). Of this number, 88 points are the body's own statements and 6 belong to one function item 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.
zellij_server::pty::pty_thread_main (cyclomatic 70) zellij-server/src/pty.rs:249— zellij_server::pty::pty_thread_main has cyclomatic complexity 70 (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.
zellij_server::panes::kitty_graphics::parser::parse_control_data (cyclomatic 55) zellij-server/src/panes/kitty_graphics/parser.rs:317— zellij_server::panes::kitty_graphics::parser::parse_control_data has cyclomatic complexity 55 (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.
zellij_server::ui::border_glyphs::corner (cyclomatic 38) zellij-server/src/ui/border_glyphs.rs:47— zellij_server::ui::border_glyphs::corner 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.
zellij_server::ui::border_glyphs::remap_light_glyph (cyclomatic 38) zellij-server/src/ui/border_glyphs.rs:125— zellij_server::ui::border_glyphs::remap_light_glyph 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.
zellij_server::ui::boundaries::combine_symbols (cyclomatic 38) zellij-server/src/ui/boundaries.rs:112— zellij_server::ui::boundaries::combine_symbols 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.
zellij_server::output::flatten_chunks (cyclomatic 35) zellij-server/src/output/mod.rs:580— zellij_server::output::flatten_chunks has cyclomatic complexity 35 (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.
zellij_server::attention::shell::decode_ansi_c (cyclomatic 30) zellij-server/src/attention/shell.rs:330— zellij_server::attention::shell::decode_ansi_c has cyclomatic complexity 30 (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.
zellij_server::output::serialize_chunks (cyclomatic 28) zellij-server/src/output/mod.rs:831— zellij_server::output::serialize_chunks 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.
zellij_server::output::serialize_kitty_frame (cyclomatic 26) zellij-server/src/output/mod.rs:1207— zellij_server::output::serialize_kitty_frame has cyclomatic complexity 26 (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.
zellij_server::output::flatten_kitty_frame (cyclomatic 22) zellij-server/src/output/mod.rs:288— zellij_server::output::flatten_kitty_frame has cyclomatic complexity 22 (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.
zellij_server::attention::program_status::parse (cyclomatic 21) zellij-server/src/attention/program_status.rs:99— zellij_server::attention::program_status::parse 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.
zellij_server::pane_mirror::source::serve_mirror_connection (cyclomatic 20) zellij-server/src/pane_mirror/source.rs:75— zellij_server::pane_mirror::source::serve_mirror_connection has cyclomatic complexity 20 (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.
zellij_server::tab::mouse_handler::edge_and_delta_to_strategies (cyclomatic 20) zellij-server/src/tab/mouse_handler.rs:340— zellij_server::tab::mouse_handler::edge_and_delta_to_strategies 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.
zellij_server::pty_writer::pty_writer_main (cyclomatic 18) zellij-server/src/pty_writer.rs:53— zellij_server::pty_writer::pty_writer_main 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.
zellij_server::ui::components::menu::menu (cyclomatic 17) zellij-server/src/ui/components/menu.rs:59— zellij_server::ui::components::menu::menu 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.
zellij_server::plugins::shared::apply_events_job (cyclomatic 16) zellij-server/src/plugins/shared.rs:435— zellij_server::plugins::shared::apply_events_job 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.
zellij_server::plugins::shared::start_instance_job (cyclomatic 16) zellij-server/src/plugins/shared.rs:776— zellij_server::plugins::shared::start_instance_job has cyclomatic complexity 16 (threshold 15). 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.
Duplicated block (5 lines × 2) default-plugins/about/src/main.rs:458— default-plugins/about/src/main.rs:458-462 | default-plugins/share/src/main.rs:378-383 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) default-plugins/bars/src/status_bar/one_line_ui.rs:83— default-plugins/bars/src/status_bar/one_line_ui.rs:83-87 | default-plugins/bars/src/status_bar/one_line_ui.rs:339-343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) default-plugins/bars/src/status_bar/tip/data/use_mouse.rs:27— default-plugins/bars/src/status_bar/tip/data/use_mouse.rs:27-31 | default-plugins/bars/src/status_bar/tip/data/use_mouse.rs:37-41 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) default-plugins/configuration/src/list_editor.rs:301— default-plugins/configuration/src/list_editor.rs:301-305 | default-plugins/configuration/src/list_editor.rs:376-380 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-server/src/background_jobs.rs:1197— zellij-server/src/background_jobs.rs:1197-1201 | zellij-server/src/background_jobs.rs:1206-1210 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-server/src/output/mod.rs:2607— zellij-server/src/output/mod.rs:2607-2611 | zellij-server/src/output/mod.rs:2626-2630 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-server/src/plugins/plugin_loader.rs:333— zellij-server/src/plugins/plugin_loader.rs:333-337 | zellij-server/src/plugins/plugin_loader.rs:446-450 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-server/src/plugins/wasm_bridge.rs:3043— zellij-server/src/plugins/wasm_bridge.rs:3043-3047 | zellij-server/src/plugins/wasm_bridge.rs:3062-3066 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-server/src/screen.rs:7228— zellij-server/src/screen.rs:7228-7232 | zellij-server/src/screen.rs:14340-14344 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-server/src/ui/boundaries.rs:578— zellij-server/src/ui/boundaries.rs:578-582 | zellij-server/src/ui/boundaries.rs:648-652 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-tile/src/shim.rs:3505— zellij-tile/src/shim.rs:3505-3509 | zellij-tile/src/shim.rs:3528-3532 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-window/src/renderer.rs:814— zellij-window/src/renderer.rs:814-818 | zellij-window/src/renderer.rs:1048-1052 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-window/src/renderer.rs:846— zellij-window/src/renderer.rs:846-850 | zellij-window/src/renderer.rs:870-874 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) default-plugins/bars/src/timers.rs:28— default-plugins/bars/src/timers.rs:28-32 | default-plugins/session-manager/src/timers.rs:17-21 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) default-plugins/configuration/src/keybindings_screen.rs:856— default-plugins/configuration/src/keybindings_screen.rs:856-860 | default-plugins/configuration/src/mousebindings_screen.rs:1175-1179 — before extracting anything, compare `default-plugins/configuration/src/keybindings_screen.rs` and `default-plugins/configuration/src/mousebindings_screen.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) default-plugins/configuration/src/keybindings_screen.rs:890— default-plugins/configuration/src/keybindings_screen.rs:890-894 | default-plugins/configuration/src/mousebindings_screen.rs:1200-1204 — before extracting anything, compare `default-plugins/configuration/src/keybindings_screen.rs` and `default-plugins/configuration/src/mousebindings_screen.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) zellij-utils/src/input/web_client.rs:360— zellij-utils/src/input/web_client.rs:360-365 | zellij-utils/src/input/window.rs:670-674 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) zellij-utils/src/input/window.rs:694— zellij-utils/src/input/window.rs:694-698 | zellij-utils/src/input/window.rs:746-750 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-utils/src/desktop_integration/platform.rs:367— zellij-utils/src/desktop_integration/platform.rs:367-371 | zellij-window/src/app/state.rs:31-35 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) default-plugins/bars/src/status_bar/tip/data/move_tabs.rs:28— default-plugins/bars/src/status_bar/tip/data/move_tabs.rs:28-32 | default-plugins/bars/src/status_bar/tip/data/move_tabs.rs:42-46 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) default-plugins/bars/src/status_bar/first_line.rs:128— default-plugins/bars/src/status_bar/first_line.rs:128-132 | default-plugins/bars/src/status_bar/first_line.rs:181-185 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-server/src/panes/kitty_graphics/grid_state.rs:1123— zellij-server/src/panes/kitty_graphics/grid_state.rs:1123-1127 | zellij-server/src/panes/kitty_graphics/grid_state.rs:1128-1132 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) zellij-window/src/app/instance.rs:75— zellij-window/src/app/instance.rs:75-79 | zellij-window/src/app/watcher.rs:259-263 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) default-plugins/bars/src/status_bar/mod.rs:922— default-plugins/bars/src/status_bar/mod.rs:922-934 | default-plugins/bars/src/status_bar/one_line_ui.rs:1942-1954 — before extracting anything, compare `default-plugins/bars/src/status_bar/mod.rs` and `default-plugins/bars/src/status_bar/one_line_ui.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) default-plugins/configuration/src/keybindings_screen.rs:717— default-plugins/configuration/src/keybindings_screen.rs:717-729 | default-plugins/configuration/src/mousebindings_screen.rs:1034-1046 — before extracting anything, compare `default-plugins/configuration/src/keybindings_screen.rs` and `default-plugins/configuration/src/mousebindings_screen.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) default-plugins/session-manager/src/new_session_info.rs:346— default-plugins/session-manager/src/new_session_info.rs:346-358 | default-plugins/session-manager/src/resurrectable_sessions.rs:142-154 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) zellij-client/src/lib.rs:949— zellij-client/src/lib.rs:949-961 | zellij-client/src/lib.rs:1276-1288 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/output/mod.rs:176— zellij-server/src/output/mod.rs:176-188 | zellij-server/src/output/mod.rs:848-860 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/output/mod.rs:3398— zellij-server/src/output/mod.rs:3398-3410 | zellij-server/src/output/mod.rs:3421-3433 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/panes/plugin_pane.rs:933— zellij-server/src/panes/plugin_pane.rs:933-945 | zellij-server/src/panes/terminal_pane.rs:1405-1417 — before extracting anything, compare `zellij-server/src/panes/plugin_pane.rs` and `zellij-server/src/panes/terminal_pane.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:760— zellij-server/src/panes/tiled_panes/mod.rs:760-772 | zellij-server/src/panes/tiled_panes/mod.rs:789-801 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:1904— zellij-server/src/panes/tiled_panes/mod.rs:1904-1916 | zellij-server/src/panes/tiled_panes/mod.rs:1997-2009 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:231— zellij-server/src/panes/tiled_panes/stacked_panes.rs:231-243 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:248-260 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1863— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1863-1875 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1949-1961 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/screen.rs:6260— zellij-server/src/screen.rs:6260-6272 | zellij-server/src/screen.rs:6284-6296 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/screen.rs:8304— zellij-server/src/screen.rs:8304-8316 | zellij-server/src/screen.rs:8345-8357 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/tab/mod.rs:1079— zellij-server/src/tab/mod.rs:1079-1091 | zellij-server/src/tab/mod.rs:1095-1107 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-server/src/ui/pane_boundaries_frame.rs:1167— zellij-server/src/ui/pane_boundaries_frame.rs:1167-1179 | zellij-server/src/ui/pane_boundaries_frame.rs:1201-1213 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-tile/src/shim.rs:2249— zellij-tile/src/shim.rs:2249-2261 | zellij-tile/src/shim.rs:2267-2279 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) zellij-utils/src/kdl/mod.rs:3654— zellij-utils/src/kdl/mod.rs:3654-3666 | zellij-utils/src/kdl/mod.rs:3682-3694 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) default-plugins/configuration/src/keybindings_screen.rs:653— default-plugins/configuration/src/keybindings_screen.rs:653-665 | default-plugins/configuration/src/mousebindings_screen.rs:981-993 — before extracting anything, compare `default-plugins/configuration/src/keybindings_screen.rs` and `default-plugins/configuration/src/mousebindings_screen.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) default-plugins/fixture-plugin-for-tests/src/main.rs:1000— default-plugins/fixture-plugin-for-tests/src/main.rs:1000-1012 | default-plugins/fixture-plugin-for-tests/src/main.rs:1015-1027 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
FixmeComment zellij-utils/src/data.rs:904— // FIXME: This should be extended to handle different button clicks (not just — 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.
FixmeComment zellij-utils/src/data.rs:2668— // FIXME: Poor devs hashtable since HashTable can't derive `Default`... — 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.
FixmeComment zellij-utils/src/errors.rs:212— // FIXME: Just deriving EnumDiscriminants from strum will remove the need for any of this!!! — 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.
FixmeComment zellij-utils/src/pane_size.rs:461— // FIXME: This should be top and left, not bottom and right, but `boundaries.rs` would need — 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.
FixmeComment zellij-utils/src/input/mod.rs:97— // FIXME: This is an absolutely cursed function that should be destroyed as soon — 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.
FixmeComment zellij-server/src/os_input_output.rs:288— // FIXME(hartan): This queue is responsible for buffering messages between server and — 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.
FixmeComment zellij-server/src/terminal_bytes.rs:86— // FIXME: Ideally we detect whether the application is being quit and only ignore the error — 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.
FixmeComment zellij-server/src/tab/mod.rs:156— // FIXME: This should be replaced by `RESIZE_PERCENT` at some point — 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.
FixmeComment zellij-server/src/tab/mod.rs:362— // FIXME: Use a struct that has a pane_type enum, to reduce all of the duplication — 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.
FixmeComment zellij-server/src/tab/mod.rs:1002— // FIXME: Still too many arguments for clippy to be happy... — 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.
FixmeComment zellij-server/src/plugins/wasm_bridge.rs:1139— // FIXME: This is very janky... Maybe I should write my own macro for Event -> EventType? — 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.
FixmeComment zellij-server/src/plugins/zellij_exports.rs:3247— // FIXME: The way that elapsed time is being calculated here is not exact; it doesn't take into account the — 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.
FixmeComment zellij-server/src/panes/grid.rs:2652— // FIXME: this should add an empty line with the pad_character — 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.
FixmeComment zellij-server/src/panes/plugin_pane.rs:187— // FIXME: These position and size things should all be moved to default trait implementations, — 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.
FixmeComment zellij-server/src/panes/terminal_pane.rs:96— // FIXME: Drop the trait object, make this a wrapper for the struct? — 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.
FixmeComment zellij-server/src/panes/terminal_pane.rs:129— // FIXME: This should hold an os_api handle so that terminal panes can set their own size via FD in — 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.
FixmeComment zellij-server/src/panes/tiled_panes/pane_resizer.rs:19— // FIXME: Just hold a mutable Pane reference instead of the PaneId, fixed, pos, and size? — 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.
FixmeComment zellij-server/src/panes/tiled_panes/pane_resizer.rs:235— // FIXME: Functions like this should have unit tests! — 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.
Swallowed exception (empty catch) zellij-client/assets/app.js:586— 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) zellij-client/assets/app.js:762— 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) zellij-client/assets/app.js:1103— 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) zellij-client/assets/app.js:1138— 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) zellij-client/assets/app.js:1205— 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) zellij-client/assets/app.js:1720— 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) zellij-client/assets/app.js:1740— 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) zellij-client/assets/app.js:1827— 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) zellij-client/assets/app.js:3056— 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) zellij-client/assets/mobile-pan.js:24— 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) zellij-client/assets/mobile-ui.js:93— 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) zellij-client/assets/mobile-ui.js:113— 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) zellij-client/assets/mobile-ui.js:200— 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) zellij-client/assets/pinch.js:56— 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) zellij-client/assets/pinch.js:91— 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) zellij-client/assets/soft-keyboard.js:118— 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) zellij-client/assets/terminal.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) zellij-client/assets/websockets.js:25— 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.
Grid::csi_dispatch (cognitive 239) zellij-server/src/panes/grid.rs:5613— Grid::csi_dispatch has cognitive complexity 239 (threshold 15). Drivers by points: if/else 95 (165 pts), match/switch 16 (39 pts), loops 10 (27 pts), boolean chains 8 (nesting depth added 110). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Grid::osc_dispatch (cognitive 161) zellij-server/src/panes/grid.rs:5206— Grid::osc_dispatch has cognitive complexity 161 (threshold 15). Drivers by points: if/else 48 (129 pts), match/switch 6 (15 pts), loops 4 (10 pts), boolean chains 7 (nesting depth added 96). 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.
Grid::resize_and_reflow (cognitive 79) zellij-server/src/panes/grid.rs:1836— Grid::resize_and_reflow has cognitive complexity 79 (threshold 15). Drivers by points: if/else 24 (50 pts), match/switch 5 (13 pts), loops 4 (9 pts), boolean chains 7 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Grid::compute_plugin_highlight_selections (cognitive 76) zellij-server/src/panes/grid.rs:3443— Grid::compute_plugin_highlight_selections has cognitive complexity 76 (threshold 15). Drivers by points: if/else 9 (43 pts), loops 7 (28 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 56). 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.
Grid::render (cognitive 50) zellij-server/src/panes/grid.rs:2198— Grid::render has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 5 (20 pts), loops 3 (6 pts) (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.
Grid::text_in_selection (cognitive 37) zellij-server/src/panes/grid.rs:3635— Grid::text_in_selection has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 5, loops 2 (3 pts), match/switch 1 (3 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.
Grid::recompute_hover_tooltip (cognitive 35) zellij-server/src/panes/grid.rs:3391— Grid::recompute_hover_tooltip has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (20 pts), match/switch 3 (8 pts), loops 3 (6 pts), boolean chains 1 (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.
Grid::plugin_highlight_at (cognitive 27) zellij-server/src/panes/grid.rs:3300— Grid::plugin_highlight_at has cognitive complexity 27 (threshold 15). Drivers by points: if/else 3 (15 pts), loops 3 (6 pts), match/switch 1 (6 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.
Grid::osc133_command_around_position (cognitive 27) zellij-server/src/panes/grid.rs:3865— Grid::osc133_command_around_position has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 4 (6 pts), boolean chains 3, match/switch 1 (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.
Grid::attach_code_point (cognitive 25) zellij-server/src/panes/grid.rs:2797— Grid::attach_code_point has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 1, match/switch 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.
Grid::fmt (cognitive 21) zellij-server/src/panes/grid.rs:1203— Grid::fmt has cognitive complexity 21 (threshold 15). Drivers by points: loops 8 (15 pts), if/else 3 (6 pts) (nesting depth added 10). 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.
Grid::add_character_at_cursor_position (cognitive 21) zellij-server/src/panes/grid.rs:2668— Grid::add_character_at_cursor_position has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (6 pts), boolean chains 2, match/switch 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.
Grid::execute_kitty_command (cognitive 21) zellij-server/src/panes/grid.rs:4343— Grid::execute_kitty_command has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 7 (12 pts), if/else 5 (9 pts) (nesting depth added 9). 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.
Grid::last_completed_command_output (cognitive 18) zellij-server/src/panes/grid.rs:4051— Grid::last_completed_command_output has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 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.
Grid::pane_contents_with_ansi (cognitive 18) zellij-server/src/panes/grid.rs:4988— Grid::pane_contents_with_ansi has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (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.
Grid::previous_prompt_line_delta (cognitive 17) zellij-server/src/panes/grid.rs:3929— Grid::previous_prompt_line_delta has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), match/switch 1 (3 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.
Grid::search_viewport_wrap (cognitive 17) zellij-server/src/panes/search.rs:568— Grid::search_viewport_wrap has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), loops 2 (6 pts), match/switch 3 (4 pts), 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.
bars::link::expand_path (cognitive 38) default-plugins/bars/src/link/mod.rs:256— bars::link::expand_path has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 2 (6 pts), boolean chains 5, match/switch 2 (3 pts) (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.
bars::status_bar::style_key_with_modifier (cognitive 29) default-plugins/bars/src/status_bar/mod.rs:852— bars::status_bar::style_key_with_modifier has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 6). 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.
bars::tab_bar::line::tab_line (cognitive 27) default-plugins/bars/src/tab_bar/line.rs:294— bars::tab_bar::line::tab_line has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (18 pts), match/switch 4 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). 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.
bars::compact_bar::tab::render_tab (cognitive 26) default-plugins/bars/src/compact_bar/tab.rs:31— bars::compact_bar::tab::render_tab has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23 (25 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
bars::tab_bar::tab::render_tab (cognitive 26) default-plugins/bars/src/tab_bar/tab.rs:30— bars::tab_bar::tab::render_tab has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23 (25 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
bars::status_bar::one_line_ui::render_mode_key_indicators (cognitive 25) default-plugins/bars/src/status_bar/one_line_ui.rs:518— bars::status_bar::one_line_ui::render_mode_key_indicators has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 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.
bars::tab_bar::line::tab_line_prefix (cognitive 25) default-plugins/bars/src/tab_bar/line.rs:194— bars::tab_bar::line::tab_line_prefix has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (25 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.
bars::status_bar::one_line_ui::secondary_keybinds (cognitive 23) default-plugins/bars/src/status_bar/one_line_ui.rs:837— bars::status_bar::one_line_ui::secondary_keybinds has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20 (23 pts) (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.
bars::status_bar::one_line_ui::get_keys_and_hints (cognitive 23) default-plugins/bars/src/status_bar/one_line_ui.rs:1521— bars::status_bar::one_line_ui::get_keys_and_hints has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 1, 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.
bars::status_bar::second_line::get_keys_and_hints (cognitive 21) default-plugins/bars/src/status_bar/second_line.rs:89— bars::status_bar::second_line::get_keys_and_hints has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
bars::tab_bar::line::populate_tabs_in_tab_line (cognitive 21) default-plugins/bars/src/tab_bar/line.rs:31— bars::tab_bar::line::populate_tabs_in_tab_line has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, 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.
bars::status_bar::one_line_ui::style_key_with_modifier (cognitive 20) default-plugins/bars/src/status_bar/one_line_ui.rs:1915— bars::status_bar::one_line_ui::style_key_with_modifier has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (4 pts), match/switch 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.
bars::status_bar::session_hints::keys_to_action (cognitive 20) default-plugins/bars/src/status_bar/session_hints.rs:54— bars::status_bar::session_hints::keys_to_action has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 3 (6 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.
bars::status_bar::one_line_ui::one_line_ui (cognitive 18) default-plugins/bars/src/status_bar/one_line_ui.rs:22— bars::status_bar::one_line_ui::one_line_ui has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 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.
bars::double_click::is_blank (cognitive 16) default-plugins/bars/src/double_click.rs:122— bars::double_click::is_blank has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 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.
bars::status_bar::tip::data::quicknav::add_keybinds (cognitive 16) default-plugins/bars/src/status_bar/tip/data/quicknav.rs:65— bars::status_bar::tip::data::quicknav::add_keybinds has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, loops 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.
Tab::render_cursor (cognitive 36) zellij-server/src/tab/mod.rs:5591— Tab::render_cursor has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 5 (15 pts), boolean chains 5, loops 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.
Tab::extract_pane (cognitive 32) zellij-server/src/tab/mod.rs:6553— Tab::extract_pane has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 5, match/switch 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.
Tab::move_pane_by_pane_id (cognitive 31) zellij-server/src/tab/mod.rs:9200— Tab::move_pane_by_pane_id has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (30 pts), match/switch 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.
Tab::remove_stack_list_member (cognitive 28) zellij-server/src/tab/mod.rs:1525— Tab::remove_stack_list_member has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 5 (9 pts), loops 1 (4 pts) (nesting depth added 15). 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.
Tab::groupify_all (cognitive 28) zellij-server/src/tab/mod.rs:1717— Tab::groupify_all has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 4 (6 pts), match/switch 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.
Tab::close_pane (cognitive 27) zellij-server/src/tab/mod.rs:6441— Tab::close_pane has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Tab::write_to_pane_id (cognitive 26) zellij-server/src/tab/mod.rs:5059— Tab::write_to_pane_id has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (5 pts), loops 1 (3 pts), boolean chains 2 (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.
Tab::render_stack_list_headers (cognitive 24) zellij-server/src/tab/mod.rs:1827— Tab::render_stack_list_headers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 4 (8 pts), match/switch 2 (5 pts), boolean chains 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.
Tab::suppress_pane_and_replace_with_pid (cognitive 24) zellij-server/src/tab/mod.rs:3640— Tab::suppress_pane_and_replace_with_pid has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (20 pts), match/switch 3 (4 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.
Tab::render_popups (cognitive 22) zellij-server/src/tab/popup.rs:897— Tab::render_popups has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (3 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.
Tab::resize_whole_tab (cognitive 21) zellij-server/src/tab/mod.rs:5826— Tab::resize_whole_tab has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 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.
Tab::resize_pane_with_id (cognitive 21) zellij-server/src/tab/mod.rs:8554— Tab::resize_pane_with_id has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (5 pts), loops 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.
Tab::stack_panes (cognitive 21) zellij-server/src/tab/mod.rs:8875— Tab::stack_panes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (7 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.
Tab::resize (cognitive 20) zellij-server/src/tab/mod.rs:5903— Tab::resize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (5 pts), loops 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.
Tab::try_add_floating_pane (cognitive 19) zellij-server/src/tab/mod.rs:8173— Tab::try_add_floating_pane has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 pts), 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.
Tab::process_pty_bytes (cognitive 18) zellij-server/src/tab/mod.rs:4767— Tab::process_pty_bytes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (6 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.
Duplicated block (18 lines × 2) default-plugins/layout-manager/src/screens/import_layout.rs:261— default-plugins/layout-manager/src/screens/import_layout.rs:261-278 | default-plugins/layout-manager/src/screens/new_layout_from_session.rs:207-224 — before extracting anything, compare `default-plugins/layout-manager/src/screens/import_layout.rs` and `default-plugins/layout-manager/src/screens/new_layout_from_session.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) default-plugins/session-manager/src/main.rs:1332— default-plugins/session-manager/src/main.rs:1332-1349 | default-plugins/session-manager/src/main.rs:1580-1597 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) default-plugins/session-manager/src/ui/components.rs:530— default-plugins/session-manager/src/ui/components.rs:530-547 | default-plugins/session-manager/src/ui/components.rs:552-569 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/lib.rs:3963— zellij-server/src/lib.rs:3963-3980 | zellij-server/src/lib.rs:4233-4250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1746— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1746-1763 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1770-1787 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1759— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1759-1776 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1844-1861 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1930— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1930-1947 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2014-2031 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/plugins/zellij_exports.rs:2296— zellij-server/src/plugins/zellij_exports.rs:2296-2313 | zellij-server/src/plugins/zellij_exports.rs:2344-2361 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/screen.rs:8574— zellij-server/src/screen.rs:8574-8591 | zellij-server/src/screen.rs:8665-8682 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/tab/mod.rs:1994— zellij-server/src/tab/mod.rs:1994-2011 | zellij-server/src/tab/mod.rs:2089-2106 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/tab/mod.rs:3670— zellij-server/src/tab/mod.rs:3670-3687 | zellij-server/src/tab/mod.rs:4159-4176 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-server/src/tab/mod.rs:8008— zellij-server/src/tab/mod.rs:8008-8025 | zellij-server/src/tab/mod.rs:8032-8049 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:535— zellij-utils/src/kdl/kdl_layout_parser.rs:535-552 | zellij-utils/src/kdl/kdl_layout_parser.rs:558-575 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:623— zellij-utils/src/kdl/kdl_layout_parser.rs:623-640 | zellij-utils/src/kdl/kdl_layout_parser.rs:679-696 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:1523— zellij-utils/src/kdl/kdl_layout_parser.rs:1523-1540 | zellij-utils/src/kdl/kdl_layout_parser.rs:1585-1602 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) zellij-utils/src/kdl/mod.rs:1267— zellij-utils/src/kdl/mod.rs:1267-1284 | zellij-utils/src/kdl/mod.rs:1312-1329 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
State::handle_selection (cognitive 141) default-plugins/session-manager/src/main.rs:1803— State::handle_selection has cognitive complexity 141 (threshold 15). Drivers by points: if/else 57 (130 pts), match/switch 4 (11 pts) (nesting depth added 80). 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.
State::handle_event (cognitive 78) default-plugins/session-manager/src/main.rs:358— State::handle_event has cognitive complexity 78 (threshold 15). Drivers by points: if/else 27 (59 pts), boolean chains 12, loops 2 (4 pts), match/switch 2 (3 pts) (nesting depth added 35). 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.
State::render_classic (cognitive 62) default-plugins/session-manager/src/main.rs:966— State::render_classic has cognitive complexity 62 (threshold 15). Drivers by points: if/else 26 (52 pts), loops 2 (6 pts), match/switch 2 (3 pts), boolean chains 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.
State::handle_attach_to_session (cognitive 53) default-plugins/session-manager/src/main.rs:1311— State::handle_attach_to_session has cognitive complexity 53 (threshold 15). Drivers by points: if/else 20 (42 pts), match/switch 4 (11 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
State::handle_single_screen_search_key (cognitive 45) default-plugins/session-manager/src/main.rs:1543— State::handle_single_screen_search_key has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (32 pts), match/switch 6 (12 pts), boolean chains 1 (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.
State::update (cognitive 29) default-plugins/plugin-manager/src/main.rs:558— State::update has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 4 (11 pts), match/switch 2 (3 pts) (nesting depth added 18). 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.
State::handle_mouse (cognitive 24) default-plugins/session-manager/src/main.rs:3851— State::handle_mouse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (14 pts), match/switch 4 (9 pts), boolean chains 1 (nesting depth added 15). 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.
State::handle_key (cognitive 22) default-plugins/session-manager/src/main.rs:1175— State::handle_key has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, match/switch 3 (5 pts) (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.
State::handle_main_screen_key (cognitive 18) default-plugins/plugin-manager/src/main.rs:980— State::handle_main_screen_key has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 1 (nesting depth added 5). 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.
State::update_bars (cognitive 17) default-plugins/bars/src/main.rs:165— State::update_bars has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (3 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.
State::render_plugin_body (cognitive 17) default-plugins/session-manager/src/main.rs:737— State::render_plugin_body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 2 (3 pts), boolean chains 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.
State::apply_suggestions_to_list (cognitive 17) default-plugins/session-manager/src/main.rs:3037— State::apply_suggestions_to_list has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 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.
State::enter_action (cognitive 16) default-plugins/session-manager/src/main.rs:858— State::enter_action has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 2 (3 pts), boolean chains 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.
State::update (cognitive 16) default-plugins/strider/src/main.rs:65— State::update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (5 pts) (nesting depth added 8). 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.
State::open_selected_path (cognitive 16) default-plugins/strider/src/state.rs:250— State::open_selected_path has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 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.
zellij_window::sprites::lines (cognitive 94) zellij-window/src/sprites.rs:358— zellij_window::sprites::lines has cognitive complexity 94 (threshold 15). Drivers by points: if/else 24 (54 pts), match/switch 8 (26 pts), loops 4 (8 pts), boolean chains 6 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_window::client_loop::run_with_sink (cognitive 64) zellij-window/src/client_loop.rs:103— zellij_window::client_loop::run_with_sink has cognitive complexity 64 (threshold 15). Drivers by points: if/else 17 (41 pts), match/switch 7 (15 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_window::scene::build_row (cognitive 55) zellij-window/src/scene.rs:639— zellij_window::scene::build_row has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 12, loops 4 (6 pts), match/switch 2 (5 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.
zellij_window::app::icon::render (cognitive 51) zellij-window/src/app/icon.rs:226— zellij_window::app::icon::render has cognitive complexity 51 (threshold 15). Drivers by points: if/else 11 (38 pts), loops 5 (12 pts), boolean chains 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_window::remote::pump (cognitive 47) zellij-window/src/remote.rs:341— zellij_window::remote::pump has cognitive complexity 47 (threshold 15). Drivers by points: if/else 7 (28 pts), match/switch 6 (18 pts), loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_window::app::tray::linux::answer (cognitive 21) zellij-window/src/app/tray/linux.rs:298— zellij_window::app::tray::linux::answer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 1 (3 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 12). 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.
zellij_window::app::icon::label_pixels (cognitive 20) zellij-window/src/app/icon.rs:184— zellij_window::app::icon::label_pixels has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 2 (5 pts) (nesting depth added 13). 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.
zellij_window::font::downscale (cognitive 20) zellij-window/src/font.rs:1404— zellij_window::font::downscale has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 2 (5 pts) (nesting depth added 13). 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.
zellij_window::dbus::linux::read_loop (cognitive 19) zellij-window/src/dbus.rs:986— zellij_window::dbus::linux::read_loop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (4 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.
zellij_window::scene::mark_units (cognitive 19) zellij-window/src/scene.rs:852— zellij_window::scene::mark_units has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 3 (7 pts), boolean chains 3 (nesting depth added 9). 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.
zellij_window::scene::padding_rects (cognitive 19) zellij-window/src/scene.rs:1430— zellij_window::scene::padding_rects has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
zellij_window::scene::push_decorations (cognitive 19) zellij-window/src/scene.rs:1694— zellij_window::scene::push_decorations has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_window::notice::wrapped (cognitive 17) zellij-window/src/notice.rs:232— zellij_window::notice::wrapped has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 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.
zellij_window::scene::push_run (cognitive 17) zellij-window/src/scene.rs:1092— zellij_window::scene::push_run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_window::app::notifier::linux::on_signal (cognitive 16) zellij-window/src/app/notifier/linux.rs:49— zellij_window::app::notifier::linux::on_signal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, match/switch 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.
zellij_client::run_remote_client_terminal_loop (cognitive 92) zellij-client/src/lib.rs:640— zellij_client::run_remote_client_terminal_loop has cognitive complexity 92 (threshold 15). Drivers by points: if/else 13 (53 pts), match/switch 8 (24 pts), loops 4 (15 pts) (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_client::start_client (cognitive 83) zellij-client/src/lib.rs:1149— zellij_client::start_client has cognitive complexity 83 (threshold 15). Drivers by points: if/else 32 (64 pts), loops 5 (10 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_client::stdin_handler::stdin_loop (cognitive 83) zellij-client/src/stdin_handler.rs:19— zellij_client::stdin_handler::stdin_loop has cognitive complexity 83 (threshold 15). Drivers by points: if/else 21 (52 pts), loops 6 (18 pts), match/switch 4 (12 pts), boolean chains 1 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_client::cli_client::plan_prompt (cognitive 81) zellij-client/src/cli_client.rs:500— zellij_client::cli_client::plan_prompt has cognitive complexity 81 (threshold 15). Drivers by points: if/else 37 (70 pts), match/switch 4 (10 pts), boolean chains 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij_client::web_client::server_listener::zellij_server_listener (cognitive 65) zellij-client/src/web_client/server_listener.rs:27— zellij_client::web_client::server_listener::zellij_server_listener has cognitive complexity 65 (threshold 15). Drivers by points: if/else 17 (46 pts), loops 5 (14 pts), match/switch 2 (4 pts), boolean chains 1 (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.
zellij_client::cli_client::drive_streaming_pipe (cognitive 31) zellij-client/src/cli_client.rs:244— zellij_client::cli_client::drive_streaming_pipe has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (20 pts), match/switch 3 (7 pts), loops 3, boolean chains 1 (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.
zellij_client::cli_client::start_subscribe_client (cognitive 28) zellij-client/src/cli_client.rs:786— zellij_client::cli_client::start_subscribe_client has cognitive complexity 28 (threshold 15). Drivers by points: loops 4 (13 pts), match/switch 3 (8 pts), if/else 2 (7 pts) (nesting depth added 19). 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.
zellij_client::web_client::websocket_handlers::handle_ws_terminal (cognitive 26) zellij-client/src/web_client/websocket_handlers.rs:214— zellij_client::web_client::websocket_handlers::handle_ws_terminal has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 6 (11 pts), boolean chains 2, 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.
zellij_client::stdin_handler_windows::native_console_stdin_loop (cognitive 22) zellij-client/src/stdin_handler_windows.rs:94— zellij_client::stdin_handler_windows::native_console_stdin_loop has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (19 pts), match/switch 1 (2 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.
zellij_client::web_client::message_handlers::render_to_client (cognitive 20) zellij-client/src/web_client/message_handlers.rs:153— zellij_client::web_client::message_handlers::render_to_client has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (5 pts), 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.
zellij_client::web_client::websocket_handlers::handle_ws_control (cognitive 20) zellij-client/src/web_client/websocket_handlers.rs:115— zellij_client::web_client::websocket_handlers::handle_ws_control has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 5 (13 pts), if/else 3 (6 pts), loops 1 (nesting depth added 11). 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.
zellij_client::input_handler::from_termwiz (cognitive 17) zellij-client/src/input_handler.rs:63— zellij_client::input_handler::from_termwiz has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 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.
zellij_client::remote_attach::authenticate_with_retry (cognitive 17) zellij-client/src/remote_attach/mod.rs:135— zellij_client::remote_attach::authenticate_with_retry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 3 (7 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.
zellij_client::web_client::daemonize_web_server (cognitive 17) zellij-client/src/web_client/mod.rs:316— zellij_client::web_client::daemonize_web_server has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 4 (8 pts) (nesting depth added 8). 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.
TooManyFields: Screen zellij-server/src/screen.rs:1990— TooManyFields — 156 stored fields beside 418 methods. The bar is 30 stored fields; this is 126 over it, 5.20× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: Tab zellij-server/src/tab/mod.rs:256— TooManyFields — 96 stored fields beside 436 methods. The bar is 30 stored fields; this is 66 over it, 3.20× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: Grid zellij-server/src/panes/grid.rs:934— TooManyFields — 83 stored fields beside 201 methods. The bar is 30 stored fields; this is 53 over it, 2.77× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: Options zellij-utils/src/input/options.rs:177— TooManyFields — 72 stored fields beside 4 methods. The bar is 30 stored fields; this is 42 over it, 2.40× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: App zellij-window/src/window.rs:216— TooManyFields — 56 stored fields beside 120 methods. The bar is 30 stored fields; this is 26 over it, 1.87× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: WindowConfig zellij-utils/src/input/window.rs:461— TooManyFields — 48 stored fields beside 3 methods. The bar is 30 stored fields; this is 18 over it, 1.60× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: WasmBridge zellij-server/src/plugins/wasm_bridge.rs:273— TooManyFields — 42 stored fields beside 90 methods. The bar is 30 stored fields; this is 12 over it, 1.40× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: State default-plugins/session-manager/src/main.rs:55— TooManyFields — 41 stored fields beside 124 methods. The bar is 30 stored fields; this is 11 over it, 1.37× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: TerminalPane zellij-server/src/panes/terminal_pane.rs:132— TooManyFields — 39 stored fields beside 20 methods. The bar is 30 stored fields; this is 9 over it, 1.30× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: SettingsScreen default-plugins/configuration/src/settings_screen.rs:97— TooManyFields — 36 stored fields beside 111 methods. The bar is 30 stored fields; this is 6 over it, 1.20× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: Inbox default-plugins/session-manager/src/inbox.rs:317— TooManyFields — 36 stored fields beside 92 methods. The bar is 30 stored fields; this is 6 over it, 1.20× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: PluginPane zellij-server/src/panes/plugin_pane.rs:80— TooManyFields — 36 stored fields beside 5 methods. The bar is 30 stored fields; this is 6 over it, 1.20× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: PaneFrame zellij-server/src/ui/pane_boundaries_frame.rs:116— TooManyFields — 32 stored fields beside 62 methods. The bar is 30 stored fields; this is 2 over it, 1.07× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: Options zellij-window/src/options.rs:18— TooManyFields — 32 stored fields. The bar is 30 stored fields; this is 2 over it, 1.07× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
Duplicated block (19 lines × 2) default-plugins/bars/src/compact_bar/tab.rs:118— default-plugins/bars/src/compact_bar/tab.rs:118-136 | default-plugins/bars/src/tab_bar/tab.rs:119-137 — `default-plugins/bars/src/compact_bar/tab.rs` and `default-plugins/bars/src/tab_bar/tab.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (19 lines × 2) default-plugins/bars/src/status_bar/first_line.rs:465— default-plugins/bars/src/status_bar/first_line.rs:465-483 | default-plugins/bars/src/status_bar/one_line_ui.rs:731-749 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (19 lines × 2) zellij-server/src/panes/kitty_graphics/grid_state.rs:970— zellij-server/src/panes/kitty_graphics/grid_state.rs:970-988 | zellij-server/src/panes/sixel.rs:350-368 — before extracting anything, compare `zellij-server/src/panes/kitty_graphics/grid_state.rs` and `zellij-server/src/panes/sixel.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:40— zellij-server/src/panes/tiled_panes/stacked_panes.rs:40-58 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:77-95 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1830— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1830-1848 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1855-1873 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1916— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1916-1934 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1941-1959 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-server/src/screen.rs:14217— zellij-server/src/screen.rs:14217-14235 | zellij-server/src/screen.rs:14833-14851 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-server/src/session_layout_metadata.rs:66— zellij-server/src/session_layout_metadata.rs:66-84 | zellij-server/src/session_layout_metadata.rs:89-107 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-server/src/tab/mod.rs:3934— zellij-server/src/tab/mod.rs:3934-3952 | zellij-server/src/tab/mod.rs:4027-4045 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-utils/src/data.rs:2993— zellij-utils/src/data.rs:2993-3011 | zellij-utils/src/data.rs:3031-3049 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-utils/src/input/config_blocks.rs:401— zellij-utils/src/input/config_blocks.rs:401-419 | zellij-utils/src/input/config_blocks.rs:1029-1047 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-utils/src/input/config_file_edit.rs:723— zellij-utils/src/input/config_file_edit.rs:723-741 | zellij-utils/src/input/config_file_edit.rs:1411-1429 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:2034— zellij-utils/src/kdl/kdl_layout_parser.rs:2034-2052 | zellij-utils/src/kdl/kdl_layout_parser.rs:2080-2098 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) zellij-integration-tests/src/client_screen.rs:182— zellij-integration-tests/src/client_screen.rs:182-200 | zellij-integration-tests/src/client_screen.rs:227-245 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
zellij_utils::input::not_wasm::cast_crossterm_key (cyclomatic 60) zellij-utils/src/input/mod.rs:348— zellij_utils::input::not_wasm::cast_crossterm_key has cyclomatic complexity 60 (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.
zellij_utils::prompt::parse_field (cyclomatic 38) zellij-utils/src/prompt.rs:361— zellij_utils::prompt::parse_field 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.
zellij_utils::input::config_file_edit::desired_menu_statements (cyclomatic 33) zellij-utils/src/input/config_file_edit.rs:1816— zellij_utils::input::config_file_edit::desired_menu_statements 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.
zellij_utils::input::config::watch_config_file_changes (cyclomatic 28) zellij-utils/src/input/config.rs:479— zellij_utils::input::config::watch_config_file_changes has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body's own statements and 5 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.
zellij_utils::input::not_wasm::cast_termwiz_key (cyclomatic 25) zellij-utils/src/input/mod.rs:99— zellij_utils::input::not_wasm::cast_termwiz_key has cyclomatic complexity 25 (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.
zellij_utils::prompt::parse_request (cyclomatic 25) zellij-utils/src/prompt.rs:1373— zellij_utils::prompt::parse_request 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.
zellij_utils::structured_render::decode (cyclomatic 23) zellij-utils/src/structured_render.rs:1355— zellij_utils::structured_render::decode 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.
zellij_utils::input::layout::split_space (cyclomatic 22) zellij-utils/src/input/layout.rs:1877— zellij_utils::input::layout::split_space 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.
zellij_utils::kdl::parse_bind_blocks (cyclomatic 20) zellij-utils/src/kdl/mod.rs:5906— zellij_utils::kdl::parse_bind_blocks has cyclomatic complexity 20 (threshold 15). 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. This is NOT this file's highest cyclomatic complexity: zellij_utils::kdl::action_without_arguments (cyclomatic 68) 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 function is counted neither in this dimension's figures nor in its score.
zellij_utils::input::config_file_edit::list_edits (cyclomatic 19) zellij-utils/src/input/config_file_edit.rs:134— zellij_utils::input::config_file_edit::list_edits 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.
zellij_utils::input::config::watch_keybinds_dir_changes (cyclomatic 18) zellij-utils/src/input/config.rs:770— zellij_utils::input::config::watch_keybinds_dir_changes 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.
zellij_utils::input::config_file_edit::edit_plugin_children (cyclomatic 18) zellij-utils/src/input/config_file_edit.rs:1526— zellij_utils::input::config_file_edit::edit_plugin_children 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.
zellij_utils::input::config_file_edit::apply_theme_colours (cyclomatic 17) zellij-utils/src/input/config_file_edit.rs:2139— zellij_utils::input::config_file_edit::apply_theme_colours 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.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×12
Members sharing a duplicated core (4 members, 50+ identical tokens) default-plugins/bars/src/status_bar/tip/data/compact_layout.rs:74— default-plugins/bars/src/status_bar/tip/data/compact_layout.rs:74-104 | default-plugins/bars/src/status_bar/tip/data/edit_scrollbuffer.rs:64-94 | default-plugins/bars/src/status_bar/tip/data/floating_panes_mouse.rs:46-76 | default-plugins/bars/src/status_bar/tip/data/sync_tab.rs:45-75 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) src/commands.rs:320— src/commands.rs:320-346 | src/commands.rs:709-985 | src/commands.rs:995-1013 | src/commands.rs:1015-1053 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:414— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:414-429 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:431-446 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:448-463 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:465-480 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:752— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:752-773 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:774-797 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:884-901 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:903-922 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/panes/floating_panes/mod.rs:1140— zellij-server/src/panes/floating_panes/mod.rs:1140-1159 | zellij-server/src/panes/floating_panes/mod.rs:1166-1185 | zellij-server/src/panes/floating_panes/mod.rs:1192-1211 | zellij-server/src/panes/floating_panes/mod.rs:1218-1237 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/panes/tiled_panes/mod.rs:1705— zellij-server/src/panes/tiled_panes/mod.rs:1705-1734 | zellij-server/src/panes/tiled_panes/mod.rs:1735-1764 | zellij-server/src/panes/tiled_panes/mod.rs:1765-1794 | zellij-server/src/panes/tiled_panes/mod.rs:1795-1824 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/panes/tiled_panes/mod.rs:2278— zellij-server/src/panes/tiled_panes/mod.rs:2278-2304 | zellij-server/src/panes/tiled_panes/mod.rs:2310-2342 | zellij-server/src/panes/tiled_panes/mod.rs:2343-2375 | zellij-server/src/panes/tiled_panes/mod.rs:2464-2496 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:565— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:565-584 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:585-602 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:603-620 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:621-640 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1459— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1459-1478 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1589-1608 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1609-1628 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1629-1648 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/plugins/zellij_exports.rs:2294— zellij-server/src/plugins/zellij_exports.rs:2294-2332 | zellij-server/src/plugins/zellij_exports.rs:2339-2380 | zellij-server/src/plugins/zellij_exports.rs:2387-2421 | zellij-server/src/plugins/zellij_exports.rs:2831-2863 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-server/src/plugins/zellij_exports.rs:5667— zellij-server/src/plugins/zellij_exports.rs:5667-5717 | zellij-server/src/plugins/zellij_exports.rs:5752-5776 | zellij-server/src/plugins/zellij_exports.rs:5782-5819 | zellij-server/src/plugins/zellij_exports.rs:5839-5899 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) zellij-utils/src/input/window.rs:947— zellij-utils/src/input/window.rs:947-968 | zellij-utils/src/input/window.rs:970-983 | zellij-utils/src/input/window.rs:1185-1206 | zellij-utils/src/input/window.rs:1208-1232 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
State::handle_event (cyclomatic 67) default-plugins/session-manager/src/main.rs:358— State::handle_event has cyclomatic complexity 67 (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.
State::handle_selection (cyclomatic 48) default-plugins/session-manager/src/main.rs:1803— State::handle_selection has cyclomatic complexity 48 (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.
State::handle_single_screen_search_key (cyclomatic 43) default-plugins/session-manager/src/main.rs:1543— State::handle_single_screen_search_key has cyclomatic complexity 43 (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.
State::handle_attach_to_session (cyclomatic 36) default-plugins/session-manager/src/main.rs:1311— State::handle_attach_to_session has cyclomatic complexity 36 (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.
State::render_classic (cyclomatic 25) default-plugins/session-manager/src/main.rs:966— State::render_classic 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.
State::handle_key (cyclomatic 23) default-plugins/session-manager/src/main.rs:1175— State::handle_key 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.
State::update (cyclomatic 23) default-plugins/strider/src/main.rs:65— State::update has cyclomatic complexity 23 (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.
State::handle_manager_key (cyclomatic 21) default-plugins/session-manager/src/main.rs:3203— State::handle_manager_key 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.
State::handle_mouse (cyclomatic 20) default-plugins/session-manager/src/main.rs:3851— State::handle_mouse has cyclomatic complexity 20 (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: State::handle_inbox_key (cyclomatic 21) 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 function is counted neither in this dimension's figures nor in its score.
State::handle_main_screen_key (cyclomatic 19) default-plugins/plugin-manager/src/main.rs:980— State::handle_main_screen_key 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.
State::render_plugin_body (cyclomatic 16) default-plugins/session-manager/src/main.rs:737— State::render_plugin_body 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. This is NOT this file's highest cyclomatic complexity: State::handle_inbox_key (cyclomatic 21) 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 function is counted neither in this dimension's figures nor in its score.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:3761— // │xxx│xxx│xxx│xxx│ │xxx│xxx│xxx│xxx│ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:4071— // │xxx│xxx│xxx│xxx│ │xxx│xxx│xxx│xxx│ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:3762— // ├───┤xxx│xxx├───┤ ├───┤xxx│xxx├───┤ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:4070— // ├───┤xxx│xxx├───┤ ├───┤xxx│xxx├───┤ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:3763— // │xxx├───┴───┤xxx│ ==close==> │xxx│xxx│xxx│xxx│ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:3764— // │xxx│███████│xxx│ │xxx│xxx│xxx│xxx│ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:3765— // │xxx│███████│xxx│ │xxx│xxx│xxx│xxx│ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:4067— // │xxx│███████│xxx│ │xxx│xxx│xxx│xxx│ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:4068— // │xxx│███████│xxx│ │xxx│xxx│xxx│xxx│ — 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.
XxxComment zellij-server/src/tab/unit/tab_tests.rs:4069— // │xxx├───┬───┤xxx│ ==close==> │xxx│xxx│xxx│xxx│ — 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.
SettingsScreen::route_mouse (cognitive 73) default-plugins/configuration/src/settings_screen.rs:1645— SettingsScreen::route_mouse has cognitive complexity 73 (threshold 15). Drivers by points: if/else 20 (54 pts), match/switch 6 (11 pts), boolean chains 8 (nesting depth added 39). 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.
SettingsScreen::sync_elements (cognitive 40) default-plugins/configuration/src/settings_screen.rs:725— SettingsScreen::sync_elements has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (35 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SettingsScreen::handle_content_key (cognitive 35) default-plugins/configuration/src/settings_screen.rs:1381— SettingsScreen::handle_content_key has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 3 (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.
SettingsScreen::rebuild_rows (cognitive 30) default-plugins/configuration/src/settings_screen.rs:439— SettingsScreen::rebuild_rows has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SettingsScreen::render (cognitive 27) default-plugins/configuration/src/settings_screen.rs:1820— SettingsScreen::render has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20 (22 pts), boolean chains 3, match/switch 1 (2 pts) (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.
SettingsScreen::handle_keys_category_mouse (cognitive 26) default-plugins/configuration/src/settings_screen.rs:1981— SettingsScreen::handle_keys_category_mouse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 10, match/switch 4 (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.
SettingsScreen::handle_key_inner (cognitive 24) default-plugins/configuration/src/settings_screen.rs:1172— SettingsScreen::handle_key_inner has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 7, 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.
SettingsScreen::handle_element_response (cognitive 22) default-plugins/configuration/src/settings_screen.rs:1470— SettingsScreen::handle_element_response has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 1, match/switch 1 (nesting depth added 9). 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.
SettingsScreen::render_content (cognitive 22) default-plugins/configuration/src/settings_screen.rs:2292— SettingsScreen::render_content has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, match/switch 1 (2 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.
SettingsScreen::render_setting_row (cognitive 22) default-plugins/configuration/src/settings_screen.rs:2373— SettingsScreen::render_setting_row has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 2 (3 pts), boolean chains 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.
WasmBridge::apply_cached_events_and_resizes_for_plugin (cognitive 57) zellij-server/src/plugins/wasm_bridge.rs:1926— WasmBridge::apply_cached_events_and_resizes_for_plugin has cognitive complexity 57 (threshold 15). Drivers by points: if/else 7 (27 pts), match/switch 4 (24 pts), loops 2 (6 pts) (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
WasmBridge::update_plugins (cognitive 48) zellij-server/src/plugins/wasm_bridge.rs:1101— WasmBridge::update_plugins has cognitive complexity 48 (threshold 15). Drivers by points: if/else 9 (32 pts), loops 5 (7 pts), match/switch 1 (5 pts), boolean chains 4 (nesting depth added 29). 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.
WasmBridge::pipe_messages (cognitive 35) zellij-server/src/plugins/wasm_bridge.rs:1400— WasmBridge::pipe_messages has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (20 pts), loops 4 (10 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
WasmBridge::load_plugin_with_kind (cognitive 25) zellij-server/src/plugins/wasm_bridge.rs:408— WasmBridge::load_plugin_with_kind has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 5 (11 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.
WasmBridge::get_or_load_plugins (cognitive 22) zellij-server/src/plugins/wasm_bridge.rs:2280— WasmBridge::get_or_load_plugins has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 2 (4 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.
WasmBridge::dispatch_shared_pipes (cognitive 22) zellij-server/src/plugins/wasm_bridge.rs:3213— WasmBridge::dispatch_shared_pipes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (5 pts), loops 3 (4 pts), boolean chains 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.
WasmBridge::reconfigure (cognitive 21) zellij-server/src/plugins/wasm_bridge.rs:1827— WasmBridge::reconfigure has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (4 pts), boolean chains 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.
WasmBridge::resize_plugin (cognitive 20) zellij-server/src/plugins/wasm_bridge.rs:991— WasmBridge::resize_plugin has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 1 (5 pts), loops 2, boolean chains 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.
WasmBridge::unload_plugin (cognitive 19) zellij-server/src/plugins/wasm_bridge.rs:652— WasmBridge::unload_plugin has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), match/switch 1 (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.
WasmBridge::dispatch_shared_updates (cognitive 16) zellij-server/src/plugins/wasm_bridge.rs:3163— WasmBridge::dispatch_shared_updates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 3 (5 pts), match/switch 2 (5 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.
Duplicated block (15 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:655— zellij-server/src/panes/tiled_panes/stacked_panes.rs:655-669 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:730-744 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:1177— zellij-server/src/panes/tiled_panes/stacked_panes.rs:1177-1191 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:1220-1234 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) zellij-server/src/plugins/wasm_bridge.rs:617— zellij-server/src/plugins/wasm_bridge.rs:617-633 | zellij-server/src/plugins/wasm_bridge.rs:840-854 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) zellij-server/src/plugins/zellij_exports.rs:4542— zellij-server/src/plugins/zellij_exports.rs:4542-4556 | zellij-utils/src/sessions.rs:412-426 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (15 lines × 2) zellij-server/src/pty.rs:349— zellij-server/src/pty.rs:349-363 | zellij-server/src/pty.rs:445-459 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) zellij-server/src/screen.rs:11410— zellij-server/src/screen.rs:11410-11424 | zellij-server/src/screen.rs:11438-11452 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) zellij-server/src/screen.rs:11508— zellij-server/src/screen.rs:11508-11522 | zellij-server/src/screen.rs:11536-11550 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) zellij-server/src/screen.rs:13524— zellij-server/src/screen.rs:13524-13538 | zellij-server/src/screen.rs:13570-13584 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) zellij-utils/src/input/layout.rs:1387— zellij-utils/src/input/layout.rs:1387-1401 | zellij-utils/src/input/layout.rs:1430-1444 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) zellij-window/src/discovery.rs:270— zellij-window/src/discovery.rs:270-284 | zellij-window/src/discovery.rs:359-373 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 3) default-plugins/session-manager/src/main.rs:1250— default-plugins/session-manager/src/main.rs:1250-1259 | default-plugins/session-manager/src/main.rs:1493-1502 | default-plugins/session-manager/src/main.rs:1747-1756 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) zellij-client/src/lib.rs:1220— zellij-client/src/lib.rs:1220-1229 | zellij-server/src/lib.rs:5532-5541 | zellij-utils/src/shared.rs:294-303 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (10 lines × 3) zellij-server/src/panes/grid.rs:5702— zellij-server/src/panes/grid.rs:5702-5711 | zellij-server/src/panes/grid.rs:5806-5815 | zellij-server/src/panes/grid.rs:5923-5932 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) zellij-server/src/panes/tiled_panes/mod.rs:2175— zellij-server/src/panes/tiled_panes/mod.rs:2175-2184 | zellij-server/src/panes/tiled_panes/mod.rs:2211-2220 | zellij-server/src/panes/tiled_panes/mod.rs:2572-2581 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) zellij-server/src/plugins/zellij_exports.rs:1785— zellij-server/src/plugins/zellij_exports.rs:1785-1794 | zellij-server/src/plugins/zellij_exports.rs:1839-1848 | zellij-server/src/plugins/zellij_exports.rs:1932-1941 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) zellij-utils/src/kdl/mod.rs:1087— zellij-utils/src/kdl/mod.rs:1087-1096 | zellij-utils/src/kdl/mod.rs:1136-1145 | zellij-utils/src/kdl/mod.rs:1177-1186 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) zellij-utils/src/kdl/mod.rs:1287— zellij-utils/src/kdl/mod.rs:1287-1296 | zellij-utils/src/kdl/mod.rs:1341-1350 | zellij-utils/src/kdl/mod.rs:1457-1466 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) zellij-tile/src/ui_components/ribbon.rs:39— zellij-tile/src/ui_components/ribbon.rs:39-49 | zellij-tile/src/ui_components/table.rs:75-84 | zellij-tile/src/ui_components/text.rs:575-584 — before extracting anything, compare `zellij-tile/src/ui_components/table.rs` and `zellij-tile/src/ui_components/text.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) zellij-utils/src/kdl/mod.rs:4082— zellij-utils/src/kdl/mod.rs:4082-4091 | zellij-utils/src/kdl/mod.rs:4183-4192 | zellij-utils/src/kdl/mod.rs:4716-4725 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) zellij-utils/src/kdl/mod.rs:742— zellij-utils/src/kdl/mod.rs:742-751 | zellij-utils/src/kdl/mod.rs:753-762 | zellij-utils/src/kdl/mod.rs:934-943 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) default-plugins/bars/src/status_bar/tip/data/move_tabs.rs:34— default-plugins/bars/src/status_bar/tip/data/move_tabs.rs:34-39 | default-plugins/bars/src/status_bar/tip/data/move_tabs.rs:48-53 | default-plugins/bars/src/status_bar/tip/data/move_tabs.rs:61-66 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) zellij-server/src/panes/nested_session_modal.rs:290— zellij-server/src/panes/nested_session_modal.rs:290-295 | zellij-server/src/panes/nested_session_modal.rs:305-310 | zellij-server/src/panes/nested_session_modal.rs:315-320 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) zellij-server/src/ui/pane_boundaries_frame.rs:730— zellij-server/src/ui/pane_boundaries_frame.rs:730-735 | zellij-server/src/ui/pane_boundaries_frame.rs:752-757 | zellij-server/src/ui/pane_boundaries_frame.rs:769-774 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) zellij-utils/src/kdl/mod.rs:1114— zellij-utils/src/kdl/mod.rs:1114-1119 | zellij-utils/src/kdl/mod.rs:1161-1166 | zellij-utils/src/kdl/mod.rs:1204-1209 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) zellij-utils/src/kdl/mod.rs:1649— zellij-utils/src/kdl/mod.rs:1649-1654 | zellij-utils/src/kdl/mod.rs:1656-1661 | zellij-utils/src/kdl/mod.rs:1663-1668 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) default-plugins/bars/src/compact_bar/mod.rs:256— default-plugins/bars/src/compact_bar/mod.rs:256-261 | default-plugins/bars/src/status_bar/mod.rs:645-650 | default-plugins/bars/src/tab_bar/mod.rs:516-521 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/status_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (6 lines × 3) default-plugins/configuration/src/keys_screen.rs:1278— default-plugins/configuration/src/keys_screen.rs:1278-1283 | zellij-utils/src/input/config_blocks.rs:623-628 | zellij-utils/src/input/keybind_presets.rs:840-845 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (6 lines × 3) zellij-utils/src/kdl/mod.rs:8371— zellij-utils/src/kdl/mod.rs:8371-8376 | zellij-utils/src/kdl/mod.rs:8379-8384 | zellij-utils/src/kdl/mod.rs:8391-8398 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) zellij-utils/src/input/window.rs:688— zellij-utils/src/input/window.rs:688-693 | zellij-utils/src/input/window.rs:722-727 | zellij-utils/src/input/window.rs:770-775 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) zellij-server/src/panes/terminal_character.rs:534— zellij-server/src/panes/terminal_character.rs:534-539 | zellij-server/src/panes/terminal_character.rs:557-562 | zellij-server/src/panes/terminal_character.rs:572-577 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Screen::render_to_clients (cyclomatic 47) zellij-server/src/screen.rs:5640— Screen::render_to_clients 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. This is NOT this file's highest cyclomatic complexity: ScreenContext::from (cyclomatic 315) 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 function is counted neither in this dimension's figures nor in its score.
Screen::handle_mouse_event (cyclomatic 27) zellij-server/src/screen.rs:9687— Screen::handle_mouse_event 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. This is NOT this file's highest cyclomatic complexity: ScreenContext::from (cyclomatic 315) 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 function is counted neither in this dimension's figures nor in its score.
Screen::apply_layout (cyclomatic 26) zellij-server/src/screen.rs:6427— Screen::apply_layout 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. This is NOT this file's highest cyclomatic complexity: ScreenContext::from (cyclomatic 315) 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 function is counted neither in this dimension's figures nor in its score.
Screen::handle_nested_session_message_from_pane (cyclomatic 19) zellij-server/src/screen.rs:4024— Screen::handle_nested_session_message_from_pane 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. This is NOT this file's highest cyclomatic complexity: ScreenContext::from (cyclomatic 315) 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 function is counted neither in this dimension's figures nor in its score.
Screen::remove_client (cyclomatic 18) zellij-server/src/screen.rs:6729— Screen::remove_client 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. This is NOT this file's highest cyclomatic complexity: ScreenContext::from (cyclomatic 315) 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 function is counted neither in this dimension's figures nor in its score.
Screen::handle_live_view_mouse_event (cyclomatic 17) zellij-server/src/screen/live_view.rs:493— Screen::handle_live_view_mouse_event 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.
Screen::add_client (cyclomatic 17) zellij-server/src/screen.rs:6620— Screen::add_client 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. This is NOT this file's highest cyclomatic complexity: ScreenContext::from (cyclomatic 315) 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 function is counted neither in this dimension's figures nor in its score.
Screen::change_mode (cyclomatic 17) zellij-server/src/screen.rs:7869— Screen::change_mode 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 is NOT this file's highest cyclomatic complexity: ScreenContext::from (cyclomatic 315) 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 function is counted neither in this dimension's figures nor in its score.
Screen::apply_theme_mode (cyclomatic 16) zellij-server/src/screen.rs:9359— Screen::apply_theme_mode has cyclomatic complexity 16 (threshold 15). 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. This is NOT this file's highest cyclomatic complexity: ScreenContext::from (cyclomatic 315) 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 function is counted neither in this dimension's figures nor in its score.
zellij_window::client_loop::run_with_sink (cyclomatic 40) zellij-window/src/client_loop.rs:103— zellij_window::client_loop::run_with_sink 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.
zellij_window::sprites::lines (cyclomatic 35) zellij-window/src/sprites.rs:358— zellij_window::sprites::lines has cyclomatic complexity 35 (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 is NOT this file's highest cyclomatic complexity: zellij_window::sprites::arms_of (cyclomatic 110) 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 function is counted neither in this dimension's figures nor in its score.
zellij_window::scene::build_row (cyclomatic 34) zellij-window/src/scene.rs:639— zellij_window::scene::build_row has cyclomatic complexity 34 (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.
zellij_window::app::tray::linux::answer (cyclomatic 25) zellij-window/src/app/tray/linux.rs:298— zellij_window::app::tray::linux::answer has cyclomatic complexity 25 (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.
zellij_window::remote::pump (cyclomatic 21) zellij-window/src/remote.rs:341— zellij_window::remote::pump 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. This is NOT this file's highest cyclomatic complexity: zellij_window::remote::outbound (cyclomatic 23) 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 function is counted neither in this dimension's figures nor in its score.
zellij_window::app::icon::render (cyclomatic 17) zellij-window/src/app/icon.rs:226— zellij_window::app::icon::render 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.
zellij_window::scene::padding_rects (cyclomatic 17) zellij-window/src/scene.rs:1430— zellij_window::scene::padding_rects 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.
zellij_window::scene::push_decorations (cyclomatic 17) zellij-window/src/scene.rs:1694— zellij_window::scene::push_decorations 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.
zellij_window::sprites::dashes (cyclomatic 16) zellij-window/src/sprites.rs:491— zellij_window::sprites::dashes 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: zellij_window::sprites::arms_of (cyclomatic 110) 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 function is counted neither in this dimension's figures nor in its score.
Grid::csi_dispatch (cyclomatic 171) zellij-server/src/panes/grid.rs:5613— Grid::csi_dispatch has cyclomatic complexity 171 (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.
Grid::osc_dispatch (cyclomatic 85) zellij-server/src/panes/grid.rs:5206— Grid::osc_dispatch has cyclomatic complexity 85 (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.
Grid::resize_and_reflow (cyclomatic 38) zellij-server/src/panes/grid.rs:1836— Grid::resize_and_reflow has cyclomatic complexity 38 (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.
Grid::compute_plugin_highlight_selections (cyclomatic 21) zellij-server/src/panes/grid.rs:3443— Grid::compute_plugin_highlight_selections 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. This is NOT this file's highest cyclomatic complexity: Grid::esc_dispatch (cyclomatic 26) 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 function is counted neither in this dimension's figures nor in its score.
Grid::text_in_selection (cyclomatic 21) zellij-server/src/panes/grid.rs:3635— Grid::text_in_selection 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. This is NOT this file's highest cyclomatic complexity: Grid::esc_dispatch (cyclomatic 26) 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 function is counted neither in this dimension's figures nor in its score.
Grid::render (cyclomatic 18) zellij-server/src/panes/grid.rs:2198— Grid::render 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. This is NOT this file's highest cyclomatic complexity: Grid::esc_dispatch (cyclomatic 26) 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 function is counted neither in this dimension's figures nor in its score.
Grid::attach_code_point (cyclomatic 17) zellij-server/src/panes/grid.rs:2797— Grid::attach_code_point 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 is NOT this file's highest cyclomatic complexity: Grid::esc_dispatch (cyclomatic 26) 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 function is counted neither in this dimension's figures nor in its score.
Grid::osc133_command_around_position (cyclomatic 16) zellij-server/src/panes/grid.rs:3865— Grid::osc133_command_around_position 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. This is NOT this file's highest cyclomatic complexity: Grid::esc_dispatch (cyclomatic 26) 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 function is counted neither in this dimension's figures nor in its score.
bars::status_bar::style_key_with_modifier (cyclomatic 20) default-plugins/bars/src/status_bar/mod.rs:852— bars::status_bar::style_key_with_modifier 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.
bars::tab_bar::line::tab_line (cyclomatic 19) default-plugins/bars/src/tab_bar/line.rs:294— bars::tab_bar::line::tab_line has cyclomatic complexity 19 (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.
bars::status_bar::one_line_ui::style_key_with_modifier (cyclomatic 18) default-plugins/bars/src/status_bar/one_line_ui.rs:1915— bars::status_bar::one_line_ui::style_key_with_modifier has cyclomatic complexity 18 (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.
bars::link::expand_path (cyclomatic 17) default-plugins/bars/src/link/mod.rs:256— bars::link::expand_path 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.
bars::status_bar::one_line_ui::add_keygroup_separator (cyclomatic 17) default-plugins/bars/src/status_bar/one_line_ui.rs:1407— bars::status_bar::one_line_ui::add_keygroup_separator has cyclomatic complexity 17 (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.
bars::status_bar::one_line_ui::get_keys_and_hints (cyclomatic 17) default-plugins/bars/src/status_bar/one_line_ui.rs:1521— bars::status_bar::one_line_ui::get_keys_and_hints 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.
bars::status_bar::one_line_ui::secondary_keybinds (cyclomatic 16) default-plugins/bars/src/status_bar/one_line_ui.rs:837— bars::status_bar::one_line_ui::secondary_keybinds 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.
bars::status_bar::second_line::get_keys_and_hints (cyclomatic 16) default-plugins/bars/src/status_bar/second_line.rs:89— bars::status_bar::second_line::get_keys_and_hints 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.
MouseHandler::behaviour_action (cognitive 54) zellij-server/src/tab/mouse_handler.rs:1915— MouseHandler::behaviour_action has cognitive complexity 54 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 11 (23 pts), boolean chains 6 (nesting depth added 25). 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.
MouseHandler::determine_mouse_action (cognitive 41) zellij-server/src/tab/mouse_handler.rs:1721— MouseHandler::determine_mouse_action has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 5 (9 pts), boolean chains 7 (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.
MouseHandler::execute_update_hover (cognitive 40) zellij-server/src/tab/mouse_handler.rs:1567— MouseHandler::execute_update_hover has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (32 pts), match/switch 3 (6 pts), boolean chains 2 (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.
MouseHandler::execute_send_to_terminal (cognitive 35) zellij-server/src/tab/mouse_handler.rs:1653— MouseHandler::execute_send_to_terminal has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (33 pts), boolean chains 2 (nesting depth added 20). 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.
MouseHandler::execute_mouse_action (cognitive 28) zellij-server/src/tab/mouse_handler.rs:978— MouseHandler::execute_mouse_action has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 2, match/switch 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.
MouseHandler::scroll_wheel_down (cognitive 22) zellij-server/src/tab/mouse_handler.rs:2385— MouseHandler::scroll_wheel_down has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (6 pts), boolean chains 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.
MouseHandler::execute_focus_pane (cognitive 16) zellij-server/src/tab/mouse_handler.rs:1298— MouseHandler::execute_focus_pane has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (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.
MouseHandler::left_click_action (cognitive 16) zellij-server/src/tab/mouse_handler.rs:2120— MouseHandler::left_click_action has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2 (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.
session_manager::panel::render_session_tree (cognitive 46) default-plugins/session-manager/src/panel.rs:721— session_manager::panel::render_session_tree has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (37 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 2 (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.
session_manager::panel::fit_ansi_from (cognitive 43) default-plugins/session-manager/src/panel.rs:1283— session_manager::panel::fit_ansi_from has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 3 (9 pts), match/switch 1 (3 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
session_manager::panel::render_preview (cognitive 40) default-plugins/session-manager/src/panel.rs:1038— session_manager::panel::render_preview has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (31 pts), loops 3 (6 pts), match/switch 2, 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.
session_manager::panel::layout_card_grid (cognitive 31) default-plugins/session-manager/src/panel.rs:613— session_manager::panel::layout_card_grid has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 3 (8 pts), loops 3 (4 pts), boolean chains 2 (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.
session_manager::ui::components::render_controls_line (cognitive 30) default-plugins/session-manager/src/ui/components.rs:1208— session_manager::ui::components::render_controls_line has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 1, match/switch 1 (nesting depth added 6). 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.
session_manager::panel::strip_ansi (cognitive 29) default-plugins/session-manager/src/panel.rs:1365— session_manager::panel::strip_ansi has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (17 pts), loops 3 (9 pts), match/switch 1 (3 pts) (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.
session_manager::inbox::item_line (cognitive 17) default-plugins/session-manager/src/inbox.rs:587— session_manager::inbox::item_line has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (17 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
session_manager::ui::components::render_layout_selection_list (cognitive 17) default-plugins/session-manager/src/ui/components.rs:1099— session_manager::ui::components::render_layout_selection_list has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 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.
configuration::mousebindings_screen::action_parts (cognitive 30) default-plugins/configuration/src/mousebindings_screen.rs:58— configuration::mousebindings_screen::action_parts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 4 (9 pts), match/switch 2 (6 pts), boolean chains 2 (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.
configuration::theme_sample::render_sample (cognitive 26) default-plugins/configuration/src/theme_sample.rs:581— configuration::theme_sample::render_sample has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 3 (6 pts) (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.
configuration::action_picker::build_action (cognitive 25) default-plugins/configuration/src/action_picker.rs:630— configuration::action_picker::build_action has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 4 (9 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 13). 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.
configuration::action_picker::values_for (cognitive 21) default-plugins/configuration/src/action_picker.rs:746— configuration::action_picker::values_for has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4 (5 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
configuration::blocks_screen::check_plugin_location (cognitive 21) default-plugins/configuration/src/blocks_screen.rs:19— configuration::blocks_screen::check_plugin_location has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7 (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.
configuration::theme_sample::search (cognitive 21) default-plugins/configuration/src/theme_sample.rs:480— configuration::theme_sample::search has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 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.
configuration::keys_screen::wrap_words (cognitive 20) default-plugins/configuration/src/keys_screen.rs:1285— configuration::keys_screen::wrap_words has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts), boolean chains 2 (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.
configuration::settings::check_text (cognitive 19) default-plugins/configuration/src/settings.rs:1942— configuration::settings::check_text has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 5 (8 pts), boolean chains 2 (nesting depth added 7). 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.
Duplicated block (23 lines × 2) default-plugins/bars/src/status_bar/first_line.rs:150— default-plugins/bars/src/status_bar/first_line.rs:150-172 | default-plugins/bars/src/status_bar/first_line.rs:203-225 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) default-plugins/session-manager/src/ui/components.rs:297— default-plugins/session-manager/src/ui/components.rs:297-319 | default-plugins/session-manager/src/ui/components.rs:321-343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) zellij-server/src/panes/plugin_pane.rs:489— zellij-server/src/panes/plugin_pane.rs:489-511 | zellij-server/src/panes/terminal_pane.rs:650-672 — before extracting anything, compare `zellij-server/src/panes/plugin_pane.rs` and `zellij-server/src/panes/terminal_pane.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:351— zellij-server/src/panes/tiled_panes/mod.rs:351-373 | zellij-server/src/panes/tiled_panes/mod.rs:427-449 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:2171— zellij-server/src/panes/tiled_panes/mod.rs:2171-2193 | zellij-server/src/panes/tiled_panes/mod.rs:2206-2228 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:2353— zellij-server/src/panes/tiled_panes/mod.rs:2353-2375 | zellij-server/src/panes/tiled_panes/mod.rs:2474-2496 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) zellij-server/src/plugins/plugin_loader.rs:307— zellij-server/src/plugins/plugin_loader.rs:307-329 | zellij-server/src/plugins/plugin_loader.rs:420-442 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) zellij-server/src/tab/mouse_handler.rs:2547— zellij-server/src/tab/mouse_handler.rs:2547-2569 | zellij-server/src/tab/mouse_handler.rs:2582-2604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) default-plugins/configuration/src/keybindings_screen.rs:831— default-plugins/configuration/src/keybindings_screen.rs:831-847 | default-plugins/configuration/src/mousebindings_screen.rs:1141-1157 — before extracting anything, compare `default-plugins/configuration/src/keybindings_screen.rs` and `default-plugins/configuration/src/mousebindings_screen.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) zellij-client/src/session_resolution.rs:199— zellij-client/src/session_resolution.rs:199-215 | zellij-client/src/session_resolution.rs:301-317 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:1831— zellij-server/src/panes/tiled_panes/mod.rs:1831-1847 | zellij-server/src/panes/tiled_panes/mod.rs:1863-1879 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) zellij-server/src/plugins/mod.rs:771— zellij-server/src/plugins/mod.rs:771-787 | zellij-server/src/plugins/mod.rs:863-879 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) zellij-server/src/pty.rs:1289— zellij-server/src/pty.rs:1289-1305 | zellij-server/src/pty.rs:2111-2127 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) zellij-server/src/route.rs:3382— zellij-server/src/route.rs:3382-3398 | zellij-server/src/route.rs:3416-3432 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) zellij-server/src/tab/mod.rs:6874— zellij-server/src/tab/mod.rs:6874-6890 | zellij-server/src/tab/mod.rs:6901-6917 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) zellij-utils/src/input/actions.rs:1702— zellij-utils/src/input/actions.rs:1702-1718 | zellij-utils/src/input/actions.rs:2162-2178 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 3) default-plugins/session-manager/src/main.rs:1366— default-plugins/session-manager/src/main.rs:1366-1374 | default-plugins/session-manager/src/main.rs:1493-1501 | default-plugins/session-manager/src/main.rs:1747-1755 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) zellij-client/src/cli_client.rs:25— zellij-client/src/cli_client.rs:25-33 | zellij-client/src/cli_client.rs:416-424 | zellij-client/src/cli_client.rs:791-799 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) zellij-server/src/lib.rs:4453— zellij-server/src/lib.rs:4453-4461 | zellij-server/src/lib.rs:4513-4521 | zellij-server/src/lib.rs:4586-4594 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) zellij-tile/src/shim.rs:1268— zellij-tile/src/shim.rs:1268-1276 | zellij-tile/src/shim.rs:1291-1299 | zellij-tile/src/shim.rs:1332-1340 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) zellij-tile/src/shim.rs:2374— zellij-tile/src/shim.rs:2374-2382 | zellij-tile/src/shim.rs:2605-2613 | zellij-tile/src/shim.rs:2756-2764 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) zellij-utils/src/input/config.rs:589— zellij-utils/src/input/config.rs:589-597 | zellij-utils/src/input/config.rs:714-722 | zellij-utils/src/input/config.rs:788-796 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) zellij-window/src/renderer.rs:214— zellij-window/src/renderer.rs:214-222 | zellij-window/src/renderer.rs:227-235 | zellij-window/src/renderer.rs:240-248 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) default-plugins/plugin-manager/src/main.rs:474— default-plugins/plugin-manager/src/main.rs:474-482 | default-plugins/session-manager/src/main.rs:1283-1293 | default-plugins/session-manager/src/main.rs:1777-1785 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
Low cohesion: Distribution (LCOM4 8) zellij-utils/src/distribution.rs:75— Distribution's methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ClientOsInputOutput (LCOM4 7) zellij-client/src/os_input_output.rs:91— ClientOsInputOutput's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ServerOsInputOutput (LCOM4 6) zellij-server/src/os_input_output.rs:340— ServerOsInputOutput's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: RowContext (LCOM4 5) zellij-window/src/scene.rs:480— RowContext's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: State (LCOM4 4) default-plugins/fixture-plugin-for-tests/src/bin/fixture-shared-plugin-for-tests.rs:6— State's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: UnixPtyBackend (LCOM4 4) zellij-server/src/os_input_output_unix.rs:298— UnixPtyBackend's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: WindowsPtyBackend (LCOM4 4) zellij-server/src/os_input_output_windows.rs:414— WindowsPtyBackend's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: PromptRequest (LCOM4 4) zellij-utils/src/prompt.rs:898— PromptRequest's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
zellij_client::start_client (cyclomatic 57) zellij-client/src/lib.rs:1149— zellij_client::start_client has cyclomatic complexity 57 (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.
zellij_client::cli_client::plan_prompt (cyclomatic 51) zellij-client/src/cli_client.rs:500— zellij_client::cli_client::plan_prompt has cyclomatic complexity 51 (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.
zellij_client::web_client::server_listener::zellij_server_listener (cyclomatic 51) zellij-client/src/web_client/server_listener.rs:27— zellij_client::web_client::server_listener::zellij_server_listener has cyclomatic complexity 51 (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.
zellij_client::run_remote_client_terminal_loop (cyclomatic 47) zellij-client/src/lib.rs:640— zellij_client::run_remote_client_terminal_loop 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.
zellij_client::stdin_handler::stdin_loop (cyclomatic 29) zellij-client/src/stdin_handler.rs:19— zellij_client::stdin_handler::stdin_loop 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.
zellij_client::web_client::websocket_handlers::handle_ws_terminal (cyclomatic 22) zellij-client/src/web_client/websocket_handlers.rs:214— zellij_client::web_client::websocket_handlers::handle_ws_terminal has cyclomatic complexity 22 (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.
zellij_client::cli_client::drive_streaming_pipe (cyclomatic 19) zellij-client/src/cli_client.rs:244— zellij_client::cli_client::drive_streaming_pipe 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.
SettingsScreen::route_mouse (cyclomatic 40) default-plugins/configuration/src/settings_screen.rs:1645— SettingsScreen::route_mouse 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.
SettingsScreen::handle_keys_category_mouse (cyclomatic 28) default-plugins/configuration/src/settings_screen.rs:1981— SettingsScreen::handle_keys_category_mouse has cyclomatic complexity 28 (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.
SettingsScreen::handle_content_key (cyclomatic 23) default-plugins/configuration/src/settings_screen.rs:1381— SettingsScreen::handle_content_key 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.
SettingsScreen::handle_key_inner (cyclomatic 20) default-plugins/configuration/src/settings_screen.rs:1172— SettingsScreen::handle_key_inner 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.
SettingsScreen::render (cyclomatic 19) default-plugins/configuration/src/settings_screen.rs:1820— SettingsScreen::render has cyclomatic complexity 19 (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.
SettingsScreen::sync_elements (cyclomatic 18) default-plugins/configuration/src/settings_screen.rs:725— SettingsScreen::sync_elements 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.
SettingsScreen::render_setting_row (cyclomatic 17) default-plugins/configuration/src/settings_screen.rs:2373— SettingsScreen::render_setting_row 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.
App::reapply (cognitive 33) zellij-window/src/window.rs:478— App::reapply has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 4, 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.
App::update (cognitive 27) default-plugins/about/src/main.rs:170— App::update has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 12). 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.
App::handle_key (cognitive 25) default-plugins/about/src/main.rs:549— App::handle_key has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
App::render (cognitive 23) default-plugins/prompt/src/app.rs:467— App::render has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (21 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.
App::update_own_grouped_panes (cognitive 22) default-plugins/multiple-select/src/main.rs:237— App::update_own_grouped_panes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (4 pts), boolean chains 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.
App::press (cognitive 18) zellij-window/src/window.rs:1216— App::press has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 2 (4 pts), boolean chains 1 (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.
App::on_window_event (cognitive 16) zellij-window/src/window.rs:1962— App::on_window_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 8). 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.
KdlLayoutParser::parse_floating_pane_node_with_template (cognitive 27) zellij-utils/src/kdl/kdl_layout_parser.rs:891— KdlLayoutParser::parse_floating_pane_node_with_template has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (26 pts), match/switch 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.
KdlLayoutParser::populate_swap_tiled_layouts (cognitive 23) zellij-utils/src/kdl/kdl_layout_parser.rs:1989— KdlLayoutParser::populate_swap_tiled_layouts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 1 (6 pts), loops 2 (5 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
KdlLayoutParser::populate_layout_child (cognitive 22) zellij-utils/src/kdl/kdl_layout_parser.rs:2359— KdlLayoutParser::populate_layout_child has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, match/switch 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.
KdlLayoutParser::differentiate_pane_and_floating_pane_template (cognitive 19) zellij-utils/src/kdl/kdl_layout_parser.rs:1088— KdlLayoutParser::differentiate_pane_and_floating_pane_template has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
KdlLayoutParser::populate_swap_floating_layouts (cognitive 17) zellij-utils/src/kdl/kdl_layout_parser.rs:2053— KdlLayoutParser::populate_swap_floating_layouts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (5 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.
KdlLayoutParser::parse_pane_node_with_template (cognitive 16) zellij-utils/src/kdl/kdl_layout_parser.rs:781— KdlLayoutParser::parse_pane_node_with_template has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), 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.
KdlLayoutParser::parse_tab_template_node (cognitive 16) zellij-utils/src/kdl/kdl_layout_parser.rs:1782— KdlLayoutParser::parse_tab_template_node has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 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.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×7
Members sharing a duplicated core (5 members, 50+ identical tokens) default-plugins/session-manager/src/main.rs:1241— default-plugins/session-manager/src/main.rs:1241-1310 | default-plugins/session-manager/src/main.rs:1311-1483 | default-plugins/session-manager/src/main.rs:1484-1536 | default-plugins/session-manager/src/main.rs:1543-1737 | default-plugins/session-manager/src/main.rs:1738-1802 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:855— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:855-868 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:870-883 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:885-901 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:903-919 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:921-940 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) zellij-server/src/tab/mod.rs:3648— zellij-server/src/tab/mod.rs:3648-3806 | zellij-server/src/tab/mod.rs:3877-3962 | zellij-server/src/tab/mod.rs:3970-4055 | zellij-server/src/tab/mod.rs:4104-4204 | zellij-server/src/tab/mod.rs:9066-9100 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) zellij-server/src/tab/mod.rs:4691— zellij-server/src/tab/mod.rs:4691-4714 | zellij-server/src/tab/mod.rs:7696-7710 | zellij-server/src/tab/mod.rs:7716-7730 | zellij-server/src/tab/mod.rs:7735-7749 | zellij-server/src/tab/mod.rs:7750-7764 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) zellij-tile/src/shim.rs:2371— zellij-tile/src/shim.rs:2371-2397 | zellij-tile/src/shim.rs:2601-2628 | zellij-tile/src/shim.rs:2657-2682 | zellij-tile/src/shim.rs:2720-2746 | zellij-tile/src/shim.rs:2752-2779 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) zellij-tile/src/ui_components/text.rs:75— zellij-tile/src/ui_components/text.rs:75-93 | zellij-tile/src/ui_components/text.rs:112-130 | zellij-tile/src/ui_components/text.rs:157-175 | zellij-tile/src/ui_components/text.rs:215-233 | zellij-tile/src/ui_components/text.rs:272-289 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) zellij-utils/src/structured_render.rs:1523— zellij-utils/src/structured_render.rs:1523-1547 | zellij-utils/src/structured_render.rs:1549-1569 | zellij-utils/src/structured_render.rs:1571-1593 | zellij-utils/src/structured_render.rs:1595-1618 | zellij-utils/src/structured_render.rs:1620-1644 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Duplicated block (22 lines × 2) default-plugins/bars/src/tab_bar/line.rs:134— default-plugins/bars/src/tab_bar/line.rs:134-155 | default-plugins/bars/src/tab_bar/line.rs:171-192 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22 lines × 2) default-plugins/session-manager/src/main.rs:2258— default-plugins/session-manager/src/main.rs:2258-2279 | default-plugins/session-manager/src/resurrectable_sessions.rs:114-135 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (22 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1731— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1731-1752 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1815-1836 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1901— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1901-1922 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1986-2007 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22 lines × 2) zellij-server/src/plugins/mod.rs:1199— zellij-server/src/plugins/mod.rs:1199-1220 | zellij-server/src/plugins/mod.rs:1343-1364 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22 lines × 2) zellij-server/src/screen.rs:13501— zellij-server/src/screen.rs:13501-13522 | zellij-server/src/screen.rs:13540-13561 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22 lines × 2) zellij-window/src/sprites.rs:375— zellij-window/src/sprites.rs:375-396 | zellij-window/src/sprites.rs:434-455 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1237— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1237-1252 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1260-1275 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) zellij-server/src/pty.rs:1827— zellij-server/src/pty.rs:1827-1842 | zellij-server/src/pty.rs:1867-1882 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) zellij-server/src/screen.rs:13872— zellij-server/src/screen.rs:13872-13887 | zellij-server/src/screen.rs:13985-14000 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) zellij-server/src/tab/mod.rs:3880— zellij-server/src/tab/mod.rs:3880-3895 | zellij-server/src/tab/mod.rs:3973-3988 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) zellij-utils/src/desktop_integration/platform.rs:687— zellij-utils/src/desktop_integration/platform.rs:687-702 | zellij-utils/src/desktop_integration/platform.rs:1416-1431 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) zellij-utils/src/kdl/mod.rs:2118— zellij-utils/src/kdl/mod.rs:2118-2133 | zellij-utils/src/kdl/mod.rs:2215-2230 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) zellij-server/src/plugins/zellij_exports.rs:4981— zellij-server/src/plugins/zellij_exports.rs:4981-4996 | zellij-server/src/plugins/zellij_exports.rs:5303-5318 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Action::try_from (cyclomatic 298) zellij-utils/src/plugin_api/action.rs:109— Action::try_from has cyclomatic complexity 298 (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.
Action::to_kdl (cyclomatic 238) zellij-utils/src/kdl/mod.rs:691— Action::to_kdl has cyclomatic complexity 238 (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.
Action::actions_from_cli (cyclomatic 218) zellij-utils/src/input/actions.rs:933— Action::actions_from_cli has cyclomatic complexity 218 (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.
Action::try_from (cyclomatic 193) zellij-utils/src/ipc/protobuf_conversion.rs:2656— Action::try_from has cyclomatic complexity 193 (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.
Action::try_from (cyclomatic 124) zellij-utils/src/kdl/mod.rs:1824— Action::try_from has cyclomatic complexity 124 (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.
Action::new_from_string (cyclomatic 26) zellij-utils/src/kdl/mod.rs:513— Action::new_from_string has cyclomatic complexity 26 (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: zellij_utils::kdl::action_without_arguments (cyclomatic 68) 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 function is counted neither in this dimension's figures nor in its score.
App::update (cyclomatic 24) default-plugins/about/src/main.rs:170— App::update 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.
App::reapply (cyclomatic 24) zellij-window/src/window.rs:478— App::reapply 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.
App::on_window_event (cyclomatic 23) zellij-window/src/window.rs:1962— App::on_window_event has cyclomatic complexity 23 (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.
App::handle_key (cyclomatic 22) default-plugins/about/src/main.rs:549— App::handle_key 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.
App::press (cyclomatic 18) zellij-window/src/window.rs:1216— App::press 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.
App::render (cyclomatic 16) default-plugins/prompt/src/app.rs:467— App::render 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.
Action::to_kdl (cognitive 242) zellij-utils/src/kdl/mod.rs:691— Action::to_kdl has cognitive complexity 242 (threshold 15). Drivers by points: if/else 75 (168 pts), match/switch 19 (40 pts), loops 13 (33 pts), boolean chains 1 (nesting depth added 134). 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.
Action::try_from (cognitive 234) zellij-utils/src/plugin_api/action.rs:109— Action::try_from has cognitive complexity 234 (threshold 15). Drivers by points: match/switch 143 (206 pts), if/else 14 (28 pts) (nesting depth added 77). 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.
Action::actions_from_cli (cognitive 229) zellij-utils/src/input/actions.rs:933— Action::actions_from_cli has cognitive complexity 229 (threshold 15). Drivers by points: if/else 66 (116 pts), match/switch 65 (98 pts), loops 3 (10 pts), boolean chains 5 (nesting depth added 90). 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.
Action::try_from (cognitive 46) zellij-utils/src/kdl/mod.rs:1824— Action::try_from has cognitive complexity 46 (threshold 15). Drivers by points: if/else 27 (41 pts), match/switch 3 (5 pts) (nesting depth added 16). 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.
Action::try_from (cognitive 25) zellij-utils/src/ipc/protobuf_conversion.rs:2656— Action::try_from has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (24 pts), match/switch 1 (nesting depth added 8). 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.
Action::new_from_string (cognitive 22) zellij-utils/src/kdl/mod.rs:513— Action::new_from_string has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 4 (10 pts), loops 1 (2 pts) (nesting depth added 10). 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.
TiledPanes::render (cognitive 196) zellij-server/src/panes/tiled_panes/mod.rs:1212— TiledPanes::render has cognitive complexity 196 (threshold 15). Drivers by points: if/else 43 (154 pts), loops 7 (20 pts), boolean chains 18, match/switch 2 (4 pts) (nesting depth added 126). 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.
TiledPanes::stacked_resize_pane_with_id (cognitive 97) zellij-server/src/panes/tiled_panes/mod.rs:1893— TiledPanes::stacked_resize_pane_with_id has cognitive complexity 97 (threshold 15). Drivers by points: if/else 25 (65 pts), loops 5 (17 pts), match/switch 6 (15 pts) (nesting depth added 61). 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.
TiledPanes::set_pane_frames (cognitive 42) zellij-server/src/panes/tiled_panes/mod.rs:652— TiledPanes::set_pane_frames has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 7, 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.
TiledPanes::geoms_with_spaces_given_back (cognitive 26) zellij-server/src/panes/tiled_panes/mod.rs:3083— TiledPanes::geoms_with_spaces_given_back has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 6 (9 pts), match/switch 1 (2 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.
TiledPanes::hand_collapsed_pane_constraints_to_neighbors (cognitive 22) zellij-server/src/panes/tiled_panes/mod.rs:3137— TiledPanes::hand_collapsed_pane_constraints_to_neighbors has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3, 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.
TiledPanes::add_pane_with_stacked_resize (cognitive 17) zellij-server/src/panes/tiled_panes/mod.rs:388— TiledPanes::add_pane_with_stacked_resize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 4 (7 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.
SectionedList::render_styled (cognitive 58) default-plugins/configuration/src/list_editor.rs:2542— SectionedList::render_styled has cognitive complexity 58 (threshold 15). Drivers by points: if/else 24 (39 pts), boolean chains 7, loops 4 (7 pts), match/switch 4 (5 pts) (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.
SectionedList::header_key (cognitive 57) default-plugins/configuration/src/list_editor.rs:1909— SectionedList::header_key has cognitive complexity 57 (threshold 15). Drivers by points: if/else 20 (45 pts), boolean chains 7, match/switch 3 (5 pts) (nesting depth added 27). 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.
SectionedList::handle_list_key (cognitive 32) default-plugins/configuration/src/list_editor.rs:2358— SectionedList::handle_list_key has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21 (24 pts), match/switch 4 (7 pts), boolean chains 1 (nesting depth added 6). 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.
SectionedList::styled_mouse (cognitive 26) default-plugins/configuration/src/list_editor.rs:2010— SectionedList::styled_mouse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, loops 2 (3 pts), match/switch 1 (3 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.
SectionedList::render (cognitive 18) default-plugins/configuration/src/list_editor.rs:2484— SectionedList::render has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 2, match/switch 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.
SectionedList::styled_rows (cognitive 17) default-plugins/configuration/src/list_editor.rs:2156— SectionedList::styled_rows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (8 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.
KittyGrid::delete (cognitive 45) zellij-server/src/panes/kitty_graphics/grid_state.rs:424— KittyGrid::delete has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 9 (14 pts), boolean chains 4, loops 2 (4 pts) (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.
KittyGrid::apply_region_scroll (cognitive 36) zellij-server/src/panes/kitty_graphics/grid_state.rs:759— KittyGrid::apply_region_scroll has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 6, loops 1 (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.
KittyGrid::changed_kitty_chunks_in_viewport (cognitive 28) zellij-server/src/panes/kitty_graphics/grid_state.rs:1007— KittyGrid::changed_kitty_chunks_in_viewport has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (5 pts), boolean chains 4 (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.
KittyGrid::character_cell_size_possibly_changed (cognitive 24) zellij-server/src/panes/kitty_graphics/grid_state.rs:840— KittyGrid::character_cell_size_possibly_changed has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (9 pts), match/switch 1 (4 pts) (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.
KittyGrid::place (cognitive 21) zellij-server/src/panes/kitty_graphics/grid_state.rs:270— KittyGrid::place has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 4, match/switch 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.
KittyGrid::transmit (cognitive 17) zellij-server/src/panes/kitty_graphics/grid_state.rs:195— KittyGrid::transmit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (3 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.
SetupScreen::draw_block (cognitive 35) default-plugins/configuration/src/setup_screen.rs:934— SetupScreen::draw_block has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 2 (5 pts), match/switch 1 (nesting depth added 16). 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.
SetupScreen::result_blocks (cognitive 35) default-plugins/configuration/src/setup_screen.rs:1108— SetupScreen::result_blocks has cognitive complexity 35 (threshold 15). Drivers by points: loops 7 (17 pts), if/else 10 (13 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 15). 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.
SetupScreen::render (cognitive 22) default-plugins/configuration/src/setup_screen.rs:826— SetupScreen::render has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 6, boolean chains 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
SetupScreen::choose_blocks (cognitive 21) default-plugins/configuration/src/setup_screen.rs:1021— SetupScreen::choose_blocks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 4 (7 pts), boolean chains 2, match/switch 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.
SetupScreen::desktop_integration (cognitive 18) default-plugins/configuration/src/setup_screen.rs:304— SetupScreen::desktop_integration has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 1 (3 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 8). 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.
SetupScreen::handle_key (cognitive 18) default-plugins/configuration/src/setup_screen.rs:702— SetupScreen::handle_key has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 4 (6 pts), boolean chains 3 (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.
D30 · Dependency Vulnerabilities· Medium advisory (unmaintained) · ×6
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
D30 · Dependency Vulnerabilities· Medium advisory (unsound) · ×6
Duplicated block (20 lines × 2) default-plugins/plugin-manager/src/main.rs:741— default-plugins/plugin-manager/src/main.rs:741-760 | default-plugins/plugin-manager/src/main.rs:819-838 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) default-plugins/session-manager/src/main.rs:1127— default-plugins/session-manager/src/main.rs:1127-1146 | default-plugins/session-manager/src/ui/components.rs:1140-1159 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (20 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1180— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1180-1199 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1210-1229 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) zellij-server/src/pty.rs:1235— zellij-server/src/pty.rs:1235-1254 | zellij-server/src/pty.rs:2076-2095 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) zellij-server/src/screen.rs:13839— zellij-server/src/screen.rs:13839-13858 | zellij-server/src/screen.rs:13952-13971 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) zellij-utils/src/input/layout.rs:1366— zellij-utils/src/input/layout.rs:1366-1385 | zellij-utils/src/input/layout.rs:1409-1428 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 3) default-plugins/bars/src/status_bar/first_line.rs:134— default-plugins/bars/src/status_bar/first_line.rs:134-147 | default-plugins/bars/src/status_bar/first_line.rs:187-200 | default-plugins/bars/src/status_bar/first_line.rs:239-252 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) zellij-server/src/panes/tiled_panes/mod.rs:2529— zellij-server/src/panes/tiled_panes/mod.rs:2529-2542 | zellij-server/src/panes/tiled_panes/mod.rs:2602-2615 | zellij-server/src/panes/tiled_panes/mod.rs:2616-2629 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) zellij-server/src/plugins/zellij_exports.rs:2424— zellij-server/src/plugins/zellij_exports.rs:2424-2437 | zellij-server/src/plugins/zellij_exports.rs:2509-2522 | zellij-server/src/plugins/zellij_exports.rs:2586-2599 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) zellij-server/src/ui/pane_boundaries_frame.rs:612— zellij-server/src/ui/pane_boundaries_frame.rs:612-625 | zellij-server/src/ui/pane_boundaries_frame.rs:658-671 | zellij-server/src/ui/pane_boundaries_frame.rs:697-710 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) default-plugins/bars/src/compact_bar/mod.rs:270— default-plugins/bars/src/compact_bar/mod.rs:270-283 | default-plugins/bars/src/status_bar/mod.rs:456-469 | default-plugins/bars/src/tab_bar/mod.rs:208-221 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/status_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (14 lines × 3) zellij-utils/src/kdl/kdl_layout_parser.rs:1527— zellij-utils/src/kdl/kdl_layout_parser.rs:1527-1540 | zellij-utils/src/kdl/kdl_layout_parser.rs:1557-1570 | zellij-utils/src/kdl/kdl_layout_parser.rs:1589-1602 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12–13 lines × 2) default-plugins/bars/src/compact_bar/mod.rs:98— default-plugins/bars/src/compact_bar/mod.rs:98-110 | default-plugins/bars/src/tab_bar/mod.rs:71-82 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/tab_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 102 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (12–13 lines × 2) default-plugins/bars/src/compact_bar/mod.rs:706— default-plugins/bars/src/compact_bar/mod.rs:706-717 | default-plugins/bars/src/tab_bar/mod.rs:430-442 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/tab_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 102 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (12–13 lines × 2) default-plugins/session-manager/src/ui/components.rs:964— default-plugins/session-manager/src/ui/components.rs:964-976 | default-plugins/session-manager/src/ui/components.rs:978-989 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–13 lines × 2) zellij-server/src/background_jobs.rs:746— zellij-server/src/background_jobs.rs:746-757 | zellij-server/src/background_jobs.rs:892-904 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–13 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:529— zellij-server/src/panes/floating_panes/mod.rs:529-541 | zellij-server/src/panes/floating_panes/mod.rs:1449-1460 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–13 lines × 2) zellij-window/src/client_loop.rs:352— zellij-window/src/client_loop.rs:352-364 | zellij-window/src/lib.rs:819-830 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 4) zellij-server/src/plugins/zellij_exports.rs:2296— zellij-server/src/plugins/zellij_exports.rs:2296-2305 | zellij-server/src/plugins/zellij_exports.rs:2344-2353 | zellij-server/src/plugins/zellij_exports.rs:2388-2397 | zellij-server/src/plugins/zellij_exports.rs:2832-2841 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) zellij-server/src/screen.rs:11392— zellij-server/src/screen.rs:11392-11401 | zellij-server/src/screen.rs:11455-11464 | zellij-server/src/screen.rs:11490-11499 | zellij-server/src/screen.rs:11553-11562 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) zellij-server/src/screen.rs:15997— zellij-server/src/screen.rs:15997-16006 | zellij-server/src/screen.rs:16010-16019 | zellij-server/src/screen.rs:16036-16045 | zellij-server/src/screen.rs:16064-16073 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) zellij-utils/src/kdl/mod.rs:1040— zellij-utils/src/kdl/mod.rs:1040-1049 | zellij-utils/src/kdl/mod.rs:1052-1061 | zellij-utils/src/kdl/mod.rs:1064-1073 | zellij-utils/src/kdl/mod.rs:1076-1085 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) zellij-utils/src/kdl/mod.rs:3650— zellij-utils/src/kdl/mod.rs:3650-3659 | zellij-utils/src/kdl/mod.rs:4157-4166 | zellij-utils/src/kdl/mod.rs:4617-4626 | zellij-utils/src/kdl/mod.rs:5247-5256 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) zellij-utils/src/plugin_api/plugin_command.rs:240— zellij-utils/src/plugin_api/plugin_command.rs:240-249 | zellij-utils/src/plugin_api/plugin_command.rs:251-260 | zellij-utils/src/plugin_api/plugin_command.rs:262-271 | zellij-utils/src/plugin_api/plugin_command.rs:273-282 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1460— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1460-1466 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1590-1596 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1610-1616 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1630-1636 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) zellij-server/src/screen.rs:11321— zellij-server/src/screen.rs:11321-11327 | zellij-server/src/screen.rs:11343-11349 | zellij-server/src/screen.rs:11365-11371 | zellij-server/src/screen.rs:11381-11387 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) zellij-server/src/ui/pane_boundaries_frame.rs:1255— zellij-server/src/ui/pane_boundaries_frame.rs:1255-1261 | zellij-server/src/ui/pane_boundaries_frame.rs:1268-1274 | zellij-server/src/ui/pane_boundaries_frame.rs:1285-1291 | zellij-server/src/ui/pane_boundaries_frame.rs:1313-1319 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) zellij-utils/src/kdl/mod.rs:567— zellij-utils/src/kdl/mod.rs:567-573 | zellij-utils/src/kdl/mod.rs:577-583 | zellij-utils/src/kdl/mod.rs:608-614 | zellij-utils/src/kdl/mod.rs:644-650 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) zellij-utils/src/plugin_api/event.rs:341— zellij-utils/src/plugin_api/event.rs:341-347 | zellij-utils/src/plugin_api/event.rs:353-359 | zellij-utils/src/plugin_api/event.rs:365-371 | zellij-utils/src/plugin_api/event.rs:377-383 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) zellij-utils/src/session_serialization.rs:478— zellij-utils/src/session_serialization.rs:478-484 | zellij-utils/src/session_serialization.rs:493-499 | zellij-utils/src/session_serialization.rs:508-514 | zellij-utils/src/session_serialization.rs:523-529 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
MouseHandler::behaviour_action (cyclomatic 47) zellij-server/src/tab/mouse_handler.rs:1915— MouseHandler::behaviour_action has cyclomatic complexity 47 (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.
MouseHandler::execute_mouse_action (cyclomatic 46) zellij-server/src/tab/mouse_handler.rs:978— MouseHandler::execute_mouse_action has cyclomatic complexity 46 (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.
MouseHandler::determine_mouse_action (cyclomatic 31) zellij-server/src/tab/mouse_handler.rs:1721— MouseHandler::determine_mouse_action 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.
MouseHandler::execute_update_hover (cyclomatic 21) zellij-server/src/tab/mouse_handler.rs:1567— MouseHandler::execute_update_hover 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.
MouseHandler::execute_pass_wheel_to_app (cyclomatic 17) zellij-server/src/tab/mouse_handler.rs:1225— MouseHandler::execute_pass_wheel_to_app has cyclomatic complexity 17 (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.
session_manager::panel::render_session_tree (cyclomatic 26) default-plugins/session-manager/src/panel.rs:721— session_manager::panel::render_session_tree 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.
session_manager::panel::render_preview (cyclomatic 23) default-plugins/session-manager/src/panel.rs:1038— session_manager::panel::render_preview 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.
session_manager::panel::layout_card_grid (cyclomatic 22) default-plugins/session-manager/src/panel.rs:613— session_manager::panel::layout_card_grid 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.
session_manager::ui::components::render_controls_line (cyclomatic 22) default-plugins/session-manager/src/ui/components.rs:1208— session_manager::ui::components::render_controls_line 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.
session_manager::panel::fit_ansi_from (cyclomatic 16) default-plugins/session-manager/src/panel.rs:1283— session_manager::panel::fit_ansi_from 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.
Tab::write_to_pane_id (cyclomatic 24) zellij-server/src/tab/mod.rs:5059— Tab::write_to_pane_id has cyclomatic complexity 24 (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.
Tab::extract_pane (cyclomatic 21) zellij-server/src/tab/mod.rs:6553— Tab::extract_pane 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.
Tab::close_pane (cyclomatic 19) zellij-server/src/tab/mod.rs:6441— Tab::close_pane 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.
Tab::render_cursor (cyclomatic 18) zellij-server/src/tab/mod.rs:5591— Tab::render_cursor 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.
Tab::move_pane_by_pane_id (cyclomatic 17) zellij-server/src/tab/mod.rs:9200— Tab::move_pane_by_pane_id 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.
Pty::spawn_terminals_for_layout (cognitive 54) zellij-server/src/pty.rs:1310— Pty::spawn_terminals_for_layout has cognitive complexity 54 (threshold 15). Drivers by points: if/else 24 (42 pts), loops 5 (6 pts), match/switch 2 (5 pts), boolean chains 1 (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.
Pty::apply_run_instruction (cognitive 51) zellij-server/src/pty.rs:1732— Pty::apply_run_instruction has cognitive complexity 51 (threshold 15). Drivers by points: if/else 14 (31 pts), match/switch 10 (20 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Pty::spawn_terminals_for_layout_override (cognitive 34) zellij-server/src/pty.rs:1536— Pty::spawn_terminals_for_layout_override has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 2 (5 pts), loops 4 (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.
Pty::update_and_report_cwds (cognitive 28) zellij-server/src/pty.rs:2276— Pty::update_and_report_cwds has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 2, 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.
Pty::spawn_terminal (cognitive 21) zellij-server/src/pty.rs:1145— Pty::spawn_terminal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 4 (7 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.
KeysScreen::content (cognitive 50) default-plugins/configuration/src/keys_screen.rs:929— KeysScreen::content has cognitive complexity 50 (threshold 15). Drivers by points: if/else 22 (35 pts), loops 4 (11 pts), boolean chains 2, match/switch 1 (2 pts) (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.
KeysScreen::render (cognitive 35) default-plugins/configuration/src/keys_screen.rs:1119— KeysScreen::render has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 3 (5 pts), match/switch 2 (5 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.
KeysScreen::rebuild (cognitive 25) default-plugins/configuration/src/keys_screen.rs:238— KeysScreen::rebuild has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 2, 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.
KeysScreen::set_leader (cognitive 20) default-plugins/configuration/src/keys_screen.rs:382— KeysScreen::set_leader has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (2 pts), boolean chains 1, match/switch 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.
KeysScreen::handle_mouse (cognitive 16) default-plugins/configuration/src/keys_screen.rs:784— KeysScreen::handle_mouse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, match/switch 2 (3 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.
EntryForm::handle_dialog_key (cognitive 38) default-plugins/configuration/src/list_editor.rs:480— EntryForm::handle_dialog_key has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (29 pts), boolean chains 5, match/switch 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
EntryForm::read_values (cognitive 34) default-plugins/configuration/src/list_editor.rs:765— EntryForm::read_values has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 2 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
EntryForm::render_dialog (cognitive 32) default-plugins/configuration/src/list_editor.rs:586— EntryForm::render_dialog has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (21 pts), match/switch 5 (7 pts), loops 2 (3 pts), boolean chains 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.
EntryForm::rebuild_dialog (cognitive 18) default-plugins/configuration/src/list_editor.rs:364— EntryForm::rebuild_dialog has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (7 pts), if/else 3 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
EntryForm::rebuild (cognitive 17) default-plugins/configuration/src/list_editor.rs:283— EntryForm::rebuild has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 3 (5 pts), match/switch 3 (5 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.
Duplicated block (32 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:592— zellij-server/src/panes/floating_panes/mod.rs:592-623 | zellij-server/src/panes/tiled_panes/mod.rs:1284-1315 — `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 10 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (32 lines × 2) zellij-server/src/panes/grid.rs:4956— zellij-server/src/panes/grid.rs:4956-4987 | zellij-server/src/panes/grid.rs:5024-5055 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (32 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:2388— zellij-server/src/panes/tiled_panes/mod.rs:2388-2419 | zellij-server/src/panes/tiled_panes/mod.rs:2432-2463 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (32 lines × 2) zellij-server/src/plugins/wasm_bridge.rs:792— zellij-server/src/plugins/wasm_bridge.rs:792-823 | zellij-server/src/plugins/wasm_bridge.rs:925-956 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (32 lines × 2) zellij-server/src/pty.rs:1355— zellij-server/src/pty.rs:1355-1386 | zellij-server/src/pty.rs:1557-1588 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17–18 lines × 2) zellij-client/src/remote_attach/mod.rs:232— zellij-client/src/remote_attach/mod.rs:232-249 | zellij-client/src/remote_attach/mod.rs:264-280 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17–18 lines × 2) zellij-server/src/output/mod.rs:321— zellij-server/src/output/mod.rs:321-338 | zellij-server/src/output/mod.rs:1239-1255 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17–18 lines × 2) zellij-server/src/output/mod.rs:2853— zellij-server/src/output/mod.rs:2853-2869 | zellij-server/src/output/mod.rs:3083-3100 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17–18 lines × 2) zellij-server/src/plugins/zellij_exports.rs:2112— zellij-server/src/plugins/zellij_exports.rs:2112-2128 | zellij-server/src/plugins/zellij_exports.rs:2210-2227 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17–18 lines × 2) zellij-server/src/plugins/zellij_exports.rs:2388— zellij-server/src/plugins/zellij_exports.rs:2388-2405 | zellij-server/src/plugins/zellij_exports.rs:2832-2848 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) default-plugins/bars/src/status_bar/one_line_ui.rs:847— default-plugins/bars/src/status_bar/one_line_ui.rs:847-857 | default-plugins/bars/src/status_bar/one_line_ui.rs:945-954 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) default-plugins/bars/src/status_bar/one_line_ui.rs:1422— default-plugins/bars/src/status_bar/one_line_ui.rs:1422-1431 | default-plugins/bars/src/status_bar/one_line_ui.rs:1452-1462 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) zellij-server/src/plugins/zellij_exports.rs:1805— zellij-server/src/plugins/zellij_exports.rs:1805-1815 | zellij-server/src/plugins/zellij_exports.rs:1860-1869 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) zellij-server/src/tab/layout_applier.rs:649— zellij-server/src/tab/layout_applier.rs:649-659 | zellij-server/src/tab/layout_applier.rs:710-719 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) zellij-server/src/tab/mod.rs:3829— zellij-server/src/tab/mod.rs:3829-3838 | zellij-server/src/tab/mod.rs:8407-8417 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–9 lines × 2) zellij-server/src/os_input_output.rs:835— zellij-server/src/os_input_output.rs:835-843 | zellij-server/src/os_input_output.rs:852-859 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–9 lines × 2) zellij-server/src/screen.rs:6208— zellij-server/src/screen.rs:6208-6216 | zellij-server/src/screen.rs:6234-6241 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–9 lines × 2) zellij-utils/src/kdl/mod.rs:607— zellij-utils/src/kdl/mod.rs:607-614 | zellij-utils/src/kdl/mod.rs:642-650 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–9 lines × 2) zellij-utils/src/session_serialization.rs:1089— zellij-utils/src/session_serialization.rs:1089-1096 | zellij-utils/src/session_serialization.rs:1146-1154 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–9 lines × 2) zellij-utils/src/sessions.rs:130— zellij-utils/src/sessions.rs:130-138 | zellij-utils/src/sessions.rs:177-184 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 4) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:760— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:760-765 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:782-787 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:889-894 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:908-913 — `zellij-server/src/panes/floating_panes/floating_pane_grid.rs` and `zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (6 lines × 4) zellij-server/src/ui/pane_boundaries_frame.rs:761— zellij-server/src/ui/pane_boundaries_frame.rs:761-767 | zellij-server/src/ui/pane_boundaries_frame.rs:1272-1277 | zellij-server/src/ui/pane_boundaries_frame.rs:1289-1294 | zellij-server/src/ui/pane_boundaries_frame.rs:1317-1322 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 4) zellij-utils/src/input/options.rs:707— zellij-utils/src/input/options.rs:707-713 | zellij-utils/src/input/options.rs:753-758 | zellij-utils/src/input/options.rs:927-932 | zellij-utils/src/input/options.rs:966-971 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 4) default-plugins/bars/src/status_bar/session_hints.rs:158— default-plugins/bars/src/status_bar/session_hints.rs:158-163 | default-plugins/bars/src/timers.rs:15-20 | default-plugins/session-manager/src/inbox.rs:408-413 | zellij-server/src/attention/tracker.rs:21-26 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
Duplicated block (6 lines × 4) zellij-utils/src/session_serialization.rs:471— zellij-utils/src/session_serialization.rs:471-476 | zellij-utils/src/session_serialization.rs:486-491 | zellij-utils/src/session_serialization.rs:501-506 | zellij-utils/src/session_serialization.rs:516-521 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
BindingsList::handle_mouse (cyclomatic 35) default-plugins/configuration/src/bindings_list.rs:740— BindingsList::handle_mouse has cyclomatic complexity 35 (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.
BindingsList::handle_key (cyclomatic 35) default-plugins/configuration/src/bindings_list.rs:923— BindingsList::handle_key has cyclomatic complexity 35 (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.
BindingsList::handle_list_key (cyclomatic 29) default-plugins/configuration/src/bindings_list.rs:845— BindingsList::handle_list_key has cyclomatic complexity 29 (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.
BindingsList::render (cyclomatic 25) default-plugins/configuration/src/bindings_list.rs:1035— BindingsList::render 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.
SectionedList::render_styled (cyclomatic 35) default-plugins/configuration/src/list_editor.rs:2542— SectionedList::render_styled has cyclomatic complexity 35 (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.
SectionedList::header_key (cyclomatic 32) default-plugins/configuration/src/list_editor.rs:1909— SectionedList::header_key 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.
SectionedList::handle_list_key (cyclomatic 26) default-plugins/configuration/src/list_editor.rs:2358— SectionedList::handle_list_key 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.
SectionedList::styled_mouse (cyclomatic 22) default-plugins/configuration/src/list_editor.rs:2010— SectionedList::styled_mouse 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.
zellij::commands::start_client (cognitive 92) src/commands.rs:709— zellij::commands::start_client has cognitive complexity 92 (threshold 15). Drivers by points: if/else 26 (74 pts), match/switch 4 (16 pts), boolean chains 1, loops 1 (nesting depth added 60). 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.
zellij::main (cognitive 85) src/lib.rs:49— zellij::main has cognitive complexity 85 (threshold 15). Drivers by points: if/else 44 (61 pts), match/switch 7 (19 pts), loops 1 (4 pts), boolean chains 1 (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.
zellij::commands::run_setup_actions (cognitive 57) src/commands.rs:225— zellij::commands::run_setup_actions has cognitive complexity 57 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 5 (16 pts), match/switch 2 (6 pts), boolean chains 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
zellij::commands::send_action_to_session (cognitive 17) src/commands.rs:527— zellij::commands::send_action_to_session has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 2 (3 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.
FormScreen::render (cognitive 62) default-plugins/prompt/src/form.rs:500— FormScreen::render has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (57 pts), loops 3, match/switch 1 (2 pts) (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.
FormScreen::handle_key (cognitive 22) default-plugins/prompt/src/form.rs:390— FormScreen::handle_key has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8 (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.
FormScreen::new (cognitive 21) default-plugins/prompt/src/form.rs:48— FormScreen::new has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 2 (5 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.
FormScreen::respond (cognitive 17) default-plugins/prompt/src/form.rs:354— FormScreen::respond has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 8). 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.
BindingsList::handle_mouse (cognitive 58) default-plugins/configuration/src/bindings_list.rs:740— BindingsList::handle_mouse has cognitive complexity 58 (threshold 15). Drivers by points: if/else 27 (46 pts), boolean chains 9, loops 1 (2 pts), match/switch 1 (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.
BindingsList::handle_key (cognitive 56) default-plugins/configuration/src/bindings_list.rs:923— BindingsList::handle_key has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (43 pts), match/switch 4 (7 pts), boolean chains 6 (nesting depth added 26). 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.
BindingsList::handle_list_key (cognitive 38) default-plugins/configuration/src/bindings_list.rs:845— BindingsList::handle_list_key has cognitive complexity 38 (threshold 15). Drivers by points: if/else 26 (32 pts), boolean chains 6 (nesting depth added 6). 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.
BindingsList::render (cognitive 35) default-plugins/configuration/src/bindings_list.rs:1035— BindingsList::render has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 7, match/switch 2 (3 pts), loops 1 (nesting depth added 6). 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.
ActionPicker::render (cognitive 54) default-plugins/configuration/src/action_picker.rs:1455— ActionPicker::render has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 4 (9 pts), match/switch 3 (8 pts), boolean chains 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ActionPicker::handle_mouse (cognitive 39) default-plugins/configuration/src/action_picker.rs:1317— ActionPicker::handle_mouse has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 3 (6 pts), boolean chains 3, match/switch 2 (3 pts) (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.
ActionPicker::handle_key (cognitive 21) default-plugins/configuration/src/action_picker.rs:1203— ActionPicker::handle_key has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3, match/switch 1 (nesting depth added 7). 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.
ActionPicker::handle_list_key (cognitive 18) default-plugins/configuration/src/action_picker.rs:1276— ActionPicker::handle_list_key has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 7. 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.
ThemesScreen::render (cognitive 44) default-plugins/configuration/src/themes_screen.rs:1421— ThemesScreen::render has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (37 pts), loops 2 (4 pts), match/switch 1 (2 pts), boolean chains 1 (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.
ThemesScreen::handle_list_mouse (cognitive 35) default-plugins/configuration/src/themes_screen.rs:1159— ThemesScreen::handle_list_mouse has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 7, match/switch 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.
ThemesScreen::handle_list_key (cognitive 26) default-plugins/configuration/src/themes_screen.rs:969— ThemesScreen::handle_list_key has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 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.
ThemesScreen::render_list (cognitive 18) default-plugins/configuration/src/themes_screen.rs:1279— ThemesScreen::render_list has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, 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.
xtask::pipelines::publish (cognitive 44) xtask/src/pipelines.rs:207— xtask::pipelines::publish has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 4 (15 pts), loops 4 (9 pts), boolean chains 3 (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.
xtask::assets::flatten_module (cognitive 40) xtask/src/assets.rs:149— xtask::assets::flatten_module has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (33 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
xtask::metadata::features_without (cognitive 21) xtask/src/metadata.rs:34— xtask::metadata::features_without has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (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.
xtask::pipelines::run (cognitive 20) xtask/src/pipelines.rs:104— xtask::pipelines::run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 1 (3 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.
PaneFrame::render (cognitive 44) zellij-server/src/ui/pane_boundaries_frame.rs:1345— PaneFrame::render has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 7, loops 2 (7 pts) (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.
PaneFrame::compose_bracketed_title (cognitive 20) zellij-server/src/ui/pane_boundaries_frame.rs:1084— PaneFrame::compose_bracketed_title has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 1 (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.
PaneFrame::render_held_undertitle (cognitive 18) zellij-server/src/ui/pane_boundaries_frame.rs:1243— PaneFrame::render_held_undertitle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (9 pts) (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.
PaneFrame::render_stack_list_entry (cognitive 16) zellij-server/src/ui/pane_boundaries_frame.rs:835— PaneFrame::render_stack_list_entry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 6 (7 pts), boolean chains 1 (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.
SessionLayoutMetadata::detect_editor_panes (cognitive 43) zellij-server/src/session_layout_metadata.rs:384— SessionLayoutMetadata::detect_editor_panes has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 3 (8 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 21). 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.
SessionLayoutMetadata::is_dirty (cognitive 21) zellij-server/src/session_layout_metadata.rs:129— SessionLayoutMetadata::is_dirty has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 2 (6 pts), loops 3 (5 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.
SessionLayoutMetadata::update_default_shell (cognitive 20) zellij-server/src/session_layout_metadata.rs:36— SessionLayoutMetadata::update_default_shell has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (5 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.
SessionLayoutMetadata::update_terminal_commands (cognitive 16) zellij-server/src/session_layout_metadata.rs:299— SessionLayoutMetadata::update_terminal_commands has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts) (nesting depth added 8). 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.
TerminalPane::adjust_input_to_terminal (cognitive 40) zellij-server/src/panes/terminal_pane.rs:339— TerminalPane::adjust_input_to_terminal has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (19 pts), match/switch 6 (15 pts), boolean chains 6 (nesting depth added 12). 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.
TerminalPane::render_frame (cognitive 37) zellij-server/src/panes/terminal_pane.rs:555— TerminalPane::render_frame has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 5, match/switch 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.
TerminalPane::handle_pty_bytes (cognitive 32) zellij-server/src/panes/terminal_pane.rs:233— TerminalPane::handle_pty_bytes has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (29 pts), match/switch 1 (2 pts), loops 1 (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.
TerminalPane::adjust_input_to_terminal_without_kitty_keyboard_protocol (cognitive 20) zellij-server/src/panes/terminal_pane.rs:1766— TerminalPane::adjust_input_to_terminal_without_kitty_keyboard_protocol has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
CompactBar::handle_mouse_event (cognitive 38) default-plugins/bars/src/compact_bar/mod.rs:606— CompactBar::handle_mouse_event has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (31 pts), match/switch 3 (5 pts), boolean chains 2 (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.
CompactBar::update (cognitive 29) default-plugins/bars/src/compact_bar/mod.rs:388— CompactBar::update has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (4 pts), match/switch 3 (4 pts) (nesting depth added 13). 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.
CompactBar::pipe (cognitive 24) default-plugins/bars/src/compact_bar/mod.rs:819— CompactBar::pipe has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (2 pts) (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.
CompactBar::render_client (cognitive 24) default-plugins/bars/src/compact_bar/mod.rs:1003— CompactBar::render_client has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 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.
Duplicated block (25 lines × 2) default-plugins/bars/src/compact_bar/tab.rs:149— default-plugins/bars/src/compact_bar/tab.rs:149-173 | default-plugins/bars/src/tab_bar/tab.rs:150-174 — `default-plugins/bars/src/compact_bar/tab.rs` and `default-plugins/bars/src/tab_bar/tab.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (25 lines × 2) zellij-server/src/output/mod.rs:422— zellij-server/src/output/mod.rs:422-446 | zellij-server/src/output/mod.rs:1365-1389 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (25 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:828— zellij-server/src/panes/tiled_panes/mod.rs:828-852 | zellij-server/src/panes/tiled_panes/mod.rs:894-918 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (25 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:947— zellij-utils/src/kdl/kdl_layout_parser.rs:947-971 | zellij-utils/src/kdl/kdl_layout_parser.rs:1010-1034 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15–16 lines × 2) default-plugins/bars/src/compact_bar/tab.rs:97— default-plugins/bars/src/compact_bar/tab.rs:97-112 | default-plugins/bars/src/tab_bar/tab.rs:99-113 — `default-plugins/bars/src/compact_bar/tab.rs` and `default-plugins/bars/src/tab_bar/tab.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (15–16 lines × 2) zellij-client/src/remote_attach/auth.rs:78— zellij-client/src/remote_attach/auth.rs:78-93 | zellij-client/src/remote_attach/auth.rs:135-149 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15–16 lines × 2) zellij-server/src/tab/mod.rs:6928— zellij-server/src/tab/mod.rs:6928-6942 | zellij-server/src/tab/mod.rs:6956-6971 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15–16 lines × 2) zellij-utils/src/session_serialization.rs:237— zellij-utils/src/session_serialization.rs:237-251 | zellij-utils/src/session_serialization.rs:761-776 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 4) zellij-server/src/panes/floating_panes/mod.rs:1141— zellij-server/src/panes/floating_panes/mod.rs:1141-1155 | zellij-server/src/panes/floating_panes/mod.rs:1167-1181 | zellij-server/src/panes/floating_panes/mod.rs:1193-1207 | zellij-server/src/panes/floating_panes/mod.rs:1219-1233 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 4) zellij-server/src/panes/tiled_panes/mod.rs:1708— zellij-server/src/panes/tiled_panes/mod.rs:1708-1722 | zellij-server/src/panes/tiled_panes/mod.rs:1738-1752 | zellij-server/src/panes/tiled_panes/mod.rs:1768-1782 | zellij-server/src/panes/tiled_panes/mod.rs:1798-1812 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 4) zellij-server/src/tab/mod.rs:3019— zellij-server/src/tab/mod.rs:3019-3033 | zellij-server/src/tab/mod.rs:3147-3161 | zellij-server/src/tab/mod.rs:3265-3279 | zellij-server/src/tab/mod.rs:3446-3460 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 4) zellij-utils/src/kdl/mod.rs:960— zellij-utils/src/kdl/mod.rs:960-974 | zellij-utils/src/kdl/mod.rs:1021-1035 | zellij-utils/src/kdl/mod.rs:1115-1129 | zellij-utils/src/kdl/mod.rs:1162-1176 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–10 lines × 2) default-plugins/bars/src/status_bar/tip/data/move_focus_hjkl_tab_switch.rs:78— default-plugins/bars/src/status_bar/tip/data/move_focus_hjkl_tab_switch.rs:78-87 | default-plugins/bars/src/status_bar/tip/data/quicknav.rs:145-153 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9–10 lines × 2) default-plugins/session-manager/src/main.rs:1368— default-plugins/session-manager/src/main.rs:1368-1376 | default-plugins/session-manager/src/main.rs:1604-1613 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–10 lines × 2) zellij-server/src/output/mod.rs:381— zellij-server/src/output/mod.rs:381-390 | zellij-server/src/output/mod.rs:1301-1309 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–10 lines × 2) zellij-server/src/plugins/wasm_bridge.rs:772— zellij-server/src/plugins/wasm_bridge.rs:772-780 | zellij-server/src/plugins/wasm_bridge.rs:908-917 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 4) zellij-utils/src/input/window.rs:948— zellij-utils/src/input/window.rs:948-955 | zellij-utils/src/input/window.rs:971-978 | zellij-utils/src/input/window.rs:1186-1193 | zellij-utils/src/input/window.rs:1209-1216 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 4) zellij-server/src/plugins/zellij_exports.rs:5678— zellij-server/src/plugins/zellij_exports.rs:5678-5688 | zellij-server/src/plugins/zellij_exports.rs:5758-5765 | zellij-server/src/plugins/zellij_exports.rs:5788-5798 | zellij-server/src/plugins/zellij_exports.rs:5845-5852 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 4) zellij-utils/src/kdl/mod.rs:1263— zellij-utils/src/kdl/mod.rs:1263-1270 | zellij-utils/src/kdl/mod.rs:1273-1280 | zellij-utils/src/kdl/mod.rs:1313-1320 | zellij-utils/src/kdl/mod.rs:1429-1436 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 4) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:415— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:415-422 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:432-439 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:449-456 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:466-473 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) zellij-utils/src/kdl/mod.rs:2368— zellij-utils/src/kdl/mod.rs:2368-2375 | zellij-utils/src/kdl/mod.rs:2484-2491 | zellij-utils/src/kdl/mod.rs:2537-2544 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) zellij-tile/src/ui_components/ribbon.rs:16— zellij-tile/src/ui_components/ribbon.rs:16-23 | zellij-tile/src/ui_components/table.rs:52-60 | zellij-tile/src/ui_components/text.rs:552-560 — before extracting anything, compare `zellij-tile/src/ui_components/table.rs` and `zellij-tile/src/ui_components/text.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) zellij-utils/src/kdl/mod.rs:565— zellij-utils/src/kdl/mod.rs:565-572 | zellij-utils/src/kdl/mod.rs:575-582 | zellij-utils/src/kdl/mod.rs:585-592 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) zellij-integration-tests/src/runner.rs:349— zellij-integration-tests/src/runner.rs:349-356 | zellij-integration-tests/src/runner.rs:619-626 | zellij-integration-tests/src/runner.rs:636-643 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
X2 · Cancellation propagation· Async function without AbortSignal · ×4
Async function without AbortSignal: checkConnection zellij-client/assets/app.js:103— `checkConnection` 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: login zellij-client/assets/app.js:241— `login` 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: login zellij-client/assets/auth.js:37— `login` 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: checkConnection zellij-client/assets/connection.js:29— `checkConnection` 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 })`.
CharacterStyles::add_style_from_ansi_params (cyclomatic 76) zellij-server/src/panes/terminal_character.rs:473— CharacterStyles::add_style_from_ansi_params has cyclomatic complexity 76 (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.
CharacterStyles::fmt (cyclomatic 49) zellij-server/src/panes/terminal_character.rs:631— CharacterStyles::fmt has cyclomatic complexity 49 (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.
CharacterStyles::update_and_return_diff (cyclomatic 22) zellij-server/src/panes/terminal_character.rs:384— CharacterStyles::update_and_return_diff 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. This is NOT this file's highest cyclomatic complexity: StandardCharset::map (cyclomatic 35) 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 function is counted neither in this dimension's figures nor in its score.
TiledPanes::render (cyclomatic 64) zellij-server/src/panes/tiled_panes/mod.rs:1212— TiledPanes::render has cyclomatic complexity 64 (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.
TiledPanes::stacked_resize_pane_with_id (cyclomatic 31) zellij-server/src/panes/tiled_panes/mod.rs:1893— TiledPanes::stacked_resize_pane_with_id 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.
TiledPanes::set_pane_frames (cyclomatic 22) zellij-server/src/panes/tiled_panes/mod.rs:652— TiledPanes::set_pane_frames 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.
zellij::main (cyclomatic 50) src/lib.rs:49— zellij::main has cyclomatic complexity 50 (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.
zellij::commands::start_client (cyclomatic 28) src/commands.rs:709— zellij::commands::start_client 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.
zellij::commands::run_setup_actions (cyclomatic 20) src/commands.rs:225— zellij::commands::run_setup_actions 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.
KittyGrid::delete (cyclomatic 35) zellij-server/src/panes/kitty_graphics/grid_state.rs:424— KittyGrid::delete has cyclomatic complexity 35 (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.
KittyGrid::apply_region_scroll (cyclomatic 19) zellij-server/src/panes/kitty_graphics/grid_state.rs:759— KittyGrid::apply_region_scroll 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.
KittyGrid::place (cyclomatic 18) zellij-server/src/panes/kitty_graphics/grid_state.rs:270— KittyGrid::place 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.
FloatingPaneGrid::resize (cyclomatic 29) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:96— FloatingPaneGrid::resize 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.
FloatingPaneGrid::change_pane_size (cyclomatic 26) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:482— FloatingPaneGrid::change_pane_size 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.
FloatingPaneGrid::find_room_for_new_pane (cyclomatic 26) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:798— FloatingPaneGrid::find_room_for_new_pane 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.
TerminalPane::adjust_input_to_terminal (cyclomatic 28) zellij-server/src/panes/terminal_pane.rs:339— TerminalPane::adjust_input_to_terminal has cyclomatic complexity 28 (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.
TerminalPane::render_frame (cyclomatic 24) zellij-server/src/panes/terminal_pane.rs:555— TerminalPane::render_frame 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.
TerminalPane::adjust_input_to_terminal_without_kitty_keyboard_protocol (cyclomatic 18) zellij-server/src/panes/terminal_pane.rs:1766— TerminalPane::adjust_input_to_terminal_without_kitty_keyboard_protocol 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.
KeysScreen::content (cyclomatic 26) default-plugins/configuration/src/keys_screen.rs:929— KeysScreen::content 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.
KeysScreen::render (cyclomatic 19) default-plugins/configuration/src/keys_screen.rs:1119— KeysScreen::render 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.
KeysScreen::handle_mouse (cyclomatic 17) default-plugins/configuration/src/keys_screen.rs:784— KeysScreen::handle_mouse 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.
ThemesScreen::handle_list_mouse (cyclomatic 26) default-plugins/configuration/src/themes_screen.rs:1159— ThemesScreen::handle_list_mouse 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.
ThemesScreen::render (cyclomatic 20) default-plugins/configuration/src/themes_screen.rs:1421— ThemesScreen::render 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.
ThemesScreen::handle_list_key (cyclomatic 18) default-plugins/configuration/src/themes_screen.rs:969— ThemesScreen::handle_list_key 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.
Pty::spawn_terminals_for_layout (cyclomatic 26) zellij-server/src/pty.rs:1310— Pty::spawn_terminals_for_layout 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. This is NOT this file's highest cyclomatic complexity: PtyContext::from (cyclomatic 31) 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 function is counted neither in this dimension's figures nor in its score.
Pty::apply_run_instruction (cyclomatic 25) zellij-server/src/pty.rs:1732— Pty::apply_run_instruction 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. This is NOT this file's highest cyclomatic complexity: PtyContext::from (cyclomatic 31) 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 function is counted neither in this dimension's figures nor in its score.
Pty::spawn_terminals_for_layout_override (cyclomatic 17) zellij-server/src/pty.rs:1536— Pty::spawn_terminals_for_layout_override 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 is NOT this file's highest cyclomatic complexity: PtyContext::from (cyclomatic 31) 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 function is counted neither in this dimension's figures nor in its score.
ActionPicker::handle_mouse (cyclomatic 25) default-plugins/configuration/src/action_picker.rs:1317— ActionPicker::handle_mouse 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.
ActionPicker::render (cyclomatic 24) default-plugins/configuration/src/action_picker.rs:1455— ActionPicker::render 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.
ActionPicker::handle_list_key (cyclomatic 19) default-plugins/configuration/src/action_picker.rs:1276— ActionPicker::handle_list_key has cyclomatic complexity 19 (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.
SetupScreen::handle_key (cyclomatic 23) default-plugins/configuration/src/setup_screen.rs:702— SetupScreen::handle_key has cyclomatic complexity 23 (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.
SetupScreen::render (cyclomatic 20) default-plugins/configuration/src/setup_screen.rs:826— SetupScreen::render 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.
SetupScreen::result_blocks (cyclomatic 19) default-plugins/configuration/src/setup_screen.rs:1108— SetupScreen::result_blocks has cyclomatic complexity 19 (threshold 15). 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.
KdlLayoutParser::parse_floating_pane_node_with_template (cyclomatic 21) zellij-utils/src/kdl/kdl_layout_parser.rs:891— KdlLayoutParser::parse_floating_pane_node_with_template 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.
KdlLayoutParser::differentiate_pane_and_floating_pane_template (cyclomatic 17) zellij-utils/src/kdl/kdl_layout_parser.rs:1088— KdlLayoutParser::differentiate_pane_and_floating_pane_template 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.
KdlLayoutParser::populate_layout_child (cyclomatic 17) zellij-utils/src/kdl/kdl_layout_parser.rs:2359— KdlLayoutParser::populate_layout_child 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.
configuration::action_picker::build_action (cyclomatic 20) default-plugins/configuration/src/action_picker.rs:630— configuration::action_picker::build_action 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.
configuration::blocks_screen::check_plugin_location (cyclomatic 18) default-plugins/configuration/src/blocks_screen.rs:19— configuration::blocks_screen::check_plugin_location 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.
configuration::settings::check_text (cyclomatic 17) default-plugins/configuration/src/settings.rs:1942— configuration::settings::check_text has cyclomatic complexity 17 (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: configuration::settings::describe (cyclomatic 173) 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 function is counted neither in this dimension's figures nor in its score.
Repeated repair: zellij-server/src/tab/layout_applier.rs zellij-server/src/tab/layout_applier.rs:751— zellij-server/src/tab/layout_applier.rs 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 11 (its worst body is LayoutApplier::new_terminal_pane at line 751), 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: preserve relative pane order when reapplying tiled layouts (#5687)”; “fix: screen surface stability (#5683)”; “fix: do the right thing when multiple plugin panes exist on the edge (#5653)”; “Yazelix fixes (sixel/kitty correctness, explicit-swap-layout change rather than toggle, border styling) (#5630)”. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-server/src/tab/layout_applier.rs`: 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: zellij-utils/src/consts.rs zellij-utils/src/consts.rs:77— zellij-utils/src/consts.rs 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 7 (its worst body is zellij_utils::consts::prune_empty_session_info_folders at line 77), 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(sessions): decouple session names from socket and pipe filenames (#5513)”; “Yazelix fixes (sixel/kitty correctness, explicit-swap-layout change rather than toggle, border styling) (#5630)”; “fix(plugins): don't copy embedded plugin assets onto the heap (#5622)”; “fix: allow building without bundled plugin assets (#5433)”. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/consts.rs`: 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: zellij-utils/src/session_serialization.rs zellij-utils/src/session_serialization.rs:466— zellij-utils/src/session_serialization.rs 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 zellij_utils::session_serialization::serialize_floating_layout_attributes at line 466), 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(resurrection): stop saving layouts that fail to reload, and attach to live sessions regardless (#5690)”; “Yazelix fixes (sixel/kitty correctness, explicit-swap-layout change rather than toggle, border styling) (#5630)”; “Fixes before 045 (#5492)”. 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-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 17:42:30 +02:00' --until='2026-10-23 17:42:30 +02:00' --full-history --no-merges -- zellij-utils/src/session_serialization.rs`: 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.
FloatingPanes::render (cognitive 130) zellij-server/src/panes/floating_panes/mod.rs:560— FloatingPanes::render has cognitive complexity 130 (threshold 15). Drivers by points: if/else 35 (100 pts), loops 7 (15 pts), boolean chains 13, match/switch 1 (2 pts) (nesting depth added 74). 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.
FloatingPanes::move_focus (cognitive 19) zellij-server/src/panes/floating_panes/mod.rs:930— FloatingPanes::move_focus has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (5 pts), match/switch 2 (4 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.
FloatingPanes::set_pane_frames (cognitive 18) zellij-server/src/panes/floating_panes/mod.rs:504— FloatingPanes::set_pane_frames has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), 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.
TabBar::update_client (cognitive 100) default-plugins/bars/src/tab_bar/mod.rs:294— TabBar::update_client has cognitive complexity 100 (threshold 15). Drivers by points: if/else 31 (86 pts), match/switch 4 (9 pts), boolean chains 5 (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TabBar::update (cognitive 20) default-plugins/bars/src/tab_bar/mod.rs:252— TabBar::update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 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.
TabBar::compose_line (cognitive 16) default-plugins/bars/src/tab_bar/mod.rs:523— TabBar::compose_line has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, 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.
StdinAnsiParser::feed (cognitive 78) zellij-client/src/stdin_ansi_parser.rs:544— StdinAnsiParser::feed has cognitive complexity 78 (threshold 15). Drivers by points: if/else 19 (69 pts), match/switch 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
StdinAnsiParser::strip_replies (cognitive 47) zellij-client/src/stdin_ansi_parser.rs:858— StdinAnsiParser::strip_replies has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (32 pts), match/switch 3 (10 pts), boolean chains 4, loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
StdinAnsiParser::extract_kitty_probe_reply (cognitive 27) zellij-client/src/stdin_ansi_parser.rs:779— StdinAnsiParser::extract_kitty_probe_reply has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 2 (6 pts), boolean chains 4, 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.
TiledPaneGrid::change_pane_size (cognitive 71) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:230— TiledPaneGrid::change_pane_size has cognitive complexity 71 (threshold 15). Drivers by points: if/else 31 (53 pts), boolean chains 9, loops 3 (6 pts), match/switch 2 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TiledPaneGrid::can_change_pane_size (cognitive 45) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:141— TiledPaneGrid::can_change_pane_size has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 4 (13 pts), loops 3 (11 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TiledPaneGrid::contiguous_panes_with_alignment (cognitive 25) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:730— TiledPaneGrid::contiguous_panes_with_alignment has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 7 (9 pts), loops 2 (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.
FloatingPaneGrid::resize (cognitive 70) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:96— FloatingPaneGrid::resize has cognitive complexity 70 (threshold 15). Drivers by points: if/else 27 (64 pts), boolean chains 5, loops 1 (nesting depth added 37). 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.
FloatingPaneGrid::find_room_for_new_pane (cognitive 35) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:798— FloatingPaneGrid::find_room_for_new_pane has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 5, loops 5 (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.
FloatingPaneGrid::change_pane_size (cognitive 30) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:482— FloatingPaneGrid::change_pane_size has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 12 (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.
CharacterStyles::fmt (cognitive 44) zellij-server/src/panes/terminal_character.rs:631— CharacterStyles::fmt has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (22 pts), match/switch 11 (20 pts), boolean chains 2 (nesting depth added 14). 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.
CharacterStyles::add_style_from_ansi_params (cognitive 33) zellij-server/src/panes/terminal_character.rs:473— CharacterStyles::add_style_from_ansi_params has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (30 pts), match/switch 1 (2 pts), loops 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.
CharacterStyles::update_and_return_diff (cognitive 27) zellij-server/src/panes/terminal_character.rs:384— CharacterStyles::update_and_return_diff has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 1 (nesting depth added 6). 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.
SessionSuggestionsService::run (cognitive 44) zellij-server/src/session_suggestions.rs:226— SessionSuggestionsService::run has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (29 pts), match/switch 4 (10 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SessionSuggestionsService::handle (cognitive 28) zellij-server/src/session_suggestions.rs:332— SessionSuggestionsService::handle has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 3, match/switch 1 (nesting depth added 12). 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.
SessionSuggestionsService::send_suggestions (cognitive 17) zellij-server/src/session_suggestions.rs:822— SessionSuggestionsService::send_suggestions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 3 (4 pts), boolean chains 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.
Inbox::block_lines (cognitive 27) default-plugins/session-manager/src/inbox.rs:2080— Inbox::block_lines has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 3 (4 pts), boolean chains 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.
Inbox::render_card (cognitive 25) default-plugins/session-manager/src/inbox.rs:2188— Inbox::render_card has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (22 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.
Inbox::render_list (cognitive 20) default-plugins/session-manager/src/inbox.rs:1719— Inbox::render_list has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 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.
D30 · Dependency Vulnerabilities· Medium vulnerability · ×3
Duplicated block (14–15 lines × 2) default-plugins/layout-manager/src/screens/new_layout_from_session.rs:91— default-plugins/layout-manager/src/screens/new_layout_from_session.rs:91-104 | default-plugins/layout-manager/src/screens/new_layout_from_session.rs:107-121 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 2) zellij-server/src/panes/kitty_graphics/grid_state.rs:1061— zellij-server/src/panes/kitty_graphics/grid_state.rs:1061-1074 | zellij-server/src/panes/sixel.rs:420-434 — before extracting anything, compare `zellij-server/src/panes/kitty_graphics/grid_state.rs` and `zellij-server/src/panes/sixel.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:2288— zellij-server/src/panes/tiled_panes/mod.rs:2288-2302 | zellij-server/src/panes/tiled_panes/mod.rs:2326-2339 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–14 lines × 2) default-plugins/session-manager/src/main.rs:589— default-plugins/session-manager/src/main.rs:589-602 | default-plugins/session-manager/src/main.rs:3166-3177 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–14 lines × 2) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:755— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:755-768 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:777-788 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–14 lines × 2) zellij-server/src/panes/tiled_panes/mod.rs:1635— zellij-server/src/panes/tiled_panes/mod.rs:1635-1646 | zellij-server/src/panes/tiled_panes/mod.rs:1654-1667 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–8 lines × 2) zellij-server/src/screen.rs:6903— zellij-server/src/screen.rs:6903-6909 | zellij-server/src/screen.rs:6950-6957 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–8 lines × 2) zellij-server/src/session_previews.rs:158— zellij-server/src/session_previews.rs:158-164 | zellij-server/src/session_previews.rs:177-184 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–8 lines × 2) zellij-server/src/ui/pane_boundaries_frame.rs:737— zellij-server/src/ui/pane_boundaries_frame.rs:737-743 | zellij-server/src/ui/pane_boundaries_frame.rs:759-766 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 3) zellij-utils/src/input/options.rs:720— zellij-utils/src/input/options.rs:720-730 | zellij-utils/src/input/options.rs:745-751 | zellij-utils/src/input/options.rs:933-943 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) zellij-utils/src/kdl/mod.rs:2344— zellij-utils/src/kdl/mod.rs:2344-2350 | zellij-utils/src/kdl/mod.rs:2472-2479 | zellij-utils/src/kdl/mod.rs:2528-2535 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) default-plugins/bars/src/compact_bar/mod.rs:995— default-plugins/bars/src/compact_bar/mod.rs:995-1001 | default-plugins/bars/src/status_bar/mod.rs:637-643 | default-plugins/bars/src/tab_bar/mod.rs:508-514 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/status_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (5 lines × 3) zellij-window/src/discovery.rs:286— zellij-window/src/discovery.rs:286-290 | zellij-window/src/discovery.rs:323-327 | zellij-window/src/discovery.rs:373-378 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) zellij-server/src/panes/tiled_panes/stacked_panes.rs:1042— zellij-server/src/panes/tiled_panes/stacked_panes.rs:1042-1046 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:1091-1096 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:1127-1132 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) default-plugins/bars/src/status_bar/tip/data/send_mouse_click_to_terminal.rs:33— default-plugins/bars/src/status_bar/tip/data/send_mouse_click_to_terminal.rs:33-37 | default-plugins/bars/src/status_bar/tip/data/send_mouse_click_to_terminal.rs:45-49 | default-plugins/bars/src/status_bar/tip/data/send_mouse_click_to_terminal.rs:58-62 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
X15 · Unvalidated length from an untrusted reader· Length read from the parsed input is spent without ever being bounded · ×3
Length read from the parsed input is spent without ever being bounded zellij-utils/src/ipc.rs:570— `len` is read from the bytes being parsed at line 568 (`u32::from_le_bytes`), then used to size a `vec![…; n]` at line 570 — and nowhere in its scope is `len` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with `memory allocation of … bytes failed` — an abort, not a panic, so no `catch_unwind` intercepts it and the whole process dies; a 64-bit length past `isize::MAX` panics with `capacity overflow` instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound `len` against the bytes actually remaining and a maximum the format allows before allocating.
Length read from the parsed input is spent without ever being bounded zellij-utils/src/web_server_commands.rs:120— `len` is read from the bytes being parsed at line 118 (`u32::from_le_bytes`), then used to size a `vec![…; n]` at line 120 — and nowhere in its scope is `len` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with `memory allocation of … bytes failed` — an abort, not a panic, so no `catch_unwind` intercepts it and the whole process dies; a 64-bit length past `isize::MAX` panics with `capacity overflow` instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound `len` against the bytes actually remaining and a maximum the format allows before allocating.
Length read from the parsed input is spent without ever being bounded zellij-client/src/web_client/ipc_listener.rs:35— `len` is read from the bytes being parsed at line 32 (`u32::from_le_bytes`), then used to size a `vec![…; n]` at line 35 — and nowhere in its scope is `len` compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with `memory allocation of … bytes failed` — an abort, not a panic, so no `catch_unwind` intercepts it and the whole process dies; a 64-bit length past `isize::MAX` panics with `capacity overflow` instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound `len` against the bytes actually remaining and a maximum the format allows before allocating.
Options::to_kdl (cyclomatic 69) zellij-utils/src/kdl/mod.rs:5564— Options::to_kdl has cyclomatic complexity 69 (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.
Options::from_kdl (cyclomatic 16) zellij-utils/src/kdl/mod.rs:3221— Options::from_kdl 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: zellij_utils::kdl::action_without_arguments (cyclomatic 68) 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 function is counted neither in this dimension's figures nor in its score.
WindowConfig::from_kdl (cyclomatic 45) zellij-utils/src/input/window.rs:513— WindowConfig::from_kdl has cyclomatic complexity 45 (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.
WindowConfig::to_kdl (cyclomatic 45) zellij-utils/src/input/window.rs:665— WindowConfig::to_kdl has cyclomatic complexity 45 (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.
TiledPaneGrid::change_pane_size (cyclomatic 37) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:230— TiledPaneGrid::change_pane_size has cyclomatic complexity 37 (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.
TiledPaneGrid::contiguous_panes_with_alignment (cyclomatic 29) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:730— TiledPaneGrid::contiguous_panes_with_alignment has cyclomatic complexity 29 (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.
StatusBar::update_client (cyclomatic 31) default-plugins/bars/src/status_bar/mod.rs:503— StatusBar::update_client 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.
StatusBar::render_client (cyclomatic 21) default-plugins/bars/src/status_bar/mod.rs:652— StatusBar::render_client 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.
CompactBar::handle_mouse_event (cyclomatic 30) default-plugins/bars/src/compact_bar/mod.rs:606— CompactBar::handle_mouse_event 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.
CompactBar::update (cyclomatic 16) default-plugins/bars/src/compact_bar/mod.rs:388— CompactBar::update 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.
FormScreen::render (cyclomatic 29) default-plugins/prompt/src/form.rs:500— FormScreen::render 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.
FormScreen::handle_key (cyclomatic 20) default-plugins/prompt/src/form.rs:390— FormScreen::handle_key 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.
SessionSuggestionsService::handle (cyclomatic 29) zellij-server/src/session_suggestions.rs:332— SessionSuggestionsService::handle 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.
SessionSuggestionsService::run (cyclomatic 21) zellij-server/src/session_suggestions.rs:226— SessionSuggestionsService::run 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.
StdinAnsiParser::feed (cyclomatic 27) zellij-client/src/stdin_ansi_parser.rs:544— StdinAnsiParser::feed 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.
StdinAnsiParser::strip_replies (cyclomatic 22) zellij-client/src/stdin_ansi_parser.rs:858— StdinAnsiParser::strip_replies 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.
FloatingPanesStack::remove_covered_kitty_parts (cyclomatic 27) zellij-server/src/output/mod.rs:2774— FloatingPanesStack::remove_covered_kitty_parts has cyclomatic complexity 27 (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.
FloatingPanesStack::remove_covered_sixel_parts (cyclomatic 26) zellij-server/src/output/mod.rs:3001— FloatingPanesStack::remove_covered_sixel_parts 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.
Desktop::carry_out (cyclomatic 27) zellij-window/src/window/desktop.rs:331— Desktop::carry_out 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.
Desktop::app_event (cyclomatic 17) zellij-window/src/window/desktop.rs:885— Desktop::app_event has cyclomatic complexity 17 (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.
EntryForm::render_dialog (cyclomatic 26) default-plugins/configuration/src/list_editor.rs:586— EntryForm::render_dialog 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.
EntryForm::handle_dialog_key (cyclomatic 25) default-plugins/configuration/src/list_editor.rs:480— EntryForm::handle_dialog_key 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.
xtask::pipelines::publish (cyclomatic 26) xtask/src/pipelines.rs:207— xtask::pipelines::publish has cyclomatic complexity 26 (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.
xtask::assets::flatten_module (cyclomatic 17) xtask/src/assets.rs:149— xtask::assets::flatten_module 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.
KeybindingsScreen::handle_form_key (cyclomatic 25) default-plugins/configuration/src/keybindings_screen.rs:584— KeybindingsScreen::handle_form_key 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.
KeybindingsScreen::render_form (cyclomatic 20) default-plugins/configuration/src/keybindings_screen.rs:666— KeybindingsScreen::render_form 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.
initWebSockets.onmessage (cyclomatic 23) zellij-client/assets/app.js:3178— initWebSockets.onmessage has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body's own statements and 11 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.
initWebSockets.onmessage (cyclomatic 23) zellij-client/assets/websockets.js:147— initWebSockets.onmessage has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body's own statements and 11 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.
GeometryRecord::border_pointer (cyclomatic 22) zellij-utils/src/structured_render.rs:715— GeometryRecord::border_pointer has cyclomatic complexity 22 (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.
GeometryRecord::pointer_at (cyclomatic 16) zellij-utils/src/structured_render.rs:677— GeometryRecord::pointer_at 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.
startWsControl::onmessage (cyclomatic 22) zellij-client/assets/app.js:3265— startWsControl::onmessage 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.
startWsControl::onmessage (cyclomatic 22) zellij-client/assets/websockets.js:234— startWsControl::onmessage 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.
Inbox::render_card (cyclomatic 18) default-plugins/session-manager/src/inbox.rs:2188— Inbox::render_card 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.
Inbox::block_lines (cyclomatic 16) default-plugins/session-manager/src/inbox.rs:2080— Inbox::block_lines 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.
HackComment zellij-server/src/unit/screen_tests.rs:766— // hack that only clones the clonable parts of SessionMetaData — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment zellij-server/src/panes/tiled_panes/pane_resizer.rs:130— // HACK: This whole function is a bit of a hack — it's here to stop us from breaking the layout if we've been given — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
Options::to_kdl (cognitive 68) zellij-utils/src/kdl/mod.rs:5564— Options::to_kdl has cognitive complexity 68 (threshold 15). Drivers by points: if/else 68. 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.
Options::from_kdl (cognitive 17) zellij-utils/src/kdl/mod.rs:3221— Options::from_kdl has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 14 (17 pts) (nesting depth added 3). 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.
WindowConfig::to_kdl (cognitive 58) zellij-utils/src/input/window.rs:665— WindowConfig::to_kdl has cognitive complexity 58 (threshold 15). Drivers by points: if/else 36 (45 pts), loops 10 (13 pts) (nesting depth added 12). 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.
WindowConfig::from_kdl (cognitive 48) zellij-utils/src/input/window.rs:513— WindowConfig::from_kdl has cognitive complexity 48 (threshold 15). Drivers by points: if/else 40 (44 pts), loops 4 (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.
installTouchGestures (cognitive 49) zellij-client/assets/app.js:1326— installTouchGestures has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 11, loops 4, error handling 1 (3 pts), ternaries 3 (nesting depth added 10). None of this is in the body itself: all 49 points belong to 11 function items inside it that branch (a function literal at line 1477, a function literal at line 1400, a function literal at line 1550, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
installTouchGestures (cognitive 49) zellij-client/assets/touch.js:7— installTouchGestures has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 11, loops 4, error handling 1 (3 pts), ternaries 3 (nesting depth added 10). None of this is in the body itself: all 49 points belong to 11 function items inside it that branch (a function literal at line 158, a function literal at line 81, a function literal at line 231, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
StatusBar::update_client (cognitive 44) default-plugins/bars/src/status_bar/mod.rs:503— StatusBar::update_client has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (37 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 26). 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.
StatusBar::render_client (cognitive 39) default-plugins/bars/src/status_bar/mod.rs:652— StatusBar::render_client has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (34 pts), match/switch 2 (3 pts), boolean chains 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.
initWebSockets.onmessage (cognitive 44) zellij-client/assets/app.js:3178— initWebSockets.onmessage has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 8 (27 pts), if/else 5 (12 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 27). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to one function literal inside it that branches (line 3198). 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.
initWebSockets.onmessage (cognitive 44) zellij-client/assets/websockets.js:147— initWebSockets.onmessage has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 8 (27 pts), if/else 5 (12 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 27). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to one function literal inside it that branches (line 167). 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.
KeybindProcessor::find_predetermined_actions (cognitive 38) default-plugins/bars/src/compact_bar/keybind_utils.rs:74— KeybindProcessor::find_predetermined_actions has cognitive complexity 38 (threshold 15). Drivers by points: if/else 6 (30 pts), loops 3 (8 pts) (nesting depth added 29). 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.
KeybindProcessor::group_key_chunks (cognitive 31) default-plugins/bars/src/compact_bar/keybind_utils.rs:139— KeybindProcessor::group_key_chunks has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 4 (5 pts), boolean chains 3, match/switch 1 (2 pts) (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.
startWsControl::onmessage (cognitive 37) zellij-client/assets/app.js:3265— startWsControl::onmessage has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (29 pts), loops 3 (6 pts), boolean chains 2 (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.
startWsControl::onmessage (cognitive 37) zellij-client/assets/websockets.js:234— startWsControl::onmessage has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (29 pts), loops 3 (6 pts), boolean chains 2 (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.
KeybindingsScreen::handle_form_key (cognitive 36) default-plugins/configuration/src/keybindings_screen.rs:584— KeybindingsScreen::handle_form_key has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 5, match/switch 1 (2 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.
KeybindingsScreen::render_form (cognitive 23) default-plugins/configuration/src/keybindings_screen.rs:666— KeybindingsScreen::render_form has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 7, loops 1, match/switch 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.
FloatingPanesStack::remove_covered_kitty_parts (cognitive 36) zellij-server/src/output/mod.rs:2774— FloatingPanesStack::remove_covered_kitty_parts has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 14 (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.
FloatingPanesStack::remove_covered_sixel_parts (cognitive 35) zellij-server/src/output/mod.rs:3001— FloatingPanesStack::remove_covered_sixel_parts has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 13 (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.
Output::serialize (cognitive 35) zellij-server/src/output/mod.rs:2182— Output::serialize has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 5 (14 pts) (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.
Output::serialize_with_size (cognitive 30) zellij-server/src/output/mod.rs:2511— Output::serialize_with_size has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (11 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.
SwapLayouts::swap_floating_panes (cognitive 32) zellij-server/src/tab/swap_layouts.rs:122— SwapLayouts::swap_floating_panes has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (28 pts), match/switch 1 (2 pts), boolean chains 1, 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. This shape REPEATS in the file: one other method here (SwapLayouts::swap_tiled_panes) 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.
SwapLayouts::swap_tiled_panes (cognitive 32) zellij-server/src/tab/swap_layouts.rs:262— SwapLayouts::swap_tiled_panes has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (28 pts), match/switch 1 (2 pts), boolean chains 1, 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. This shape REPEATS in the file: one other method here (SwapLayouts::swap_floating_panes) 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.
FontStack::composite (cognitive 28) zellij-window/src/font.rs:765— FontStack::composite has cognitive complexity 28 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 6 (11 pts), match/switch 1 (4 pts), boolean chains 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.
FontStack::rasterize_cluster (cognitive 22) zellij-window/src/font.rs:696— FontStack::rasterize_cluster has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8, match/switch 5 (8 pts), boolean chains 6 (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.
installCustomKeyHandler (cognitive 28) zellij-client/assets/app.js:955— installCustomKeyHandler has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 11 (nesting depth added 8). None of this is in the body itself: all 28 points belong to one function literal inside it that branches (line 956). 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.
installCustomKeyHandler (cognitive 28) zellij-client/assets/key-handler.js:4— installCustomKeyHandler has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 11 (nesting depth added 8). None of this is in the body itself: all 28 points belong to one function literal inside it that branches (line 5). 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.
SessionList::move_selection_down (cognitive 24) default-plugins/session-manager/src/session_list.rs:167— SessionList::move_selection_down has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 2 (4 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. This shape REPEATS in the file: one other method here (SessionList::move_selection_up) 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.
SessionList::move_selection_up (cognitive 24) default-plugins/session-manager/src/session_list.rs:222— SessionList::move_selection_up has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 2 (4 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. This shape REPEATS in the file: one other method here (SessionList::move_selection_down) 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.
GeometryRecord::pointer_at (cognitive 24) zellij-utils/src/structured_render.rs:677— GeometryRecord::pointer_at has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 4, match/switch 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.
GeometryRecord::border_pointer (cognitive 24) zellij-utils/src/structured_render.rs:715— GeometryRecord::border_pointer has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (10 pts), loops 1, 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.
ScrollAnimations::build_layer (cognitive 24) zellij-window/src/scroll_animation.rs:360— ScrollAnimations::build_layer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (10 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.
ScrollAnimations::note_frame (cognitive 22) zellij-window/src/scroll_animation.rs:232— ScrollAnimations::note_frame has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, match/switch 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.
installSoftKeyboardCapture (cognitive 24) zellij-client/assets/app.js:658— installSoftKeyboardCapture has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, boolean chains 7, loops 4, error handling 2, match/switch 1. Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 11 function items inside it that branch (ensureCaptureFocused, diff, a function literal at line 812, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
installSoftKeyboardCapture (cognitive 24) zellij-client/assets/soft-keyboard.js:14— installSoftKeyboardCapture has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, boolean chains 7, loops 4, error handling 2, match/switch 1. Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 11 function items inside it that branch (ensureCaptureFocused, diff, a function literal at line 168, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
AttentionTracker::candidates (cognitive 23) zellij-server/src/attention/tracker.rs:828— AttentionTracker::candidates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 2 (4 pts), boolean chains 3 (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.
AttentionTracker::sync_panes (cognitive 17) zellij-server/src/attention/tracker.rs:415— AttentionTracker::sync_panes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 3 (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.
SixelGrid::changed_sixel_chunks_in_viewport (cognitive 23) zellij-server/src/panes/sixel.rs:369— SixelGrid::changed_sixel_chunks_in_viewport has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (5 pts), boolean chains 4 (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.
SixelGrid::end_image (cognitive 21) zellij-server/src/panes/sixel.rs:146— SixelGrid::end_image has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (6 pts), boolean chains 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.
FocusGroup::handle_mouse (cognitive 23) zellij-tile/src/ui_components/focus_group.rs:324— FocusGroup::handle_mouse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (3 pts), boolean chains 2, 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.
FocusGroup::next_focusable (cognitive 19) zellij-tile/src/ui_components/focus_group.rs:208— FocusGroup::next_focusable has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1, match/switch 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.
Row::rewrap_rows (cognitive 22) zellij-server/src/panes/grid.rs:7043— Row::rewrap_rows has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 6 (9 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Row::overwrite_at (cognitive 21) zellij-server/src/panes/grid.rs:6783— Row::overwrite_at has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 8, loops 3 (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.
PluginPane::adjust_input_to_terminal (cognitive 21) zellij-server/src/panes/plugin_pane.rs:284— PluginPane::adjust_input_to_terminal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 3 (9 pts) (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.
PluginPane::render_frame (cognitive 20) zellij-server/src/panes/plugin_pane.rs:438— PluginPane::render_frame has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, match/switch 1 (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.
Page::handle_mouse_hover (cognitive 19) default-plugins/about/src/pages.rs:974— Page::handle_mouse_hover has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (4 pts), match/switch 1 (2 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.
Page::new_tip_screen (cognitive 18) default-plugins/about/src/tips.rs:12— Page::new_tip_screen has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. 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.
TiledPaneLayout::position_panes_in_space (cognitive 18) zellij-utils/src/input/layout.rs:970— TiledPaneLayout::position_panes_in_space has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, loops 1, match/switch 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.
TiledPaneLayout::extract_run_instructions (cognitive 16) zellij-utils/src/input/layout.rs:1028— TiledPaneLayout::extract_run_instructions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), match/switch 1 (3 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.
ContextMenuConfig::to_kdl (cognitive 17) zellij-utils/src/kdl/mod.rs:7066— ContextMenuConfig::to_kdl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (7 pts), match/switch 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.
ContextMenuConfig::from_kdl (cognitive 16) zellij-utils/src/kdl/mod.rs:6934— ContextMenuConfig::from_kdl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (6 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.
ResurrectableSessions::move_selection_down (cognitive 16) default-plugins/session-manager/src/resurrectable_sessions.rs:205— ResurrectableSessions::move_selection_down has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 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. This shape REPEATS in the file: one other method here (ResurrectableSessions::move_selection_up) 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.
ResurrectableSessions::move_selection_up (cognitive 16) default-plugins/session-manager/src/resurrectable_sessions.rs:228— ResurrectableSessions::move_selection_up has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 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. This shape REPEATS in the file: one other method here (ResurrectableSessions::move_selection_down) 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.
Change coupling: mod.rs ↔ mod.rs zellij-server/src/panes/floating_panes/mod.rs:1— `zellij-server/src/panes/floating_panes/mod.rs` and `zellij-server/src/panes/tiled_panes/mod.rs` change together 61% of the time (23 of the 38 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 23 shared commits counted here, the most recent 3 are `1dbc2923` fix: screen surface stability (#5683); `c3c7e659` fix(sixel): only advertise capability if host terminal supports it (#…; `8a35d678` fix: focus last pane correctness issues (#5344) — run `git show` on any of them.
Change coupling: plugin_pane.rs ↔ pane_contents_and_ui.rs zellij-server/src/panes/plugin_pane.rs:1— `zellij-server/src/panes/plugin_pane.rs` and `zellij-server/src/ui/pane_contents_and_ui.rs` change together 56% of the time (9 of the 16 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 9 shared commits counted here, the most recent 3 are `27a825eb` fix: position host cursor for CJK IME even when app hides cursor (#4951); `b7cc3f3a` fix(panes): various fixes for rendering stacked panes without pane fr…; `c3115a42` fix(panes): show visual error when unable to split panes vertically/h… — run `git show` on any of them.
D4 · Code Duplication· Members sharing a duplicated core (12 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (12 members, 50+ identical tokens) default-plugins/about/src/tips.rs:55— default-plugins/about/src/tips.rs:55-98 | default-plugins/about/src/tips.rs:99-149 | default-plugins/about/src/tips.rs:150-181 | default-plugins/about/src/tips.rs:182-237 | default-plugins/about/src/tips.rs:238-307 | default-plugins/about/src/tips.rs:308-370 | default-plugins/about/src/tips.rs:371-429 | default-plugins/about/src/tips.rs:430-463 | default-plugins/about/src/tips.rs:464-537 | default-plugins/about/src/tips.rs:538-596 | default-plugins/about/src/tips.rs:597-649 | default-plugins/about/src/tips.rs:650-705 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Members sharing a duplicated core (12 members, 50+ identical tokens) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:604— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:604-629 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:630-673 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:674-699 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:700-725 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:726-751 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:924-951 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:952-984 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:985-1017 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1022-1047 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1048-1091 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1096-1121 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1122-1150 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (6 members, 50+ identical tokens) default-plugins/bars/src/status_bar/one_line_ui.rs:1775— default-plugins/bars/src/status_bar/one_line_ui.rs:1775-1792 | default-plugins/bars/src/status_bar/one_line_ui.rs:1794-1811 | default-plugins/bars/src/status_bar/one_line_ui.rs:1813-1830 | default-plugins/bars/src/status_bar/one_line_ui.rs:1832-1849 | default-plugins/bars/src/status_bar/one_line_ui.rs:1851-1868 | default-plugins/bars/src/status_bar/one_line_ui.rs:1870-1887 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) zellij-server/src/ui/pane_boundaries_frame.rs:729— zellij-server/src/ui/pane_boundaries_frame.rs:729-746 | zellij-server/src/ui/pane_boundaries_frame.rs:751-767 | zellij-server/src/ui/pane_boundaries_frame.rs:1150-1179 | zellij-server/src/ui/pane_boundaries_frame.rs:1180-1213 | zellij-server/src/ui/pane_boundaries_frame.rs:1243-1300 | zellij-server/src/ui/pane_boundaries_frame.rs:1301-1328 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Duplicated block (34 lines × 2) zellij-server/src/pty.rs:655— zellij-server/src/pty.rs:655-688 | zellij-server/src/pty.rs:707-740 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (34 lines × 2) zellij-utils/src/data.rs:3125— zellij-utils/src/data.rs:3125-3158 | zellij-utils/src/data.rs:3183-3216 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (30 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1657— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1657-1686 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2088-2117 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (30 lines × 2) zellij-server/src/pty.rs:1409— zellij-server/src/pty.rs:1409-1438 | zellij-server/src/pty.rs:1611-1640 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (29 lines × 2) zellij-server/src/panes/grid.rs:4500— zellij-server/src/panes/grid.rs:4500-4528 | zellij-server/src/panes/grid.rs:4531-4559 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (29 lines × 2) zellij-server/src/screen.rs:14416— zellij-server/src/screen.rs:14416-14444 | zellij-utils/src/input/actions.rs:1276-1304 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (26 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:449— zellij-server/src/panes/tiled_panes/stacked_panes.rs:449-474 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:482-507 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (26 lines × 2) zellij-server/src/pty.rs:368— zellij-server/src/pty.rs:368-393 | zellij-server/src/pty.rs:462-487 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (25 lines × 4) zellij-server/src/tab/mod.rs:2964— zellij-server/src/tab/mod.rs:2964-2988 | zellij-server/src/tab/mod.rs:3092-3116 | zellij-server/src/tab/mod.rs:3210-3234 | zellij-server/src/tab/mod.rs:3391-3415 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (25 lines × 4) zellij-server/src/tab/mod.rs:2990— zellij-server/src/tab/mod.rs:2990-3014 | zellij-server/src/tab/mod.rs:3118-3142 | zellij-server/src/tab/mod.rs:3236-3260 | zellij-server/src/tab/mod.rs:3417-3441 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (24–25 lines × 2) zellij-client/src/lib.rs:1813— zellij-client/src/lib.rs:1813-1837 | zellij-client/src/lib.rs:1873-1896 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24–25 lines × 2) zellij-server/src/output/mod.rs:199— zellij-server/src/output/mod.rs:199-223 | zellij-server/src/output/mod.rs:881-904 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) zellij-server/src/panes/tiled_panes/stacked_panes.rs:1093— zellij-server/src/panes/tiled_panes/stacked_panes.rs:1093-1116 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:1129-1152 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) zellij-server/src/tab/mod.rs:3908— zellij-server/src/tab/mod.rs:3908-3931 | zellij-server/src/tab/mod.rs:4001-4024 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21–22 lines × 2) default-plugins/bars/src/status_bar/tip/data/move_focus_hjkl_tab_switch.rs:55— default-plugins/bars/src/status_bar/tip/data/move_focus_hjkl_tab_switch.rs:55-76 | default-plugins/bars/src/status_bar/tip/data/quicknav.rs:123-143 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (21–22 lines × 2) zellij-server/src/panes/floating_panes/mod.rs:1599— zellij-server/src/panes/floating_panes/mod.rs:1599-1619 | zellij-server/src/panes/floating_panes/mod.rs:1637-1658 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20–21 lines × 2) zellij-server/src/output/mod.rs:2882— zellij-server/src/output/mod.rs:2882-2901 | zellij-server/src/output/mod.rs:3115-3135 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20–21 lines × 2) zellij-window/src/discovery.rs:284— zellij-window/src/discovery.rs:284-304 | zellij-window/src/discovery.rs:322-341 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21 lines × 2) zellij-server/src/panes/terminal_character.rs:118— zellij-server/src/panes/terminal_character.rs:118-138 | zellij-server/src/panes/terminal_character.rs:140-160 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21 lines × 2) zellij-server/src/tab/mod.rs:3685— zellij-server/src/tab/mod.rs:3685-3705 | zellij-server/src/tab/mod.rs:3763-3783 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19–20 lines × 2) default-plugins/bars/src/compact_bar/mod.rs:1167— default-plugins/bars/src/compact_bar/mod.rs:1167-1186 | default-plugins/bars/src/tab_bar/mod.rs:552-570 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/tab_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 102 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (19–20 lines × 2) default-plugins/session-manager/src/main.rs:1091— default-plugins/session-manager/src/main.rs:1091-1110 | default-plugins/session-manager/src/ui/components.rs:1109-1127 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (17–19 lines × 2) default-plugins/layout-manager/src/screens/import_layout.rs:240— default-plugins/layout-manager/src/screens/import_layout.rs:240-258 | default-plugins/layout-manager/src/screens/new_layout_from_session.rs:186-202 — before extracting anything, compare `default-plugins/layout-manager/src/screens/import_layout.rs` and `default-plugins/layout-manager/src/screens/new_layout_from_session.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17–19 lines × 2) zellij-server/src/plugins/pipes.rs:337— zellij-server/src/plugins/pipes.rs:337-353 | zellij-server/src/plugins/wasm_bridge.rs:3556-3574 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (18 lines × 3) default-plugins/session-manager/src/ui/components.rs:301— default-plugins/session-manager/src/ui/components.rs:301-318 | default-plugins/session-manager/src/ui/components.rs:325-342 | default-plugins/session-manager/src/ui/components.rs:344-361 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (18 lines × 3) zellij-server/src/pty.rs:1878— zellij-server/src/pty.rs:1878-1895 | zellij-server/src/pty.rs:1913-1930 | zellij-server/src/pty.rs:1944-1961 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 4) default-plugins/bars/src/status_bar/tip/data/compact_layout.rs:88— default-plugins/bars/src/status_bar/tip/data/compact_layout.rs:88-104 | default-plugins/bars/src/status_bar/tip/data/edit_scrollbuffer.rs:78-94 | default-plugins/bars/src/status_bar/tip/data/floating_panes_mouse.rs:60-76 | default-plugins/bars/src/status_bar/tip/data/sync_tab.rs:59-75 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Duplicated block (17 lines × 4) zellij-server/src/tab/mod.rs:3671— zellij-server/src/tab/mod.rs:3671-3687 | zellij-server/src/tab/mod.rs:3913-3929 | zellij-server/src/tab/mod.rs:4006-4022 | zellij-server/src/tab/mod.rs:4160-4176 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13–16 lines × 2) zellij-server/src/pty.rs:287— zellij-server/src/pty.rs:287-299 | zellij-server/src/pty.rs:419-434 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–16 lines × 2) zellij-window/src/discovery.rs:253— zellij-window/src/discovery.rs:253-268 | zellij-window/src/discovery.rs:307-319 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 3) zellij-server/src/panes/floating_panes/mod.rs:1600— zellij-server/src/panes/floating_panes/mod.rs:1600-1614 | zellij-server/src/panes/floating_panes/mod.rs:1639-1653 | zellij-server/src/panes/floating_panes/mod.rs:1666-1679 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14–15 lines × 3) zellij-server/src/plugins/zellij_exports.rs:2115— zellij-server/src/plugins/zellij_exports.rs:2115-2128 | zellij-server/src/plugins/zellij_exports.rs:2213-2226 | zellij-server/src/plugins/zellij_exports.rs:2257-2271 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 6) zellij-server/src/screen.rs:15716— zellij-server/src/screen.rs:15716-15728 | zellij-server/src/screen.rs:15736-15748 | zellij-server/src/screen.rs:15756-15768 | zellij-server/src/screen.rs:15816-15828 | zellij-server/src/screen.rs:15836-15848 | zellij-server/src/screen.rs:15894-15906 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 6) default-plugins/bars/src/status_bar/one_line_ui.rs:1780— default-plugins/bars/src/status_bar/one_line_ui.rs:1780-1792 | default-plugins/bars/src/status_bar/one_line_ui.rs:1799-1811 | default-plugins/bars/src/status_bar/one_line_ui.rs:1818-1830 | default-plugins/bars/src/status_bar/one_line_ui.rs:1837-1849 | default-plugins/bars/src/status_bar/one_line_ui.rs:1856-1868 | default-plugins/bars/src/status_bar/one_line_ui.rs:1875-1887 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12–13 lines × 3) default-plugins/plugin-manager/src/main.rs:186— default-plugins/plugin-manager/src/main.rs:186-197 | default-plugins/plugin-manager/src/main.rs:241-253 | default-plugins/plugin-manager/src/main.rs:769-781 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12–13 lines × 3) zellij-utils/src/kdl/kdl_layout_parser.rs:845— zellij-utils/src/kdl/kdl_layout_parser.rs:845-857 | zellij-utils/src/kdl/kdl_layout_parser.rs:947-958 | zellij-utils/src/kdl/kdl_layout_parser.rs:1010-1021 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) zellij-utils/src/kdl/kdl_layout_parser.rs:826— zellij-utils/src/kdl/kdl_layout_parser.rs:826-838 | zellij-utils/src/kdl/kdl_layout_parser.rs:926-938 | zellij-utils/src/kdl/kdl_layout_parser.rs:988-1000 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) zellij-utils/src/kdl/mod.rs:4094— zellij-utils/src/kdl/mod.rs:4094-4106 | zellij-utils/src/kdl/mod.rs:4195-4207 | zellij-utils/src/kdl/mod.rs:4729-4741 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 4) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1717— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1717-1728 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1801-1812 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1887-1898 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1972-1983 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 4) zellij-server/src/pty.rs:1380— zellij-server/src/pty.rs:1380-1391 | zellij-server/src/pty.rs:1400-1411 | zellij-server/src/pty.rs:1582-1593 | zellij-server/src/pty.rs:1602-1613 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11–12 lines × 3) default-plugins/bars/src/compact_bar/mod.rs:688— default-plugins/bars/src/compact_bar/mod.rs:688-698 | default-plugins/bars/src/status_bar/mod.rs:602-612 | default-plugins/bars/src/tab_bar/mod.rs:456-467 — `default-plugins/bars/src/compact_bar/mod.rs` and `default-plugins/bars/src/status_bar/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (11–12 lines × 3) zellij-server/src/panes/grid.rs:6297— zellij-server/src/panes/grid.rs:6297-6307 | zellij-server/src/panes/grid.rs:6310-6320 | zellij-server/src/panes/grid.rs:6323-6334 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–12 lines × 2) zellij-utils/src/input/config_blocks.rs:696— zellij-utils/src/input/config_blocks.rs:696-704 | zellij-utils/src/input/config_blocks.rs:728-739 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–12 lines × 2) zellij-utils/src/ipc/attention_conversion.rs:533— zellij-utils/src/ipc/attention_conversion.rs:533-541 | zellij-utils/src/plugin_api/event.rs:5077-5088 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (11 lines × 5) zellij-server/src/tab/mod.rs:3656— zellij-server/src/tab/mod.rs:3656-3666 | zellij-server/src/tab/mod.rs:3898-3908 | zellij-server/src/tab/mod.rs:3991-4001 | zellij-server/src/tab/mod.rs:4145-4155 | zellij-server/src/tab/mod.rs:9067-9077 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 5) zellij-server/src/tab/mod.rs:4700— zellij-server/src/tab/mod.rs:4700-4710 | zellij-server/src/tab/mod.rs:7697-7707 | zellij-server/src/tab/mod.rs:7717-7727 | zellij-server/src/tab/mod.rs:7736-7746 | zellij-server/src/tab/mod.rs:7751-7761 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) default-plugins/bars/src/status_bar/mod.rs:891— default-plugins/bars/src/status_bar/mod.rs:891-901 | default-plugins/bars/src/status_bar/mod.rs:938-948 | default-plugins/bars/src/status_bar/mod.rs:965-975 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) default-plugins/session-manager/src/ui/components.rs:889— default-plugins/session-manager/src/ui/components.rs:889-899 | default-plugins/session-manager/src/ui/components.rs:908-918 | default-plugins/session-manager/src/ui/components.rs:925-935 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–11 lines × 3) zellij-server/src/tab/mod.rs:4659— zellij-server/src/tab/mod.rs:4659-4669 | zellij-server/src/tab/mod.rs:4746-4754 | zellij-server/src/tab/mod.rs:4770-4780 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–11 lines × 3) default-plugins/bars/src/status_bar/first_line.rs:277— default-plugins/bars/src/status_bar/first_line.rs:277-287 | default-plugins/bars/src/status_bar/first_line.rs:289-298 | default-plugins/bars/src/status_bar/first_line.rs:299-307 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 5) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:859— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:859-868 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:874-883 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:892-901 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:910-919 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:931-940 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 5) zellij-utils/src/structured_render.rs:1527— zellij-utils/src/structured_render.rs:1527-1536 | zellij-utils/src/structured_render.rs:1553-1562 | zellij-utils/src/structured_render.rs:1575-1584 | zellij-utils/src/structured_render.rs:1599-1608 | zellij-utils/src/structured_render.rs:1624-1633 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 5) zellij-server/src/plugins/zellij_exports.rs:2425— zellij-server/src/plugins/zellij_exports.rs:2425-2433 | zellij-server/src/plugins/zellij_exports.rs:2510-2518 | zellij-server/src/plugins/zellij_exports.rs:2549-2557 | zellij-server/src/plugins/zellij_exports.rs:2587-2595 | zellij-server/src/plugins/zellij_exports.rs:2627-2635 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 5) zellij-utils/src/kdl/mod.rs:3651— zellij-utils/src/kdl/mod.rs:3651-3659 | zellij-utils/src/kdl/mod.rs:3761-3769 | zellij-utils/src/kdl/mod.rs:4158-4166 | zellij-utils/src/kdl/mod.rs:4618-4626 | zellij-utils/src/kdl/mod.rs:5248-5256 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 5) zellij-tile/src/shim.rs:2375— zellij-tile/src/shim.rs:2375-2382 | zellij-tile/src/shim.rs:2606-2613 | zellij-tile/src/shim.rs:2660-2667 | zellij-tile/src/shim.rs:2724-2731 | zellij-tile/src/shim.rs:2757-2764 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 5) zellij-window/src/renderer.rs:193— zellij-window/src/renderer.rs:193-200 | zellij-window/src/renderer.rs:205-212 | zellij-window/src/renderer.rs:218-225 | zellij-window/src/renderer.rs:231-238 | zellij-window/src/renderer.rs:244-251 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–8 lines × 3) zellij-server/src/panes/grid.rs:3319— zellij-server/src/panes/grid.rs:3319-3325 | zellij-server/src/panes/grid.rs:3417-3423 | zellij-server/src/panes/grid.rs:3473-3480 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–8 lines × 3) zellij-server/src/screen.rs:11322— zellij-server/src/screen.rs:11322-11328 | zellij-server/src/screen.rs:11366-11373 | zellij-server/src/screen.rs:11382-11388 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 7) zellij-utils/src/input/options.rs:697— zellij-utils/src/input/options.rs:697-701 | zellij-utils/src/input/options.rs:722-730 | zellij-utils/src/input/options.rs:745-751 | zellij-utils/src/input/options.rs:753-759 | zellij-utils/src/input/options.rs:914-918 | zellij-utils/src/input/options.rs:935-943 | zellij-utils/src/input/options.rs:966-972 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 7) zellij-utils/src/input/options.rs:705— zellij-utils/src/input/options.rs:705-713 | zellij-utils/src/input/options.rs:730-734 | zellij-utils/src/input/options.rs:751-757 | zellij-utils/src/input/options.rs:925-931 | zellij-utils/src/input/options.rs:943-947 | zellij-utils/src/input/options.rs:964-970 | zellij-utils/src/input/options.rs:982-992 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (21 lines × 2 locations) zellij-client/assets/app.js:383— zellij-client/assets/app.js:383 · zellij-client/assets/keyboard.js:10 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (21 lines × 2 locations) zellij-client/assets/app.js:1604— zellij-client/assets/app.js:1604 · zellij-client/assets/input.js:14 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Complex function (anonymous) (cyclomatic 23, cognitive 28) zellij-client/assets/app.js:956— (anonymous) has cyclomatic complexity 23 and cognitive complexity 28; 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.
Complex function (anonymous) (cyclomatic 23, cognitive 28) zellij-client/assets/key-handler.js:5— (anonymous) has cyclomatic complexity 23 and cognitive complexity 28; 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.
Complex function onmessage (cyclomatic 22, cognitive 37) zellij-client/assets/app.js:3265— onmessage has cyclomatic complexity 22 and cognitive complexity 37; 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.
Complex function onmessage (cyclomatic 22, cognitive 37) zellij-client/assets/websockets.js:234— onmessage has cyclomatic complexity 22 and cognitive complexity 37; 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.
Complex function (anonymous) (cyclomatic 18, cognitive 20) zellij-client/assets/app.js:1477— (anonymous) has cyclomatic complexity 18 and cognitive complexity 20; 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.
Complex function (anonymous) (cyclomatic 18, cognitive 20) zellij-client/assets/touch.js:158— (anonymous) has cyclomatic complexity 18 and cognitive complexity 20; 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.
Complex function getCellPixelDimensions (cyclomatic 15, cognitive 9) zellij-client/assets/app.js:3046— getCellPixelDimensions has cyclomatic complexity 15 and cognitive complexity 9; 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 getCellPixelDimensions (cyclomatic 15, cognitive 9) zellij-client/assets/websockets.js:15— getCellPixelDimensions has cyclomatic complexity 15 and cognitive complexity 9; 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 ctrlByte (cyclomatic 13, cognitive 12) zellij-client/assets/app.js:2490— ctrlByte has cyclomatic complexity 13 and cognitive complexity 12; 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 ctrlByte (cyclomatic 13, cognitive 12) zellij-client/assets/mobile-ui.js:863— ctrlByte has cyclomatic complexity 13 and cognitive complexity 12; 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 (anonymous) (cyclomatic 12, cognitive 14) zellij-client/assets/app.js:3198— (anonymous) has cyclomatic complexity 12 and cognitive complexity 14; 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.
Complex function (anonymous) (cyclomatic 12, cognitive 14) zellij-client/assets/websockets.js:167— (anonymous) has cyclomatic complexity 12 and cognitive complexity 14; 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.
Complex function handleReconnection (cyclomatic 11, cognitive 22) zellij-client/assets/app.js:133— handleReconnection has cyclomatic complexity 11 and cognitive complexity 22; 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.
Complex function handleReconnection (cyclomatic 11, cognitive 22) zellij-client/assets/connection.js:59— handleReconnection has cyclomatic complexity 11 and cognitive complexity 22; 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.
Complex function refresh (cyclomatic 11, cognitive 13) zellij-client/assets/app.js:1112— refresh has cyclomatic complexity 11 and cognitive complexity 13; 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.
Complex function refresh (cyclomatic 11, cognitive 13) zellij-client/assets/pinch.js:65— refresh has cyclomatic complexity 11 and cognitive complexity 13; 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.
Complex function (anonymous) (cyclomatic 11, cognitive 11) zellij-client/assets/app.js:1400— (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; 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.
Complex function (anonymous) (cyclomatic 11, cognitive 11) zellij-client/assets/touch.js:81— (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; 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.
AC3 · Page structure· Page without a main landmark · ×1
Page without a main landmark zellij-client/assets/index.html:2— No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="terminal">, so there is no content here to wrap — render the <main> from the component mounted into it.
AC6 · Visual & motion safety· Focus outline removed in CSS without a · ×1
Focus outline removed in CSS without a :focus replacement zellij-client/assets/xterm.css:53— `.xterm.focus` 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 automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge. What was searched, so you can tell an absence from a miss: the 2 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.
PluginCommand::try_from (cyclomatic 582) zellij-utils/src/plugin_api/plugin_command.rs:733— PluginCommand::try_from has cyclomatic complexity 582 (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.
Event::try_from (cyclomatic 160) zellij-utils/src/plugin_api/event.rs:248— Event::try_from has cyclomatic complexity 160 (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.
TabBar::update_client (cyclomatic 55) default-plugins/bars/src/tab_bar/mod.rs:294— TabBar::update_client 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.
FloatingPanes::render (cyclomatic 52) zellij-server/src/panes/floating_panes/mod.rs:560— FloatingPanes::render has cyclomatic complexity 52 (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.
app.installTouchGestures (cyclomatic 43) zellij-client/assets/app.js:1326— app.installTouchGestures has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 1 of the 43 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 1477, a function literal at line 1400, a function literal at line 1550, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
touch.installTouchGestures (cyclomatic 43) zellij-client/assets/touch.js:7— touch.installTouchGestures has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 1 of the 43 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 158, a function literal at line 81, a function literal at line 231, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
KeybindProcessor::group_key_chunks (cyclomatic 40) default-plugins/bars/src/compact_bar/keybind_utils.rs:139— KeybindProcessor::group_key_chunks has cyclomatic complexity 40 (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.
Boundaries::add_rect (cyclomatic 36) zellij-server/src/ui/boundaries.rs:517— Boundaries::add_rect has cyclomatic complexity 36 (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.
app.initWebSockets (cyclomatic 35) zellij-client/assets/app.js:3116— app.initWebSockets has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 14 of the 35 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 3198, 3178, 3163, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
websockets.initWebSockets (cyclomatic 35) zellij-client/assets/websockets.js:85— websockets.initWebSockets has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 14 of the 35 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 167, 147, 132, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
app.installSoftKeyboardCapture (cyclomatic 31) zellij-client/assets/app.js:658— app.installSoftKeyboardCapture has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 833, ensureCaptureFocused, 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.
soft-keyboard.installSoftKeyboardCapture (cyclomatic 31) zellij-client/assets/soft-keyboard.js:14— soft-keyboard.installSoftKeyboardCapture has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 189, ensureCaptureFocused, 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.
NewPluginScreen::handle_key (cyclomatic 30) default-plugins/plugin-manager/src/main.rs:361— NewPluginScreen::handle_key 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.
PromptRequest::to_pipe_message (cyclomatic 29) zellij-utils/src/prompt.rs:1153— PromptRequest::to_pipe_message has cyclomatic complexity 29 (threshold 15). Of this number, 28 points are the body's own statements and 1 belongs to one function item 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.
InputHandler::handle_input (cyclomatic 25) zellij-client/src/input_handler.rs:161— InputHandler::handle_input has cyclomatic complexity 25 (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.
TextInput::apply_key (cyclomatic 24) zellij-tile/src/ui_components/text_input.rs:592— TextInput::apply_key has cyclomatic complexity 24 (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.
WebClientTheme::to_kdl (cyclomatic 24) zellij-utils/src/input/web_client.rs:80— WebClientTheme::to_kdl has cyclomatic complexity 24 (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.
Type::parse_one (cyclomatic 24) zellij-window/src/dbus.rs:225— Type::parse_one has cyclomatic complexity 24 (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.
Conductor::handle (cyclomatic 24) zellij-window/src/window/conductor.rs:186— Conductor::handle 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.
PaneFrame::render (cyclomatic 23) zellij-server/src/ui/pane_boundaries_frame.rs:1345— PaneFrame::render 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.
Text::wrap (cyclomatic 23) zellij-tile/src/ui_components/text.rs:360— Text::wrap 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.
SessionInfo::from_string (cyclomatic 23) zellij-utils/src/kdl/mod.rs:7939— SessionInfo::from_string 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. This is NOT this file's highest cyclomatic complexity: zellij_utils::kdl::action_without_arguments (cyclomatic 68) 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 function is counted neither in this dimension's figures nor in its score.
app.installCustomKeyHandler (cyclomatic 23) zellij-client/assets/app.js:955— app.installCustomKeyHandler 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 one function literal inside it that branches (line 956). 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.
key-handler.installCustomKeyHandler (cyclomatic 23) zellij-client/assets/key-handler.js:4— key-handler.installCustomKeyHandler 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 one function literal inside it that branches (line 5). 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.
SessionSuggestionsConfig::from_kdl (cyclomatic 22) zellij-utils/src/input/session_suggestions.rs:152— SessionSuggestionsConfig::from_kdl has cyclomatic complexity 22 (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.
FontStack::rasterize_cluster (cyclomatic 22) zellij-window/src/font.rs:696— FontStack::rasterize_cluster has cyclomatic complexity 22 (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.
AttentionTracker::candidates (cyclomatic 21) zellij-server/src/attention/tracker.rs:828— AttentionTracker::candidates 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.
SessionLayoutMetadata::detect_editor_panes (cyclomatic 21) zellij-server/src/session_layout_metadata.rs:384— SessionLayoutMetadata::detect_editor_panes 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.
Mouse::try_from (cyclomatic 21) zellij-utils/src/plugin_api/event.rs:2297— Mouse::try_from 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 is NOT this file's highest cyclomatic complexity: EventType::try_from (cyclomatic 69) 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 function is counted neither in this dimension's figures nor in its score.
LayoutListScreen::handle_key (cyclomatic 20) default-plugins/layout-manager/src/screens/layout_list/mod.rs:50— LayoutListScreen::handle_key has cyclomatic complexity 20 (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.
Row::overwrite_at (cyclomatic 19) zellij-server/src/panes/grid.rs:6783— Row::overwrite_at 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. This is NOT this file's highest cyclomatic complexity: Grid::esc_dispatch (cyclomatic 26) 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 function is counted neither in this dimension's figures nor in its score.
WasmBridge::update_plugins (cyclomatic 19) zellij-server/src/plugins/wasm_bridge.rs:1101— WasmBridge::update_plugins 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.
Page::new_tip_screen (cyclomatic 18) default-plugins/about/src/tips.rs:12— Page::new_tip_screen 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.
MirrorFrameEncoder::encode (cyclomatic 18) zellij-utils/src/pane_mirror.rs:576— MirrorFrameEncoder::encode has cyclomatic complexity 18 (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.
modals.showReconnectionModal (cyclomatic 18) zellij-client/assets/modals.js:470— modals.showReconnectionModal 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 7 function literals inside it that branch (lines 471, 543, 568, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Selection::add_word_to_position (cyclomatic 17) zellij-server/src/panes/selection.rs:55— Selection::add_word_to_position 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.
NumberStepper::handle_key (cyclomatic 17) zellij-tile/src/ui_components/number_stepper.rs:280— NumberStepper::handle_key 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.
layout_manager::screens::layout_list::calculate_visible_window (cyclomatic 16) default-plugins/layout-manager/src/screens/layout_list/mod.rs:679— layout_manager::screens::layout_list::calculate_visible_window 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.
KittyCommandParser::parse (cyclomatic 16) zellij-server/src/panes/kitty_graphics/parser.rs:183— KittyCommandParser::parse 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.
PaneMirrors::settle_pins (cyclomatic 16) zellij-server/src/screen/mirror.rs:246— PaneMirrors::settle_pins 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.
Config::from_kdl_for_layer (cyclomatic 16) zellij-utils/src/kdl/mod.rs:6789— Config::from_kdl_for_layer 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. This is NOT this file's highest cyclomatic complexity: zellij_utils::kdl::action_without_arguments (cyclomatic 68) 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 function is counted neither in this dimension's figures nor in its score.
ScrollAnimations::note_frame (cyclomatic 16) zellij-window/src/scroll_animation.rs:232— ScrollAnimations::note_frame 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.
PluginCommand::try_from (cognitive 664) zellij-utils/src/plugin_api/plugin_command.rs:733— PluginCommand::try_from has cognitive complexity 664 (threshold 15). Drivers by points: match/switch 270 (567 pts), if/else 53 (97 pts) (nesting depth added 341). 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.
Event::try_from (cognitive 188) zellij-utils/src/plugin_api/event.rs:248— Event::try_from has cognitive complexity 188 (threshold 15). Drivers by points: match/switch 74 (142 pts), loops 10 (33 pts), if/else 5 (13 pts) (nesting depth added 99). 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.
SessionInfo::from_string (cognitive 81) zellij-utils/src/kdl/mod.rs:7939— SessionInfo::from_string has cognitive complexity 81 (threshold 15). Drivers by points: if/else 12 (53 pts), loops 5 (16 pts), match/switch 3 (12 pts) (nesting depth added 61). 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.
Boundaries::add_rect (cognitive 59) zellij-server/src/ui/boundaries.rs:517— Boundaries::add_rect has cognitive complexity 59 (threshold 15). Drivers by points: if/else 23 (37 pts), boolean chains 14, loops 4 (8 pts) (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.
Text::wrap (cognitive 48) zellij-tile/src/ui_components/text.rs:360— Text::wrap has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 8 (13 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
NewPluginScreen::handle_key (cognitive 40) default-plugins/plugin-manager/src/main.rs:361— NewPluginScreen::handle_key has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (36 pts), boolean chains 3, match/switch 1 (nesting depth added 14). 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.
KittyCommandParser::parse (cognitive 39) zellij-server/src/panes/kitty_graphics/parser.rs:183— KittyCommandParser::parse has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 4 (9 pts), loops 2 (6 pts), boolean chains 1 (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.
PaneMirrors::settle_pins (cognitive 35) zellij-server/src/screen/mirror.rs:246— PaneMirrors::settle_pins has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 5 (10 pts), match/switch 1 (3 pts) (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.
SessionSuggestionsConfig::from_kdl (cognitive 33) zellij-utils/src/input/session_suggestions.rs:152— SessionSuggestionsConfig::from_kdl has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 6 (18 pts), if/else 5 (11 pts), loops 3 (4 pts) (nesting depth added 19). 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.
TooltipRenderer::regions (cognitive 31) default-plugins/bars/src/compact_bar/tooltip.rs:129— TooltipRenderer::regions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 4 (10 pts) (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.
PaneResizer::apply_spans (cognitive 30) zellij-server/src/panes/tiled_panes/pane_resizer.rs:158— PaneResizer::apply_spans has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (23 pts), match/switch 2 (4 pts), boolean chains 2, 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.
PromptRequest::to_pipe_message (cognitive 30) zellij-utils/src/prompt.rs:1153— PromptRequest::to_pipe_message has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (29 pts), match/switch 1 (nesting depth added 10). Of this number, 29 points are the body's own statements and 1 belongs 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.
MirrorFrameEncoder::encode (cognitive 29) zellij-utils/src/pane_mirror.rs:576— MirrorFrameEncoder::encode has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (9 pts), boolean chains 5, loops 3 (4 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.
UnifiedResultsRenderCache::rebuild (cognitive 28) default-plugins/session-manager/src/ui/components.rs:63— UnifiedResultsRenderCache::rebuild has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (4 pts), match/switch 1 (2 pts) (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.
Desktop::carry_out (cognitive 27) zellij-window/src/window/desktop.rs:331— Desktop::carry_out has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 14). 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.
layout_manager::screens::layout_list::calculate_visible_window (cognitive 25) default-plugins/layout-manager/src/screens/layout_list/mod.rs:679— layout_manager::screens::layout_list::calculate_visible_window has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 3, 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.
SearchResult::mark_search_results_in_row (cognitive 25) zellij-server/src/panes/search.rs:108— SearchResult::mark_search_results_in_row has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (4 pts), boolean chains 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.
NumberStepper::handle_key (cognitive 25) zellij-tile/src/ui_components/number_stepper.rs:280— NumberStepper::handle_key has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (23 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.
InputHandler::handle_input (cognitive 24) zellij-client/src/input_handler.rs:161— InputHandler::handle_input has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (5 pts), loops 2 (4 pts), boolean chains 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.
MirrorScreen::apply_frame (cognitive 24) zellij-utils/src/pane_mirror.rs:483— MirrorScreen::apply_frame has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 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.
SessionIndex::rows_matching_rule (cognitive 24) REDACTED:792— SessionIndex::rows_matching_rule has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 5 (10 pts), boolean chains 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.
MousebindingsScreen::handle_form_key (cognitive 23) default-plugins/configuration/src/mousebindings_screen.rs:906— MousebindingsScreen::handle_form_key has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 3 (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.
WebClientTheme::to_kdl (cognitive 23) zellij-utils/src/input/web_client.rs:80— WebClientTheme::to_kdl has cognitive complexity 23 (threshold 15). Drivers by points: if/else 23. 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.
Engine::flush_due (cognitive 23) zellij-window/src/app/engine.rs:406— Engine::flush_due has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (4 pts), boolean chains 3 (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.
ScreenBuffer::resolve_clusters (cognitive 23) zellij-window/src/screen_buffer.rs:349— ScreenBuffer::resolve_clusters has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (6 pts), loops 2 (3 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.
SessionConfiguration::change_saved_config (cognitive 22) zellij-server/src/lib.rs:619— SessionConfiguration::change_saved_config has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (6 pts), boolean chains 2 (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.
app.handleReconnection (cognitive 22) zellij-client/assets/app.js:133— app.handleReconnection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 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.
connection.handleReconnection (cognitive 22) zellij-client/assets/connection.js:59— connection.handleReconnection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 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.
Setup::check_defaults_config (cognitive 21) zellij-utils/src/setup.rs:554— Setup::check_defaults_config has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 1 (2 pts), match/switch 1 (2 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.
PendingOverlay::merge_frame (cognitive 21) zellij-utils/src/structured_render.rs:1819— PendingOverlay::merge_frame has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (6 pts), boolean chains 2, match/switch 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.
Conductor::handle (cognitive 20) zellij-window/src/window/conductor.rs:186— Conductor::handle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, match/switch 1 (nesting depth added 9). 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.
showReconnectionModal (cognitive 20) zellij-client/assets/modals.js:470— showReconnectionModal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, ternaries 3 (5 pts), boolean chains 3 (nesting depth added 2). None of this is in the body itself: all 20 points belong to 8 function items inside it that branch (a function literal at line 471, (anonymous)::updateCountdown, (anonymous)::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.
ContextMenuPlugin::rebuild (cognitive 19) default-plugins/context-menu/src/main.rs:67— ContextMenuPlugin::rebuild has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MirrorView::park_current (cognitive 19) zellij-server/src/pane_mirror/view.rs:311— MirrorView::park_current has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (6 pts), boolean chains 1, match/switch 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.
Layout::list_available_layouts (cognitive 19) zellij-utils/src/input/layout.rs:1273— Layout::list_available_layouts has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 3 (10 pts), if/else 5 (8 pts), loops 1 (nesting depth added 10). 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.
TerminalState::consume_graphics (cognitive 19) zellij-window/src/terminal.rs:227— TerminalState::consume_graphics has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 3 (9 pts), 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.
Selection::add_word_to_position (cognitive 18) zellij-server/src/panes/selection.rs:55— Selection::add_word_to_position has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7 (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.
JsonBytesParser::feed (cognitive 18) zellij-tile/src/shim.rs:3392— JsonBytesParser::feed has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 4 (8 pts), boolean chains 2 (nesting depth added 9). 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.
BindChanges::apply_to_map (cognitive 18) zellij-utils/src/input/keybind_presets.rs:163— BindChanges::apply_to_map has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 9). 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.
KeybindPreset::from_kdl (cognitive 18) zellij-utils/src/input/keybind_presets.rs:408— KeybindPreset::from_kdl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (5 pts), match/switch 1 (3 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.
PluginConfig::resolve_wasm_bytes (cognitive 18) zellij-utils/src/input/plugins.rs:104— PluginConfig::resolve_wasm_bytes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), boolean chains 1, 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.
Canvas::shade (cognitive 18) zellij-window/src/sprites.rs:83— Canvas::shade has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (8 pts) (nesting depth added 12). 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.
FileListView::render (cognitive 17) default-plugins/strider/src/file_list_view.rs:121— FileListView::render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 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.
SearchView::render (cognitive 17) default-plugins/strider/src/search_view.rs:54— SearchView::render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 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.
LoggingPipe::flush (cognitive 17) zellij-server/src/logging_pipe.rs:62— LoggingPipe::flush has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 10). 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.
StackedPanes::combine_horizontally_aligned_panes_to_stack (cognitive 17) zellij-server/src/panes/tiled_panes/stacked_panes.rs:707— StackedPanes::combine_horizontally_aligned_panes_to_stack has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), 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.
PinnedExecutor::register_plugin (cognitive 17) zellij-server/src/plugins/pinned_executor.rs:145— PinnedExecutor::register_plugin has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 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.
PluginAliases::to_kdl (cognitive 17) zellij-utils/src/kdl/mod.rs:7280— PluginAliases::to_kdl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 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.
NestedFrameExtractor::extract (cognitive 17) zellij-utils/src/nested_session.rs:562— NestedFrameExtractor::extract has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 1 (3 pts), boolean chains 1, 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.
SessionHistory::adopt (cognitive 17) zellij-utils/src/session_history.rs:200— SessionHistory::adopt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 3 (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.
PreeditOverlay::of (cognitive 17) zellij-window/src/scene.rs:325— PreeditOverlay::of has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts), boolean chains 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.
RightSideElementsBuilder::create_nested_hint (cognitive 16) default-plugins/bars/src/compact_bar/line.rs:600— RightSideElementsBuilder::create_nested_hint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 1 (2 pts), match/switch 2, boolean chains 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.
LayoutListScreen::handle_key (cognitive 16) default-plugins/layout-manager/src/screens/layout_list/mod.rs:50— LayoutListScreen::handle_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 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.
ChooseScreen::render (cognitive 16) default-plugins/prompt/src/ui.rs:745— ChooseScreen::render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NewSessionInfo::handle_selection (cognitive 16) default-plugins/session-manager/src/new_session_info.rs:99— NewSessionInfo::handle_selection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (4 pts) (nesting depth added 7). 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.
ListItem::render (cognitive 16) default-plugins/session-manager/src/ui/components.rs:293— ListItem::render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (6 pts), boolean chains 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.
BlockingSignalIterator::next (cognitive 16) zellij-client/src/os_input_output_windows.rs:144— BlockingSignalIterator::next has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 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.
SessionMetaData::propagate_configuration_changes (cognitive 16) zellij-server/src/lib.rs:1242— SessionMetaData::propagate_configuration_changes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, match/switch 1 (2 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.
PaneContentsAndUi::frame_color (cognitive 16) zellij-server/src/ui/pane_contents_and_ui.rs:523— PaneContentsAndUi::frame_color has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, match/switch 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.
Dropdown::handle_key (cognitive 16) zellij-tile/src/ui_components/dropdown.rs:285— Dropdown::handle_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 1 (3 pts), boolean chains 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.
MenuList::handle_mouse (cognitive 16) zellij-tile/src/ui_components/menu_list.rs:501— MenuList::handle_mouse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (3 pts) (nesting depth added 8). 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.
WatchState::run (cognitive 16) zellij-window/src/app/watcher.rs:109— WatchState::run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 2 (5 pts), match/switch 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.
TooManyFunctions: zellij_server::ui::components::widget_common zellij-server/src/ui/components/widget_common.rs:42— TooManyFunctions — 34 free functions. The bar is 30 free functions; this is 4 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.
Change-coupling hub: screen.rs → mod.rs, layout_applier.rs, pane_contents_and_ui.rs zellij-server/src/screen.rs— `zellij-server/src/screen.rs` changes together with 3 other files — `zellij-server/src/panes/floating_panes/mod.rs`, `zellij-server/src/tab/layout_applier.rs`, `zellij-server/src/ui/pane_contents_and_ui.rs` — 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.
D4 · Code Duplication· Near-duplicate member family (4 members, 89 shared lines) · ×1
Near-duplicate member family (4 members, 89 shared lines) zellij-server/src/tab/mod.rs:2962— zellij-server/src/tab/mod.rs:2962-3076 | zellij-server/src/tab/mod.rs:3087-3195 | zellij-server/src/tab/mod.rs:3205-3314 | zellij-server/src/tab/mod.rs:3386-3510 — These 4 members are variants of one another: a block of 89 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 27 shared lines) · ×1
Near-duplicate member family (4 members, 27 shared lines) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1711— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1711-1789 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1794-1875 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1880-1961 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1966-2044 — These 4 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Near-duplicate member pair (134 shared lines) zellij-server/src/pty.rs:1323— zellij-server/src/pty.rs:1323-1535 | zellij-server/src/pty.rs:1550-1713 — These two members are variants of one another: 134 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (124 shared lines) zellij-utils/src/input/options.rs:664— zellij-utils/src/input/options.rs:664-860 | zellij-utils/src/input/options.rs:866-1074 — These two members are variants of one another: 124 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (90 shared lines) zellij-server/src/output/mod.rs:288— zellij-server/src/output/mod.rs:288-471 | zellij-server/src/output/mod.rs:1207-1417 — These two members are variants of one another: 90 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (79 shared lines) default-plugins/bars/src/compact_bar/tab.rs:42— default-plugins/bars/src/compact_bar/tab.rs:42-136 | default-plugins/bars/src/tab_bar/tab.rs:41-137 — These two members are variants of one another: 79 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (70 shared lines) zellij-server/src/output/mod.rs:2779— zellij-server/src/output/mod.rs:2779-2925 | zellij-server/src/output/mod.rs:3006-3159 — These two members are variants of one another: 70 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (52 shared lines) zellij-server/src/plugins/plugin_loader.rs:271— zellij-server/src/plugins/plugin_loader.rs:271-344 | zellij-server/src/plugins/plugin_loader.rs:384-453 — These two members are variants of one another: 52 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (44 shared lines) zellij-server/src/panes/tiled_panes/stacked_panes.rs:635— zellij-server/src/panes/tiled_panes/stacked_panes.rs:635-706 | zellij-server/src/panes/tiled_panes/stacked_panes.rs:711-783 — These two members are variants of one another: 44 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (43 shared lines) zellij-server/src/pty.rs:1150— zellij-server/src/pty.rs:1150-1309 | zellij-server/src/pty.rs:2048-2148 — These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (42 shared lines) default-plugins/bars/src/status_bar/first_line.rs:127— default-plugins/bars/src/status_bar/first_line.rs:127-172 | default-plugins/bars/src/status_bar/first_line.rs:180-225 — These two members are variants of one another: 42 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (34 shared lines) zellij-utils/src/kdl/kdl_layout_parser.rs:787— zellij-utils/src/kdl/kdl_layout_parser.rs:787-890 | zellij-utils/src/kdl/kdl_layout_parser.rs:896-1036 — These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (19 shared lines) default-plugins/configuration/src/list_editor.rs:283— default-plugins/configuration/src/list_editor.rs:283-363 | default-plugins/configuration/src/list_editor.rs:364-450 — These two members are variants of one another: 19 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Members sharing a duplicated core (11 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (11 members, 50+ identical tokens) zellij-server/src/tab/mod.rs:4469— zellij-server/src/tab/mod.rs:4469-4483 | zellij-server/src/tab/mod.rs:4507-4521 | zellij-server/src/tab/mod.rs:4522-4536 | zellij-server/src/tab/mod.rs:4537-4551 | zellij-server/src/tab/mod.rs:4557-4571 | zellij-server/src/tab/mod.rs:4572-4586 | zellij-server/src/tab/mod.rs:4618-4632 | zellij-server/src/tab/mod.rs:4637-4651 | zellij-server/src/tab/mod.rs:7616-7630 | zellij-server/src/tab/mod.rs:7636-7650 | zellij-server/src/tab/mod.rs:7655-7669 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (7 members, 50+ identical tokens) zellij-server/src/panes/grid.rs:4635— zellij-server/src/panes/grid.rs:4635-4655 | zellij-server/src/panes/grid.rs:4692-4712 | zellij-server/src/panes/grid.rs:4749-4771 | zellij-server/src/panes/grid.rs:4772-4792 | zellij-server/src/panes/grid.rs:4793-4813 | zellij-server/src/panes/grid.rs:4814-4834 | zellij-server/src/panes/grid.rs:4836-4856 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
Duplicated block (62 lines × 2) zellij-utils/src/input/actions.rs:1768— zellij-utils/src/input/actions.rs:1768-1829 | zellij-utils/src/input/actions.rs:1884-1945 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (58 lines × 2) zellij-server/src/pty.rs:1476— zellij-server/src/pty.rs:1476-1533 | zellij-server/src/pty.rs:1654-1711 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (47–51 lines × 2) zellij-server/src/panes/terminal_character.rs:1325— zellij-server/src/panes/terminal_character.rs:1325-1375 | zellij-server/src/panes/terminal_character.rs:1383-1429 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (44–46 lines × 2) default-plugins/bars/src/compact_bar/tab.rs:43— default-plugins/bars/src/compact_bar/tab.rs:43-86 | default-plugins/bars/src/tab_bar/tab.rs:42-87 — `default-plugins/bars/src/compact_bar/tab.rs` and `default-plugins/bars/src/tab_bar/tab.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (42–44 lines × 2) zellij-utils/src/kdl/kdl_layout_parser.rs:401— zellij-utils/src/kdl/kdl_layout_parser.rs:401-444 | zellij-utils/src/kdl/mod.rs:8630-8671 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (42 lines × 2) zellij-utils/src/kdl/mod.rs:2135— zellij-utils/src/kdl/mod.rs:2135-2176 | zellij-utils/src/kdl/mod.rs:2245-2286 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (38–41 lines × 2) default-plugins/bars/src/status_bar/one_line_ui.rs:1533— default-plugins/bars/src/status_bar/one_line_ui.rs:1533-1573 | default-plugins/bars/src/status_bar/second_line.rs:100-137 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (40 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:96— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:96-135 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:297-336 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (34 lines × 3) zellij-server/src/panes/grid.rs:4601— zellij-server/src/panes/grid.rs:4601-4634 | zellij-server/src/panes/grid.rs:4658-4691 | zellij-server/src/panes/grid.rs:4715-4748 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (4–34 lines × 4) zellij-utils/src/kdl/kdl_layout_parser.rs:668— zellij-utils/src/kdl/kdl_layout_parser.rs:668-671 | zellij-utils/src/kdl/kdl_layout_parser.rs:911-944 | zellij-utils/src/kdl/kdl_layout_parser.rs:973-1006 | zellij-utils/src/kdl/kdl_layout_parser.rs:1206-1209 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (33 lines × 2) zellij-server/src/output/mod.rs:2793— zellij-server/src/output/mod.rs:2793-2825 | zellij-server/src/output/mod.rs:3021-3053 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (32–33 lines × 2) zellij-utils/src/input/options.rs:784— zellij-utils/src/input/options.rs:784-815 | zellij-utils/src/input/options.rs:997-1029 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (30–32 lines × 2) default-plugins/strider/src/file_list_view.rs:128— default-plugins/strider/src/file_list_view.rs:128-157 | default-plugins/strider/src/search_view.rs:63-94 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (31 lines × 3) zellij-server/src/tab/mod.rs:3020— zellij-server/src/tab/mod.rs:3020-3050 | zellij-server/src/tab/mod.rs:3148-3178 | zellij-server/src/tab/mod.rs:3447-3477 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (29–31 lines × 2) zellij-server/src/ui/components/ribbon.rs:24— zellij-server/src/ui/components/ribbon.rs:24-52 | zellij-server/src/ui/components/ribbon.rs:63-93 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22–31 lines × 2) zellij-server/src/ui/pane_boundaries_frame.rs:420— zellij-server/src/ui/pane_boundaries_frame.rs:420-441 | zellij-server/src/ui/pane_boundaries_frame.rs:472-502 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (31 lines × 2) zellij-utils/src/input/options.rs:830— zellij-utils/src/input/options.rs:830-860 | zellij-utils/src/input/options.rs:1044-1074 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (29–30 lines × 2) zellij-server/src/output/mod.rs:343— zellij-server/src/output/mod.rs:343-372 | zellij-server/src/output/mod.rs:1262-1290 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (26–28 lines × 3) zellij-server/src/ui/boundaries.rs:178— zellij-server/src/ui/boundaries.rs:178-203 | zellij-server/src/ui/boundaries.rs:223-248 | zellij-server/src/ui/boundaries.rs:415-442 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (28 lines × 3) zellij-server/src/ui/boundaries.rs:310— zellij-server/src/ui/boundaries.rs:310-337 | zellij-server/src/ui/boundaries.rs:383-410 | zellij-server/src/ui/boundaries.rs:448-475 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (23–28 lines × 2) zellij-server/src/panes/kitty_graphics/grid_state.rs:1019— zellij-server/src/panes/kitty_graphics/grid_state.rs:1019-1041 | zellij-server/src/panes/sixel.rs:380-407 — before extracting anything, compare `zellij-server/src/panes/kitty_graphics/grid_state.rs` and `zellij-server/src/panes/sixel.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (28 lines × 2) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2152— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2152-2179 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2215-2242 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (26–27 lines × 2) zellij-server/src/screen.rs:13292— zellij-server/src/screen.rs:13292-13317 | zellij-server/src/screen.rs:13338-13364 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22–26 lines × 2) default-plugins/session-manager/src/main.rs:1274— default-plugins/session-manager/src/main.rs:1274-1299 | default-plugins/session-manager/src/main.rs:1770-1791 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (25–26 lines × 2) default-plugins/session-manager/src/main.rs:1826— default-plugins/session-manager/src/main.rs:1826-1851 | default-plugins/session-manager/src/main.rs:1908-1932 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (25 lines × 3) zellij-server/src/ui/boundaries.rs:202— zellij-server/src/ui/boundaries.rs:202-226 | zellij-server/src/ui/boundaries.rs:247-271 | zellij-server/src/ui/boundaries.rs:291-315 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (24 lines × 7) zellij-server/src/plugins/zellij_exports.rs:2671— zellij-server/src/plugins/zellij_exports.rs:2671-2694 | zellij-server/src/plugins/zellij_exports.rs:2774-2797 | zellij-server/src/plugins/zellij_exports.rs:2873-2896 | zellij-server/src/plugins/zellij_exports.rs:2927-2950 | zellij-server/src/plugins/zellij_exports.rs:2990-3013 | zellij-server/src/plugins/zellij_exports.rs:3046-3069 | zellij-server/src/plugins/zellij_exports.rs:3112-3135 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (24 lines × 4) zellij-server/src/tab/mod.rs:3039— zellij-server/src/tab/mod.rs:3039-3062 | zellij-server/src/tab/mod.rs:3167-3190 | zellij-server/src/tab/mod.rs:3281-3304 | zellij-server/src/tab/mod.rs:3466-3489 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (23–24 lines × 2) zellij-server/src/plugins/wasm_bridge.rs:1114— zellij-server/src/plugins/wasm_bridge.rs:1114-1137 | zellij-server/src/plugins/wasm_bridge.rs:1408-1430 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18–22 lines × 9) zellij-server/src/ui/boundaries.rs:188— zellij-server/src/ui/boundaries.rs:188-205 | zellij-server/src/ui/boundaries.rs:233-250 | zellij-server/src/ui/boundaries.rs:274-294 | zellij-server/src/ui/boundaries.rs:307-327 | zellij-server/src/ui/boundaries.rs:338-358 | zellij-server/src/ui/boundaries.rs:359-379 | zellij-server/src/ui/boundaries.rs:380-400 | zellij-server/src/ui/boundaries.rs:423-444 | zellij-server/src/ui/boundaries.rs:445-465 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (20–22 lines × 5) zellij-server/src/plugins/zellij_exports.rs:2679— zellij-server/src/plugins/zellij_exports.rs:2679-2700 | zellij-server/src/plugins/zellij_exports.rs:2782-2802 | zellij-server/src/plugins/zellij_exports.rs:2935-2954 | zellij-server/src/plugins/zellij_exports.rs:3054-3073 | zellij-server/src/plugins/zellij_exports.rs:3174-3193 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (20–22 lines × 2) zellij-server/src/tab/mod.rs:5922— zellij-server/src/tab/mod.rs:5922-5943 | zellij-server/src/tab/mod.rs:8575-8594 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19–21 lines × 7) zellij-server/src/ui/boundaries.rs:210— zellij-server/src/ui/boundaries.rs:210-228 | zellij-server/src/ui/boundaries.rs:255-273 | zellij-server/src/ui/boundaries.rs:299-317 | zellij-server/src/ui/boundaries.rs:328-348 | zellij-server/src/ui/boundaries.rs:349-369 | zellij-server/src/ui/boundaries.rs:370-390 | zellij-server/src/ui/boundaries.rs:435-455 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (18–20 lines × 9) zellij-server/src/ui/boundaries.rs:142— zellij-server/src/ui/boundaries.rs:142-159 | zellij-server/src/ui/boundaries.rs:188-205 | zellij-server/src/ui/boundaries.rs:233-250 | zellij-server/src/ui/boundaries.rs:277-294 | zellij-server/src/ui/boundaries.rs:320-337 | zellij-server/src/ui/boundaries.rs:341-358 | zellij-server/src/ui/boundaries.rs:362-379 | zellij-server/src/ui/boundaries.rs:403-422 | zellij-server/src/ui/boundaries.rs:427-444 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17–20 lines × 2) zellij-server/src/lib.rs:4430— zellij-server/src/lib.rs:4430-4449 | zellij-server/src/lib.rs:4494-4510 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16–19 lines × 2) zellij-server/src/plugins/zellij_exports.rs:2011— zellij-server/src/plugins/zellij_exports.rs:2011-2029 | zellij-utils/src/data.rs:2873-2888 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (17 lines × 8) zellij-server/src/plugins/zellij_exports.rs:2678— zellij-server/src/plugins/zellij_exports.rs:2678-2694 | zellij-server/src/plugins/zellij_exports.rs:2781-2797 | zellij-server/src/plugins/zellij_exports.rs:2880-2896 | zellij-server/src/plugins/zellij_exports.rs:2934-2950 | zellij-server/src/plugins/zellij_exports.rs:2997-3013 | zellij-server/src/plugins/zellij_exports.rs:3053-3069 | zellij-server/src/plugins/zellij_exports.rs:3119-3135 | zellij-server/src/plugins/zellij_exports.rs:3173-3189 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (17 lines × 5) zellij-utils/src/kdl/mod.rs:4122— zellij-utils/src/kdl/mod.rs:4122-4138 | zellij-utils/src/kdl/mod.rs:4421-4437 | zellij-utils/src/kdl/mod.rs:4476-4492 | zellij-utils/src/kdl/mod.rs:5303-5319 | zellij-utils/src/kdl/mod.rs:5460-5476 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16–17 lines × 3) zellij-server/src/output/mod.rs:484— zellij-server/src/output/mod.rs:484-500 | zellij-server/src/panes/terminal_character.rs:119-134 | zellij-server/src/panes/terminal_character.rs:141-156 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (16 lines × 6) zellij-utils/src/kdl/mod.rs:3593— zellij-utils/src/kdl/mod.rs:3593-3608 | zellij-utils/src/kdl/mod.rs:3623-3638 | zellij-utils/src/kdl/mod.rs:4056-4071 | zellij-utils/src/kdl/mod.rs:4220-4235 | zellij-utils/src/kdl/mod.rs:4306-4321 | zellij-utils/src/kdl/mod.rs:5112-5127 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15–16 lines × 4) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1752— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1752-1767 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1838-1852 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1924-1938 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:2007-2022 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13–15 lines × 2) zellij-client/src/lib.rs:331— zellij-client/src/lib.rs:331-345 | zellij-client/src/lib.rs:373-385 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 8) zellij-server/src/screen.rs:15555— zellij-server/src/screen.rs:15555-15568 | zellij-server/src/screen.rs:15575-15588 | zellij-server/src/screen.rs:15595-15608 | zellij-server/src/screen.rs:15615-15628 | zellij-server/src/screen.rs:15635-15648 | zellij-server/src/screen.rs:15655-15668 | zellij-server/src/screen.rs:15675-15688 | zellij-server/src/screen.rs:15695-15708 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11–14 lines × 4) zellij-server/src/pty.rs:1835— zellij-server/src/pty.rs:1835-1848 | zellij-server/src/pty.rs:1875-1885 | zellij-server/src/pty.rs:1910-1920 | zellij-server/src/pty.rs:1941-1951 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12–14 lines × 3) zellij-server/src/plugins/zellij_exports.rs:2550— zellij-server/src/plugins/zellij_exports.rs:2550-2561 | zellij-server/src/plugins/zellij_exports.rs:2628-2641 | zellij-server/src/plugins/zellij_exports.rs:2729-2741 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13–14 lines × 2) zellij-server/src/route.rs:976— zellij-server/src/route.rs:976-988 | zellij-server/src/route.rs:1105-1118 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (3–14 lines × 4) zellij-utils/src/kdl/kdl_layout_parser.rs:667— zellij-utils/src/kdl/kdl_layout_parser.rs:667-669 | zellij-utils/src/kdl/kdl_layout_parser.rs:1057-1070 | zellij-utils/src/kdl/kdl_layout_parser.rs:1095-1108 | zellij-utils/src/kdl/kdl_layout_parser.rs:1205-1207 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 28) zellij-utils/src/kdl/mod.rs:3960— zellij-utils/src/kdl/mod.rs:3960-3972 | zellij-utils/src/kdl/mod.rs:3990-4002 | zellij-utils/src/kdl/mod.rs:4338-4350 | zellij-utils/src/kdl/mod.rs:4367-4379 | zellij-utils/src/kdl/mod.rs:4397-4409 | zellij-utils/src/kdl/mod.rs:4455-4467 | zellij-utils/src/kdl/mod.rs:4509-4521 | zellij-utils/src/kdl/mod.rs:4537-4549 | zellij-utils/src/kdl/mod.rs:4566-4578 | zellij-utils/src/kdl/mod.rs:4593-4605 | zellij-utils/src/kdl/mod.rs:4649-4661 | zellij-utils/src/kdl/mod.rs:4688-4700 | zellij-utils/src/kdl/mod.rs:4813-4825 | zellij-utils/src/kdl/mod.rs:4849-4861 | zellij-utils/src/kdl/mod.rs:4877-4889 | zellij-utils/src/kdl/mod.rs:4905-4917 | zellij-utils/src/kdl/mod.rs:4930-4942 | zellij-utils/src/kdl/mod.rs:4955-4967 | zellij-utils/src/kdl/mod.rs:4982-4994 | zellij-utils/src/kdl/mod.rs:5007-5019 | zellij-utils/src/kdl/mod.rs:5034-5046 | zellij-utils/src/kdl/mod.rs:5061-5073 | zellij-utils/src/kdl/mod.rs:5088-5100 | zellij-utils/src/kdl/mod.rs:5140-5152 | zellij-utils/src/kdl/mod.rs:5168-5180 | zellij-utils/src/kdl/mod.rs:5195-5207 | zellij-utils/src/kdl/mod.rs:5223-5235 | zellij-utils/src/kdl/mod.rs:5438-5450 — all 28 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11–13 lines × 7) zellij-server/src/panes/grid.rs:4637— zellij-server/src/panes/grid.rs:4637-4647 | zellij-server/src/panes/grid.rs:4694-4704 | zellij-server/src/panes/grid.rs:4751-4763 | zellij-server/src/panes/grid.rs:4774-4784 | zellij-server/src/panes/grid.rs:4795-4805 | zellij-server/src/panes/grid.rs:4816-4826 | zellij-server/src/panes/grid.rs:4838-4848 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 4) zellij-utils/src/kdl/mod.rs:3819— zellij-utils/src/kdl/mod.rs:3819-3831 | zellij-utils/src/kdl/mod.rs:3875-3887 | zellij-utils/src/kdl/mod.rs:3903-3915 | zellij-utils/src/kdl/mod.rs:3928-3940 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–13 lines × 3) zellij-utils/src/input/options.rs:707— zellij-utils/src/input/options.rs:707-715 | zellij-utils/src/input/options.rs:771-783 | zellij-utils/src/input/options.rs:927-937 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–13 lines × 2) zellij-server/src/tab/layout_applier.rs:724— zellij-server/src/tab/layout_applier.rs:724-736 | zellij-server/src/tab/layout_applier.rs:810-818 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 8) zellij-server/src/screen.rs:15715— zellij-server/src/screen.rs:15715-15726 | zellij-server/src/screen.rs:15735-15746 | zellij-server/src/screen.rs:15755-15766 | zellij-server/src/screen.rs:15775-15786 | zellij-server/src/screen.rs:15815-15826 | zellij-server/src/screen.rs:15835-15846 | zellij-server/src/screen.rs:15893-15904 | zellij-server/src/screen.rs:15913-15924 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 5) zellij-tile/src/ui_components/text.rs:78— zellij-tile/src/ui_components/text.rs:78-89 | zellij-tile/src/ui_components/text.rs:115-126 | zellij-tile/src/ui_components/text.rs:160-171 | zellij-tile/src/ui_components/text.rs:218-229 | zellij-tile/src/ui_components/text.rs:274-285 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11–12 lines × 4) src/commands.rs:323— src/commands.rs:323-334 | src/commands.rs:716-727 | src/commands.rs:997-1008 | src/commands.rs:1017-1027 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 3) zellij-server/src/ui/pane_boundaries_frame.rs:1269— zellij-server/src/ui/pane_boundaries_frame.rs:1269-1280 | zellij-server/src/ui/pane_boundaries_frame.rs:1286-1297 | zellij-server/src/ui/pane_boundaries_frame.rs:1314-1325 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10–12 lines × 2) zellij-server/src/screen.rs:4802— zellij-server/src/screen.rs:4802-4811 | zellij-server/src/screen.rs:4855-4866 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 12) default-plugins/about/src/tips.rs:88— default-plugins/about/src/tips.rs:88-98 | default-plugins/about/src/tips.rs:139-149 | default-plugins/about/src/tips.rs:171-181 | default-plugins/about/src/tips.rs:227-237 | default-plugins/about/src/tips.rs:297-307 | default-plugins/about/src/tips.rs:360-370 | default-plugins/about/src/tips.rs:419-429 | default-plugins/about/src/tips.rs:453-463 | default-plugins/about/src/tips.rs:527-537 | default-plugins/about/src/tips.rs:586-596 | default-plugins/about/src/tips.rs:639-649 | default-plugins/about/src/tips.rs:695-705 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 11) zellij-server/src/tab/mod.rs:4470— zellij-server/src/tab/mod.rs:4470-4480 | zellij-server/src/tab/mod.rs:4508-4518 | zellij-server/src/tab/mod.rs:4523-4533 | zellij-server/src/tab/mod.rs:4538-4548 | zellij-server/src/tab/mod.rs:4558-4568 | zellij-server/src/tab/mod.rs:4573-4583 | zellij-server/src/tab/mod.rs:4619-4629 | zellij-server/src/tab/mod.rs:4638-4648 | zellij-server/src/tab/mod.rs:7617-7627 | zellij-server/src/tab/mod.rs:7637-7647 | zellij-server/src/tab/mod.rs:7656-7666 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 9) zellij-server/src/screen.rs:15555— zellij-server/src/screen.rs:15555-15565 | zellij-server/src/screen.rs:15635-15645 | zellij-server/src/screen.rs:15675-15685 | zellij-server/src/screen.rs:15715-15725 | zellij-server/src/screen.rs:15735-15745 | zellij-server/src/screen.rs:15755-15765 | zellij-server/src/screen.rs:15815-15825 | zellij-server/src/screen.rs:15835-15845 | zellij-server/src/screen.rs:15913-15923 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 8) zellij-server/src/screen.rs:15575— zellij-server/src/screen.rs:15575-15585 | zellij-server/src/screen.rs:15595-15605 | zellij-server/src/screen.rs:15615-15625 | zellij-server/src/screen.rs:15655-15665 | zellij-server/src/screen.rs:15695-15705 | zellij-server/src/screen.rs:15775-15785 | zellij-server/src/screen.rs:15855-15866 | zellij-server/src/screen.rs:15893-15903 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–11 lines × 4) zellij-server/src/panes/tiled_panes/mod.rs:2294— zellij-server/src/panes/tiled_panes/mod.rs:2294-2303 | zellij-server/src/panes/tiled_panes/mod.rs:2332-2340 | zellij-server/src/panes/tiled_panes/mod.rs:2356-2366 | zellij-server/src/panes/tiled_panes/mod.rs:2477-2487 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10–11 lines × 3) zellij-server/src/screen.rs:14227— zellij-server/src/screen.rs:14227-14237 | zellij-server/src/screen.rs:14814-14823 | zellij-server/src/screen.rs:14843-14852 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–11 lines × 2) zellij-server/src/tab/layout_applier.rs:598— zellij-server/src/tab/layout_applier.rs:598-608 | zellij-server/src/tab/layout_applier.rs:798-806 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 32) zellij-utils/src/kdl/mod.rs:3592— zellij-utils/src/kdl/mod.rs:3592-3601 | zellij-utils/src/kdl/mod.rs:3622-3631 | zellij-utils/src/kdl/mod.rs:3956-3965 | zellij-utils/src/kdl/mod.rs:3986-3995 | zellij-utils/src/kdl/mod.rs:4055-4064 | zellij-utils/src/kdl/mod.rs:4219-4228 | zellij-utils/src/kdl/mod.rs:4305-4314 | zellij-utils/src/kdl/mod.rs:4334-4343 | zellij-utils/src/kdl/mod.rs:4363-4372 | zellij-utils/src/kdl/mod.rs:4393-4402 | zellij-utils/src/kdl/mod.rs:4451-4460 | zellij-utils/src/kdl/mod.rs:4505-4514 | zellij-utils/src/kdl/mod.rs:4533-4542 | zellij-utils/src/kdl/mod.rs:4562-4571 | zellij-utils/src/kdl/mod.rs:4589-4598 | zellij-utils/src/kdl/mod.rs:4645-4654 | zellij-utils/src/kdl/mod.rs:4684-4693 | zellij-utils/src/kdl/mod.rs:4809-4818 | zellij-utils/src/kdl/mod.rs:4873-4882 | zellij-utils/src/kdl/mod.rs:4901-4910 | zellij-utils/src/kdl/mod.rs:4926-4935 | zellij-utils/src/kdl/mod.rs:4951-4960 | zellij-utils/src/kdl/mod.rs:4978-4987 | zellij-utils/src/kdl/mod.rs:5003-5012 | zellij-utils/src/kdl/mod.rs:5030-5039 | zellij-utils/src/kdl/mod.rs:5057-5066 | zellij-utils/src/kdl/mod.rs:5084-5093 | zellij-utils/src/kdl/mod.rs:5111-5120 | zellij-utils/src/kdl/mod.rs:5136-5145 | zellij-utils/src/kdl/mod.rs:5164-5173 | zellij-utils/src/kdl/mod.rs:5191-5200 | zellij-utils/src/kdl/mod.rs:5219-5228 — all 32 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 9) zellij-utils/src/kdl/mod.rs:3788— zellij-utils/src/kdl/mod.rs:3788-3797 | zellij-utils/src/kdl/mod.rs:3815-3824 | zellij-utils/src/kdl/mod.rs:3843-3852 | zellij-utils/src/kdl/mod.rs:3871-3880 | zellij-utils/src/kdl/mod.rs:3899-3908 | zellij-utils/src/kdl/mod.rs:3924-3933 | zellij-utils/src/kdl/mod.rs:4246-4255 | zellij-utils/src/kdl/mod.rs:4751-4760 | zellij-utils/src/kdl/mod.rs:4777-4786 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 4) zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:567— zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:567-575 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:586-594 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:604-612 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:623-631 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–9 lines × 3) zellij-server/src/ui/pane_boundaries_frame.rs:1253— zellij-server/src/ui/pane_boundaries_frame.rs:1253-1261 | zellij-server/src/ui/pane_boundaries_frame.rs:1268-1274 | zellij-server/src/ui/pane_boundaries_frame.rs:1311-1319 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–9 lines × 2) default-plugins/plugin-manager/src/main.rs:892— default-plugins/plugin-manager/src/main.rs:892-900 | default-plugins/plugin-manager/src/main.rs:902-908 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (3–9 lines × 3) default-plugins/session-manager/src/inbox.rs:685— default-plugins/session-manager/src/inbox.rs:685-687 | default-plugins/session-manager/src/inbox.rs:866-874 | default-plugins/session-manager/src/inbox.rs:1513-1521 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 10) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:608— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:608-615 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:678-685 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:704-711 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:730-737 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:928-935 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:957-964 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:990-997 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1026-1033 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1100-1107 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1126-1133 — `zellij-server/src/panes/floating_panes/floating_pane_grid.rs` and `zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (8 lines × 6) zellij-server/src/screen.rs:11391— zellij-server/src/screen.rs:11391-11398 | zellij-server/src/screen.rs:11426-11433 | zellij-server/src/screen.rs:11454-11461 | zellij-server/src/screen.rs:11489-11496 | zellij-server/src/screen.rs:11524-11531 | zellij-server/src/screen.rs:11552-11559 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–8 lines × 5) zellij-server/src/ui/pane_boundaries_frame.rs:1170— zellij-server/src/ui/pane_boundaries_frame.rs:1170-1177 | zellij-server/src/ui/pane_boundaries_frame.rs:1204-1211 | zellij-server/src/ui/pane_boundaries_frame.rs:1270-1276 | zellij-server/src/ui/pane_boundaries_frame.rs:1287-1293 | zellij-server/src/ui/pane_boundaries_frame.rs:1315-1321 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6–8 lines × 3) zellij-server/src/pty.rs:1207— zellij-server/src/pty.rs:1207-1214 | zellij-server/src/pty.rs:1766-1771 | zellij-server/src/pty.rs:2062-2067 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 12) zellij-server/src/panes/floating_panes/floating_pane_grid.rs:608— zellij-server/src/panes/floating_panes/floating_pane_grid.rs:608-614 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:633-639 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:678-684 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:704-710 | zellij-server/src/panes/floating_panes/floating_pane_grid.rs:730-736 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:928-934 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:957-963 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:990-996 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1026-1032 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1051-1057 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1100-1106 | zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:1126-1132 — `zellij-server/src/panes/floating_panes/floating_pane_grid.rs` and `zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (2–7 lines × 3) default-plugins/bars/src/status_bar/second_line.rs:452— default-plugins/bars/src/status_bar/second_line.rs:452-458 | default-plugins/bars/src/status_bar/second_line.rs:510-511 | default-plugins/bars/src/status_bar/second_line.rs:548-554 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (2–7 lines × 4) zellij-utils/src/input/options.rs:673— zellij-utils/src/input/options.rs:673-674 | zellij-utils/src/input/options.rs:700-706 | zellij-utils/src/input/options.rs:890-891 | zellij-utils/src/input/options.rs:917-923 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6–7 lines × 2) zellij-utils/src/kdl/mod.rs:2610— zellij-utils/src/kdl/mod.rs:2610-2616 | zellij-utils/src/kdl/mod.rs:2662-2667 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 6) zellij-utils/src/input/options.rs:697— zellij-utils/src/input/options.rs:697-701 | zellij-utils/src/input/options.rs:707-713 | zellij-utils/src/input/options.rs:753-759 | zellij-utils/src/input/options.rs:914-918 | zellij-utils/src/input/options.rs:927-933 | zellij-utils/src/input/options.rs:966-972 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 21) zellij-utils/src/kdl/mod.rs:3655— zellij-utils/src/kdl/mod.rs:3655-3666 | zellij-utils/src/kdl/mod.rs:3683-3694 | zellij-utils/src/kdl/mod.rs:3711-3722 | zellij-utils/src/kdl/mod.rs:3793-3804 | zellij-utils/src/kdl/mod.rs:3820-3831 | zellij-utils/src/kdl/mod.rs:3848-3859 | zellij-utils/src/kdl/mod.rs:3876-3887 | zellij-utils/src/kdl/mod.rs:3904-3915 | zellij-utils/src/kdl/mod.rs:3929-3940 | zellij-utils/src/kdl/mod.rs:4029-4040 | zellij-utils/src/kdl/mod.rs:4127-4138 | zellij-utils/src/kdl/mod.rs:4162-4173 | zellij-utils/src/kdl/mod.rs:4251-4262 | zellij-utils/src/kdl/mod.rs:4281-4292 | zellij-utils/src/kdl/mod.rs:4426-4437 | zellij-utils/src/kdl/mod.rs:4481-4492 | zellij-utils/src/kdl/mod.rs:4756-4767 | zellij-utils/src/kdl/mod.rs:4782-4793 | zellij-utils/src/kdl/mod.rs:5308-5319 | zellij-utils/src/kdl/mod.rs:5338-5349 | zellij-utils/src/kdl/mod.rs:5465-5476 — all 21 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (4–10 lines × 3) default-plugins/bars/src/status_bar/second_line.rs:441— default-plugins/bars/src/status_bar/second_line.rs:441-450 | default-plugins/bars/src/status_bar/second_line.rs:500-509 | default-plugins/bars/src/status_bar/second_line.rs:544-547 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 4) default-plugins/bars/src/status_bar/tip/data/compact_layout.rs:28— default-plugins/bars/src/status_bar/tip/data/compact_layout.rs:28-35 | default-plugins/bars/src/status_bar/tip/data/compact_layout.rs:44-51 | default-plugins/bars/src/status_bar/tip/data/edit_scrollbuffer.rs:27-31 | default-plugins/bars/src/status_bar/tip/data/edit_scrollbuffer.rs:40-44 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (7–11 lines × 3) default-plugins/fixture-plugin-for-tests/src/main.rs:1135— default-plugins/fixture-plugin-for-tests/src/main.rs:1135-1145 | default-plugins/fixture-plugin-for-tests/src/main.rs:1149-1159 | default-plugins/fixture-plugin-for-tests/src/main.rs:1173-1179 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
End-of-life runtime: Rust 1.95 rust-toolchain.toml:1— rust-toolchain.toml declares Rust 1.95 as this project's toolchain file, and Rust 1.95, superseded by 1.96 on 2026-05-28 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-05-28 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended.
Off the main sequence: zellij-tile — zellij-tile: abstractness 0.19, instability 0.00, distance 0.81 — zone of pain — concrete and depended on by 11 project(s), so it's rigid to change.
Duplicated block (704 lines × 2 locations) zellij-client/assets/app.js:2267— zellij-client/assets/app.js:2267 · zellij-client/assets/mobile-ui.js:640 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
Duplicated block (250 lines × 2 locations) zellij-client/assets/app.js:1326— zellij-client/assets/app.js:1326 · zellij-client/assets/touch.js:7 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (242 lines × 2 locations) zellij-client/assets/app.js:1792— zellij-client/assets/app.js:1792 · zellij-client/assets/mobile-ui.js:165 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (207 lines × 2 locations) zellij-client/assets/app.js:658— zellij-client/assets/app.js:658 · zellij-client/assets/soft-keyboard.js:14 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (147 lines × 2 locations) zellij-client/assets/app.js:3116— zellij-client/assets/app.js:3116 · zellij-client/assets/websockets.js:85 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication· Duplicated block with local edits (129 matched lines × 2 locations) · ×1
Duplicated block with local edits (129 matched lines × 2 locations) zellij-client/assets/app.js:1182— zellij-client/assets/app.js:1182 · zellij-client/assets/mobile-pan.js:1 — the two spans are one implementation copied and then locally edited — 710 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 (114 lines × 2 locations) zellij-client/assets/app.js:1054— zellij-client/assets/app.js:1054 · zellij-client/assets/pinch.js:7 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication· Duplicated block with local edits (113 matched lines × 2 locations) · ×1
Duplicated block with local edits (113 matched lines × 2 locations) zellij-client/assets/app.js:457— zellij-client/assets/app.js:457 · zellij-client/assets/terminal.js:5 — the two spans are one implementation copied and then locally edited — 686 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 (87 lines × 2 locations) zellij-client/assets/app.js:1679— zellij-client/assets/app.js:1679 · zellij-client/assets/mobile-ui.js:52 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (83 lines × 2 locations) zellij-client/assets/app.js:3344— zellij-client/assets/app.js:3344 · zellij-client/assets/websockets.js:313 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (58 lines × 2 locations) zellij-client/assets/app.js:215— zellij-client/assets/app.js:215 · zellij-client/assets/auth.js:11 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (49 lines × 2 locations) zellij-client/assets/app.js:955— zellij-client/assets/app.js:955 · zellij-client/assets/key-handler.js:4 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (46 lines × 2 locations) zellij-client/assets/app.js:596— zellij-client/assets/app.js:596 · zellij-client/assets/ime-bypass.js:1 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (44 lines × 2 locations) zellij-client/assets/app.js:1630— zellij-client/assets/app.js:1630 · zellij-client/assets/mobile-ui.js:3 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are.
Duplicated block (41 lines × 2 locations) zellij-client/assets/app.js:3074— zellij-client/assets/app.js:3074 · zellij-client/assets/websockets.js:43 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication· Duplicated block with local edits (41 matched lines × 2 locations) · ×1
Duplicated block with local edits (41 matched lines × 2 locations) zellij-client/assets/app.js:133— zellij-client/assets/app.js:133 · zellij-client/assets/connection.js:59 — the two spans are one implementation copied and then locally edited — 252 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 (39 lines × 2 locations) zellij-client/assets/app.js:412— zellij-client/assets/app.js:412 · zellij-client/assets/links.js:9 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication· Duplicated block with local edits (36 matched lines × 2 locations) · ×1
Duplicated block with local edits (36 matched lines × 2 locations) zellij-client/assets/modals.js:397— zellij-client/assets/modals.js:397 · zellij-client/assets/modals.js:460 — the two spans are one implementation copied and then locally edited — 242 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.
Duplicated block (30 lines × 2 locations) zellij-client/assets/app.js:1016— zellij-client/assets/app.js:1016 · zellij-client/assets/mouse.js:1 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (28 lines × 2 locations) zellij-client/assets/app.js:922— zellij-client/assets/app.js:922 · zellij-client/assets/soft-keyboard.js:278 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (25 lines × 2 locations) zellij-client/assets/app.js:3485— zellij-client/assets/app.js:3485 · zellij-client/assets/index.js:12 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (22 lines × 2 locations) zellij-client/assets/app.js:305— zellij-client/assets/app.js:305 · zellij-client/assets/auth.js:101 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication· Duplicated block with local edits (22 matched lines × 2 locations) · ×1
Duplicated block with local edits (22 matched lines × 2 locations) zellij-client/assets/app.js:26— zellij-client/assets/app.js:26 · zellij-client/assets/utils.js:26 — the two spans are one implementation copied and then locally edited — 144 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 (19 lines × 2 locations) zellij-client/assets/app.js:902— zellij-client/assets/app.js:902 · zellij-client/assets/soft-keyboard.js:258 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (18 lines × 2 locations) zellij-client/assets/app.js:342— zellij-client/assets/app.js:342 · zellij-client/assets/auth.js:138 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (12 lines × 2 locations) zellij-client/assets/app.js:645— zellij-client/assets/app.js:645 · zellij-client/assets/soft-keyboard.js:1 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
Duplicated block (10 lines × 2 locations) zellij-client/assets/modals.js:368— zellij-client/assets/modals.js:368 · zellij-client/assets/modals.js:571 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
R3 · Large Files· zellij-client/assets/app.js · ×1
zellij-client/assets/app.js: 3216 lines of code zellij-client/assets/app.js:1— zellij-client/assets/app.js has 3216 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· zellij-client/assets/mobile-ui.js · ×1
zellij-client/assets/mobile-ui.js: 1293 lines of code zellij-client/assets/mobile-ui.js:1— zellij-client/assets/mobile-ui.js has 1293 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· zellij-client/assets/modals.js · ×1
zellij-client/assets/modals.js: 509 lines of code zellij-client/assets/modals.js:1— zellij-client/assets/modals.js has 509 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· zellij-client/assets/websockets.js · ×1
zellij-client/assets/websockets.js: 410 lines of code zellij-client/assets/websockets.js:1— zellij-client/assets/websockets.js has 410 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
Duplicated predicate zellij-client/assets/app.js:2385— `!els || !els.menu.classList.contains("zj-open")` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/mobile-ui.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 zellij-client/assets/app.js:521— `!hasExplicitFontSize && mobileViewport && term.rows < NATURAL_MIN_TOTAL_ROWS` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/terminal.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 zellij-client/assets/app.js:1486— `!pinch_active && Math.abs(dist - pinch_initial_distance) > pinch_activation_threshold` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/touch.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 zellij-client/assets/app.js:3493— `!sessionFromPath && shouldUseStandaloneMenu()` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/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 zellij-client/assets/app.js:2621— `!state.data.desktop_client_connected || !size || !size.cols || !size.rows` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/mobile-ui.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 zellij-client/assets/app.js:1892— `!state.fitEnabled && desktopSizeChanged(prevDesktop, data.desktop_size)` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/mobile-ui.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 zellij-client/assets/app.js:503— `(config && config.theme && config.theme.background) || null` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/terminal.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 zellij-client/assets/app.js:992— `(ev.key == "=" && ev.altKey) || (ev.key == "+" && ev.altKey) || (ev.key == "-" && ev.altKey)` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/key-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 zellij-client/assets/app.js:1014— `(modifiers_count > 1 || ev.metaKey) && !isModifierKey` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/key-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 zellij-client/assets/app.js:3189— `(userConfig.blink || userConfig.style) && ( data.includes("\x1b[0 q") || data.includes("\x1b[1 q") || data.includes("\x1b[2 q") || data.incl…` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/websockets.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 zellij-client/assets/app.js:62— `(window.matchMedia && window.matchMedia("(pointer: coarse)").matches && window.innerWidth < 600) || /Mobi|Android|iPhone|iPad/i.test(navigat…` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/utils.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 zellij-client/assets/app.js:2678— `activationPreference() === "off" && isMobileViewport()` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/mobile-ui.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 zellij-client/assets/app.js:2826— `active && active.pane_id === p.pane_id && active.is_plugin === p.is_plugin` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/mobile-ui.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 zellij-client/assets/app.js:3461— `capture && window.__zjSoftKbdCapture.isFocused` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/websockets.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 zellij-client/assets/app.js:780— `ch === lastCh && now - lastChAt < DEDUPE_MS` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/soft-keyboard.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 zellij-client/assets/app.js:2393— `els.menu.contains(target) || els.hamburgerBtn.contains(target)` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/mobile-ui.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 zellij-client/assets/app.js:958— `ev.key == "V" && ev.ctrlKey && ev.shiftKey` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/key-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 zellij-client/assets/app.js:1044— `event.altKey || term.modes.mouseTrackingMode !== "none"` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/mouse.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 zellij-client/assets/app.js:1500— `event.touches.length === 0 || last_touch_y === null` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/touch.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 zellij-client/assets/app.js:1479— `event.touches.length === 2 && pinch_initial_distance !== null && pinch_initial_distance > 0` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/touch.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 zellij-client/assets/app.js:1401— `event.touches.length === 2 && two_finger_gesture_t === null` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/touch.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 zellij-client/assets/app.js:3142— `fitDimensions.rows !== term.rows || fitDimensions.cols !== term.cols` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/websockets.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 zellij-client/assets/app.js:2969— `found === 0 || /\W/.test(lowerText[found - 1])` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/mobile-ui.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 zellij-client/assets/app.js:134— `isReconnecting || !hasConnectedBefore || isPageUnloading` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/connection.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 zellij-client/assets/app.js:3095— `lastSentCellDimensions && lastSentCellDimensions.width === cellWidth && lastSentCellDimensions.height === cellHeight` appears character-identically in 2 files — zellij-client/assets/app.js, zellij-client/assets/websockets.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.
Silent fallback default on Err default-plugins/layout-manager/src/ui/text_utils.rs:136— `format_elapsed` turns every `Err` into `" ".to_string()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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 arm or in the doc comment, and the row stops firing.
Silent fallback default on Err default-plugins/prompt/src/ui.rs:978— `typed_value_error` turns every `Err` into `Some("Type a whole number".to_owned())` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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 arm or in the doc comment, and the row stops firing.
Silent fallback default on Err zellij-integration-tests/src/fake_client_os_api.rs:87— `read` turns every `Err` into `Ok(0)` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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 arm or in the doc comment, and the row stops firing.
Silent fallback default on Err zellij-server/src/session_layout_metadata.rs:379— `update_default_editor` turns every `Err` into `"vi".into()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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 arm or in the doc comment, and the row stops firing.
Silent fallback default on Err zellij-server/src/panes/grapheme_join.rs:69— `join_class` turns every `Err` into `0` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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 arm or in the doc comment, and the row stops firing.
Silent fallback default on Err zellij-utils/src/data.rs:2049— `from_rgb_str` turns every `Err` into `Self::default()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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 arm or in the doc comment, and the row stops firing.
Silent fallback default on Err zellij-utils/src/input/config_settings.rs:1043— `settings_set_in_file` turns every `Err` into `BTreeSet::new()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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 arm or in the doc comment, and the row stops firing.
Silent fallback default on Err REDACTED:1049— `running_session_names_in` turns every `Err` into `vec![]` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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 arm or in the doc comment, and the row stops firing.
Orphaned file zellij-server/src/pty_writer.rs: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 zellij-server/src/logging_pipe.rs: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 zellij-utils/src/common_path.rs: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 default-plugins/bars/src/status_bar/tip/cache.rs: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.
Silent fallback default in catch zellij-client/assets/app.js:1761— `effectiveTheme` swallows every exception into `return "dark"` — 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 zellij-client/assets/mobile-ui.js:134— `effectiveTheme` swallows every exception into `return "dark"` — 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.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 33 significant file(s) lose their only recent owner: zellij-server/src/panes/tiled_panes/mod.rs, zellij-utils/src/session_serialization.rs, zellij-server/src/panes/floating_panes/mod.rs, default-plugins/bars/src/status_bar/mod.rs, zellij-integration-tests/src/runner.rs, zellij-server/src/panes/floating_panes/floating_pane_grid.rs, default-plugins/session-manager/src/single_screen.rs, zellij-server/src/session_layout_metadata.rs (+25 more). Pair on, review, or document these before any departure.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 2 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 (35 single-owned of 407 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 407 of the 480 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: zellij-client/src/os_input_output_windows.rs, zellij-tile/src/ui_components/nested_list.rs.
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 — 3 of 19 project(s) overshoot their size bounds, lowering Project Cohesion to 6.8/10. The most over is `zellij-server` (118470 LoC, 302 module-visible types across 16 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· Orphaned files with no living knowledge · ×1
Orphaned files with no living knowledge — 4 of 407 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 407 of the 480 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: zellij-server/src/pty_writer.rs, zellij-server/src/logging_pipe.rs, zellij-utils/src/common_path.rs, default-plugins/bars/src/status_bar/tip/cache.rs. 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.
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.
Logging is not universal — Only 6/9 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `default-plugins/fixture-plugin-for-tests`, `xtask`, `zellij-tile`.
No SAST — No static application security testing detected. For this repository's stack, add cargo-audit / cargo-deny (or clippy) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 29403 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.
No inbound request validation detected — No handler of this repository's Rust server answers 400, 413 or 422 (`StatusCode::BAD_REQUEST`, `HttpResponse::BadRequest()`, `Status::BadRequest`, tonic `Status::invalid_argument`), and nothing declares validation — no `validator`/`garde` derive, no body limit (`DefaultBodyLimit::max`, `RequestBodyLimitLayer`, `JsonConfig::default().limit(…)`, Rocket `Limits`) — nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (−2.0 on this card.) The server: `axum_server::from_tcp_rustls(` (zellij-client/src/web_client/mod.rs:287).
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 2/6 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.
Outdated: anyhow — `anyhow` is locked at 1.0.95 but 1.0.104 is the current stable release on crates.io, and it already satisfies the `"1.0.70"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p anyhow` and commit the updated REDACTED.
Outdated: arboard — `arboard` is locked at 3.6.1 but 3.7.0 is the current stable release on crates.io, and it already satisfies the `"3.6"` requirement declared in zellij-window/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p arboard` and commit the updated REDACTED.
Outdated: arrayvec — `arrayvec` is locked at 0.7.6 but 0.7.8 is the current stable release on crates.io, and it already satisfies the `"0.7.2"` requirement declared in zellij-server/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p arrayvec` and commit the updated REDACTED.
Outdated: async-trait — `async-trait` is locked at 0.1.80 but 0.1.92 is the current stable release on crates.io, and it already satisfies the `"0.1"` requirement declared in zellij-client/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p async-trait` and commit the updated REDACTED.
Outdated: axum — `axum` is locked at 0.8.8 but 0.8.9 is the current stable release on crates.io, and it already satisfies the `"0.8.4"` requirement declared in zellij-client/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p axum` and commit the updated REDACTED.
Outdated: axum-extra — `axum-extra` is locked at 0.12.5 but 0.12.6 is the current stable release on crates.io, and it already satisfies the `"0.12"` requirement declared in zellij-client/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p axum-extra` and commit the updated REDACTED.
Outdated: bitflags — `bitflags` is locked at 2.11.0 but 2.13.2 is the current stable release on crates.io, and it already satisfies the `"2.5.0"` requirement declared in zellij-utils/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p bitflags` and commit the updated REDACTED.
Outdated: byteorder — `byteorder` is locked at 1.4.3 but 1.5.0 is the current stable release on crates.io, and it already satisfies the `"1.4.3"` requirement declared in zellij-server/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p byteorder` and commit the updated REDACTED.
Outdated: bytes — `bytes` is locked at 1.11.1 but 1.12.1 is the current stable release on crates.io, and it already satisfies the `"1.6.0"` requirement declared in zellij-server/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p bytes` and commit the updated REDACTED.
Outdated: chrono — `chrono` is locked at 0.4.39 but 0.4.45 is the current stable release on crates.io, and it already satisfies the `"0.4.19"` requirement declared in zellij-server/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p chrono` and commit the updated REDACTED.
Outdated: clap — `clap` is locked at 4.6.4 but 4.6.7 is the current stable release on crates.io, and it already satisfies the `"4.6"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p clap` and commit the updated REDACTED.
Outdated: clap_complete — `clap_complete` is locked at 4.6.8 but 4.6.11 is the current stable release on crates.io, and it already satisfies the `"4.6"` requirement declared in zellij-utils/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p clap_complete` and commit the updated REDACTED.
Outdated: crossbeam — `crossbeam` is locked at 0.8.1 but 0.8.5 is the current stable release on crates.io, and it already satisfies the `"0.8"` requirement declared in zellij-integration-tests/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p crossbeam` and commit the updated REDACTED.
Outdated: curl-sys — `curl-sys` is locked at 0.4.68+curl-8.4.0 but 0.4.91+curl-8.22.0 is the current stable release on crates.io, and it already satisfies the `"0.4"` requirement declared in zellij-utils/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p curl-sys` and commit the updated REDACTED.
Outdated: embed-resource — `embed-resource` is locked at 3.0.6 but 3.0.12 is the current stable release on crates.io, and it already satisfies the `"3"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p embed-resource` and commit the updated REDACTED.
Outdated: flate2 — `flate2` is locked at 1.1.9 but 1.1.10 is the current stable release on crates.io, and it already satisfies the `"1.1.9"` requirement declared in zellij-server/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p flate2` and commit the updated REDACTED.
Outdated: futures — `futures` is locked at 0.3.31 but 0.3.34 is the current stable release on crates.io, and it already satisfies the `"0.3.30"` requirement declared in zellij-client/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p futures` and commit the updated REDACTED.
Outdated: futures-util — `futures-util` is locked at 0.3.31 but 0.3.34 is the current stable release on crates.io, and it already satisfies the `"0.3"` requirement declared in zellij-client/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p futures-util` and commit the updated REDACTED.
Outdated: humantime — `humantime` is locked at 2.1.0 but 2.4.0 is the current stable release on crates.io, and it already satisfies the `"2.1.0"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p humantime` and commit the updated REDACTED.
Outdated: include_dir — `include_dir` is locked at 0.7.3 but 0.7.4 is the current stable release on crates.io, and it already satisfies the `"0.7.3"` requirement declared in zellij-client/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p include_dir` and commit the updated REDACTED.
Outdated: insta — `insta` is locked at 1.48.0 but 1.49.0 is the current stable release on crates.io, and it already satisfies the `"1.48"` requirement declared in zellij-integration-tests/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p insta` and commit the updated REDACTED.
Outdated: interprocess — `interprocess` is locked at 2.3.1 but 2.4.7 is the current stable release on crates.io, and it already satisfies the `"2.2"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p interprocess` and commit the updated REDACTED.
Outdated: kasuari — `kasuari` is locked at 0.4.12 but 0.4.13 is the current stable release on crates.io, and it already satisfies the `"0.4.12"` requirement declared in zellij-server/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p kasuari` and commit the updated REDACTED.
Outdated: lazy_static — `lazy_static` is locked at 1.4.0 but 1.5.1 is the current stable release on crates.io, and it already satisfies the `"1.4.0"` requirement declared in zellij-client/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p lazy_static` and commit the updated REDACTED.
Outdated: libc — `libc` is locked at 0.2.176 but 0.2.191 is the current stable release on crates.io, and it already satisfies the `"0.2"` requirement declared in zellij-server/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p libc` and commit the updated REDACTED.
+ 27 more in this group — see findings.md.
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.
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) — `zellij-client/assets/addon-webgl.js` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
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.
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.
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.
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.
Run 01a17516-1a83-774a-8862-bff7167f5f47 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 69 · Warnings: 2131 · Recommendations: 52 · Info: 52 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 25-10-2026 @ 22:02 UTC.
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.