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

Flutter-Bounty-Hunters/super_editor

Measured 17 November 2026, 18:12 UTC, at code version 9125dd4

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

CAI score 52.2out of 100 Adequate
CriticalWeakAdequateStrongExemplary
Up 6.1 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: 124,327 lines of product code in 30 projects, tests not counted · Estimated rebuild effort: about 1.8 person-years · Weakest lens: Accessibility, 35.6

Findings by how serious they are

96 critical 1231 serious 104 minor

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

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 18:12 UTC

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

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

60of 60 dimensions measured by tools.
1422of 1431 findings point to an exact file and line, so you can open each one in the code. The other 9 concern the repository as a whole, such as missing documentation.
60dimensions across 8 lenses, read from 124,327 lines of product code in 30 projects.
Chapters

Executive summary

Flutter-Bounty-Hunters/super_editor falls short of our standard for a preview release because it has images with no text description and controls that only work with a mouse. It scores 52.2 out of 100 and is rated Adequate, and 65 of its 96 critical findings are security problems.

Accessibility, at 35.6, is the weakest lens and counts most in the score. The best first steps are adding text alternatives and making the controls keyboard-usable, each worth about 6.8 points. Raising Accessibility to 65 would lift the score to about 63.2.

Fifty-nine pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Eighteen images have no description for people who can't see them, and four settings leave the servers or containers unsafe. Pinning each tool to an exact version, describing the images and correcting the unsafe settings would close these risks. Fixing the weaknesses the scanner points to would fix the security weakness in the code, and correcting the flagged pipeline settings would deal with the weakness in the build pipeline's configuration. The six parts of the code nobody has worked on for a long time need someone to learn and document them before anyone changes them.

The product code is 124,327 lines, about €260,000 to rebuild.

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

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

If Accessibility rose from 35.6 to 65, the lowest score rated Strong, the score would rise from 52.2 to about 63.2.

Code composition: what the lines of code are
Product code 62%Tests 38%
New since the last survey: 245 findings

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

  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) super_clones/bear/macos/Runner/MainFlutterWindow.swift
  • Code Duplication · Edited copies of one member (3 members, 105+ corresponding lines) super_editor/lib/src/default_editor/text.dart
  • Code Duplication · Edited copy of a member (66 corresponding lines) super_keyboard/lib/src/super_keyboard_android.dart
  • Code Duplication · Edited copy of a member (68 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart
  • Code Duplication · Edited copies of one member (3 members, 59+ corresponding lines) super_clones/quill/lib/editor/toolbar.dart
  • Code Duplication · Edited copies of one member (3 members, 61+ corresponding lines) super_clones/google_docs/lib/infrastructure/selectable_grid.dart
  • Code Duplication · Edited copy of a member (53 corresponding lines) super_editor/lib/src/default_editor/list_items.dart
  • Code Duplication · Edited copy of a member (53 corresponding lines) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart
  • Code Duplication · Edited copy of a member (56 corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart
  • Code Duplication · Edited copies of one member (3 members, 57+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Edited copy of a member (70 corresponding lines) super_editor/lib/src/default_editor/document_gestures_mouse.dart
  • Code Duplication · Edited copy of a member (49 corresponding lines) super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart
  • Code Duplication · Edited copy of a member (46 corresponding lines) super_clones/quill/lib/editor/editor.dart
  • Code Duplication · Edited copy of a member (59 corresponding lines) super_editor/lib/src/default_editor/multi_node_editing.dart
  • Code Duplication · Edited copies of one member (3 members, 45+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Edited copy of a member (40 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart
  • Code Duplication · Edited copy of a member (41 corresponding lines) super_editor/example/lib/demos/demo_attributed_text.dart
  • Code Duplication · Edited copy of a member (42 corresponding lines) super_editor/lib/src/default_editor/image.dart
  • Code Duplication · Edited copy of a member (49 corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Edited copies of one member (4 members, 33+ corresponding lines) super_editor/lib/src/default_editor/blockquote.dart
  • Code Duplication · Edited copy of a member (35 corresponding lines) super_clones/google_docs/lib/infrastructure/text_item_selector.dart
  • Code Duplication · Edited copy of a member (45 corresponding lines) super_clones/ios_messenger/lib/conversation/conversation_screen.dart
  • Code Duplication · Edited copy of a member (42 corresponding lines) super_editor/lib/src/default_editor/paragraph.dart
  • Code Duplication · Edited copies of one member (5 members, 48+ corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart
  • Code Duplication · Edited copy of a member (30 corresponding lines) super_editor/lib/src/chat/bottom_floating/default/default_editor_sheet.dart
  • Code Duplication · Edited copy of a member (19 corresponding lines) super_clones/ios_messenger/lib/conversation/conversation_screen.dart
  • Code Duplication · Edited copies of one member (3 members, 38+ corresponding lines) super_clones/quill/lib/editor/code_component.dart
  • Code Duplication · Edited copy of a member (39 corresponding lines) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart
  • Code Duplication · Edited copy of a member (29 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart
  • Code Duplication · Edited copy of a member (32 corresponding lines) super_editor/lib/src/default_editor/common_editor_operations.dart
  • Code Duplication · Edited copy of a member (45 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart
  • Code Duplication · Edited copy of a member (35 corresponding lines) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart
  • Code Duplication · Edited copy of a member (42 corresponding lines) super_editor/lib/src/default_editor/list_items.dart
  • Code Duplication · Edited copy of a member (41 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart
  • Code Duplication · Edited copy of a member (32 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart
  • Code Duplication · Edited copy of a member (35 corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Edited copy of a member (28 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart
  • Code Duplication · Edited copy of a member (23 corresponding lines) super_editor/example/lib/demos/demo_attributed_text.dart
  • Code Duplication · Edited copy of a member (22 corresponding lines) super_editor/example/lib/demos/demo_attributed_text.dart
  • Code Duplication · Edited copy of a member (21 corresponding lines) super_editor/lib/src/infrastructure/serialization/quill/parsing/inline_formats.dart
  • Code Duplication · Edited copy of a member (26 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart
  • Code Duplication · Edited copy of a member (25 corresponding lines) super_clones/quill/lib/editor/toolbar.dart
  • Code Duplication · Edited copy of a member (30 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart
  • Code Duplication · Edited copy of a member (22 corresponding lines) super_editor/lib/src/default_editor/tasks.dart
  • Code Duplication · Edited copy of a member (32 corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Edited copy of a member (26 corresponding lines) super_text_layout/lib/src/super_text_layout_with_selection.dart
  • Code Duplication · Edited copy of a member (18 corresponding lines) super_editor/lib/src/core/document_selection.dart
  • Code Duplication · Edited copy of a member (30 corresponding lines) super_editor/lib/src/default_editor/common_editor_operations.dart
  • Code Duplication · Edited copy of a member (21 corresponding lines) super_editor/lib/src/default_editor/list_items.dart
  • Code Duplication · Edited copy of a member (33 corresponding lines) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart
  • Code Duplication · Edited copy of a member (20 corresponding lines) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart
  • Code Duplication · Edited copy of a member (29 corresponding lines) super_clones/google_docs/lib/infrastructure/color_selector.dart
  • Code Duplication · Edited copy of a member (36 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart
  • Code Duplication · Edited copy of a member (20 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart
  • Code Duplication · Edited copy of a member (16 corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart
  • Code Duplication · Edited copies of one member (3 members, 21+ corresponding lines) super_clones/quill/lib/editor/toolbar.dart
  • Code Duplication · Edited copy of a member (18 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart
  • Code Duplication · Edited copy of a member (19 corresponding lines) website/lib/homepage/call_to_action.dart
  • Code Duplication · Edited copy of a member (30 corresponding lines) super_clones/quill/lib/editor/editor.dart
  • Code Duplication · Edited copy of a member (33 corresponding lines) super_editor/lib/src/default_editor/default_document_editor_reactions.dart
  • Code Duplication · Edited copy of a member (24 corresponding lines) super_clones/quill/lib/editor/blockquote_component.dart
  • Code Duplication · Edited copy of a member (17 corresponding lines) super_editor/lib/src/default_editor/document_scrollable.dart
  • Code Duplication · Edited copies of one member (4 members, 32+ corresponding lines) super_clones/slack/lib/main.dart
  • Code Duplication · Edited copy of a member (22 corresponding lines) super_editor/lib/src/default_editor/tap_handlers/tap_handlers.dart
  • Code Duplication · Edited copy of a member (22 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart
  • Code Duplication · Edited copy of a member (21 corresponding lines) super_clones/quill/lib/editor/toolbar.dart
  • Code Duplication · Edited copies of one member (3 members, 20+ corresponding lines) super_editor/lib/src/chat/super_message_keyboard_interactor.dart
  • Code Duplication · Edited copy of a member (28 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart
  • Code Duplication · Edited copies of one member (3 members, 24+ corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart
  • Code Duplication · Edited copy of a member (11 corresponding lines) super_editor/lib/src/infrastructure/flutter/material_scrollbar.dart
  • Code Duplication · Edited copy of a member (23 corresponding lines) super_editor/lib/src/default_editor/document_gestures_mouse.dart
  • Code Duplication · Edited copies of one member (4 members, 23+ corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart
  • Code Duplication · Edited copy of a member (20 corresponding lines) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart
  • Code Duplication · Edited copy of a member (18 corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart
  • Code Duplication · Edited copy of a member (17 corresponding lines) super_editor/lib/src/default_editor/box_component.dart
  • Code Duplication · Edited copy of a member (18 corresponding lines) super_clones/google_docs/lib/infrastructure/color_selector.dart
  • Code Duplication · Edited copy of a member (20 corresponding lines) super_editor/lib/src/default_editor/multi_node_editing.dart
  • Code Duplication · Edited copy of a member (20 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart
  • Code Duplication · Edited copies of one member (3 members, 21+ corresponding lines) super_editor/lib/src/chat/super_message_ios_overlays.dart
  • Code Duplication · Edited copies of one member (3 members, 30+ corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart
  • Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) super_editor/lib/src/default_editor/layout_single_column/_layout.dart
  • Code Duplication · Edited copies of one member (3 members, 20+ corresponding lines) super_clones/quill/lib/editor/blockquote_component.dart
  • Code Duplication · Edited copies of one member (3 members, 22+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Edited copy of a member (23 corresponding lines) super_editor/lib/src/default_editor/list_items.dart
  • Code Duplication · Edited copy of a member (22 corresponding lines) super_text_layout/lib/src/text_layout.dart
  • Code Duplication · Edited copy of a member (14 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart
  • Code Duplication · Edited copies of one member (3 members, 26+ corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart
  • Code Duplication · Edited copy of a member (18 corresponding lines) super_editor/lib/src/default_editor/list_items.dart
  • Code Duplication · Edited copies of one member (3 members, 18+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Edited copies of one member (5 members, 25+ corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart
  • Code Duplication · Edited copies of one member (6 members, 14+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Edited copy of a member (14 corresponding lines) super_editor/lib/src/default_editor/box_component.dart
  • Code Duplication · Edited copy of a member (21 corresponding lines) super_editor/lib/src/default_editor/document_ime/mobile_toolbar.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart
  • Code Duplication · Edited copies of one member (3 members, 23+ corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart
  • Code Duplication · Edited copy of a member (22 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart
  • Code Duplication · Edited copies of one member (5 members, 18+ corresponding lines) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart
  • Code Duplication · Edited copies of one member (4 members, 21+ corresponding lines) super_editor/lib/src/default_editor/paragraph.dart
  • Code Duplication · Edited copy of a member (16 corresponding lines) super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart
  • Code Duplication · Edited copies of one member (3 members, 10+ corresponding lines) super_editor_spellcheck/macos/Classes/SuperEditorSpellcheckPlugin.swift

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

Fixed since the last survey: 37 findings

These 37 critical or serious findings were in the previous survey, on 5 November 2026, and are gone from this one.

  • Code Duplication · Edited copy of a member (28 corresponding lines) super_editor/lib/src/default_editor/list_items.dart
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) super_clones/bear/macos/Runner/MainFlutterWindow.swift
  • Code Duplication · Duplicated block (56 lines × 2) super_clones/google_docs/lib/infrastructure/selectable_grid.dart
  • Code Duplication · Duplicated block (55 lines × 4) super_editor/example/lib/demos/super_reader/demo_super_reader.dart
  • Code Duplication · Duplicated block (47 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart
  • Code Duplication · Duplicated block (41 lines × 2) super_editor/lib/src/chat/super_message_mouse_interactor.dart
  • Code Duplication · Duplicated block (22–27 lines × 3) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Duplicated block (22–25 lines × 6) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Duplicated block (25 lines × 3) super_clones/google_docs/lib/infrastructure/selectable_grid.dart
  • Code Duplication · Duplicated block (18 lines × 3) super_editor/lib/src/default_editor/document_gestures_mouse.dart
  • Code Duplication · Duplicated block (18 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart
  • Code Duplication · Duplicated block (18 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart
  • Code Duplication · Duplicated block (17 lines × 3) super_editor/lib/src/chat/super_message_android_overlays.dart
  • Code Duplication · Duplicated block (17 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart
  • Code Duplication · Duplicated block (17 lines × 2) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart
  • Code Duplication · Duplicated block (16 lines × 3) super_editor/lib/src/chat/super_message_mouse_interactor.dart
  • Code Duplication · Duplicated block (16 lines × 3) super_editor/lib/src/default_editor/document_gestures_mouse.dart
  • Code Duplication · Duplicated block (16 lines × 2) super_editor/lib/src/chat/super_message_ios_overlays.dart
  • Code Duplication · Duplicated block (16 lines × 2) super_editor/lib/src/default_editor/list_items.dart
  • Code Duplication · Duplicated block (15 lines × 4) super_editor/lib/src/chat/super_message_android_overlays.dart
  • Code Duplication · Duplicated block (14 lines × 3) super_editor/lib/src/default_editor/text.dart
  • Code Duplication · Duplicated block (14 lines × 2) super_editor/lib/src/default_editor/common_editor_operations.dart
  • Code Duplication · Duplicated block (14 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart
  • Code Duplication · Duplicated block (12–13 lines × 4) super_editor/lib/src/default_editor/blockquote.dart
  • Code Duplication · Duplicated block (13 lines × 2) super_editor/lib/src/default_editor/common_editor_operations.dart
  • Code Duplication · Duplicated block (13 lines × 2) super_editor/lib/src/default_editor/image.dart
  • Code Duplication · Duplicated block (12 lines × 4) super_editor/lib/src/default_editor/common_editor_operations.dart
  • Code Duplication · Duplicated block (11 lines × 2) super_editor/lib/src/default_editor/common_editor_operations.dart
  • Code Duplication · Duplicated block (10 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart
  • Code Duplication · Duplicated block (9 lines × 2) super_clones/quill/lib/editor/code_component.dart
  • Code Duplication · Duplicated block (7–8 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_android.dart
  • Code Duplication · Duplicated block (5 lines × 2) super_editor/lib/src/infrastructure/serialization/markdown/markdown_inline_parser.dart
  • Code Duplication · Duplicated block (7 lines × 8) super_clones/google_docs/ios/Runner/AppDelegate.swift
  • Code Duplication · Duplicated block (7 lines × 2) super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart
  • Supply-chain Provenance & Signing · Unpinned build actions
  • Documentation (README) · README may be stale
  • A11y enforcement · Accessibility enforcement below the top rung
Rebuild cost: about €260,000 · Estimate
Cost to rebuild€86,000 to €430,000, for 1,436 to 4,555 hours of work, about 1.8 person-years for 1 to 4 engineers
Difficulty of the problemHigh, 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 52. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeLarge: 124,327 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

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

Top priorities

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

1
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
Raises the score by about 6.8 points · Medium effort · Text alternatives
2
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
Raises the score by about 6.8 points · Medium effort · Keyboard semantics
3
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with project.pbxproj.
Raises the score by about 3.1 points · Low effort · ADR Quality

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 €260,000 to build again, about 1.8 person-years of work. Its weakest lens is Accessibility, at 35.6 (Weak). Accessibility is about whether the interface is built so that everyone can use it, including people who can't see the screen or can't use a mouse. Because the weakest lens counts most in the score, work on Accessibility also moves the score most.
Based on: the rebuild estimate · the Accessibility grade · how much each lens counts
What to do: Start with the Accessibility actions in Top priorities.
If you do one thing first · First action
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video. Of all the actions in this report, it raises the score most for the work it takes: about 6.8 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.7 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 3% to 7% on every change. The history of the code shows how much it changes: about 2,308 lines over the last 90 days, which is about 9,360 lines a year. At that pace, the extra work comes to an estimated 0.7 to 4.4 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · 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, which only happens where the projects form a dependency cycle. A graph without cycles has none.

arch attributed_text attributed_text bear bear super_editor super_editor bear->super_editor example_docs example_docs example_docs->super_editor super_text_layout super_text_layout example_docs->super_text_layout feather feather feather->super_editor feather->super_text_layout ios_messenger ios_messenger medium medium slack slack slack->super_editor super_editor_clipboard super_editor_clipboard super_editor_docs super_editor_docs super_editor_obsidian super_editor_obsidian super_editor_spellcheck super_editor_spellcheck super_editor_spellcheck->super_editor super_editor_spellcheck->super_text_layout super_keyboard (Gradle) super_keyboard (Gradle) super_keyboard (pub) super_keyboard (pub) super_keyboard_docs super_keyboard_docs website website website->super_editor website->super_text_layout

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.

20 modules, with 13 dependencies between them. One loop runs through 3 of the modules, marked above the diagonal.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 com.flutterbountyhunters.clones.iosmessenger.ios_messenger2 com.flutterbountyhunters.clones.slack.slack3 com.flutterbountyhunters.feather.feather4 com.flutterbountyhunters.superkeyboard.super_keyboard5 repository.features6 repository.shims7 super_clones.google_docs.web8 super_editor.example_perf.web9 com.flutterbountyhunters.superkeyboard.super_keyboard.KeyboardState10 repository.src11 repository.conversation12 repository.deltas13 repository.domain14 repository.editor15 repository.floating_chat_editor_demo16 repository.homepage17 repository.infrastructure18 repository.keyboard_panel_scaffold19 repository.message_page_scaffold_demo20 repository
1 com.flutterbountyhunters.clones.iosmessenger.ios_messenger
2 com.flutterbountyhunters.clones.slack.slack
3 com.flutterbountyhunters.feather.feather
4 com.flutterbountyhunters.superkeyboard.super_keyboard
5 repository.features
6 repository.shims
7 super_clones.google_docs.web
8 super_editor.example_perf.web
9 com.flutterbountyhunters.superkeyboard.super_keyboard.KeyboardState4
10 repository.src1
11 repository.conversation7
12 repository.deltas2
13 repository.domain1
14 repository.editor61
15 repository.floating_chat_editor_demo2
16 repository.homepage10
17 repository.infrastructure8
18 repository.keyboard_panel_scaffold2
19 repository.message_page_scaffold_demo5
20 repository295
Uses a module listed above itPart of a loopThe module itself
1 com.flutterbountyhunters.clones.iosmessenger.ios_messenger2 com.flutterbountyhunters.clones.slack.slack3 com.flutterbountyhunters.feather.feather4 com.flutterbountyhunters.superkeyboard.super_keyboard5 repository.features6 repository.shims7 super_clones.google_docs.web8 super_editor.example_perf.web9 com.flutterbountyhunters.superkeyboard.super_keyboard.KeyboardState10 repository.src11 repository.conversation12 repository.deltas13 repository.domain14 repository.editor15 repository.floating_chat_editor_demo16 repository.homepage17 repository.infrastructure18 repository.keyboard_panel_scaffold19 repository.message_page_scaffold_demo20 repositorycom.flutterbountyhunters.clones.iosmessenger.ios_messenger1com.flutterbountyhunters.clones.slack.slack2com.flutterbountyhunters.feather.feather3com.flutterbountyhunters.superkeyboard.super_keyboard4repository.features5repository.shims6super_clones.google_docs.web7super_editor.example_perf.web8com.flutterbountyhunters.superkeyboard.super_keyboard.KeyboardState9repository.src10repository.conversation11repository.deltas12repository.domain13repository.editor14repository.floating_chat_editor_demo15repository.homepage16repository.infrastructure17repository.keyboard_panel_scaffold18repository.message_page_scaffold_demo19repository204172161210825295

At a glance — Code Health · 81.9 · Strong ·

At a glance — Architecture · 91.2 · Exemplary ·

At a glance — Maturity · 63.9 · Adequate · gated by M2 ·

At a glance — Readiness · 54.4 · Adequate · gated by P3 ·

At a glance — Security · 82.6 · Strong ·

At a glance — Domain Modelling · 100.0 · Exemplary ·

At a glance — Accessibility · 35.6 · Weak · gated by AC1, AC4 ·

At a glance — Performance · 100.0 · Exemplary ·

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A05:2025 — Injection63High / Critical
A02:2025 — Security Misconfiguration10High / Critical

Roadmap

Top priorities: Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video; Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href; Add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing.

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

Do thisHelpsEffortDimension
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.+6.8 ptsMediumText alternatives
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+6.8 ptsMediumKeyboard semantics
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with project.pbxproj.+3.1 ptsLowADR Quality
Add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing.+4.3 ptsMediumSecurity & performance tooling
Resolve the 8 Documentation finding(s) in Documentation Quality — start with README.md (8).+2.1 ptsLowDocumentation Quality
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.+2.9 ptsMediumArchitecture documentation
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.+2.5 ptsMediumObservability
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.+2.0 ptsMediumVisual & motion safety

File quality

Per-file score 0–10 — a quality signature. Of 260 files carrying findings, judged against the Preview bar: 2% slop · 41% mixed · 57% near-clean.

FileScoreBandWorst signal
REDACTED1.6SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.1SlopIaC & Container Security: High IaC: REDACTED
REDACTED2.1SlopIaC & Container Security: High IaC: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.0MixedStatic Analysis (SAST): High: REDACTED
super_editor/lib/src/chat/super_message_android_touch_interactor.dart5.5MixedGod Classes: TooManyMethods: _SuperMessageAndroidTouchInteractorState
super_clones/google_docs/lib/toolbar.dart5.5MixedGod Classes: FileTooLong: lib/toolbar.dart
super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart5.5MixedCode Duplication: Edited copy of a member (45 corresponding lines)
super_editor/lib/src/chat/attachments/attachment_list_component.dart5.6MixedCode Duplication: Edited copy of a member (32 corresponding lines)
super_editor/lib/src/infrastructure/multi_tap_gesture.dart5.7MixedCyclomatic Complexity: TapSequenceGestureRecognizer._checkUp (cyclomatic 16)
super_editor/lib/src/super_textfield/input_method_engine/_ime_text_editing_controller.dart5.9MixedCognitive Complexity: ImeAttributedTextEditingController.updateEditingValueWithDeltas (cognitive 16)
super_editor/lib/src/chat/attachments/attachment_list_node.dart5.9MixedGod Classes: TooManyMethods: AttachmentListNode
super_editor/lib/src/default_editor/blockquote.dart5.9MixedCode Duplication: Edited copies of one member (4 members, 33+ corresponding lines)
super_editor/lib/src/default_editor/default_document_editor_reactions.dart6.0MixedExplicit Debt: TodoComment
super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart6.0MixedExplicit Debt: TodoComment
super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart6.0MixedExplicit Debt: TodoComment
super_editor/lib/src/default_editor/multi_node_editing.dart6.0MixedExplicit Debt: TodoComment
super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart6.0MixedExplicit Debt: TodoComment

How the grades work

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

Critical — 96

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

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

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

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

What we checked — 60 dimensions across the health lenses
D1D2D3D4D5D6D13D14D15D16D17D19D20D26D28D29D30D31D34D35D43D44AC1AC2AC3AC4AC5AC6AX10AX3AX4AX5AX6AX9DM4DM5GD1IC1M1M2M3P1P10P2P3P4P6PF3S1X1X12X16X18X21X23X25X27X28X3X5

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

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

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

Tools & methods

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

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

Every finding is locatable in findings.md. Run 01a1eab5-dec4-7c61-951a-6a90a4cab153.

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

Run transparency — what happened this run

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

  • D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.dart, .swift) 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.
  • D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.dart, .swift) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 21 Maven/Gradle manifest(s) were read, stating a version for 1 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Dart pubspec.yaml, but the licence verdict published here was taken over its JVM dependencies. Nothing was read about its Dart dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind 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.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind 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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (super_text_layout/pubspec.yaml), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
  • D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check'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 — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 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.
  • AX1 Captive dependencies — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository defines its own container in super_editor/lib/src/default_editor/super_editor.dart, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • AXB2 Runtime readiness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. The image build failed, and its output does not match a cause we recognise. (rule: unrecognised-build-failure). The renderer reported: docker build failed (exit 1) — ------ 2 warnings found (use docker --debug to expand):  - UndefinedVar: Usage of undefined variable '$HOME' (line 3) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 4) ERROR: failed to solve: failed to load cache key: Get "https://api.github.com/repos/flutter/flutter/git/refs/heads/master": Forbidden; likely cause (not identified): the image build failed, and its output does not match a cause we recognise; runtime evidence skipped.
  • AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via Dockerfile (REDACTED). docker build failed (exit 1) — ------ 2 warnings found (use docker --debug to expand):  - UndefinedVar: Usage of undefined variable '$HOME' (line 3) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 4) ERROR: failed to solve: failed to load cache key: Get "https://api.github.com/repos/flutter/flutter/git/refs/heads/master": Forbidden; likely cause (not identified): the image build failed, and its output does not match a cause we recognise; runtime evidence skipped.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • X10 Duplicated predicate — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 64 further occurrence(s) are not listed individually; the score already reflects all 104.
  • X2 Cancellation propagation — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch, got, undici, node:http; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, 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.
  • X24 Document value interpolated into markup unescaped — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

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

Limitations & what we did not check

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

Per-dimension blind spots

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

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • 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.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • 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.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • 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.
  • DM4 Rich vs anemic domain model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity7.0 / 10Strong✓ Tool-verified

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

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

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

33 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was _KeyboardEditingToolbarState._buildToolbar at 38. A further 5 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 _SuperChatFloatingSheetToolbarState._buildOptionButton at 18 — they are counted neither in the figure above nor in this dimension's score. 2 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: super_editor/lib/src/chat/bottom_floating/default/default_editor_toolbar.dart (_SuperChatFloatingSheetToolbarState._buildOptionButton at 18), super_clones/quill/lib/editor/editor.dart (ToggleTextBlockFormatCommand.execute at 16). 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.

_SelectableGridState._onKeyEvent (cyclomatic 18) · ×2super_clones/google_docs/lib/infrastructure/selectable_grid.dart:158
_KeyboardEditingToolbarState._buildToolbar (cyclomatic 38)super_editor/lib/src/default_editor/document_ime/mobile_toolbar.dart:174
LinkifyReaction._tryUpdateLinkAttribution (cyclomatic 31)super_editor/lib/src/default_editor/default_document_editor_reactions.dart:797
_MarkdownToDocument.visitElementBefore (cyclomatic 31)super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:169
DefaultSuperTextFieldKeyboardHandlers.moveUpDownLeftAndRightWithArrowKeys (cyclomatic 29)super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:2352

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

What to do

  1. Bring the 33 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with _KeyboardEditingToolbarState._buildToolbar (cyclomatic 38), LinkifyReaction._tryUpdateLinkAttribution (cyclomatic 31), _MarkdownToDocument.visitElementBefore (cyclomatic 31). — 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 33 together lifts Cyclomatic Complexity from 7.0 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.

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

D2 · Cognitive Complexity6.6 / 10Adequate✓ Tool-verified

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

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

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

75 method(s) exceeded the cognitive complexity threshold of 15; the worst was _EditorSelectionAndFocusPolicyState._onFocusChange at 57.

_SelectableGridState._onKeyEvent (cognitive 24) · ×2super_clones/google_docs/lib/infrastructure/selectable_grid.dart:158
_EditorSelectionAndFocusPolicyState._onFocusChange (cognitive 57)super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:117
TagUserReaction._removeInvalidTags (cognitive 54)super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:523
TextBlockDeltaSerializer._serializeLine (cognitive 52)super_editor/lib/src/infrastructure/serialization/quill/serializing/serializers.dart:184
DeleteContentCommand.execute (cognitive 51)super_editor/lib/src/default_editor/multi_node_editing.dart:790

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

What to do

  1. Bring the 14 bodies over 30 down to 30 or less in Cognitive Complexity — start with _EditorSelectionAndFocusPolicyState._onFocusChange (cognitive 57), TagUserReaction._removeInvalidTags (cognitive 54), TextBlockDeltaSerializer._serializeLine (cognitive 52). — 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 14 together lifts Cognitive Complexity from 6.6 to about 7.3/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.

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

D3 · God Classes8.4 / 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.

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

77 god class(es) detected.

FileTooLong: default_editor/text.dart · ×32super_editor/lib/src/default_editor/text.dart
TooManyMethods: ImeAttributedTextEditingController · ×23super_editor/lib/src/super_textfield/input_method_engine/_ime_text_editing_controller.dart:16
ClassTooLong: CommonEditorOperations · ×16super_editor/lib/src/default_editor/common_editor_operations.dart:27
MethodTooLong: DeleteContentCommand.execute · ×6super_editor/lib/src/default_editor/multi_node_editing.dart:790

What to do

  1. Resolve the 32 FileTooLong finding(s) in God Classes — start with toolbar.dart (2), text.dart, desktop_textfield.dart. — One of this dimension's main actionable groups (32 warning-level).
  2. Resolve the 23 TooManyMethods finding(s) in God Classes — start with scrollbar.dart (2), _ime_text_editing_controller.dart, floating_editor_page_scaffold.dart. — One of this dimension's main actionable groups (23 warning-level).
  3. Resolve the 16 ClassTooLong finding(s) in God Classes — start with document_gestures_touch_android.dart (2), common_editor_operations.dart, toolbar.dart. — One of this dimension's main actionable groups (16 warning-level).

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

D4 · Code Duplication4.4 / 10Weak✓ Tool-verified

What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.

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

303 duplicated block group(s) detected. 14.0 % of the production lines (17,418 of 124,327) are in a reported copy. A further 229 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 81 of the 532 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.

Duplicated block (17 lines × 2) · ×13super_clones/google_docs/lib/infrastructure/color_selector.dart:246
Duplicated block (13 lines × 2) · ×13super_clones/google_docs/lib/infrastructure/text_item_selector.dart:114
Duplicated block (12 lines × 2) · ×13super_editor/lib/src/chat/super_message_android_touch_interactor.dart:890
Duplicated block (9 lines × 2) · ×13super_clones/quill/lib/editor/code_component.dart:82
Duplicated block (20 lines × 2) · ×12super_clones/google_docs/lib/infrastructure/color_selector.dart:188

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

What to do

  1. Resolve the 13 Duplicated block (17 lines × 2) finding(s) in Code Duplication — start with document_gestures_touch_ios.dart (2), color_selector.dart, floating_editor_page_scaffold.dart. — One of this dimension's main actionable groups (13 warning-level).
  2. Resolve the 13 Duplicated block (13 lines × 2) finding(s) in Code Duplication — start with super_message_android_touch_interactor.dart (2), text_item_selector.dart, super_message_android_overlays.dart. — One of this dimension's main actionable groups (13 warning-level).
  3. Resolve the 13 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with content_layers_for_boxes.dart (2), super_message_android_touch_interactor.dart, editor.dart. — One of this dimension's main actionable groups (13 warning-level).

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

D5 · Coupling9.1 / 10Stronggated by 2 serious findings✓ Tool-verified

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

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

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

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

17 production modules (Gradle+pub), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; edges a convention plugin adds from buildSrc or build-logic are not visible there; 2 module(s) off the main sequence, with abstractness counted on 15 of the 17 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

Off the main sequence: super_editor · ×2

What to do

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

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

D6 · Cohesion (LCOM4)9.0 / 10Strong✓ Tool-verified

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

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

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

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

49 of 566 classes have LCOM4 above 3.

Low cohesion: ScrollbarPainter (LCOM4 22) · ×49super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1138

What to do

  1. Resolve the 49 Low cohesion finding(s) in Cohesion (LCOM4) — start with text.dart (2), message_page_scaffold.dart (2), android_toolbar.dart (2). — One of this dimension's main actionable groups (49 warning-level).

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

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

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

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

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

0 of 1 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 21 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. ★ COVERAGE OF THIS VERDICT: it grades this repository's JVM dependencies and nothing else. The repository also declares a Dart pubspec.yaml, and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots10.0 / 10Exemplary✓ Tool-verified

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

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

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

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

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

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

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

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

21 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is super_editor/lib/src/chat/message_page_scaffold.dart. Counted over 241 of the 394 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

✓ On the Gold path — maintain.

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

D17 · Explicit Debt9.3 / 10Stronggated by 426 serious findings✓ Tool-verified

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

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

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

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

TodoComment · ×372website/lib/shims/dart_ui.dart:3
FixmeComment · ×54super_text_layout/lib/src/super_text.dart:431

What to do

  1. Resolve the 372 TodoComment finding(s) in Explicit Debt — start with super_desktop_textfield_keyboard_test.dart (24), copy_and_paste_test.dart (15), demo_chaos_monkey_message_page.dart (14). — One of this dimension's main actionable groups (372 warning-level).
  2. Resolve the 54 FixmeComment finding(s) in Explicit Debt — start with floating_editor_page_scaffold.dart (6), message_page_scaffold.dart (5), ime_composing_region_test.dart (4). — One of this dimension's main actionable groups (54 warning-level).

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

D19 · Documentation Quality6.9 / 10Adequate✓ Tool-verified

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

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

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

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

Documentation: no build, run or usage example · ×8super_clones/google_docs/README.md:1

What to do

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

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

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

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

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

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

No architecture decision records were found.

No ADRs foundsuper_clones/slack/macos/Runner.xcodeproj/project.pbxproj:1

What to do

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

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

D26 · Project Cohesion9.3 / 10Exemplary✓ Tool-verified

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

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

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

1 of 30 build units (Gradle, Xcode, pub) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesionsuper_editor/pubspec.yaml:1

✓ On the Gold path — maintain.

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)6.4 / 10Adequate✓ Tool-verified

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

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

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

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

63 finding(s): 0 critical, 61 high, 2 medium, 0 low. 59 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.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  3. No action in Static Analysis (SAST) — all 59 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 (59 issue-level, 0 of them charged here).

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

D30 · Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

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

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

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

No known-vulnerable dependencies in any ecosystem this repository declares.

✓ On the Gold path — maintain.

Detailed fixes: d30_recommendation.md.

D31 · IaC & Container Security8.1 / 10Adequategated by 4 critical findings✓ Tool-verified

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

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

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

10 finding(s): 0 critical, 4 high, 6 medium, 0 low.

REDACTED
REDACTED

What to do

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

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

D34 · Knowledge Freshness8.6 / 10Adequategated by 6 critical findings✓ Tool-verified

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

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

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

36 of 241 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is super_editor/example_perf/lib/documents/frankenstein.dart. Counted over 241 of the 394 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned knowledge · ×6super_editor/example_perf/lib/documents/frankenstein.dart:1
Orphaned file · ×30super_clones/slack/lib/mobile_message_editor.dart:1
Further orphaned files (smaller)

What to do

  1. Resolve the 6 Orphaned knowledge finding(s) in Knowledge Freshness — start with frankenstein.dart, scrollbar.dart, toolbar.dart. — One of this dimension's main actionable groups (6 issue-level).
  2. Resolve the 30 Orphaned file finding(s) in Knowledge Freshness — start with drag_handle_selection.dart (2), main.dart (2), mobile_message_editor.dart. — One of this dimension's main actionable groups (30 recommendation-level).
  3. Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

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

D35 · Change Coupling9.2 / 10Stronggated by 13 serious findings✓ Tool-verified

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

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

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

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

Strongest change-coupling: android_textfield.dart↔ios_textfield.dart 93%; android_document_controls.dart↔ios_document_controls.dart 82%; read_only_document_android_touch_interactor.dart↔read_only_document_ios_touch_interactor.dart 81%

Change coupling: android_document_controls.dart ↔ ios_document_controls.dart · ×11super_editor/lib/src/infrastructure/platforms/android/android_document_controls.dart:1
Change-coupling hub: android_textfield.dart → desktop_textfield.dart, editing_controls.dart, ios_textfield.dart · ×2super_editor/lib/src/super_textfield/android/android_textfield.dart

What to do

  1. Resolve the 11 Change coupling finding(s) in Change Coupling — start with document_gestures_touch_ios.dart (2), _editing_controls.dart (2), android_document_controls.dart. — One of this dimension's main actionable groups (11 warning-level).
  2. Resolve the 2 Change-coupling hub finding(s) in Change Coupling — start with android_textfield.dart, document_gestures_touch_android.dart. — One of this dimension's main actionable groups (2 warning-level).

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

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

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

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

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

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

AC1 · Text alternatives1.0 / 10Critical✓ Tool-verified

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.

  • An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative. (×18) — doc/website/source/_includes/components/funders.jinja:8, doc/website/source/_includes/components/funders.jinja:11, doc/website/source/_includes/components/funders.jinja:12, …

What to do

  • Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels6.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 <span> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label. (×2) — doc/website/source/_includes/layouts/docs_page.jinja:84, super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:72
  • A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label. (×3) — super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:55, super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:61, super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:67

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure6.0 / 10Adequate✓ Tool-verified

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.

  • With more than one navigation landmark, each needs an aria-label/aria-labelledby (e.g. "Primary", "Footer") so assistive tech can tell them apart. At least one nav here is unlabelled. (×2) — doc/website/source/_includes/layouts/docs_page.jinja:3, doc/website/source/index.jinja:7

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.
AC4 · Keyboard semantics1.0 / 10Critical✓ Tool-verified

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

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

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

  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×2) — doc/website/source/_includes/layouts/docs_page.jinja:84, super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:72
  • An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. (×2) — doc/website/source/_includes/layouts/docs_page.jinja:102, super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:90

What to do

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

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

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

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

AC6 · Visual & motion safety5.6 / 10Adequate✓ Tool-verified

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

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

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

  • `.highlight` sets color: WHITE on background-color: #50A7F8 — 2.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — doc/website/source/styles/homepage.scss:174

What to do

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

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

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

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

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

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

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

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

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

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

AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

AX6 · Interface segregation9.6 / 10Exemplary✓ Tool-verified

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

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

  • `SpellCheckMac` declares 16 requirements: `availableLanguages`, `uniqueSpellDocumentTag`, `closeSpellDocument`, `checkSpelling`, `guesses`, `correction`, `checkGrammar`, `completions`, `countWords`, `learnWord`, `hasLearnedWord`, `unlearnWord`, `ignoreWord`, `ignoredWords`, `setIgnoredWords`, `userReplacementsDictionary`. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — super_editor_spellcheck/macos/Classes/messages.g.swift:205
  • `SpellCheckMac` declares 16 abstract methods: `availableLanguages`, `uniqueSpellDocumentTag`, `closeSpellDocument`, `checkSpelling`, `guesses`, `correction`, `checkGrammar`, `completions`, `countWords`, `learnWord`, `hasLearnedWord`, `unlearnWord`, `ignoreWord`, `ignoredWords`, `setIgnoredWords`, `userReplacementsDictionary`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — super_editor_spellcheck/pigeon/messages.dart:3
  • `AppLocalizations` declares 18 abstract methods: `labelTextBlockType`, `labelBold`, `labelItalics`, `labelStrikethrough`, `labelSuperscript`, `labelSubscript`, `labelLink`, `labelTextAlignment`, `labelMoreOptions`, `labelHeader1`, `labelHeader2`, `labelHeader3`, `labelParagraph`, `labelBlockquote`, `labelOrderedListItem`, `labelUnorderedListItem`, `labelLimitedWidth`, `labelFullWidth`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — super_editor/example/lib/l10n/app_localizations.dart:13
  • `Document` declares 17 abstract methods: `nodeCount`, `isEmpty`, `firstOrNull`, `lastOrNull`, `getNodeById`, `getNodeAt`, `getNodeIndex`, `getNodeIndexById`, `getNodeBefore`, `getNodeBeforeById`, `getNodeAfter`, `getNodeAfterById`, `getNode`, `getNodesInside`, `hasEquivalentContent`, `addListener`, `removeListener`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — super_editor/lib/src/core/document.dart:5
  • `DocumentComponent` declares 19 abstract methods: `getPositionAtOffset`, `getOffsetForPosition`, `getCaretForPosition`, `getEdgeForPosition`, `getRectForPosition`, `getRectForSelection`, `getBeginningPosition`, `getBeginningPositionNearX`, `movePositionLeft`, `movePositionRight`, `movePositionUp`, `movePositionDown`, `getEndPosition`, `getEndPositionNearX`, `getSelectionInRange`, `getCollapsedSelectionAt`, `getSelectionBetween`, `getSelectionOfEverything`, `getDesiredCursorAtOffset`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — super_editor/lib/src/core/document_layout.dart:117
  • `TextScrollControllerDelegate` declares 16 abstract methods: `viewportWidth`, `viewportHeight`, `textLayoutOffsetInViewport`, `isMultiline`, `startScrollOffset`, `endScrollOffset`, `isTextPositionVisible`, `isInAutoScrollToStartRegion`, `calculateDistanceBeyondStartingAutoScrollBoundary`, `isInAutoScrollToEndRegion`, `calculateDistanceBeyondEndingAutoScrollBoundary`, `getHorizontalOffsetForStartOfCharacterLeftOfViewport`, `getHorizontalOffsetForEndOfCharacterRightOfViewport`, `getVerticalOffsetForTopOfLineAboveViewport`, `getVerticalOffsetForBottomOfLineBelowViewport`, `getViewportCharacterRectAtPosition`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:955
  • `TextLayout` declares 19 abstract methods: `isTextAtOffset`, `getPositionAtOffset`, `getLineHeightAtPosition`, `estimatedLineHeight`, `getLineCount`, `getPositionNearestToOffset`, `getOffsetAtPosition`, `getOffsetForCaret`, `getHeightForCaret`, `getBoxesForSelection`, `getCharacterBox`, `getPositionOneLineUp`, `getPositionOneLineDown`, `getPositionAtStartOfLine`, `getPositionAtEndOfLine`, `getPositionInFirstLineAtX`, `getPositionInLastLineAtX`, `getSelectionInRect`, `expandSelection`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — super_text_layout/lib/src/text_layout.dart:6

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

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.

DM4 · Rich vs anemic domain model10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether domain entities own their behaviour — a data-only entity with public mutable state whose logic lives in a foreign service is anemic. Rich models enforce their own invariants; an immutable `@freezed`/`@immutable` value class is rich by construction.

Method: Roslyn (DDD-gated): entity method BODIES classified mutator-vs-query — only methods that mutate the entity's own declared state count as invariant-protecting behaviour, so a getter/passthrough doesn't rescue an anemic class. Deterministic, exhaustive over domain-layer entities.

Coverage: Population: entities by name/base convention; rich-vs-anemic judged by classifying each method body mutator-vs-query — logic-bearing domain types outside the convention are invisible.

DM5 · Encapsulated state10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether an entity protects its own invariants — a class whose identity is derived from its fields (value equality) but whose fields are publicly mutable bypasses that invariant. Encapsulated state keeps identity-bearing fields immutable.

Method: Roslyn (DDD-gated): entities scanned for publicly writable state — public setters, and (C#/VB) own mutable collections handed out through an auto-property, a public field or a bare-field expression getter, where a computed/copying getter is never charged. One finding per entity; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.

Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

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

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

IC1 · Incompleteness & stubs10.0 / 10Exemplary○ Nothing flagged

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

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

  • A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something. (×9) — super_editor/test/infrastructure/serialization/quill/parsing/parsing_test.dart:454, super_editor/test/super_textfield/ios/super_textfield_ios_selection_test.dart:20, super_editor/test/super_textfield/ios/super_textfield_ios_selection_test.dart:27, …

What to do

  • Clear the softer debt: re-enable or delete tests marked `skip:`, decide whether each empty method or UnsupportedError is deliberate (and say so in a comment), and replace `// ignore_for_file: type=lint` with targeted, justified ignores.
M1 · Documentation (README)8.1 / 10Strong✓ Tool-verified

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

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

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.
M2 · Architecture documentation2.0 / 10Weak✓ Tool-verified

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

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

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

What to do

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

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

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

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

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

P2 · Observability4.5 / 10Adequate✓ Tool-verified

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

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

  • Only 5/30 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `doc/website`, `super_clones/bear`, `super_clones/bear/macos`, `super_clones/google_docs`, `super_clones/google_docs/ios` and 20 more.

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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

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

  • No static application security testing detected. For this repository's stack, add the Dart analyzer's security lints plus `semgrep --config=auto` as a CI step. What was searched, so you can tell an absence from a miss: the 5 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner. — REDACTED:4
  • `.github/scripts/package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — .github/scripts/package.json:3

What to do

  • Add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback7.0 / 10Strong✓ Tool-verified

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

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

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

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

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

PF3 · Async & latency hygiene10.0 / 10Exemplary✓ Tool-verified

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

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

S1 · Web-Security Posture8.0 / 10Strong✓ Tool-verified

Other · Security — Read from this repository's Dart source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS certificate validation — facts about code that hold whether or not it serves anything itself. The TLS protocol version is not read: `dart:io` leaves the protocol floor to the platform's TLS library and has no switch that admits an obsolete version. Markup this repository SHIPS is scored for third-party script integrity whether or not the repository serves it itself, since a page handed to a consumer runs in that consumer’s origin. This repository serves no HTTP of its own — no server framework among its pubspec dependencies, no `HttpServer` bound and no shelf, dart_frog or serverpod import in its production source or `bin/`. Its Flutter web build (`website/web/index.html`) compiles to static files that run in the browser and are served by whatever hosts them: static files cannot enforce HTTPS, send HSTS or any other response header, set an HttpOnly cookie or validate a request, so those controls are the host's, not this code's. Where this repository commits the host's configuration (an nginx, Caddy or Apache config, a serving Dockerfile, `_headers`, `vercel.json`, `netlify.toml`, `firebase.json`, `staticwebapp.config.json`) it is read for the security response headers it sets, and the shipped page is read for third-party scripts loaded without Subresource Integrity.

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.

  • `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. 10 such include(s) across the repository's markup. — doc/website/source/_includes/components/highlightJs.jinja:4

What to do

  • Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-…"` hash alongside `crossorigin="anonymous"` (both are required — an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the app’s own origin, so no consumer inherits a third-party dependency they did not choose.
X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

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.

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

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

X18 · Disposal-pattern correctness5.8 / 10Adequate✓ Tool-verified

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.

  • `_TextScrollViewState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_scrollController` itself (line 122, `ScrollController`), which makes that instance its own. Nothing in the class releases it — no `_scrollController.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `ScrollController` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_scrollController.dispose();` in `dispose()` before `super.dispose()`. — super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:122
  • `_MobileMessageEditorState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_scrollController` itself (line 27, `ScrollController`), which makes that instance its own. Nothing in the class releases it — no `_scrollController.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `ScrollController` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_scrollController.dispose();` in `dispose()` before `super.dispose()`. — super_clones/slack/lib/mobile_message_editor.dart:27
  • `_FormattingToolbarState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_imageFocusNode` itself (line 46, `FocusNode`), which makes that instance its own. Nothing in the class releases it — no `_imageFocusNode.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `FocusNode` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_imageFocusNode.dispose();` in `dispose()` before `super.dispose()`. — super_clones/quill/lib/editor/toolbar.dart:46
  • `_ChatEditorState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_editorFocusNode` itself (line 451, `FocusNode`), which makes that instance its own. Nothing in the class releases it — no `_editorFocusNode.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `FocusNode` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_editorFocusNode.dispose();` in `dispose()` before `super.dispose()`. — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:451

What to do

  • Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

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

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

X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `for … in` loop leaves the `List`, `Map` or `Set` it is walking alone — Dart's collection iterators check that the collection has not changed since the loop began, so a body that adds to or removes from the very collection the loop is walking (or the map whose `keys`, `values` or `entries` it walks) makes the next step throw `ConcurrentModificationError` and the remaining elements are never seen. Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` 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.

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.

X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

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.

X5 · Nullable reference types7.1 / 10Strong✓ Tool-verified

Other · Code Health — Whether Dart's sound null safety is on and is not undermined by null assertions — a package whose `environment: sdk:` lower bound is 2.12 or above is null safe, so `String` cannot hold null and `String?` must be checked before use, and each postfix `!` is a run-time `Null check operator used on a null value` the author has told the analyzer cannot happen.

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

  • ~21.9 `!` null assertions per 1k Dart product lines — 2639 across the 120528 line(s) of the 335 Dart file(s) read (generated, test and example code not counted; a file opted out with a `// @dart=` comment below 2.12 counts once). Densest: super_editor/lib/src/default_editor/common_editor_operations.dart (142), super_editor/lib/src/default_editor/document_gestures_touch_ios.dart (123), super_editor/lib/src/default_editor/document_gestures_touch_android.dart (119). Each one tells the analyzer to trust the author about null and becomes a `Null check operator used on a null value` the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.

What to do

  • Raise every package's `environment: sdk:` lower bound to 2.12 or above (`^3.0.0` today) and migrate with `dart migrate` on an SDK that still has it, so `String` and `String?` mean different things. Then replace assertions rather than adding to them: each `!` is a run-time null check the analyzer could not prove — promote the value with a null check or an early return, use `?.` / `??` where absence is legitimate, make the field non-nullable and `late final` only where initialisation is truly guaranteed, or change the API so the null cannot arrive.

WCAG coverage — what static analysis assessed

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

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

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

Reference — by lens

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

LensScoreRatingImpact
Code Health81.9StrongSolid.
Architecture91.2ExemplarySolid.
Maturity63.9Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness54.4Adequate — gated by P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security82.6StrongSolid.
Domain Modelling100.0ExemplaryStrongest area.
Accessibility35.6Weak — gated by AC1, AC4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance100.0ExemplarySolid.
Unscored — 3 check(s) recorded observations but carry no score

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

  • D36 Supply-chain Provenance & Signing — 4 observation(s) recorded · The CI pipeline publishes no artifact — no package publish, container push or release with files to download. Supply-chain provenance, signing and an SBOM describe a PUBLISHED artifact for the people who obtain it, so there is nothing to attest here; a deployment of the service itself publishes nothing for anyone else to verify. Add them to the release pipeline when this repo starts publishing artifacts (a package, a container image, or a release with downloadable files). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
  • SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X10 Duplicated predicate — 40 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 — 61 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.

  • AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Kotlin code is a Spring, JSR-330 or CDI singleton bean. No Swift request handler (a Vapor, Hummingbird, Kitura, Swifter or Perfect route handler, as a method or a registered closure) is declared, so no state is shared between request threads. Dart isolates share no mutable memory, so no two requests write one object at the same instant.
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — docker build failed (exit 1) — ------ 2 warnings found (use docker --debug to expand):  - UndefinedVar: Usage of undefined variable '$HOME' (line 3) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 4) ERROR: failed to solve: failed to load cache key: Get "https://api.github.com/repos/flutter/flutter/git/refs/heads/master": Forbidden; likely cause (not identified): the image build failed, and its output does not match a cause we recognise; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an Isar, ObjectBox, Floor or Hive entity, or a Serverpod table model — and no database or data-store client (sqflite, Drift, Isar, Hive, Realm, Firestore, Supabase, postgres, …) in the source either, so this repository keeps no data at rest for these controls to protect.
  • C2 Access Controls — No access-control surface detected in the analyzed source — this repository stands up no server another machine can reach (no HttpServer or shelf server bound beyond loopback, no dart_frog route, no Serverpod endpoint, no Conduit, Alfred or Angel application) and keeps no data in a hosted backend. Access control is therefore N/A here — a Flutter app or pub package is authorized by the server it calls, not by itself; hiding a screen authorizes nothing. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported 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, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
  • D10 Test Quality — ~75643 lines of test source are present (.dart, .swift) 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 — no .dart test runner
  • D12 Dependency Hygiene — Not scored — 21 Maven/Gradle manifest(s) were read, stating a version for 1 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • 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 does not read html yet; not measured.
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • 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+ sibling projects each declaring an entity of their own or taking another project's integration events. 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#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .dart, .kt, .swift, 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 (.dart), 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) — 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.
  • 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.
  • 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 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
  • DM2 Strongly-typed ids — no in-repo typed-id idiom — primitive-obsession recorded as advisory DM8, DM2 not gated
  • DM3 Integration-event coupling — no integration events detected — coupling check not applicable
  • DM6 Domain ↔ infrastructure boundary — this Dart repository maps no type to a persistence framework (drift/floor/isar/objectbox/hive), so DM6's domain↔infrastructure fusion read has no population to be taken over
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and this analysis resolves a call's owner only where the receiver's type is written down in the source. Reported as guidance rather than measured
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, which this analysis does not build from source alone for this language. Reported as guidance rather than measured
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • M4 Documentation accuracy — Not applicable: the 69 current-state document(s) make no claim of a kind M4 checks. 3 claim(s) of kinds M4 does not check were not checked (path 3); M4 checks only links and versions and artefact counts.
  • 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 — not applicable — no HTTP server, API framework or worker entry point was found in the Dart, JVM, Swift source, so there is no service whose uptime a failing dependency could take down
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for classes extending benchmark_harness's `BenchmarkBase`, `AsyncBenchmarkBase` or `PerfBenchmarkBase` (directly or through a base of your own), `benchmark(…)` calls under the pub `benchmark` package, Flutter's `benchmarkWidgets`, `watchPerformance` or `traceAction` in a test importing flutter_test, integration_test or flutter_driver, or benchmark_harness, benchmark or web_benchmarks in a pubspec.yaml, 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 scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X2 Cancellation propagation — 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
  • X20 Mistyped argument guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X24 Document value interpolated into markup unescaped — 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
  • X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X29 Per-element action decided by a fixed element — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X30 Support guard that admits what it rejects — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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 Dart was read, and it logs through none: package:logging, package:logger, talker and dart:developer take one finished message and no template arguments or fields (as log4net does in C#), so an interpolated message there loses nothing the API could have kept. Sentry's structured logs (`Sentry.logger`) would be judged.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X7 Silent fallback defaults — 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.

Critical — 96 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 34 more in this group — see findings.md.
AC1 · Text alternatives · <img> without a text alternative · ×18
  • <img> without a text alternative doc/website/source/_includes/components/funders.jinja:8 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/_includes/components/funders.jinja:11 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/_includes/components/funders.jinja:12 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/_includes/components/funders.jinja:13 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/_includes/components/funders.jinja:14 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/_includes/components/navbar.jinja:3 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:71 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:72 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:73 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:74 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:75 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:141 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:148 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:149 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:150 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:151 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative doc/website/source/index.jinja:152 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
  • <img> without a text alternative super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:39 — An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt — alt="" if it's purely decorative.
D34 · Knowledge Freshness · Orphaned knowledge · ×6
  • Orphaned knowledge super_editor/example_perf/lib/documents/frankenstein.dart:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge super_clones/google_docs/lib/toolbar.dart:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge super_editor/lib/src/infrastructure/flutter/monodrag.dart:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge super_editor/lib/src/infrastructure/flutter/android_toolbar.dart:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge super_editor/lib/src/default_editor/tables/table_markdown.dart:1 — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
D31 · IaC & Container Security · High IaC · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · Link with no accessible name · ×3
  • Link with no accessible name super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:55 — A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label.
  • Link with no accessible name super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:61 — A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label.
  • Link with no accessible name super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:67 — A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label.
AC2 · Forms & labels · Custom control with no accessible name on <span> · ×2
  • Custom control with no accessible name on <span> doc/website/source/_includes/layouts/docs_page.jinja:84 — This <span> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label.
  • Custom control with no accessible name on <span> super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:72 — This <span> carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to <button type="button"> — the right fix for its keyboard operability — does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label.
AC4 · Keyboard semantics · Click handler on a non-interactive <span> · ×2
  • Click handler on a non-interactive <span> doc/website/source/_includes/layouts/docs_page.jinja:84 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <span> super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:72 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 1231 finding(s)
D17 · Explicit Debt · TodoComment · ×372
  • TodoComment website/lib/shims/dart_ui.dart:3 — // TODO(dit): flutter/flutter#55000 Remove this file once web-only dart:ui APIs
  • TodoComment website/lib/homepage/editor_toolbar.dart:752 — // TODO: this is a hack. SuperTextField shouldn't insert newlines in a single — 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 super_editor/example/lib/demos/example_editor/_toolbar.dart:946 — // TODO: this is a hack. SuperTextField shouldn't insert newlines in a single — 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 website/lib/homepage/header.dart:11 — // TODO: move magic number to a named constant — 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 website/lib/homepage/home_page.dart:19 — // TODO: move magic number to named constant — 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 website/lib/homepage/home_page.dart:88 — // TODO: move magic numbers to named constants — 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 super_text_layout/test/super_text_test.dart:171 — // TODO: getOffsetAtPosition() — 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 super_text_layout/test/super_text_test.dart:172 — // TODO: getLineHeightAtPosition() — 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 super_text_layout/test/super_text_test.dart:173 — // TODO: getOffsetForCaret() — 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 super_text_layout/test/super_text_test.dart:174 — // TODO: getHeightForCaret() — 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 super_text_layout/test/super_text_test.dart:175 — // TODO: getBoxesForSelection() — 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 super_text_layout/test/super_text_test.dart:176 — // TODO: getCharacterBox() — 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 super_text_layout/test/super_text_test.dart:177 — // TODO: getPositionInFirstLineAtX() — 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 super_text_layout/test/super_text_test.dart:178 — // TODO: getPositionInLastLineAtX() — 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 super_text_layout/test/super_text_test.dart:179 — // TODO: getWordSelectionAt() — 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 super_text_layout/test/super_text_test.dart:180 — // TODO: expandSelection() — 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 super_text_layout/test/super_text_test.dart:181 — // TODO: isTextAtOffset — 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 super_text_layout/test/super_text_test.dart:182 — // TODO: getSelectionInRect() — 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 super_text_layout/lib/src/caret_layer.dart:53 — // TODO: ask the Flutter community if there's a common solution to this situation — 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 super_text_layout/lib/src/caret_layer.dart:178 — // TODO: either change `Caret` to only support circular radius, or — 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 super_text_layout/lib/src/super_text_layout_with_selection.dart:102 — // TODO: how do we prevent a full SuperText rebuild when the selection changes? — 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 super_text_layout/lib/src/super_text_layout_with_selection.dart:103 — // TODO: add a test that ensures the highlight painter doesn't paint anything when — 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 super_text_layout/lib/src/text_layout.dart:399 — // TODO: use the character box instead of the estimated line height — 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 super_text_layout/lib/src/text_layout.dart:415 — // TODO: use the character box instead of the estimated line height — 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 super_text_layout/lib/src/text_layout.dart:431 — // TODO: use the character box instead of the estimated line height — 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.
  • + 347 more in this group — see findings.md.
D17 · Explicit Debt · FixmeComment · ×54
  • FixmeComment super_text_layout/lib/src/super_text.dart:431 — // FIXME: Remove this after Flutter #155620 is fixed.
  • FixmeComment super_editor/test/super_editor/text_entry/ime/ime_composing_region_test.dart:124 — // FIXME: When we intercept the text input messages, the test text input — 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 super_editor/test/super_editor/text_entry/ime/ime_composing_region_test.dart:185 — // FIXME: When we intercept the text input messages, the test text input — 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 super_editor/test/super_editor/text_entry/ime/ime_composing_region_test.dart:246 — // FIXME: When we intercept the text input messages, the test text input — 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 super_editor/test/super_editor/text_entry/ime/ime_composing_region_test.dart:307 — // FIXME: When we intercept the text input messages, the test text input — 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 super_editor/test/super_editor/components/blockquote_test.dart:42 — // FIXME: pressEnterWithIme should work, but it seems to think there are no — 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 super_editor/test/super_editor/components/blockquote_test.dart:80 — // FIXME: pressEnterWithIme should work, but it seems to think there are no — 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 super_editor/test/super_editor/components/list_items_test.dart:135 — // FIXME: pressEnterWithIme should work, but it seems to think there are no — 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 super_editor/test/super_editor/components/list_items_test.dart:201 — // FIXME: pressEnterWithIme should work, but it seems to think there are no — 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 super_editor/test/super_editor/components/paragraph_test.dart:64 — // FIXME: pressEnterWithIme should work, but it seems to think there are no — 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 super_editor/test/super_editor/components/paragraph_test.dart:102 — // FIXME: pressEnterWithIme should work, but it seems to think there are no — 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 super_editor/test/super_editor/components/paragraph_test.dart:155 — // FIXME: pressEnterWithIme should work, but it seems to think there are no — 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 super_editor/test/super_editor/components/paragraph_test.dart:220 — // FIXME: pressEnterWithIme should work, but it seems to think there are no — 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 super_editor/test/chat/chat_preview_mode_test.dart:164 — // FIXME: I had to comment this out so that panels can open. Otherwise, if we leave — 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 super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:414 — // FIXME: I had to comment this out so that panels can open. Otherwise, if we leave — 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 super_editor/test/chat/chat_preview_mode_test.dart:406 — // FIXME: This widget is required because of the current shrink wrap behavior — 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 super_editor/lib/src/chat/chat_editor.dart:471 — // FIXME: This widget is required because of the current shrink wrap behavior — 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 super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:652 — // FIXME: This widget is required because of the current shrink wrap behavior — 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 super_editor/example_chat/lib/keyboard_panel_scaffold/keyboard_panel_scaffold_demo.dart:245 — // FIXME: This widget is required because of the current shrink wrap behavior — 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 super_clones/ios_messenger/lib/conversation/conversation_screen.dart:613 — // FIXME: This widget is required because of the current shrink wrap behavior — 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 super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:527 — // FIXME: This scroll offset creates an ambiguous source of truth as compared to — 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 super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:900 — // FIXME: This is a hack to achieve the desired result. Implement a general policy, — 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 super_editor/lib/src/infrastructure/content_layers.dart:426 — // FIXME: locked is supposed to be private. We're using it as a proxy indication for when — 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 super_editor/lib/src/infrastructure/serialization/quill/serializing/serializers.dart:402 — // FIXME: This doesn't account for space taken up by placeholders — 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 super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1618 — // FIXME: this logic makes sense for selecting characters, but what about images? Does it make sense to set the focal point at the center of the image? — 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.
  • + 29 more in this group — see findings.md.
D6 · Cohesion (LCOM4) · Low cohesion · ×49
  • Low cohesion: ScrollbarPainter (LCOM4 22) super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1138 — ScrollbarPainter's methods fall into 22 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 22 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: TextComponentState (LCOM4 18) super_editor/lib/src/default_editor/text.dart:885 — TextComponentState's methods fall into 18 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 18 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: _AttachmentListComponentState (LCOM4 11) super_editor/lib/src/chat/attachments/attachment_list_component.dart:177 — _AttachmentListComponentState's methods fall into 11 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 11 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: _TextScrollViewState (LCOM4 11) super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:114 — _TextScrollViewState's methods fall into 11 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 11 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: _DocsEditorToolbarState (LCOM4 10) super_clones/google_docs/lib/toolbar.dart:43 — _DocsEditorToolbarState's methods fall into 10 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 10 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: _SimpleDeltasInputState (LCOM4 10) super_editor/example/lib/demos/debugging/simple_deltas_input.dart:15 — _SimpleDeltasInputState's methods fall into 10 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 10 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: AttributedTextEditingController (LCOM4 10) super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:13 — AttributedTextEditingController's methods fall into 10 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 10 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: RenderSuperTextLayout (LCOM4 10) super_text_layout/lib/src/super_text.dart:191 — RenderSuperTextLayout's methods fall into 10 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 10 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: AttachmentListNode (LCOM4 9) super_editor/lib/src/chat/attachments/attachment_list_node.dart:5 — AttachmentListNode's methods fall into 9 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 9 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: ContentLayersElement (LCOM4 8) super_editor/lib/src/infrastructure/content_layers.dart:73 — ContentLayersElement'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: _AboveKeyboardMessagePageElement (LCOM4 7) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:383 — _AboveKeyboardMessagePageElement'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: MessagePageElement (LCOM4 7) super_editor/lib/src/chat/message_page_scaffold.dart:314 — MessagePageElement'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: SuperMessageAndroidControlsDocumentLayerState (LCOM4 7) super_editor/lib/src/chat/super_message_android_overlays.dart:650 — SuperMessageAndroidControlsDocumentLayerState'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: DocumentImeInputClient (LCOM4 7) super_editor/lib/src/default_editor/document_ime/document_ime_communication.dart:14 — DocumentImeInputClient'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: _SingleColumnDocumentLayoutState (LCOM4 7) super_editor/lib/src/default_editor/layout_single_column/_layout.dart:70 — _SingleColumnDocumentLayoutState'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: _TextSelectionToolbarTrailingEdgeAlignRenderBox (LCOM4 7) super_editor/lib/src/infrastructure/flutter/android_toolbar.dart:148 — _TextSelectionToolbarTrailingEdgeAlignRenderBox'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: _RenderTextSelectionToolbarItemsLayout (LCOM4 7) super_editor/lib/src/infrastructure/flutter/android_toolbar.dart:301 — _RenderTextSelectionToolbarItemsLayout'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: ImeAttributedTextEditingController (LCOM4 7) super_editor/lib/src/super_textfield/input_method_engine/_ime_text_editing_controller.dart:16 — ImeAttributedTextEditingController'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: _BareBonesTextFieldWithInputClientState (LCOM4 6) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:39 — _BareBonesTextFieldWithInputClientState'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: _BareBonesTextFieldWithInputClientState (LCOM4 6) super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:74 — _BareBonesTextFieldWithInputClientState'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: _AndroidDocumentTouchInteractorState (LCOM4 6) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:501 — _AndroidDocumentTouchInteractorState'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: _IosDocumentTouchInteractorState (LCOM4 6) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:335 — _IosDocumentTouchInteractorState'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: _RenderSliverHybridStack (LCOM4 6) super_editor/lib/src/infrastructure/sliver_hybrid_stack.dart:34 — _RenderSliverHybridStack'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: TextLayoutCaretState (LCOM4 6) super_text_layout/lib/src/caret_layer.dart:30 — TextLayoutCaretState'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: _ActionTagsListPopoverState (LCOM4 5) super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:192 — _ActionTagsListPopoverState'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.
  • + 24 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×32
  • FileTooLong: default_editor/text.dart super_editor/lib/src/default_editor/text.dart — FileTooLong — 1946 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1446 over it, 3.89× 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: desktop/desktop_textfield.dart super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart — FileTooLong — 1871 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1371 over it, 3.74× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: default_editor/common_editor_operations.dart super_editor/lib/src/default_editor/common_editor_operations.dart — FileTooLong — 1454 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: CommonEditorOperations (42-2431). The bar is 500 significant lines; this is 954 over it, 2.91× 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: default_editor/document_gestures_touch_ios.dart super_editor/lib/src/default_editor/document_gestures_touch_ios.dart — FileTooLong — 1178 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: _IosDocumentTouchInteractorState (335-1605). The bar is 500 significant lines; this is 678 over it, 2.36× 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: default_editor/document_gestures_touch_android.dart super_editor/lib/src/default_editor/document_gestures_touch_android.dart — FileTooLong — 1171 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 671 over it, 2.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: default_editor/paragraph.dart super_editor/lib/src/default_editor/paragraph.dart — FileTooLong — 1055 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 555 over it, 2.11× 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: ui_kit/floating_editor_page_scaffold.dart super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart — FileTooLong — 1031 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 531 over it, 2.06× 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: default_editor/super_editor.dart super_editor/lib/src/default_editor/super_editor.dart — FileTooLong — 1004 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 504 over it, 2.01× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: flutter/scrollbar.dart super_editor/lib/src/infrastructure/flutter/scrollbar.dart — FileTooLong — 972 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 472 over it, 1.94× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: lib/toolbar.dart super_clones/google_docs/lib/toolbar.dart — FileTooLong — 970 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: _DocsEditorToolbarState (43-1227). The bar is 500 significant lines; this is 470 over it, 1.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: default_editor/list_items.dart super_editor/lib/src/default_editor/list_items.dart — FileTooLong — 932 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 432 over it, 1.86× 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: text_tokenizing/stable_tags.dart super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart — FileTooLong — 920 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 420 over it, 1.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: default_editor/multi_node_editing.dart super_editor/lib/src/default_editor/multi_node_editing.dart — FileTooLong — 916 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 416 over it, 1.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: super_reader/read_only_document_android_touch_interactor.dart super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart — FileTooLong — 885 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: _ReadOnlyAndroidDocumentTouchInteractorState (125-1115). The bar is 500 significant lines; this is 385 over it, 1.77× 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: editor/toolbar.dart super_clones/quill/lib/editor/toolbar.dart — FileTooLong — 844 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 344 over it, 1.69× 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: chat/message_page_scaffold.dart super_editor/lib/src/chat/message_page_scaffold.dart — FileTooLong — 818 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 318 over it, 1.64× 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: default_editor/tasks.dart super_editor/lib/src/default_editor/tasks.dart — FileTooLong — 690 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 190 over it, 1.38× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: infrastructure/text_scrollview.dart super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart — FileTooLong — 686 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 186 over it, 1.37× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/attributed_spans.dart attributed_text/lib/src/attributed_spans.dart — FileTooLong — 682 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: AttributedSpans (39-1124). The bar is 500 significant lines; this is 182 over it, 1.36× 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: super_reader/read_only_document_ios_touch_interactor.dart super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart — FileTooLong — 680 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: _SuperReaderIosDocumentTouchInteractorState (237-1044). The bar is 500 significant lines; this is 180 over it, 1.36× 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: super_editor/spelling_and_grammar_plugin.dart super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart — FileTooLong — 675 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 175 over it, 1.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: default_editor/default_document_editor_reactions.dart super_editor/lib/src/default_editor/default_document_editor_reactions.dart — FileTooLong — 665 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 165 over it, 1.33× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: core/editor.dart super_editor/lib/src/core/editor.dart — FileTooLong — 662 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 162 over it, 1.32× 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: super_editor/spelling_error_suggestion_overlay.dart super_editor_spellcheck/lib/src/super_editor/spelling_error_suggestion_overlay.dart — FileTooLong — 639 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 139 over it, 1.28× 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: infrastructure/keyboard_panel_scaffold.dart super_editor/lib/src/infrastructure/keyboard_panel_scaffold.dart — FileTooLong — 599 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 99 over it, 1.20× 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.
  • + 7 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×23
  • TooManyMethods: ImeAttributedTextEditingController super_editor/lib/src/super_textfield/input_method_engine/_ime_text_editing_controller.dart:16 — 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: ScrollbarPainter super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1138 — 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: _RenderAboveKeyboardPageScaffold super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:817 — TooManyMethods — 57 methods. The bar is 30 methods; this is 27 over it, 1.90× 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: CommonEditorOperations super_editor/lib/src/default_editor/common_editor_operations.dart:27 — TooManyMethods — 57 methods. The bar is 30 methods; this is 27 over it, 1.90× 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: _IosDocumentTouchInteractorState super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:335 — TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× 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: AttributedTextEditingController super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:13 — TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× 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: _DocsEditorToolbarState super_clones/google_docs/lib/toolbar.dart:43 — 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: _ReadOnlyAndroidDocumentTouchInteractorState super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:125 — 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: AttributedText attributed_text/lib/src/attributed_text.dart:10 — 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: _SuperReaderIosDocumentTouchInteractorState super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:237 — 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: _AndroidDocumentTouchInteractorState super_editor/lib/src/default_editor/document_gestures_touch_android.dart:501 — 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: _SuperTextFieldGestureInteractorState super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:650 — TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× 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: _SingleColumnDocumentLayoutState super_editor/lib/src/default_editor/layout_single_column/_layout.dart:70 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: _SuperMessageAndroidTouchInteractorState super_editor/lib/src/chat/super_message_android_touch_interactor.dart:265 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× 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: _KeyboardPanelScaffoldState super_editor/lib/src/infrastructure/keyboard_panel_scaffold.dart:90 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× 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: _SuperMessageIosTouchInteractorState super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:215 — TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× 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: MutableDocument super_editor/lib/src/core/editor.dart:1090 — TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× 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: DragGestureRecognizer super_editor/lib/src/infrastructure/flutter/monodrag.dart:7 — TooManyMethods — 36 methods. The bar is 30 methods; this is 6 over it, 1.20× 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: RawScrollbarWithCustomPhysicsState super_editor/lib/src/infrastructure/flutter/scrollbar.dart:392 — TooManyMethods — 34 methods. The bar is 30 methods; 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.
  • TooManyMethods: _DocumentMouseInteractorState super_editor/lib/src/default_editor/document_gestures_mouse.dart:94 — TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.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.
  • TooManyMethods: TextComponentState super_editor/lib/src/default_editor/text.dart:885 — TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.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.
  • TooManyMethods: AttachmentListNode super_editor/lib/src/chat/attachments/attachment_list_node.dart:5 — TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: _EditorToolbarState website/lib/homepage/editor_toolbar.dart:63 — TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D3 · God Classes · ClassTooLong · ×16
  • ClassTooLong: CommonEditorOperations super_editor/lib/src/default_editor/common_editor_operations.dart:27 — ClassTooLong — 1143 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 743 over it, 2.86× 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: _DocsEditorToolbarState super_clones/google_docs/lib/toolbar.dart:43 — ClassTooLong — 746 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 346 over it, 1.87× 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: _IosDocumentTouchInteractorState super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:335 — ClassTooLong — 718 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 318 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.
  • ClassTooLong: _RenderAboveKeyboardPageScaffold super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:817 — ClassTooLong — 594 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 194 over it, 1.49× 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: _ReadOnlyAndroidDocumentTouchInteractorState super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:125 — ClassTooLong — 553 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 153 over it, 1.38× 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: AttributedSpans attributed_text/lib/src/attributed_spans.dart:11 — ClassTooLong — 533 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 133 over it, 1.33× 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: AttributedTextEditingController super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:13 — ClassTooLong — 532 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 132 over it, 1.33× 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: _AndroidDocumentTouchInteractorState super_editor/lib/src/default_editor/document_gestures_touch_android.dart:501 — ClassTooLong — 491 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 91 over it, 1.23× 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: _SingleColumnDocumentLayoutState super_editor/lib/src/default_editor/layout_single_column/_layout.dart:70 — ClassTooLong — 474 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 74 over it, 1.19× 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: _DocumentMouseInteractorState super_editor/lib/src/default_editor/document_gestures_mouse.dart:94 — ClassTooLong — 471 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 71 over it, 1.18× 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: _SuperReaderIosDocumentTouchInteractorState super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:237 — ClassTooLong — 455 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 55 over it, 1.14× 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: SuperEditorAndroidControlsOverlayManagerState super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1423 — ClassTooLong — 418 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 18 over it, 1.05× 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: _EditorToolbarState website/lib/homepage/editor_toolbar.dart:63 — ClassTooLong — 412 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 12 over it, 1.03× 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: DragGestureRecognizer super_editor/lib/src/infrastructure/flutter/monodrag.dart:7 — ClassTooLong — 406 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 6 over it, 1.02× 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: SuperEditorState super_editor/lib/src/default_editor/super_editor.dart:399 — ClassTooLong — 404 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 4 over it, 1.01× 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: ImeAttributedTextEditingController super_editor/lib/src/super_textfield/input_method_engine/_ime_text_editing_controller.dart:16 — ClassTooLong — 403 significant lines (blank, comment-only and punctuation-only lines excluded), 73 methods. The bar is 400 significant lines; this is 3 over it, 1.01× 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.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×13
  • Duplicated block (17 lines × 2) super_clones/google_docs/lib/infrastructure/color_selector.dart:246 — super_clones/google_docs/lib/infrastructure/color_selector.dart:246-262 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:245-261 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/color_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/color_selector.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1654 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1654-1670 | super_editor/lib/src/chat/message_page_scaffold.dart:1086-1102 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1654` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (17 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:338 — super_editor/lib/src/chat/super_message_android_overlays.dart:338-354 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1918-1934 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_overlays.dart:338` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) super_editor/lib/src/default_editor/document_gestures_mouse.dart:556 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:556-572 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:405-421 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_mouse.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 92 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_mouse.dart:556` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:730 — super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:730-746 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:868-884 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:730` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:748` calls `toggleToolbar` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:886` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (17 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:913 — super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:913-929 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1003-1019 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:913` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:84 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:84-100 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:85-101 — before extracting anything, compare `super_editor/lib/src/infrastructure/content_layers_for_boxes.dart` and `super_editor/lib/src/infrastructure/content_layers_for_slivers.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:477 — super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:477-493 | super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:535-551 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:477` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `change` to `TextInsertionEvent` in one and `TextDeletedEvent` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (17 lines × 2) super_editor/lib/src/chat/bottom_floating/default/default_editor_sheet.dart:412 — super_editor/lib/src/chat/bottom_floating/default/default_editor_sheet.dart:412-428 | super_editor/lib/src/chat/bottom_floating/default/default_editor_toolbar.dart:475-491 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) super_editor/lib/src/chat/super_message_mouse_interactor.dart:536 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:536-552 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:599-615 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 278 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) super_editor/example/lib/main.dart:163 — super_editor/example/lib/main.dart:163-179 | super_editor/example_perf/lib/main.dart:108-124 — before extracting anything, compare `super_editor/example/lib/main.dart` and `super_editor/example_perf/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:228 — super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:228-244 | super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart:40-56 — before extracting anything, compare `super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart` and `super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (17 lines × 2) super_editor/example_chat/lib/keyboard_panel_scaffold/keyboard_panel_scaffold_demo.dart:301 — super_editor/example_chat/lib/keyboard_panel_scaffold/keyboard_panel_scaffold_demo.dart:301-317 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:708-724 — before extracting anything, compare `super_editor/example_chat/lib/keyboard_panel_scaffold/keyboard_panel_scaffold_demo.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 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.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×13
  • Duplicated block (13 lines × 2) super_clones/google_docs/lib/infrastructure/text_item_selector.dart:114 — super_clones/google_docs/lib/infrastructure/text_item_selector.dart:114-126 | super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart:114-126 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/text_item_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:597 — super_editor/lib/src/chat/super_message_android_overlays.dart:597-609 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:409-421 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_overlays.dart:597` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `editContext` to `DocumentContext` in one and `SuperEditorContext` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (13 lines × 2) super_editor/lib/src/chat/super_message_ios_overlays.dart:83 — super_editor/lib/src/chat/super_message_ios_overlays.dart:83-95 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1683-1695 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 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 (13 lines × 2) super_editor/lib/src/default_editor/common_editor_operations.dart:2860 — super_editor/lib/src/default_editor/common_editor_operations.dart:2860-2872 | super_editor/lib/src/default_editor/common_editor_operations.dart:2917-2929 — both copies are in the same file, so extract the block into 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) super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:95 — super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:95-107 | super_editor/lib/src/default_editor/document_ime/document_ime_interaction_policies.dart:298-310 — 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `oldWidget` to `EditorSelectionAndFocusPolicy` in one and `DocumentSelectionOpenAndCloseImePolicy` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (13 lines × 2) super_editor/lib/src/default_editor/tasks.dart:160 — super_editor/lib/src/default_editor/tasks.dart:160-172 | super_editor/lib/src/super_reader/tasks.dart:15-27 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/tasks.dart:160` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:617 — super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:617-629 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:972-984 — before extracting anything, compare `super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart` and `super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:617` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) website/lib/homepage/call_to_action.dart:54 — website/lib/homepage/call_to_action.dart:54-66 | website/lib/homepage/header.dart:194-206 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `website/lib/homepage/call_to_action.dart:54` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1472 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1472-1484 | super_editor/lib/src/chat/message_page_scaffold.dart:959-971 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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 (13 lines × 2) super_editor/lib/src/chat/super_message.dart:308 — super_editor/lib/src/chat/super_message.dart:308-320 | super_editor/lib/src/super_reader/super_reader.dart:367-379 — 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 (13 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:679 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:679-691 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1124-1136 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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 (13 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:743 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:743-755 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1193-1205 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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 (13 lines × 2) super_editor/example/lib/demos/in_the_lab/feature_pattern_tags.dart:67 — super_editor/example/lib/demos/in_the_lab/feature_pattern_tags.dart:67-79 | super_editor_spellcheck/example/lib/main_super_editor_spellcheck.dart:193-205 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/in_the_lab/feature_pattern_tags.dart:67` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×13
  • Duplicated block (12 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:890 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:890-901 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1063-1074 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` as WHOLE FILES: this scan already matched 3 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. 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:890` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) super_editor/lib/src/core/editor.dart:633 — super_editor/lib/src/core/editor.dart:633-644 | super_editor/lib/src/core/editor.dart:649-660 — both copies are in the same file, so extract the block into 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) super_editor/lib/src/default_editor/document_gestures_mouse.dart:584 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:584-595 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:433-444 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_mouse.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 92 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_mouse.dart:584` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:825 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:825-836 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:807-818 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 285 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:825` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) super_editor/lib/src/default_editor/layout_single_column/_layout.dart:558 — super_editor/lib/src/default_editor/layout_single_column/_layout.dart:558-569 | super_editor/lib/src/default_editor/layout_single_column/_layout.dart:577-588 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/layout_single_column/_layout.dart:558` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:139 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:139-150 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:140-151 — before extracting anything, compare `super_editor/lib/src/infrastructure/content_layers_for_boxes.dart` and `super_editor/lib/src/infrastructure/content_layers_for_slivers.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `child` to `RenderBox` in one and `RenderObject` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 2) super_editor/lib/src/default_editor/tasks.dart:190 — super_editor/lib/src/default_editor/tasks.dart:190-201 | super_editor/lib/src/super_reader/tasks.dart:38-49 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:56 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:56-67 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:57-68 — before extracting anything, compare `super_editor/lib/src/infrastructure/content_layers_for_boxes.dart` and `super_editor/lib/src/infrastructure/content_layers_for_slivers.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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) super_editor/lib/src/default_editor/paragraph.dart:79 — super_editor/lib/src/default_editor/paragraph.dart:79-90 | super_editor/lib/src/default_editor/tasks.dart:82-93 — before extracting anything, compare `super_editor/lib/src/default_editor/paragraph.dart` and `super_editor/lib/src/default_editor/tasks.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:176 — super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:176-187 | super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:292-303 — both copies are in the same file, so extract the block into 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) super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart:46 — super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart:46-57 | super_editor/example/lib/demos/supertextfield/_static_multi_line_demo.dart:45-56 — before extracting anything, compare `super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart` and `super_editor/example/lib/demos/supertextfield/_static_multi_line_demo.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 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) super_editor/example/lib/demos/demo_animated_task_height.dart:81 — super_editor/example/lib/demos/demo_animated_task_height.dart:81-92 | super_editor/example_perf/lib/demos/rebuild_demo.dart:83-94 — before extracting anything, compare `super_editor/example/lib/demos/demo_animated_task_height.dart` and `super_editor/example_perf/lib/demos/rebuild_demo.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 95 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:98 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:98-109 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:133-144 — before extracting anything, compare `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart` and `super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 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.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×13
  • Duplicated block (9 lines × 2) super_clones/quill/lib/editor/code_component.dart:82 — super_clones/quill/lib/editor/code_component.dart:82-90 | super_editor/lib/src/default_editor/blockquote.dart:103-111 — before extracting anything, compare `super_clones/quill/lib/editor/code_component.dart` and `super_editor/lib/src/default_editor/blockquote.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/default_editor/blockquote.dart:112` calls `SquiggleUnderlineStyle` and `super_clones/quill/lib/editor/code_component.dart:91` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:320 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:320-328 | website/lib/infrastructure/super_editor_item_selector.dart:320-328 — before extracting anything, compare `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart` and `website/lib/infrastructure/super_editor_item_selector.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 133 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 (9 lines × 2) super_editor/lib/src/infrastructure/serialization/quill/parsing/inline_formats.dart:25 — super_editor/lib/src/infrastructure/serialization/quill/parsing/inline_formats.dart:25-33 | super_editor/lib/src/infrastructure/serialization/quill/parsing/inline_formats.dart:54-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 (9 lines × 2) super_text_layout/lib/src/super_text_layout_with_selection.dart:207 — super_text_layout/lib/src/super_text_layout_with_selection.dart:207-215 | super_text_layout/lib/src/super_text_layout_with_selection.dart:234-242 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_text_layout/lib/src/super_text_layout_with_selection.dart:207` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) super_clones/google_docs/lib/infrastructure/icon_selector.dart:121 — super_clones/google_docs/lib/infrastructure/icon_selector.dart:121-129 | super_clones/quill/lib/infrastructure/popovers/icon_selector.dart:121-129 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/icon_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/icon_selector.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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 (9 lines × 2) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:304 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:304-312 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:213-221 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 127 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 (9 lines × 2) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:314 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:314-323 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:223-231 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 127 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 (9 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:864 — super_editor/lib/src/chat/super_message_android_overlays.dart:864-872 | super_editor/lib/src/chat/super_message_ios_overlays.dart:327-335 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/chat/super_message_ios_overlays.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 121 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 (9 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:741 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:741-749 | super_editor/lib/src/chat/super_message_mouse_interactor.dart:441-449 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart` 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 (9 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:751 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:751-759 | super_editor/lib/src/chat/super_message_mouse_interactor.dart:451-459 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:763` calls `maybeOf` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart:463` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:46 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:46-54 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:47-55 — before extracting anything, compare `super_editor/lib/src/infrastructure/content_layers_for_boxes.dart` and `super_editor/lib/src/infrastructure/content_layers_for_slivers.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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 (9 lines × 2) super_editor/lib/src/default_editor/super_editor.dart:1212 — super_editor/lib/src/default_editor/super_editor.dart:1212-1220 | super_editor/lib/src/super_reader/super_reader.dart:628-636 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) super_editor/example/lib/demos/demo_paragraphs.dart:29 — super_editor/example/lib/demos/demo_paragraphs.dart:29-37 | super_editor/example/lib/demos/demo_rtl.dart:32-40 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×12
  • Duplicated block (20 lines × 2) super_clones/google_docs/lib/infrastructure/color_selector.dart:188 — super_clones/google_docs/lib/infrastructure/color_selector.dart:188-207 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:188-207 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/color_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/color_selector.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/google_docs/lib/infrastructure/color_selector.dart:188` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (20 lines × 2) super_editor/example/lib/demos/demo_attributed_text.dart:229 — super_editor/example/lib/demos/demo_attributed_text.dart:229-248 | website/lib/homepage/inside_the_toolbox.dart:351-370 — before extracting anything, compare `super_editor/example/lib/demos/demo_attributed_text.dart` and `website/lib/homepage/inside_the_toolbox.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/demo_attributed_text.dart:229` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) super_editor/example/lib/demos/example_editor/_toolbar.dart:649 — super_editor/example/lib/demos/example_editor/_toolbar.dart:649-668 | website/lib/homepage/editor_toolbar.dart:610-629 — before extracting anything, compare `super_editor/example/lib/demos/example_editor/_toolbar.dart` and `website/lib/homepage/editor_toolbar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 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 (20 lines × 2) super_editor/example/lib/demos/example_editor/_toolbar.dart:670 — super_editor/example/lib/demos/example_editor/_toolbar.dart:670-689 | website/lib/homepage/editor_toolbar.dart:631-650 — before extracting anything, compare `super_editor/example/lib/demos/example_editor/_toolbar.dart` and `website/lib/homepage/editor_toolbar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 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 (20 lines × 2) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:105 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:105-124 | website/lib/infrastructure/super_editor_item_selector.dart:105-124 — before extracting anything, compare `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart` and `website/lib/infrastructure/super_editor_item_selector.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 133 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 (20 lines × 2) super_editor/lib/src/chat/attachments/attachment_list_editing.dart:148 — super_editor/lib/src/chat/attachments/attachment_list_editing.dart:148-167 | super_editor/lib/src/chat/attachments/attachment_list_editing.dart:169-188 — both copies are in the same file, so extract the block into 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) super_editor/lib/src/chat/super_message_android_overlays.dart:316 — super_editor/lib/src/chat/super_message_android_overlays.dart:316-335 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1897-1916 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_overlays.dart:316` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/chat/super_message_android_overlays.dart:337` calls `maybeOf` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1918` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (20 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:456 — super_editor/lib/src/chat/super_message_android_overlays.dart:456-475 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:2029-2048 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (20 lines × 2) super_editor/lib/src/default_editor/super_editor.dart:978 — super_editor/lib/src/default_editor/super_editor.dart:978-997 | super_editor/lib/src/default_editor/super_editor.dart:1000-1019 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/super_editor.dart:978` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) super_editor/lib/src/default_editor/text.dart:1602 — super_editor/lib/src/default_editor/text.dart:1602-1621 | super_editor/lib/src/default_editor/text.dart:1875-1894 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text.dart:1602` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1880 — super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1880-1899 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1944-1963 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1880` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) super_editor/example/lib/demos/demo_animated_task_height.dart:29 — super_editor/example/lib/demos/demo_animated_task_height.dart:29-48 | super_editor/example_perf/lib/demos/rebuild_demo.dart:32-51 — before extracting anything, compare `super_editor/example/lib/demos/demo_animated_task_height.dart` and `super_editor/example_perf/lib/demos/rebuild_demo.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 95 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.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×12
  • Duplicated block (19 lines × 2) super_clones/google_docs/lib/infrastructure/text_item_selector.dart:164 — super_clones/google_docs/lib/infrastructure/text_item_selector.dart:164-182 | super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart:167-185 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/text_item_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 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) super_editor/example/lib/demos/demo_attributed_text.dart:42 — super_editor/example/lib/demos/demo_attributed_text.dart:42-60 | website/lib/homepage/inside_the_toolbox.dart:215-233 — before extracting anything, compare `super_editor/example/lib/demos/demo_attributed_text.dart` and `website/lib/homepage/inside_the_toolbox.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/demo_attributed_text.dart:42` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (19 lines × 2) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:283 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:283-301 | website/lib/infrastructure/super_editor_item_selector.dart:283-301 — before extracting anything, compare `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart` and `website/lib/infrastructure/super_editor_item_selector.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 133 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) super_editor/lib/src/chat/super_message_android_overlays.dart:267 — super_editor/lib/src/chat/super_message_android_overlays.dart:267-285 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1723-1741 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_overlays.dart:267` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:382 — super_editor/lib/src/chat/super_message_android_overlays.dart:382-400 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1959-1977 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_overlays.dart:382` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (19 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:498 — super_editor/lib/src/chat/super_message_android_overlays.dart:498-516 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:2071-2089 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (19 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:785 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:785-803 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1241-1259 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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) super_editor/lib/src/chat/super_message_mouse_interactor.dart:182 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:182-200 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:230-248 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 278 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_mouse_interactor.dart:182` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (19 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1563 — super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1563-1581 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1002-1020 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 185 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1563` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) super_editor/lib/src/default_editor/list_items.dart:251 — super_editor/lib/src/default_editor/list_items.dart:251-269 | super_editor/lib/src/default_editor/tasks.dart:221-239 — before extracting anything, compare `super_editor/lib/src/default_editor/list_items.dart` and `super_editor/lib/src/default_editor/tasks.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/list_items.dart:251` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (19 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:117 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:117-135 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:118-136 — before extracting anything, compare `super_editor/lib/src/infrastructure/content_layers_for_boxes.dart` and `super_editor/lib/src/infrastructure/content_layers_for_slivers.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `child` to `RenderBox` in one and `RenderObject` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (19 lines × 2) super_editor/example/lib/demos/editor_configs/demo_mobile_editing_android.dart:156 — super_editor/example/lib/demos/editor_configs/demo_mobile_editing_android.dart:156-174 | super_editor/example/lib/demos/editor_configs/demo_mobile_editing_ios.dart:163-181 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×12
  • Duplicated block (14 lines × 2) super_clones/google_docs/lib/infrastructure/text_item_selector.dart:136 — super_clones/google_docs/lib/infrastructure/text_item_selector.dart:136-149 | super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart:138-151 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/text_item_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/google_docs/lib/infrastructure/text_item_selector.dart:136` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) super_clones/quill/lib/editor/toolbar.dart:696 — super_clones/quill/lib/editor/toolbar.dart:696-709 | super_clones/quill/lib/editor/toolbar.dart:828-841 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/quill/lib/editor/toolbar.dart:696` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) super_editor/example/lib/demos/demo_attributed_text.dart:253 — super_editor/example/lib/demos/demo_attributed_text.dart:253-266 | website/lib/homepage/inside_the_toolbox.dart:375-388 — before extracting anything, compare `super_editor/example/lib/demos/demo_attributed_text.dart` and `website/lib/homepage/inside_the_toolbox.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/demo_attributed_text.dart:253` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:354 — super_editor/lib/src/chat/super_message_android_overlays.dart:354-367 | super_editor/lib/src/chat/super_message_android_overlays.dart:400-413 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_overlays.dart:354` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) super_editor/lib/src/chat/super_message_ios_overlays.dart:175 — super_editor/lib/src/chat/super_message_ios_overlays.dart:175-188 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1195-1208 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_overlays.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_overlays.dart:175` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 2) super_editor/lib/src/default_editor/common_editor_operations.dart:2635 — super_editor/lib/src/default_editor/common_editor_operations.dart:2635-2648 | super_editor/lib/src/default_editor/common_editor_operations.dart:2745-2758 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/common_editor_operations.dart:2635` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:582 — super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:582-595 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:927-940 — before extracting anything, compare `super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart` and `super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:582` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) super_editor/example/lib/demos/example_editor/_toolbar.dart:74 — super_editor/example/lib/demos/example_editor/_toolbar.dart:74-87 | website/lib/homepage/editor_toolbar.dart:72-85 — before extracting anything, compare `super_editor/example/lib/demos/example_editor/_toolbar.dart` and `website/lib/homepage/editor_toolbar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 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 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:219 — super_editor/lib/src/chat/super_message_android_overlays.dart:219-232 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1646-1659 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1639` calls `startAutoScrollHandleMonitoring`, `addListener` and `super_editor/lib/src/chat/super_message_android_overlays.dart:216` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (14 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:152 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:152-165 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:153-166 — before extracting anything, compare `super_editor/lib/src/infrastructure/content_layers_for_boxes.dart` and `super_editor/lib/src/infrastructure/content_layers_for_slivers.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `child` to `RenderBox` in one and `RenderObject` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (14 lines × 2) super_editor/example/lib/main.dart:588 — super_editor/example/lib/main.dart:588-601 | super_editor/example_perf/lib/main.dart:209-222 — before extracting anything, compare `super_editor/example/lib/main.dart` and `super_editor/example_perf/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `title` to `'Text Inline Widgets'` in one and `'Long Doc Demo'` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (14 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:111 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:111-124 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:146-159 — before extracting anything, compare `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart` and `super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 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.
D35 · Change Coupling · Change coupling · ×11
  • Change coupling: android_document_controls.dart ↔ ios_document_controls.dart super_editor/lib/src/infrastructure/platforms/android/android_document_controls.dart:1 — `super_editor/lib/src/infrastructure/platforms/android/android_document_controls.dart` and `super_editor/lib/src/infrastructure/platforms/ios/ios_document_controls.dart` change together 82% of the time (9 of the 11 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 `ad86b144` Fix momentary NPE when restoring selection after going from expanded …; `fc32acd0` Use Timer instead of Ticker with mobile caret blink controller to avo…; `a212a350` [SuperEditor][Mobile] Fix caret position after rotation (Resolves #20… — run `git show` on any of them.
  • Change coupling: read_only_document_android_touch_interactor.dart ↔ read_only_document_ios_touch_interactor.dart super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1 — `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` change together 81% of the time (17 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) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are `b2b13f76` [SuperEditor][SuperTextField][mobile] - Do not crop magnifier at scre…; `f027d60e` [SuperEditor] Add tap handler to add an empty paragraph when tapping …; `922ed8bf` [SuperEditor][SuperReader] - Rework interaction gesture handling to a… — run `git show` on any of them.
  • Change coupling: document_gestures_touch_ios.dart ↔ read_only_document_android_touch_interactor.dart super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1 — `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` and `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` change together 81% of the time (17 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) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are `b2b13f76` [SuperEditor][SuperTextField][mobile] - Do not crop magnifier at scre…; `f027d60e` [SuperEditor] Add tap handler to add an empty paragraph when tapping …; `922ed8bf` [SuperEditor][SuperReader] - Rework interaction gesture handling to a… — run `git show` on any of them.
  • Change coupling: _user_interaction.dart ↔ user_interaction.dart super_editor/lib/src/super_textfield/android/_user_interaction.dart:1 — `super_editor/lib/src/super_textfield/android/_user_interaction.dart` and `super_editor/lib/src/super_textfield/ios/user_interaction.dart` change together 75% of the time (12 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 12 shared commits counted here, the most recent 3 are `ef6b3594` [SuperTextField] Add ability to override tap gestures (Resolves #2447…; `b9b17753` [SuperTextField][Android][iOS] Disables text field caret blink while … (at that commit the file was still `super_editor/lib/src/super_textfield/ios/_user_interaction.dart`); `dacf90fa` [SuperEditor][SuperTextField] Clear composing region after selection … (at that commit the file was still `super_editor/lib/src/super_textfield/ios/_user_interaction.dart`) — run `git show` on any of them.
  • Change coupling: _editing_controls.dart ↔ editing_controls.dart super_editor/lib/src/super_textfield/android/_editing_controls.dart:1 — `super_editor/lib/src/super_textfield/android/_editing_controls.dart` and `super_editor/lib/src/super_textfield/ios/editing_controls.dart` change together 71% of the time (10 of the 14 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 10 shared commits counted here, the most recent 3 are `b2b13f76` [SuperEditor][SuperTextField][mobile] - Do not crop magnifier at scre…; `b9b17753` [SuperTextField][Android][iOS] Disables text field caret blink while … (at that commit the file was still `super_editor/lib/src/super_textfield/ios/_editing_controls.dart`); `185cce5a` Mobile mounted toolbar now appears above Android overlay controls, mi… (at that commit the file was still `super_editor/lib/src/super_textfield/ios/_editing_controls.dart`) — run `git show` on any of them.
  • Change coupling: super_editor.dart ↔ _logging.dart super_editor/lib/src/default_editor/super_editor.dart:1 — `super_editor/lib/src/default_editor/super_editor.dart` and `super_editor/lib/src/infrastructure/_logging.dart` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `b0d2bd11` [SuperEditor] - Make it possible to open a keyboard panel before the …; `7c7ad2cc` Moved IME upstream deletion in empty nodes to Editor requests instead…; `24d2243e` Rebuild document layers when document layout components change (Resol… — run `git show` on any of them.
  • Change coupling: _editing_controls.dart ↔ ios_textfield.dart super_editor/lib/src/super_textfield/android/_editing_controls.dart:1 — `super_editor/lib/src/super_textfield/android/_editing_controls.dart` and `super_editor/lib/src/super_textfield/ios/ios_textfield.dart` change together 59% of the time (10 of the 17 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 10 shared commits counted here, the most recent 3 are `b9b17753` [SuperTextField][Android][iOS] Disables text field caret blink while …; `17ffbb8d` Fixed SuperTextField single-line auto-scroll and scrolling bugs on iO…; `185cce5a` Mobile mounted toolbar now appears above Android overlay controls, mi… — run `git show` on any of them.
  • Change coupling: blockquote.dart ↔ list_items.dart super_editor/lib/src/default_editor/blockquote.dart:1 — `super_editor/lib/src/default_editor/blockquote.dart` and `super_editor/lib/src/default_editor/list_items.dart` change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `cf9fa894` [Chat] - Added "Preview Mode" to chat editor (Resolves #2921) (#2946); `8ed2d208` [SuperEditor][SuperReader] - Custom underline style configuration (Re…; `46058e5f` Migrate to KeyEvent from RawKeyEvent (Flutter team contribution) (#1593) — run `git show` on any of them.
  • Change coupling: document_keyboard_actions.dart ↔ super_editor.dart super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:1 — `super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart` and `super_editor/lib/src/default_editor/super_editor.dart` change together 56% of the time (19 of the 34 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 19 shared commits counted here, the most recent 3 are `0363760a` [SuperEditor][Web] Fix selection change with CMD + RIGHT (Resolves #2…; `30a49b6f` [SuperEditor] Enable Mac shortcuts for iOS (Resolves #1609) (#1678); `f471c243` [ExampleApp] Fix link popover (Resolves #1440) (#1443) — run `git show` on any of them.
  • Change coupling: document_gestures_touch_ios.dart ↔ android_document_controls.dart super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1 — `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` and `super_editor/lib/src/infrastructure/platforms/android/android_document_controls.dart` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `ad86b144` Fix momentary NPE when restoring selection after going from expanded …; `9272d4e7` [SuperEditor][Mobile] Add caret customization (Resolves #1935) (#2020); `797ff655` Make android editor controls configurable (Resolves #1509) (#1607) — run `git show` on any of them.
  • Change coupling: desktop_textfield.dart ↔ ios_textfield.dart super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1 — `super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart` and `super_editor/lib/src/super_textfield/ios/ios_textfield.dart` change together 51% of the time (22 of the 43 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 22 shared commits counted here, the most recent 3 are `71d72149` [SuperEditor][SuperTextField][macOS] - Fix crash when attaching to th…; `c3106bbb` [SuperTextField] - Add support for inline widgets (Resolves #2507) (#…; `ef6b3594` [SuperTextField] Add ability to override tap gestures (Resolves #2447… — run `git show` on any of them.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×11
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:640 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:640-655 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1080-1095 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:639 — super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:639-655 | super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:868-883 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:530 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:530-545 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:371-394 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/infrastructure/_scrolling.dart:49 — super_editor/lib/src/infrastructure/_scrolling.dart:49-64 | super_editor/lib/src/infrastructure/_scrolling.dart:88-103 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/default_editor/image.dart:126 — super_editor/lib/src/default_editor/image.dart:126-141 | super_editor/lib/src/default_editor/image.dart:325-342 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1517 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1517-1532 | super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1537-1552 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart:847 — super_editor/lib/src/chat/super_message_android_overlays.dart:847-862 | super_editor/lib/src/default_editor/super_editor.dart:1151-1170 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/default_editor/paragraph.dart:683 — super_editor/lib/src/default_editor/paragraph.dart:683-703 | super_editor/lib/src/default_editor/text.dart:2062-2077 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_clones/quill/lib/editor/toolbar.dart:960 — super_clones/quill/lib/editor/toolbar.dart:960-975 | super_clones/quill/lib/editor/toolbar.dart:1024-1039 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1207 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1207-1222 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1224-1239 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:493 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:493-508 | super_editor/lib/src/chat/chat_editor.dart:323-339 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×10
  • Members sharing a duplicated core (4 members, 50+ identical tokens) super_clones/google_docs/lib/infrastructure/color_selector.dart:141 — super_clones/google_docs/lib/infrastructure/color_selector.dart:141-167 | super_clones/google_docs/lib/infrastructure/color_selector.dart:219-244 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:141-167 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:218-243 — 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) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:362 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:362-381 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:160-181 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:270-291 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:153-174 — 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) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:637 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:637-662 | super_editor/example_chat/lib/keyboard_panel_scaffold/keyboard_panel_scaffold_demo.dart:274-299 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:681-706 | super_editor/lib/src/chat/chat_editor.dart:500-526 — 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) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:142 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:142-163 | super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:303-318 | website/lib/infrastructure/super_editor_item_selector.dart:142-163 | website/lib/infrastructure/super_editor_item_selector.dart:303-318 — 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) super_editor/example/lib/demos/super_reader/demo_super_reader.dart:57 — super_editor/example/lib/demos/super_reader/demo_super_reader.dart:57-111 | super_editor/lib/src/chat/super_message_android_overlays.dart:901-955 | super_editor/lib/src/chat/super_message_ios_overlays.dart:364-418 | super_editor/lib/src/default_editor/common_editor_operations.dart:2312-2366 — 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) super_editor/lib/src/chat/super_message_android_overlays.dart:477 — super_editor/lib/src/chat/super_message_android_overlays.dart:477-496 | super_editor/lib/src/chat/super_message_ios_overlays.dart:149-173 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:2050-2069 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1748-1774 — 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) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:527 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:527-551 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:428-451 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:920-944 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:931-955 — 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) super_editor/lib/src/default_editor/common_editor_operations.dart:2633 — super_editor/lib/src/default_editor/common_editor_operations.dart:2633-2733 | super_editor/lib/src/default_editor/common_editor_operations.dart:2743-2845 | super_editor/lib/src/default_editor/common_editor_operations.dart:2858-2902 | super_editor/lib/src/default_editor/common_editor_operations.dart:2915-2953 — 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) super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:234 — super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:234-269 | super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:281-347 | super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:357-377 | super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:585-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) super_clones/bear/macos/Runner/MainFlutterWindow.swift:5 — super_clones/bear/macos/Runner/MainFlutterWindow.swift:5-23 | super_clones/quill/macos/Runner/MainFlutterWindow.swift:5-21 | super_clones/slack/macos/Runner/MainFlutterWindow.swift:5-23 | super_editor/example/macos/Runner/MainFlutterWindow.swift:5-20 — 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.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×10
  • Edited copy of a member (18 corresponding lines) super_editor/lib/src/core/document_selection.dart:118 — super_editor/lib/src/core/document_selection.dart:118-135 | super_editor/lib/src/core/document_selection.dart:307-324 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:612 — super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:612-629 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:967-984 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart:153 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:153-170 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:777-796 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_clones/google_docs/lib/infrastructure/color_selector.dart:169 — super_clones/google_docs/lib/infrastructure/color_selector.dart:169-186 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:169-186 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_editor/lib/src/default_editor/list_items.dart:1194 — super_editor/lib/src/default_editor/list_items.dart:1194-1212 | super_editor/lib/src/default_editor/list_items.dart:1237-1254 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_editor/lib/src/default_editor/text.dart:1107 — super_editor/lib/src/default_editor/text.dart:1107-1124 | super_editor/lib/src/default_editor/text.dart:1126-1143 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_editor/lib/src/default_editor/document_gestures_mouse.dart:409 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:409-426 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:515-532 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:105 — super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:105-122 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:113-130 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart:297 — super_editor/lib/src/chat/super_message_android_overlays.dart:297-314 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1800-1817 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:256 — super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:256-275 | super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart:89-106 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×10
  • Edited copy of a member (20 corresponding lines) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:853 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:853-872 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:750-769 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1015 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1015-1034 | super_editor/lib/src/chat/message_page_scaffold.dart:751-772 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:2451 — super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:2451-2470 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:2472-2491 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_editor/lib/src/default_editor/multi_node_editing.dart:1555 — super_editor/lib/src/default_editor/multi_node_editing.dart:1555-1574 | super_editor/lib/src/default_editor/paragraph.dart:1228-1249 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart:267 — super_editor/lib/src/chat/super_message_android_overlays.dart:267-286 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1723-1748 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_clones/quill/lib/editor/editor.dart:278 — super_clones/quill/lib/editor/editor.dart:278-297 | super_editor/lib/src/core/document_composer.dart:366-385 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:62 — super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:62-81 | super_editor/example/lib/demos/in_the_lab/feature_stable_tags.dart:63-82 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:173 — super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:173-196 | super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:287-306 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_text_layout/example/lib/typing_robot.dart:63 — super_text_layout/example/lib/typing_robot.dart:63-82 | super_text_layout/example/lib/typing_robot.dart:84-103 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) super_editor/example/lib/main.dart:69 — super_editor/example/lib/main.dart:69-89 | super_editor/example_perf/lib/main.dart:13-32 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (14 corresponding lines) · ×10
  • Edited copy of a member (14 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart:434 — super_editor/lib/src/chat/super_message_android_overlays.dart:434-448 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:2008-2021 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_editor/lib/src/default_editor/box_component.dart:189 — super_editor/lib/src/default_editor/box_component.dart:189-208 | super_editor/lib/src/default_editor/box_component.dart:210-223 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_node.dart:78 — super_editor/lib/src/chat/attachments/attachment_list_node.dart:78-91 | super_editor/lib/src/default_editor/box_component.dart:78-91 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_editor/lib/src/default_editor/document_gestures_mouse.dart:582 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:582-595 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:431-444 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:664 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:664-677 | super_editor/lib/src/chat/chat_editor.dart:528-545 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:555 — super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:555-568 | super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:570-583 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_editor/lib/src/default_editor/layout_single_column/_styler_per_component.dart:20 — super_editor/lib/src/default_editor/layout_single_column/_styler_per_component.dart:20-33 | super_editor/lib/src/default_editor/layout_single_column/_styler_shylesheet.dart:33-46 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_editor/lib/src/default_editor/tasks.dart:275 — super_editor/lib/src/default_editor/tasks.dart:275-291 | super_editor/lib/src/default_editor/list_items.dart:362-375 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_editor/lib/src/default_editor/blockquote.dart:160 — super_editor/lib/src/default_editor/blockquote.dart:160-174 | super_editor/lib/src/default_editor/list_items.dart:437-450 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:269 — super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:269-282 | super_editor/example/lib/demos/in_the_lab/feature_stable_tags.dart:287-301 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×10
  • Edited copy of a member (9 corresponding lines) super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1929 — super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1929-1937 | super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1958-1967 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_sheet.dart:172 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_sheet.dart:172-180 | super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_sheet.dart:182-190 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1138 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1138-1146 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:712-725 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1171 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1171-1179 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:738-747 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart:675 — super_editor/lib/src/chat/super_message_android_overlays.dart:675-683 | super_editor/lib/src/infrastructure/documents/selection_leader_document_layer.dart:57-65 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/lib/src/default_editor/document_ime/supereditor_ime_interactor.dart:660 — super_editor/lib/src/default_editor/document_ime/supereditor_ime_interactor.dart:660-668 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1714-1722 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:688 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:688-696 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:809-817 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1554 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1554-1565 | super_editor/lib/src/chat/message_page_scaffold.dart:1031-1039 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart:19 — super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart:19-27 | super_editor/example_chat/lib/keyboard_panel_scaffold/keyboard_panel_scaffold_demo.dart:19-31 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:59 — super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:59-68 | super_editor/example/lib/demos/in_the_lab/spelling_error_decorations.dart:47-55 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×10
  • Duplicated block (22 lines × 2) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:142 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:142-163 | website/lib/infrastructure/super_editor_item_selector.dart:142-163 — before extracting anything, compare `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart` and `website/lib/infrastructure/super_editor_item_selector.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 133 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (22 lines × 2) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:381 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:381-402 | website/lib/infrastructure/super_editor_item_selector.dart:381-402 — before extracting anything, compare `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart` and `website/lib/infrastructure/super_editor_item_selector.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 133 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (22 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1816 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1816-1837 | super_editor/lib/src/chat/message_page_scaffold.dart:1224-1245 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1816` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (22 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1848 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1848-1869 | super_editor/lib/src/chat/message_page_scaffold.dart:1239-1260 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1848` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (22 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:91 — super_editor/lib/src/chat/super_message_android_overlays.dart:91-112 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1466-1487 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_overlays.dart:91` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (22 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:874 — super_editor/lib/src/chat/super_message_android_overlays.dart:874-895 | super_editor/lib/src/chat/super_message_ios_overlays.dart:337-358 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/chat/super_message_ios_overlays.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 121 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 (22 lines × 2) super_editor/lib/src/default_editor/list_items.dart:581 — super_editor/lib/src/default_editor/list_items.dart:581-602 | super_editor/lib/src/default_editor/list_items.dart:763-784 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/list_items.dart:581` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (22 lines × 2) super_editor/lib/src/default_editor/text.dart:1587 — super_editor/lib/src/default_editor/text.dart:1587-1608 | super_editor/lib/src/default_editor/text.dart:1717-1738 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text.dart:1587` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (22 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:75 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:75-96 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:110-131 — before extracting anything, compare `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart` and `super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 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 (22 lines × 2) super_editor/example_chat/lib/floating_chat_editor_demo/fake_chat_thread.dart:14 — super_editor/example_chat/lib/floating_chat_editor_demo/fake_chat_thread.dart:14-35 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:107-128 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example_chat/lib/floating_chat_editor_demo/fake_chat_thread.dart:14` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×10
  • Duplicated block (16 lines × 2) super_editor/example/lib/demos/demo_attributed_text.dart:25 — super_editor/example/lib/demos/demo_attributed_text.dart:25-40 | website/lib/homepage/inside_the_toolbox.dart:198-213 — before extracting anything, compare `super_editor/example/lib/demos/demo_attributed_text.dart` and `website/lib/homepage/inside_the_toolbox.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/demo_attributed_text.dart:25` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16 lines × 2) super_editor/example/lib/demos/example_editor/_toolbar.dart:533 — super_editor/example/lib/demos/example_editor/_toolbar.dart:533-548 | website/lib/homepage/editor_toolbar.dart:510-525 — before extracting anything, compare `super_editor/example/lib/demos/example_editor/_toolbar.dart` and `website/lib/homepage/editor_toolbar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:303 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:303-318 | website/lib/infrastructure/super_editor_item_selector.dart:303-318 — before extracting anything, compare `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart` and `website/lib/infrastructure/super_editor_item_selector.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 133 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1791 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1791-1806 | super_editor/lib/src/chat/message_page_scaffold.dart:1199-1214 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1791` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:477 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:477-492 | super_editor/lib/src/chat/super_message_mouse_interactor.dart:234-249 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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 (16 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:558 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:558-573 | super_editor/lib/src/chat/super_message_mouse_interactor.dart:298-313 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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 (16 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:348 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:348-363 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:453-468 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:348` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:502 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:502-517 | super_editor/lib/src/chat/super_message_mouse_interactor.dart:296-311 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `details` to `TapUpDetails` in one and `TapDownDetails` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:519` calls `_clearSelection` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart:313` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (16 lines × 2) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:865 — super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:865-880 | super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:1070-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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:865` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:126 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:126-141 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:161-176 — before extracting anything, compare `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart` and `super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:126` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×10
  • Duplicated block (7 lines × 2) super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1929 — super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1929-1935 | super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1958-1964 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1929` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) super_clones/google_docs/lib/infrastructure/color_selector.dart:133 — super_clones/google_docs/lib/infrastructure/color_selector.dart:133-139 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:133-139 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/color_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/color_selector.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 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 (7 lines × 2) super_clones/google_docs/lib/infrastructure/text_item_selector.dart:94 — super_clones/google_docs/lib/infrastructure/text_item_selector.dart:94-100 | super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart:94-100 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/text_item_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 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 (7 lines × 2) super_clones/google_docs/lib/infrastructure/text_item_selector.dart:102 — super_clones/google_docs/lib/infrastructure/text_item_selector.dart:102-108 | super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart:102-108 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/text_item_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 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 (7 lines × 2) super_editor/example/lib/demos/demo_attributed_text.dart:204 — super_editor/example/lib/demos/demo_attributed_text.dart:204-210 | website/lib/homepage/inside_the_toolbox.dart:326-332 — before extracting anything, compare `super_editor/example/lib/demos/demo_attributed_text.dart` and `website/lib/homepage/inside_the_toolbox.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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 (7 lines × 2) super_editor/example/lib/demos/demo_attributed_text.dart:217 — super_editor/example/lib/demos/demo_attributed_text.dart:217-223 | website/lib/homepage/inside_the_toolbox.dart:339-345 — before extracting anything, compare `super_editor/example/lib/demos/demo_attributed_text.dart` and `website/lib/homepage/inside_the_toolbox.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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 (7 lines × 2) super_editor/lib/src/default_editor/document_hardware_keyboard/document_physical_keyboard.dart:63 — super_editor/lib/src/default_editor/document_hardware_keyboard/document_physical_keyboard.dart:63-69 | super_editor/lib/src/super_textfield/super_textfield.dart:274-281 — 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) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:308 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:308-314 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:374-380 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:406` calls `findViewportBox` and `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:321` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 2) super_editor/example/lib/demos/demo_paragraphs.dart:16 — super_editor/example/lib/demos/demo_paragraphs.dart:16-22 | super_editor/example/lib/demos/demo_rtl.dart:19-25 — 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) super_editor/example/lib/main.dart:111 — super_editor/example/lib/main.dart:111-117 | super_editor/example_perf/lib/main.dart:56-62 — before extracting anything, compare `super_editor/example/lib/main.dart` and `super_editor/example_perf/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 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.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×9
  • Duplicated block (11 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1706 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1706-1716 | super_editor/lib/src/chat/message_page_scaffold.dart:1137-1147 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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 (11 lines × 2) super_editor/lib/src/default_editor/common_editor_operations.dart:2470 — super_editor/lib/src/default_editor/common_editor_operations.dart:2470-2480 | super_editor/lib/src/default_editor/multi_node_editing.dart:49-59 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/common_editor_operations.dart:2470` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_editor/lib/src/default_editor/common_editor_operations.dart:2464` calls `_parseContent`, `toList` and `super_editor/lib/src/default_editor/multi_node_editing.dart:46` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1934 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1934-1944 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1977-1987 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1934` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) super_editor/lib/src/default_editor/multi_node_editing.dart:532 — super_editor/lib/src/default_editor/multi_node_editing.dart:532-542 | super_editor/lib/src/default_editor/multi_node_editing.dart:562-572 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/multi_node_editing.dart:532` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_editor/lib/src/default_editor/multi_node_editing.dart:559` calls `DocumentEdit`, `NodeChangeEvent` and `super_editor/lib/src/default_editor/multi_node_editing.dart:531` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:481 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:481-491 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:401-411 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 127 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 (11 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:648 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:648-658 | super_editor/lib/src/chat/message_page_scaffold.dart:435-445 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:731 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:731-741 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1181-1191 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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 (11 lines × 2) super_clones/quill/macos/Runner/MainFlutterWindow.swift:11 — super_clones/quill/macos/Runner/MainFlutterWindow.swift:11-21 | super_editor/example/macos/Runner/MainFlutterWindow.swift:10-20 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/quill/macos/Runner/MainFlutterWindow.swift:11` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) super_text_layout/example/lib/typing_robot.dart:192 — super_text_layout/example/lib/typing_robot.dart:192-202 | super_text_layout/example/lib/typing_robot.dart:221-231 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_text_layout/example/lib/typing_robot.dart:192` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×9
  • Duplicated block (8 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:390 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:390-397 | super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:435-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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:390` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:398` calls `toggleToolbar` and `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:443` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1179 — super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1179-1186 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:750-758 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 185 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1179` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:745` calls `showMagnifier` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1174` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:223 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:223-230 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:301-308 — before extracting anything, compare `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:223` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `oldWidget` to `ReadOnlyAndroidDocumentTouchInteractor` in one and `SuperReaderIosDocumentTouchInteractor` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (8 lines × 2) super_editor/example/lib/demos/example_editor/_toolbar.dart:98 — super_editor/example/lib/demos/example_editor/_toolbar.dart:98-105 | website/lib/homepage/editor_toolbar.dart:96-103 — before extracting anything, compare `super_editor/example/lib/demos/example_editor/_toolbar.dart` and `website/lib/homepage/editor_toolbar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 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 (8 lines × 2) super_clones/quill/lib/app.dart:9 — super_clones/quill/lib/app.dart:9-16 | super_text_layout/example/lib/main.dart:25-32 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) super_editor/lib/src/default_editor/image.dart:46 — super_editor/lib/src/default_editor/image.dart:46-53 | super_editor/lib/src/infrastructure/serialization/quill/content/multimedia.dart:84-91 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) super_editor/lib/src/default_editor/list_items.dart:126 — super_editor/lib/src/default_editor/list_items.dart:126-133 | super_editor/lib/src/default_editor/tasks.dart:122-129 — before extracting anything, compare `super_editor/lib/src/default_editor/list_items.dart` and `super_editor/lib/src/default_editor/tasks.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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) super_text_layout/example/lib/typing_robot.dart:183 — super_text_layout/example/lib/typing_robot.dart:183-190 | super_text_layout/example/lib/typing_robot.dart:212-219 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_text_layout/example/lib/typing_robot.dart:183` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:196 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:196-203 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:235-242 — before extracting anything, compare `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart` and `super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 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.
D4 · Code Duplication · Edited copy of a member (22 corresponding lines) · ×8
  • Edited copy of a member (22 corresponding lines) super_editor/example/lib/demos/demo_attributed_text.dart:253 — super_editor/example/lib/demos/demo_attributed_text.dart:253-274 | website/lib/homepage/inside_the_toolbox.dart:375-396 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) super_editor/lib/src/default_editor/tasks.dart:160 — super_editor/lib/src/default_editor/tasks.dart:160-188 | super_editor/lib/src/super_reader/tasks.dart:15-36 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) super_editor/lib/src/default_editor/tap_handlers/tap_handlers.dart:75 — super_editor/lib/src/default_editor/tap_handlers/tap_handlers.dart:75-96 | super_editor/lib/src/super_reader/super_reader.dart:707-728 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1446 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1446-1470 | super_editor/lib/src/chat/message_page_scaffold.dart:936-957 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) super_text_layout/lib/src/text_layout.dart:424 — super_text_layout/lib/src/text_layout.dart:424-445 | super_text_layout/lib/src/text_layout.dart:447-468 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:430 — super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:430-451 | super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:453-479 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:612 — super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:612-637 | super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:845-866 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (22 corresponding lines) super_editor/example/lib/demos/super_reader/demo_super_reader.dart:117 — super_editor/example/lib/demos/super_reader/demo_super_reader.dart:117-138 | super_editor/example/lib/marketing_video/main_marketing_video.dart:302-325 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×8
  • Duplicated block (18 lines × 2) super_clones/google_docs/lib/infrastructure/icon_selector.dart:102 — super_clones/google_docs/lib/infrastructure/icon_selector.dart:102-119 | super_clones/quill/lib/infrastructure/popovers/icon_selector.dart:102-119 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/icon_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/icon_selector.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (18 lines × 2) super_editor/example/lib/demos/example_editor/_toolbar.dart:514 — super_editor/example/lib/demos/example_editor/_toolbar.dart:514-531 | website/lib/homepage/editor_toolbar.dart:491-508 — before extracting anything, compare `super_editor/example/lib/demos/example_editor/_toolbar.dart` and `website/lib/homepage/editor_toolbar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (18 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:884 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:884-901 | super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:787-804 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:884` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:365 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:365-382 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:470-487 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:365` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:404 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:404-421 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:509-526 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:404` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (18 lines × 2) super_editor/lib/src/default_editor/document_gestures_mouse.dart:279 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:279-296 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:798-815 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_mouse.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_mouse.dart:279` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:201 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:201-218 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:202-219 — before extracting anything, compare `super_editor/lib/src/infrastructure/content_layers_for_boxes.dart` and `super_editor/lib/src/infrastructure/content_layers_for_slivers.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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) super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:105 — super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:105-122 | super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart:60-77 — before extracting anything, compare `super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart` and `super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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.
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×8
  • Duplicated block (16 lines × 3) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:523 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:523-538 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:342-357 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:334-349 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/ios_messenger/lib/conversation/conversation_screen.dart:523` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 3) super_clones/quill/lib/editor/code_component.dart:18 — super_clones/quill/lib/editor/code_component.dart:18-33 | super_editor/lib/src/default_editor/blockquote.dart:33-48 | super_editor/lib/src/default_editor/paragraph.dart:134-149 — before extracting anything, compare `super_clones/quill/lib/editor/code_component.dart` and `super_editor/lib/src/default_editor/blockquote.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 3) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:439 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:439-454 | super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:402-417 | super_editor/lib/src/chat/super_message_mouse_interactor.dart:179-194 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:435` calls `info`, `_getDocumentOffsetFromGlobalOffset`, `fine` and `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:400` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (16 lines × 3) super_editor/lib/src/chat/super_message_mouse_interactor.dart:181 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:181-196 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:536-552 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:229-244 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 278 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_mouse_interactor.dart:181` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16 lines × 3) super_editor/lib/src/default_editor/document_gestures_mouse.dart:278 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:278-293 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:797-812 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:727-742 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_mouse.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 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 (16 lines × 3) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:579 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:579-594 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:549-564 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:280-295 — before extracting anything, compare `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `details` to `TapDownDetails` in one and `TapUpDetails` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:596` calls `_clearSelection` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:297` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (16 lines × 3) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:637 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:637-652 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:608-623 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:344-359 — before extracting anything, compare `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `details` to `TapDownDetails` in one and `TapUpDetails` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:654` calls `_clearSelection` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:361` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (16 lines × 3) super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:166 — super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:166-181 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:276-291 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:159-174 — before extracting anything, compare `super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:166` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×8
  • Duplicated block (15 lines × 2) super_editor/example/lib/demos/example_editor/_toolbar.dart:550 — super_editor/example/lib/demos/example_editor/_toolbar.dart:550-564 | website/lib/homepage/editor_toolbar.dart:527-541 — before extracting anything, compare `super_editor/example/lib/demos/example_editor/_toolbar.dart` and `website/lib/homepage/editor_toolbar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/example_editor/_toolbar.dart:550` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:126 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:126-140 | website/lib/infrastructure/super_editor_item_selector.dart:126-140 — before extracting anything, compare `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart` and `website/lib/infrastructure/super_editor_item_selector.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 133 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 (15 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1690 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1690-1704 | super_editor/lib/src/chat/message_page_scaffold.dart:1119-1133 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1690` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:423 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:423-437 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:781-795 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:423` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:281 — super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:281-295 | super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:585-599 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:281` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:601` calls `copyText` and `super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:297` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (15 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/textfield.dart:48 — super_editor/example/lib/demos/flutter_features/textinputclient/textfield.dart:48-62 | super_editor/example/lib/demos/supertextfield/_mobile_textfield_demo.dart:137-151 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/flutter_features/textinputclient/textfield.dart:48` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) super_editor/example/lib/demos/super_reader/demo_super_reader_custom_scrollview.dart:79 — super_editor/example/lib/demos/super_reader/demo_super_reader_custom_scrollview.dart:79-93 | super_editor/example/lib/demos/super_reader/demo_super_reader_listview.dart:46-60 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:285 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:285-299 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:324-338 — before extracting anything, compare `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart` and `super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×8
  • Duplicated block (10 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1500 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1500-1509 | super_editor/lib/src/chat/message_page_scaffold.dart:987-996 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1500` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1511` calls `add`, `toDiagnosticsNode` and `super_editor/lib/src/chat/message_page_scaffold.dart:998` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:434 — super_editor/lib/src/chat/super_message_android_overlays.dart:434-443 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:2008-2017 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_overlays.dart:434` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:646 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:646-655 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1086-1095 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:646` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:243 — super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:243-252 | super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:320-329 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:243` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1435 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1435-1444 | super_editor/lib/src/chat/message_page_scaffold.dart:925-934 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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 (10 lines × 2) super_editor/lib/src/chat/super_message_keyboard_interactor.dart:70 — super_editor/lib/src/chat/super_message_keyboard_interactor.dart:70-79 | super_editor/lib/src/super_reader/read_only_document_keyboard_interactor.dart:85-94 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) super_editor/example_chat/lib/floating_chat_editor_demo/floating_editor_toolbar.dart:96 — super_editor/example_chat/lib/floating_chat_editor_demo/floating_editor_toolbar.dart:96-105 | super_editor/lib/src/chat/bottom_floating/default/default_editor_toolbar.dart:408-417 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:713 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:713-722 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:727-736 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` as WHOLE FILES: this scan already matched 3 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. 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.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×7
  • Edited copy of a member (17 corresponding lines) super_editor/lib/src/default_editor/document_scrollable.dart:601 — super_editor/lib/src/default_editor/document_scrollable.dart:601-617 | super_editor/lib/src/default_editor/document_scrollable.dart:619-635 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) super_editor/lib/src/default_editor/box_component.dart:42 — super_editor/lib/src/default_editor/box_component.dart:42-58 | super_editor/lib/src/default_editor/box_component.dart:60-76 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) super_editor/lib/src/default_editor/tap_handlers/tap_handlers.dart:51 — super_editor/lib/src/default_editor/tap_handlers/tap_handlers.dart:51-73 | super_editor/lib/src/super_reader/super_reader.dart:689-705 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_node.dart:204 — super_editor/lib/src/chat/attachments/attachment_list_node.dart:204-221 | super_editor/lib/src/chat/attachments/attachment_list_node.dart:228-244 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:525 — super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:525-543 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:798-814 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) super_editor/lib/src/default_editor/default_document_editor_reactions.dart:28 — super_editor/lib/src/default_editor/default_document_editor_reactions.dart:28-46 | super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:41-57 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (17 corresponding lines) super_editor/example/lib/demos/in_the_lab/feature_ai_fade_in.dart:23 — super_editor/example/lib/demos/in_the_lab/feature_ai_fade_in.dart:23-41 | super_editor/example/lib/marketing_video/main_marketing_video.dart:26-42 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D3 · God Classes · MethodTooLong · ×6
  • MethodTooLong: DeleteContentCommand.execute super_editor/lib/src/default_editor/multi_node_editing.dart:790 — MethodTooLong — execute runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) 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: _FormattingToolbarState.build super_clones/quill/lib/editor/toolbar.dart:297 — MethodTooLong — build runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39× 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: _DocsEditorToolbarState.build super_clones/google_docs/lib/toolbar.dart:610 — MethodTooLong — build runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× 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: _RenderAboveKeyboardPageScaffold.performLayout super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1602 — MethodTooLong — performLayout runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11× 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: InsertAttachmentListCommand.execute super_editor/lib/src/chat/attachments/attachment_list_editing.dart:55 — MethodTooLong — execute runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CommonEditorOperations.insertBlockLevelNewline super_editor/lib/src/default_editor/common_editor_operations.dart:1830 — MethodTooLong — insertBlockLevelNewline runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D31 · IaC & Container Security · Medium IaC · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Edited copy of a member (21 corresponding lines) · ×6
  • Edited copy of a member (21 corresponding lines) super_editor/lib/src/infrastructure/serialization/quill/parsing/inline_formats.dart:16 — super_editor/lib/src/infrastructure/serialization/quill/parsing/inline_formats.dart:16-36 | super_editor/lib/src/infrastructure/serialization/quill/parsing/inline_formats.dart:45-65 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) super_editor/lib/src/default_editor/list_items.dart:1147 — super_editor/lib/src/default_editor/list_items.dart:1147-1169 | super_editor/lib/src/default_editor/tasks.dart:822-842 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) super_clones/quill/lib/editor/toolbar.dart:691 — super_clones/quill/lib/editor/toolbar.dart:691-720 | super_clones/quill/lib/editor/toolbar.dart:827-847 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) super_editor/lib/src/default_editor/document_ime/mobile_toolbar.dart:401 — super_editor/lib/src/default_editor/document_ime/mobile_toolbar.dart:401-421 | super_editor/lib/src/default_editor/document_ime/mobile_toolbar.dart:423-443 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:618 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:618-638 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1050-1078 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) super_editor/example/lib/demos/example_editor/example_editor.dart:163 — super_editor/example/lib/demos/example_editor/example_editor.dart:163-185 | website/lib/homepage/featured_editor.dart:84-104 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (13 corresponding lines) · ×5
  • Edited copy of a member (13 corresponding lines) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1151 — super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1151-1163 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1169-1182 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1500 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1500-1515 | super_editor/lib/src/chat/message_page_scaffold.dart:987-999 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) super_editor/lib/src/infrastructure/serialization/quill/serializing/serializers.dart:26 — super_editor/lib/src/infrastructure/serialization/quill/serializing/serializers.dart:26-38 | super_editor/lib/src/infrastructure/serialization/quill/serializing/serializers.dart:52-67 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:457 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:457-469 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:375-389 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (13 corresponding lines) super_text_layout/example/lib/main.dart:88 — super_text_layout/example/lib/main.dart:88-100 | super_text_layout/example/lib/main.dart:102-114 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (10 corresponding lines) · ×5
  • Edited copy of a member (10 corresponding lines) super_editor_clipboard/lib/src/logging.dart:15 — super_editor_clipboard/lib/src/logging.dart:15-24 | super_keyboard/lib/src/logging.dart:15-24 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:737 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:737-748 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:462-471 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:299 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:299-308 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:547-558 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1275 — super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1275-1284 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:783-792 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:657 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:657-666 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1097-1108 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×5
  • Edited copy of a member (8 corresponding lines) super_editor/example_chat/lib/floating_chat_editor_demo/floating_editor_toolbar.dart:78 — super_editor/example_chat/lib/floating_chat_editor_demo/floating_editor_toolbar.dart:78-85 | super_editor/lib/src/chat/bottom_floating/default/default_editor_toolbar.dart:497-505 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) super_editor/lib/src/default_editor/document_ime/document_ime_interaction_policies.dart:99 — super_editor/lib/src/default_editor/document_ime/document_ime_interaction_policies.dart:99-106 | super_editor/lib/src/super_reader/super_reader.dart:299-310 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) super_editor_clipboard/lib/src/logging.dart:26 — super_editor_clipboard/lib/src/logging.dart:26-33 | super_keyboard/lib/src/logging.dart:26-33 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) super_editor/example/lib/demos/example_editor/example_editor.dart:73 — super_editor/example/lib/demos/example_editor/example_editor.dart:73-81 | website/lib/homepage/featured_editor.dart:71-78 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (8 corresponding lines) super_editor/lib/src/default_editor/document_caret_overlay.dart:129 — super_editor/lib/src/default_editor/document_caret_overlay.dart:129-138 | super_editor/lib/src/infrastructure/documents/selection_leader_document_layer.dart:74-81 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (3 corresponding lines) · ×5
  • Edited copy of a member (3 corresponding lines) super_clones/google_docs/lib/infrastructure/icon_selector.dart:152 — super_clones/google_docs/lib/infrastructure/icon_selector.dart:152-154 | super_clones/quill/lib/infrastructure/popovers/icon_selector.dart:152-154 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (3 corresponding lines) super_clones/google_docs/lib/infrastructure/text_item_selector.dart:228 — super_clones/google_docs/lib/infrastructure/text_item_selector.dart:228-230 | super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart:231-233 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (3 corresponding lines) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:181 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:181-183 | website/lib/infrastructure/super_editor_item_selector.dart:181-183 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (3 corresponding lines) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:351 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:351-353 | website/lib/infrastructure/super_editor_item_selector.dart:351-353 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (3 corresponding lines) super_editor/example/lib/marketing_video/main_marketing_video.dart:473 — super_editor/example/lib/marketing_video/main_marketing_video.dart:473-475 | super_text_layout/example/lib/typing_robot.dart:255-257 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×5
  • Duplicated block (21 lines × 2) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:529 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:529-549 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:340-360 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 99 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/ios_messenger/lib/conversation/conversation_screen.dart:529` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (21 lines × 2) super_clones/quill/lib/editor/editor.dart:418 — super_clones/quill/lib/editor/editor.dart:418-438 | super_clones/quill/lib/editor/editor.dart:559-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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/quill/lib/editor/editor.dart:418` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:721 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:721-741 | super_editor/lib/src/chat/message_page_scaffold.dart:499-519 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `child` to `Element` in one and `RenderObject` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (21 lines × 2) super_editor/example/lib/main_super_text_field.dart:63 — super_editor/example/lib/main_super_text_field.dart:63-83 | super_editor/example/lib/main_super_text_field.dart:106-126 — both copies are in the same file, so extract the block into 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) super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:68 — super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:68-88 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:67-87 — before extracting anything, compare `super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Edited copy of a member (30 corresponding lines) · ×4
  • Edited copy of a member (30 corresponding lines) super_editor/lib/src/chat/bottom_floating/default/default_editor_sheet.dart:133 — super_editor/lib/src/chat/bottom_floating/default/default_editor_sheet.dart:133-162 | super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_sheet.dart:439-476 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (30 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart:183 — super_editor/lib/src/chat/attachments/attachment_list_component.dart:183-212 | super_editor/lib/src/chat/attachments/attachment_list_component.dart:217-247 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (30 corresponding lines) super_editor/lib/src/default_editor/common_editor_operations.dart:1000 — super_editor/lib/src/default_editor/common_editor_operations.dart:1000-1029 | super_editor/lib/src/default_editor/common_editor_operations.dart:1234-1263 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (30 corresponding lines) super_clones/quill/lib/editor/editor.dart:367 — super_clones/quill/lib/editor/editor.dart:367-401 | super_clones/quill/lib/editor/editor.dart:527-556 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (23 corresponding lines) · ×4
  • Edited copy of a member (23 corresponding lines) super_editor/example/lib/demos/demo_attributed_text.dart:229 — super_editor/example/lib/demos/demo_attributed_text.dart:229-251 | website/lib/homepage/inside_the_toolbox.dart:351-373 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (23 corresponding lines) super_editor/lib/src/default_editor/document_gestures_mouse.dart:247 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:247-269 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:172-194 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (23 corresponding lines) super_editor/lib/src/default_editor/list_items.dart:992 — super_editor/lib/src/default_editor/list_items.dart:992-1014 | super_editor/lib/src/default_editor/list_items.dart:1035-1060 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (23 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:903 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:903-925 | super_editor/lib/src/chat/message_page_scaffold.dart:628-650 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (24 corresponding lines) · ×4
  • Edited copy of a member (24 corresponding lines) super_clones/quill/lib/editor/blockquote_component.dart:68 — super_clones/quill/lib/editor/blockquote_component.dart:68-92 | super_clones/quill/lib/editor/code_component.dart:217-240 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:83 — super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:83-106 | super_editor/example/lib/demos/in_the_lab/feature_stable_tags.dart:84-107 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:22 — super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:22-45 | super_editor/example/lib/demos/interaction_spot_checks/spot_check_scaffold.dart:22-53 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) super_editor/example/lib/demos/supertextfield/_robot.dart:128 — super_editor/example/lib/demos/supertextfield/_robot.dart:128-151 | super_editor/example/lib/demos/supertextfield/_robot.dart:212-239 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×4
  • Edited copy of a member (15 corresponding lines) super_text_layout/lib/src/text_layout.dart:392 — super_text_layout/lib/src/text_layout.dart:392-406 | super_text_layout/lib/src/text_layout.dart:408-422 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:24 — super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:24-39 | super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:164-178 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:939 — super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:939-953 | super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:955-969 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) super_editor/example/lib/demos/demo_app_shortcuts.dart:17 — super_editor/example/lib/demos/demo_app_shortcuts.dart:17-31 | super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:31-52 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×4
  • Edited copy of a member (12 corresponding lines) super_clones/google_docs/lib/toolbar.dart:455 — super_clones/google_docs/lib/toolbar.dart:455-466 | super_editor/lib/src/default_editor/document_ime/mobile_toolbar.dart:377-388 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) super_editor/lib/src/default_editor/text.dart:1238 — super_editor/lib/src/default_editor/text.dart:1238-1249 | super_editor/lib/src/default_editor/text.dart:1251-1262 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) super_editor/lib/src/default_editor/spelling_and_grammar/spelling_and_grammar_styler.dart:100 — super_editor/lib/src/default_editor/spelling_and_grammar/spelling_and_grammar_styler.dart:100-113 | super_editor/lib/src/default_editor/text/custom_underlines.dart:19-30 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:356 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:356-367 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:354-366 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×4
  • Duplicated block (27 lines × 2) super_clones/google_docs/lib/infrastructure/color_selector.dart:141 — super_clones/google_docs/lib/infrastructure/color_selector.dart:141-167 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:141-167 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/color_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/color_selector.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 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 (27 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:461 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:461-487 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:566-592 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 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 (27 lines × 2) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:798 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:798-824 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:991-1017 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:798` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (27 lines × 2) super_editor/lib/src/default_editor/text.dart:1617 — super_editor/lib/src/default_editor/text.dart:1617-1643 | super_editor/lib/src/default_editor/text.dart:1750-1776 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text.dart:1617` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×4
  • Duplicated block (26 lines × 2) super_clones/google_docs/lib/infrastructure/color_selector.dart:219 — super_clones/google_docs/lib/infrastructure/color_selector.dart:219-244 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:218-243 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/color_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/color_selector.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (26 lines × 2) super_clones/quill/lib/editor/editor.dart:376 — super_clones/quill/lib/editor/editor.dart:376-401 | super_clones/quill/lib/editor/editor.dart:531-556 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/quill/lib/editor/editor.dart:376` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_clones/quill/lib/editor/editor.dart:372` calls `executeCommand`, `ChangeParagraphBlockTypeCommand` and `super_clones/quill/lib/editor/editor.dart:529` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (26 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1626 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1626-1651 | super_editor/lib/src/chat/message_page_scaffold.dart:1058-1083 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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 (26 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:205 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:205-230 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:244-269 — before extracting anything, compare `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart` and `super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 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.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×4
  • Duplicated block (19 lines × 3) super_clones/google_docs/lib/infrastructure/selectable_grid.dart:94 — super_clones/google_docs/lib/infrastructure/selectable_grid.dart:94-112 | super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart:94-112 | super_editor/lib/src/infrastructure/selectable_list.dart:102-120 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/selectable_grid.dart` and `super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 129 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 × 3) super_editor/lib/src/chat/super_message_android_overlays.dart:478 — super_editor/lib/src/chat/super_message_android_overlays.dart:478-496 | super_editor/lib/src/chat/super_message_ios_overlays.dart:155-173 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:2051-2069 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/chat/super_message_ios_overlays.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 121 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 3) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:805 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:805-823 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1261-1279 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1395-1413 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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 × 3) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:833 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:833-851 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1586-1604 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1025-1043 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:833` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×4
  • Duplicated block (10 lines × 4) super_clones/google_docs/lib/infrastructure/color_selector.dart:147 — super_clones/google_docs/lib/infrastructure/color_selector.dart:147-156 | super_clones/google_docs/lib/infrastructure/color_selector.dart:225-234 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:147-156 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:224-233 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/color_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/color_selector.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_clones/google_docs/lib/infrastructure/color_selector.dart:157` calls `Icon` and `super_clones/google_docs/lib/infrastructure/color_selector.dart:235` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 4) super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:143 — super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:143-152 | super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:304-313 | website/lib/infrastructure/super_editor_item_selector.dart:143-152 | website/lib/infrastructure/super_editor_item_selector.dart:304-313 — before extracting anything, compare `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart` and `website/lib/infrastructure/super_editor_item_selector.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 133 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/infrastructure/super_editor_item_selector.dart:143` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 4) super_clones/bear/macos/Runner/MainFlutterWindow.swift:11 — super_clones/bear/macos/Runner/MainFlutterWindow.swift:11-20 | super_clones/quill/macos/Runner/MainFlutterWindow.swift:11-20 | super_clones/slack/macos/Runner/MainFlutterWindow.swift:11-20 | super_editor/example/macos/Runner/MainFlutterWindow.swift:10-19 — before extracting anything, compare `super_clones/bear/macos/Runner/MainFlutterWindow.swift` and `super_clones/quill/macos/Runner/MainFlutterWindow.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_clones/bear/macos/Runner/MainFlutterWindow.swift:21` calls `NSToolbar` and `super_clones/quill/macos/Runner/MainFlutterWindow.swift:21` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 4) super_clones/google_docs/macos/Runner/MainFlutterWindow.swift:5 — super_clones/google_docs/macos/Runner/MainFlutterWindow.swift:5-14 | super_editor/example_chat/macos/Runner/MainFlutterWindow.swift:5-14 | super_editor/example_perf/macos/Runner/MainFlutterWindow.swift:5-14 | super_editor_spellcheck/example/macos/Runner/MainFlutterWindow.swift:5-14 — before extracting anything, compare `super_clones/google_docs/macos/Runner/MainFlutterWindow.swift` and `super_editor/example_chat/macos/Runner/MainFlutterWindow.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×4
  • Duplicated block (7 lines × 3) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1139 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1139-1145 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:716-722 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:730-736 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` and `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 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 (7 lines × 3) super_editor/lib/src/default_editor/list_items.dart:261 — super_editor/lib/src/default_editor/list_items.dart:261-267 | super_editor/lib/src/default_editor/paragraph.dart:211-217 | super_editor/lib/src/default_editor/tasks.dart:231-237 — before extracting anything, compare `super_editor/lib/src/default_editor/list_items.dart` and `super_editor/lib/src/default_editor/tasks.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/list_items.dart:261` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 3) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:850 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:850-856 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:738-744 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1306-1312 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_mouse.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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 (7 lines × 3) super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:128 — super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:128-134 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:1004-1010 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:1038-1044 — before extracting anything, compare `super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart` and `super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×4
  • Duplicated block (6 lines × 2) super_editor/lib/src/default_editor/common_editor_operations.dart:1076 — super_editor/lib/src/default_editor/common_editor_operations.dart:1076-1081 | super_editor/lib/src/default_editor/common_editor_operations.dart:1360-1365 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) super_clones/quill/lib/editor/code_component.dart:123 — super_clones/quill/lib/editor/code_component.dart:123-128 | super_editor/lib/src/default_editor/blockquote.dart:153-158 — before extracting anything, compare `super_clones/quill/lib/editor/code_component.dart` and `super_editor/lib/src/default_editor/blockquote.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 (6 lines × 2) super_editor/lib/src/chat/super_message_mouse_interactor.dart:347 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:347-352 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:395-400 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 278 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 (6 lines × 2) super_editor/example/lib/marketing_video/main_marketing_video.dart:477 — super_editor/example/lib/marketing_video/main_marketing_video.dart:477-482 | super_text_layout/example/lib/typing_robot.dart:259-264 — 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.
X18 · Disposal-pattern correctness · Owned disposable field is never released · ×4
  • Owned disposable field is never released super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:122 — `_TextScrollViewState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_scrollController` itself (line 122, `ScrollController`), which makes that instance its own. Nothing in the class releases it — no `_scrollController.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `ScrollController` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_scrollController.dispose();` in `dispose()` before `super.dispose()`.
  • Owned disposable field is never released super_clones/slack/lib/mobile_message_editor.dart:27 — `_MobileMessageEditorState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_scrollController` itself (line 27, `ScrollController`), which makes that instance its own. Nothing in the class releases it — no `_scrollController.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `ScrollController` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_scrollController.dispose();` in `dispose()` before `super.dispose()`.
  • Owned disposable field is never released super_clones/quill/lib/editor/toolbar.dart:46 — `_FormattingToolbarState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_imageFocusNode` itself (line 46, `FocusNode`), which makes that instance its own. Nothing in the class releases it — no `_imageFocusNode.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `FocusNode` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_imageFocusNode.dispose();` in `dispose()` before `super.dispose()`.
  • Owned disposable field is never released super_clones/ios_messenger/lib/conversation/conversation_screen.dart:451 — `_ChatEditorState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_editorFocusNode` itself (line 451, `FocusNode`), which makes that instance its own. Nothing in the class releases it — no `_editorFocusNode.dispose()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `FocusNode` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_editorFocusNode.dispose();` in `dispose()` before `super.dispose()`.
D36 · Supply-chain Provenance & Signing · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Edited copy of a member (42 corresponding lines) · ×3
  • Edited copy of a member (42 corresponding lines) super_editor/lib/src/default_editor/image.dart:228 — super_editor/lib/src/default_editor/image.dart:228-277 | super_editor/lib/src/default_editor/image.dart:421-462 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (42 corresponding lines) super_editor/lib/src/default_editor/paragraph.dart:531 — super_editor/lib/src/default_editor/paragraph.dart:531-572 | super_editor/lib/src/default_editor/tasks.dart:368-413 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (42 corresponding lines) super_editor/lib/src/default_editor/list_items.dart:1080 — super_editor/lib/src/default_editor/list_items.dart:1080-1122 | super_editor/lib/src/default_editor/tasks.dart:643-684 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (35 corresponding lines) · ×3
  • Edited copy of a member (35 corresponding lines) super_clones/google_docs/lib/infrastructure/text_item_selector.dart:128 — super_clones/google_docs/lib/infrastructure/text_item_selector.dart:128-162 | super_clones/quill/lib/infrastructure/popovers/text_item_selector.dart:128-165 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (35 corresponding lines) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:771 — super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:771-805 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:840-874 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (35 corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:348 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:348-382 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:453-487 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (45 corresponding lines) · ×3
  • Edited copy of a member (45 corresponding lines) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:523 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:523-575 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:334-378 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (45 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:954 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:954-1000 | super_editor/lib/src/chat/message_page_scaffold.dart:678-722 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (45 corresponding lines) super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:108 — super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:108-152 | super_editor/example/lib/demos/in_the_lab/feature_stable_tags.dart:109-155 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (29 corresponding lines) · ×3
  • Edited copy of a member (29 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart:84 — super_editor/lib/src/chat/super_message_android_overlays.dart:84-112 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1449-1487 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) super_clones/google_docs/lib/infrastructure/color_selector.dart:188 — super_clones/google_docs/lib/infrastructure/color_selector.dart:188-217 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:188-216 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:70 — super_editor/example/lib/demos/in_the_lab/selected_text_colors_demo.dart:70-98 | super_editor/example/lib/demos/in_the_lab/spelling_error_decorations.dart:57-96 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (32 corresponding lines) · ×3
  • Edited copy of a member (32 corresponding lines) super_editor/lib/src/default_editor/common_editor_operations.dart:1075 — super_editor/lib/src/default_editor/common_editor_operations.dart:1075-1106 | super_editor/lib/src/default_editor/common_editor_operations.dart:1359-1396 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (32 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart:265 — super_editor/lib/src/chat/attachments/attachment_list_component.dart:265-304 | super_editor/lib/src/chat/attachments/attachment_list_component.dart:424-455 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (32 corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:551 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:551-582 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:656-690 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (26 corresponding lines) · ×3
  • Edited copy of a member (26 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart:618 — super_editor/lib/src/chat/attachments/attachment_list_component.dart:618-643 | super_editor/lib/src/chat/attachments/attachment_list_component.dart:645-670 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (26 corresponding lines) super_text_layout/lib/src/super_text_layout_with_selection.dart:206 — super_text_layout/lib/src/super_text_layout_with_selection.dart:206-231 | super_text_layout/lib/src/super_text_layout_with_selection.dart:233-262 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (26 corresponding lines) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:126 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:126-151 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:161-190 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×3
  • Edited copy of a member (11 corresponding lines) super_editor/lib/src/infrastructure/flutter/material_scrollbar.dart:224 — super_editor/lib/src/infrastructure/flutter/material_scrollbar.dart:224-234 | super_editor/lib/src/infrastructure/flutter/material_scrollbar.dart:236-246 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) super_editor/lib/src/default_editor/text.dart:76 — super_editor/lib/src/default_editor/text.dart:76-86 | super_editor/lib/src/default_editor/text.dart:88-98 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart:114 — super_editor/lib/src/chat/super_message_android_overlays.dart:114-124 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1489-1499 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 14+ corresponding lines) super_editor/lib/src/default_editor/layout_single_column/_layout.dart:236 — super_editor/lib/src/default_editor/layout_single_column/_layout.dart:236-250 | super_editor/lib/src/default_editor/layout_single_column/_layout.dart:252-266 | super_editor/lib/src/default_editor/layout_single_column/_layout.dart:268-281 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 14+ corresponding lines) super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:93 — super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:93-108 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:560-573 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1501-1517 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 14+ corresponding lines) super_editor/lib/src/default_editor/horizontal_rule.dart:103 — super_editor/lib/src/default_editor/horizontal_rule.dart:103-116 | super_editor/lib/src/default_editor/image.dart:145-158 | super_editor/lib/src/default_editor/image.dart:346-359 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (7 corresponding lines) · ×3
  • Edited copy of a member (7 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:91 — super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:91-97 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:99-105 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:83 — super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:83-89 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:91-97 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) super_editor/example/lib/demos/editor_configs/demo_mobile_editing_android.dart:46 — super_editor/example/lib/demos/editor_configs/demo_mobile_editing_android.dart:46-52 | super_editor/example/lib/demos/editor_configs/demo_mobile_editing_ios.dart:56-64 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×3
  • Duplicated block (32 lines × 2) super_clones/google_docs/lib/infrastructure/icon_selector.dart:69 — super_clones/google_docs/lib/infrastructure/icon_selector.dart:69-100 | super_clones/quill/lib/infrastructure/popovers/icon_selector.dart:69-100 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/icon_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/icon_selector.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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 (32 lines × 2) super_clones/quill/lib/editor/editor.dart:319 — super_clones/quill/lib/editor/editor.dart:319-350 | super_clones/quill/lib/editor/editor.dart:480-511 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/quill/lib/editor/editor.dart:319` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (32 lines × 2) super_editor/lib/src/default_editor/box_component.dart:405 — super_editor/lib/src/default_editor/box_component.dart:405-436 | super_editor/lib/src/default_editor/paragraph.dart:1120-1151 — 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.
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×3
  • Duplicated block (31 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:670 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:670-700 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:501-531 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 285 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:670` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (31 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:284 — super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:284-314 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:892-922 — before extracting anything, compare `super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart` and `super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (31 lines × 2) super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart:79 — super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart:79-109 | super_editor/example/lib/demos/supertextfield/_static_multi_line_demo.dart:78-108 — before extracting anything, compare `super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart` and `super_editor/example/lib/demos/supertextfield/_static_multi_line_demo.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 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.
D4 · Code Duplication · Duplicated block (14–15 lines × 2) · ×3
  • Duplicated block (14–15 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:187 — super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:187-200 | super_editor/lib/src/infrastructure/sliver_hybrid_stack.dart:60-74 — 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–15 lines × 2) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:497 — super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:497-510 | super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:555-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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:497` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `change` to `TextInsertionEvent` in one and `TextDeletedEvent` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (14–15 lines × 2) super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:256 — super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:256-270 | super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart:89-102 — before extracting anything, compare `super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart` and `super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_simple.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example_chat/lib/floating_chat_editor_demo/floating_chat_editor_demo_configured.dart:256` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×3
  • Duplicated block (13 lines × 3) super_clones/quill/lib/editor/toolbar.dart:1196 — super_clones/quill/lib/editor/toolbar.dart:1196-1208 | super_editor/example/lib/demos/example_editor/_toolbar.dart:754-766 | website/lib/homepage/editor_toolbar.dart:715-727 — before extracting anything, compare `super_clones/quill/lib/editor/toolbar.dart` and `super_editor/example/lib/demos/example_editor/_toolbar.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 3) super_editor/lib/src/default_editor/blockquote.dart:111 — super_editor/lib/src/default_editor/blockquote.dart:111-123 | super_editor/lib/src/default_editor/list_items.dart:264-276 | super_editor/lib/src/default_editor/tasks.dart:234-246 — before extracting anything, compare `super_editor/lib/src/default_editor/list_items.dart` and `super_editor/lib/src/default_editor/tasks.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/blockquote.dart:111` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 3) super_editor/lib/src/default_editor/text.dart:1600 — super_editor/lib/src/default_editor/text.dart:1600-1612 | super_editor/lib/src/default_editor/text.dart:1730-1742 | super_editor/lib/src/default_editor/text.dart:1873-1885 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text.dart:1600` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×3
  • Duplicated block (9 lines × 3) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1014 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1014-1022 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:925-933 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:505-513 — before extracting anything, compare `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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 (9 lines × 3) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1024 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1024-1032 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:935-943 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:515-523 — before extracting anything, compare `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1036` calls `maybeOf` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:527` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 3) super_editor/lib/src/default_editor/list_items.dart:105 — super_editor/lib/src/default_editor/list_items.dart:105-113 | super_editor/lib/src/default_editor/paragraph.dart:99-107 | super_editor/lib/src/default_editor/tasks.dart:102-110 — before extracting anything, compare `super_editor/lib/src/default_editor/list_items.dart` and `super_editor/lib/src/default_editor/tasks.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
AC3 · Page structure · Multiple navigation landmarks without distinguishing labels · ×2
  • Multiple navigation landmarks without distinguishing labels doc/website/source/_includes/layouts/docs_page.jinja:3 — With more than one navigation landmark, each needs an aria-label/aria-labelledby (e.g. "Primary", "Footer") so assistive tech can tell them apart. At least one nav here is unlabelled.
  • Multiple navigation landmarks without distinguishing labels doc/website/source/index.jinja:7 — With more than one navigation landmark, each needs an aria-label/aria-labelledby (e.g. "Primary", "Footer") so assistive tech can tell them apart. At least one nav here is unlabelled.
AC4 · Keyboard semantics · Anchor without href · ×2
  • Anchor without href doc/website/source/_includes/layouts/docs_page.jinja:102 — An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
  • Anchor without href super_keyboard/doc/website/source/_includes/layouts/docs_page.jinja:90 — An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action.
D1 · Cyclomatic Complexity · _SelectableGridState._onKeyEvent (cyclomatic 18) · ×2
  • _SelectableGridState._onKeyEvent (cyclomatic 18) super_clones/google_docs/lib/infrastructure/selectable_grid.dart:158 — _SelectableGridState._onKeyEvent 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.
  • _SelectableGridState._onKeyEvent (cyclomatic 18) super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart:158 — _SelectableGridState._onKeyEvent 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.
D2 · Cognitive Complexity · _SelectableGridState._onKeyEvent (cognitive 24) · ×2
  • _SelectableGridState._onKeyEvent (cognitive 24) super_clones/google_docs/lib/infrastructure/selectable_grid.dart:158 — _SelectableGridState._onKeyEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 4 (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.
  • _SelectableGridState._onKeyEvent (cognitive 24) super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart:158 — _SelectableGridState._onKeyEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 4 (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.
D35 · Change Coupling · Change-coupling hub · ×2
  • Change-coupling hub: android_textfield.dart → desktop_textfield.dart, editing_controls.dart, ios_textfield.dart super_editor/lib/src/super_textfield/android/android_textfield.dart — `super_editor/lib/src/super_textfield/android/android_textfield.dart` changes together with 3 other files — `super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart`, `super_editor/lib/src/super_textfield/ios/editing_controls.dart`, `super_editor/lib/src/super_textfield/ios/ios_textfield.dart` — 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.
  • Change-coupling hub: document_gestures_touch_android.dart → document_gestures_touch_ios.dart, ios_document_controls.dart, read_only_document_ios_touch_interactor.dart super_editor/lib/src/default_editor/document_gestures_touch_android.dart — `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` changes together with 3 other files — `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart`, `super_editor/lib/src/infrastructure/platforms/ios/ios_document_controls.dart`, `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` — 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 · Edited copy of a member (68 corresponding lines) · ×2
  • Edited copy of a member (68 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:181 — super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:181-264 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:296-363 — These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (68 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:743 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:743-814 | super_editor/lib/src/chat/message_page_scaffold.dart:521-588 — These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (53 corresponding lines) · ×2
  • Edited copy of a member (53 corresponding lines) super_editor/lib/src/default_editor/list_items.dart:581 — super_editor/lib/src/default_editor/list_items.dart:581-633 | super_editor/lib/src/default_editor/list_items.dart:763-816 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (53 corresponding lines) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:474 — super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:474-526 | super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:528-590 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (49 corresponding lines) · ×2
  • Edited copy of a member (49 corresponding lines) super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:748 — super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:748-796 | super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:798-868 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (49 corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:384 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:384-432 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:489-537 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (41 corresponding lines) · ×2
  • Edited copy of a member (41 corresponding lines) super_editor/example/lib/demos/demo_attributed_text.dart:23 — super_editor/example/lib/demos/demo_attributed_text.dart:23-63 | website/lib/homepage/inside_the_toolbox.dart:196-236 — These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (41 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:665 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:665-707 | super_editor/lib/src/chat/message_page_scaffold.dart:457-497 — These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (19 corresponding lines) · ×2
  • Edited copy of a member (19 corresponding lines) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:284 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:284-302 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:175-211 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) website/lib/homepage/call_to_action.dart:40 — website/lib/homepage/call_to_action.dart:40-66 | website/lib/homepage/header.dart:188-206 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×2
  • Edited copy of a member (28 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1787 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1787-1814 | super_editor/lib/src/chat/message_page_scaffold.dart:1195-1222 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (28 corresponding lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:498 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:498-526 | super_editor/lib/src/chat/message_page_scaffold.dart:398-425 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (33 corresponding lines) · ×2
  • Edited copy of a member (33 corresponding lines) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:235 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:235-267 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:246-286 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) super_editor/lib/src/default_editor/default_document_editor_reactions.dart:135 — super_editor/lib/src/default_editor/default_document_editor_reactions.dart:135-167 | super_editor/lib/src/default_editor/default_document_editor_reactions.dart:330-362 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 21+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 21+ corresponding lines) super_clones/quill/lib/editor/toolbar.dart:927 — super_clones/quill/lib/editor/toolbar.dart:927-947 | super_clones/quill/lib/editor/toolbar.dart:992-1012 | super_clones/quill/lib/editor/toolbar.dart:1058-1078 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 21+ corresponding lines) super_editor/lib/src/chat/super_message_ios_overlays.dart:296 — super_editor/lib/src/chat/super_message_ios_overlays.dart:296-325 | super_editor_spellcheck/lib/src/super_editor/spelling_error_suggestion_overlay.dart:886-906 | super_editor_spellcheck/lib/src/super_editor/spelling_error_suggestion_overlay.dart:1034-1056 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 20+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 20+ corresponding lines) super_editor/lib/src/chat/super_message_keyboard_interactor.dart:49 — super_editor/lib/src/chat/super_message_keyboard_interactor.dart:49-68 | super_editor/lib/src/default_editor/document_hardware_keyboard/document_physical_keyboard.dart:71-98 | super_editor/lib/src/super_reader/read_only_document_keyboard_interactor.dart:64-83 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 20+ corresponding lines) super_clones/quill/lib/editor/blockquote_component.dart:11 — super_clones/quill/lib/editor/blockquote_component.dart:11-33 | super_clones/quill/lib/editor/code_component.dart:47-66 | super_editor/lib/src/default_editor/blockquote.dart:64-84 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 30+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 30+ corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart:410 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:410-439 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:621-650 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:473-503 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 30+ corresponding lines) super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:71 — super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:71-100 | super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:123-152 | super_editor/example/lib/demos/interaction_spot_checks/spot_check_scaffold.dart:55-84 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 18+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 18+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:722 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:722-739 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1476-1502 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:897-923 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 18+ corresponding lines) super_keyboard/example/lib/main.dart:169 — super_keyboard/example/lib/main.dart:169-186 | super_keyboard/example/lib/main.dart:188-211 | super_keyboard/example/lib/main.dart:213-231 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 17+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 17+ corresponding lines) super_editor/lib/src/chat/super_message_ios_overlays.dart:175 — super_editor/lib/src/chat/super_message_ios_overlays.dart:175-191 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1776-1793 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1195-1211 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 17+ corresponding lines) super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:154 — super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:154-172 | super_editor/example/lib/demos/in_the_lab/feature_pattern_tags.dart:95-111 | super_editor/example/lib/demos/in_the_lab/feature_stable_tags.dart:157-175 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 14+ corresponding lines) · ×2
  • Edited copies of one member (4 members, 14+ corresponding lines) super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:102 — super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:102-115 | super_editor/lib/src/infrastructure/content_layers_for_boxes.dart:137-150 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:103-116 | super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:138-151 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
  • Edited copies of one member (4 members, 14+ corresponding lines) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:383 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:383-399 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:183-196 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:293-310 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:176-190 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 3+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 3+ corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart:137 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:137-139 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:200-205 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:152-154 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 3+ corresponding lines) super_editor/lib/src/default_editor/paragraph.dart:109 — super_editor/lib/src/default_editor/paragraph.dart:109-112 | super_editor/lib/src/default_editor/tasks.dart:112-120 | super_editor/lib/src/default_editor/text.dart:197-199 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (6 corresponding lines) · ×2
  • Edited copy of a member (6 corresponding lines) super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:110 — super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:110-115 | super_editor/lib/src/default_editor/document_ime/document_ime_interaction_policies.dart:326-332 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (6 corresponding lines) super_editor/example/lib/marketing_video/main_marketing_video.dart:466 — super_editor/example/lib/marketing_video/main_marketing_video.dart:466-471 | super_text_layout/example/lib/typing_robot.dart:243-253 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (56 lines × 2) · ×2
  • Duplicated block (56 lines × 2) super_clones/google_docs/lib/infrastructure/selectable_grid.dart:181 — super_clones/google_docs/lib/infrastructure/selectable_grid.dart:181-236 | super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart:181-236 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/selectable_grid.dart` and `super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 129 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/google_docs/lib/infrastructure/selectable_grid.dart:181` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (56 lines × 2) super_editor/example/lib/demos/demo_animated_task_height.dart:131 — super_editor/example/lib/demos/demo_animated_task_height.dart:131-186 | super_editor/example_perf/lib/demos/rebuild_demo.dart:137-192 — before extracting anything, compare `super_editor/example/lib/demos/demo_animated_task_height.dart` and `super_editor/example_perf/lib/demos/rebuild_demo.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 95 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/demo_animated_task_height.dart:131` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_editor/example_perf/lib/demos/rebuild_demo.dart:136` calls `Text` and `super_editor/example/lib/demos/demo_animated_task_height.dart:130` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×2
  • Duplicated block (29 lines × 2) super_clones/google_docs/lib/infrastructure/selectable_grid.dart:238 — super_clones/google_docs/lib/infrastructure/selectable_grid.dart:238-266 | super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart:238-266 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/selectable_grid.dart` and `super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 129 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 (29 lines × 2) super_editor/example/lib/main.dart:181 — super_editor/example/lib/main.dart:181-209 | super_editor/example_perf/lib/main.dart:126-154 — before extracting anything, compare `super_editor/example/lib/main.dart` and `super_editor/example_perf/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×2
  • Duplicated block (25 lines × 2) super_editor/lib/src/default_editor/list_items.dart:609 — super_editor/lib/src/default_editor/list_items.dart:609-633 | super_editor/lib/src/default_editor/list_items.dart:792-816 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/list_items.dart:609` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (25 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:392 — super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:392-416 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:444-468 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:392` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (24 lines × 3) · ×2
  • Duplicated block (24 lines × 3) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:639 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:639-662 | super_editor/example_chat/lib/keyboard_panel_scaffold/keyboard_panel_scaffold_demo.dart:276-299 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:683-706 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 127 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (24 lines × 3) super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:77 — super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:77-100 | super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:129-152 | super_editor/example/lib/demos/interaction_spot_checks/spot_check_scaffold.dart:61-84 — before extracting anything, compare `super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart` and `super_editor/example/lib/demos/interaction_spot_checks/spot_check_scaffold.dart` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/in_the_lab/in_the_lab_scaffold.dart:77` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (23–24 lines × 2) · ×2
  • Duplicated block (23–24 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:479 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:479-502 | super_editor/lib/src/chat/super_message_android_touch_interactor.dart:560-582 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:479` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (23–24 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:891 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:891-913 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1344-1367 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:891` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16–17 lines × 3) · ×2
  • Duplicated block (16–17 lines × 3) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:870 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:870-885 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1325-1341 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1041-1057 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:870` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16–17 lines × 3) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:773 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:773-788 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1526-1542 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:967-983 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:773` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×2
  • Duplicated block (17 lines × 3) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1339 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1339-1355 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1540-1556 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:981-997 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 285 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1339` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 3) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:534 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:534-550 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:507-523 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:227-243 — before extracting anything, compare `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×2
  • Duplicated block (15 lines × 3) super_editor/lib/src/chat/super_message_mouse_interactor.dart:482 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:482-496 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:816-830 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:545-559 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_mouse.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 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 (15 lines × 3) super_clones/bear/macos/Runner/MainFlutterWindow.swift:5 — super_clones/bear/macos/Runner/MainFlutterWindow.swift:5-19 | super_clones/quill/macos/Runner/MainFlutterWindow.swift:5-19 | super_clones/slack/macos/Runner/MainFlutterWindow.swift:5-19 — before extracting anything, compare `super_clones/bear/macos/Runner/MainFlutterWindow.swift` and `super_clones/quill/macos/Runner/MainFlutterWindow.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/bear/macos/Runner/MainFlutterWindow.swift:5` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_clones/bear/macos/Runner/MainFlutterWindow.swift:21` calls `NSToolbar` and `super_clones/quill/macos/Runner/MainFlutterWindow.swift:21` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×2
  • Duplicated block (14 lines × 3) super_editor/lib/src/default_editor/text.dart:1582 — super_editor/lib/src/default_editor/text.dart:1582-1595 | super_editor/lib/src/default_editor/text.dart:1712-1725 | super_editor/lib/src/default_editor/text.dart:1853-1866 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text.dart:1582` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 3) super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:238 — super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:238-251 | super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:361-374 | super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:589-602 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:238` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (13–14 lines × 2) · ×2
  • Duplicated block (13–14 lines × 2) super_editor/lib/src/chat/super_message_ios_overlays.dart:211 — super_editor/lib/src/chat/super_message_ios_overlays.dart:211-224 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1229-1241 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_overlays.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_overlays.dart:211` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind `readerContext` to `DocumentContext` in one and `SuperReaderContext` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (13–14 lines × 2) super_editor/lib/src/default_editor/paragraph.dart:531 — super_editor/lib/src/default_editor/paragraph.dart:531-544 | super_editor/lib/src/default_editor/tasks.dart:368-380 — before extracting anything, compare `super_editor/lib/src/default_editor/paragraph.dart` and `super_editor/lib/src/default_editor/tasks.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/paragraph.dart:531` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×2
  • Duplicated block (12 lines × 3) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:586 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:586-597 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1105-1116 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:694-705 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:586` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 3) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:601 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:601-612 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1120-1131 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:709-720 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:601` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×2
  • Duplicated block (11 lines × 3) super_clones/quill/lib/editor/editor.dart:179 — super_clones/quill/lib/editor/editor.dart:179-189 | super_editor/lib/src/default_editor/text.dart:1598-1608 | super_editor/lib/src/default_editor/text.dart:1728-1738 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/quill/lib/editor/editor.dart:179` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_editor/lib/src/default_editor/text.dart:1725` calls `info` and `super_clones/quill/lib/editor/editor.dart:176` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 3) super_editor/lib/src/chat/super_message_mouse_interactor.dart:315 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:315-325 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:482-492 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:363-373 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_mouse.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_mouse_interactor.dart:315` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×2
  • Duplicated block (8 lines × 3) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:594 — super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:594-601 | super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:172-179 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:1085-1092 — before extracting anything, compare `super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart` and `super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 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) super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:146 — super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart:146-153 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:1025-1032 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:1059-1066 — before extracting anything, compare `super_editor/lib/src/default_editor/text_tokenizing/pattern_tags.dart` and `super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 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.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×2
  • Duplicated block (5 lines × 2) super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:316 — super_editor/lib/src/infrastructure/content_layers_for_slivers.dart:316-320 | super_editor/lib/src/infrastructure/sliver_hybrid_stack.dart:173-177 — 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) super_editor/lib/src/infrastructure/serialization/markdown/markdown_inline_parser.dart:78 — super_editor/lib/src/infrastructure/serialization/markdown/markdown_inline_parser.dart:78-82 | super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:1021-1025 — 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.
D4 · Code Duplication · Edited copies of one member (3 members, 15+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 15+ corresponding lines) super_editor/example/lib/demos/editor_configs/demo_mobile_editing_android.dart:30 — super_editor/example/lib/demos/editor_configs/demo_mobile_editing_android.dart:30-44 | super_editor/example/lib/demos/editor_configs/demo_mobile_editing_ios.dart:34-54 | super_editor/example/lib/demos/example_editor/example_editor.dart:53-71 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 15+ corresponding lines) super_editor/example/lib/demos/components/demo_unselectable_hr.dart:51 — super_editor/example/lib/demos/components/demo_unselectable_hr.dart:51-65 | super_editor/example/lib/demos/demo_animated_task_height.dart:50-66 | super_editor/example_perf/lib/demos/rebuild_demo.dart:53-68 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D5 · Coupling · Off the main sequence · ×2
  • Off the main sequence: super_editor — super_editor: abstractness 0.08, instability 0.00, distance 0.92 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
  • Off the main sequence: super_text_layout — super_text_layout: abstractness 0.10, instability 0.00, distance 0.90 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.6 · ×1
  • Low contrast colour pair in CSS (2.6:1) doc/website/source/styles/homepage.scss:174 — `.highlight` sets color: WHITE on background-color: #50A7F8 — 2.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · _KeyboardEditingToolbarState._buildToolbar (cyclomatic 38) · ×1
  • _KeyboardEditingToolbarState._buildToolbar (cyclomatic 38) super_editor/lib/src/default_editor/document_ime/mobile_toolbar.dart:174 — _KeyboardEditingToolbarState._buildToolbar has cyclomatic complexity 38 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · LinkifyReaction._tryUpdateLinkAttribution (cyclomatic 31) · ×1
  • LinkifyReaction._tryUpdateLinkAttribution (cyclomatic 31) super_editor/lib/src/default_editor/default_document_editor_reactions.dart:797 — LinkifyReaction._tryUpdateLinkAttribution has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _MarkdownToDocument.visitElementBefore (cyclomatic 31) · ×1
  • _MarkdownToDocument.visitElementBefore (cyclomatic 31) super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:169 — _MarkdownToDocument.visitElementBefore has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · DefaultSuperTextFieldKeyboardHandlers.moveUpDownLeftAndRightWithArrowKeys (cyclomatic 29) · ×1
  • DefaultSuperTextFieldKeyboardHandlers.moveUpDownLeftAndRightWithArrowKeys (cyclomatic 29) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:2352 — DefaultSuperTextFieldKeyboardHandlers.moveUpDownLeftAndRightWithArrowKeys 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.
D1 · Cyclomatic Complexity · DeleteContentCommand.execute (cyclomatic 28) · ×1
  • DeleteContentCommand.execute (cyclomatic 28) super_editor/lib/src/default_editor/multi_node_editing.dart:790 — DeleteContentCommand.execute has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _EditorSelectionAndFocusPolicyState._onFocusChange (cyclomatic 26) · ×1
  • _EditorSelectionAndFocusPolicyState._onFocusChange (cyclomatic 26) super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:117 — _EditorSelectionAndFocusPolicyState._onFocusChange has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _IosDocumentTouchInteractorState._onTapUp (cyclomatic 26) · ×1
  • _IosDocumentTouchInteractorState._onTapUp (cyclomatic 26) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:703 — _IosDocumentTouchInteractorState._onTapUp has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TextBlockDeltaSerializer._serializeLine (cyclomatic 26) · ×1
  • TextBlockDeltaSerializer._serializeLine (cyclomatic 26) super_editor/lib/src/infrastructure/serialization/quill/serializing/serializers.dart:184 — TextBlockDeltaSerializer._serializeLine has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LinkifyReaction.react (cyclomatic 24) · ×1
  • LinkifyReaction.react (cyclomatic 24) super_editor/lib/src/default_editor/default_document_editor_reactions.dart:651 — LinkifyReaction.react has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TagUserReaction._removeInvalidTags (cyclomatic 24) · ×1
  • TagUserReaction._removeInvalidTags (cyclomatic 24) super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:523 — TagUserReaction._removeInvalidTags has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DragGestureRecognizer.handleEvent (cyclomatic 24) · ×1
  • DragGestureRecognizer.handleEvent (cyclomatic 24) super_editor/lib/src/infrastructure/flutter/monodrag.dart:542 — DragGestureRecognizer.handleEvent has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AttributedSpans.addAttribution (cyclomatic 23) · ×1
  • AttributedSpans.addAttribution (cyclomatic 23) attributed_text/lib/src/attributed_spans.dart:311 — AttributedSpans.addAttribution has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CommonEditorOperations.deleteUpstream (cyclomatic 23) · ×1
  • CommonEditorOperations.deleteUpstream (cyclomatic 23) super_editor/lib/src/default_editor/common_editor_operations.dart:1108 — CommonEditorOperations.deleteUpstream has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TextComponentViewModel.textViewModelEquals (cyclomatic 23) · ×1
  • TextComponentViewModel.textViewModelEquals (cyclomatic 23) super_editor/lib/src/default_editor/text.dart:655 — TextComponentViewModel.textViewModelEquals has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SuperEditorImageSyntax._parseInlineBareDestinationLink (cyclomatic 23) · ×1
  • SuperEditorImageSyntax._parseInlineBareDestinationLink (cyclomatic 23) super_editor/lib/src/infrastructure/serialization/markdown/image_syntax.dart:386 — SuperEditorImageSyntax._parseInlineBareDestinationLink has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · UpdateComposerTextStylesReaction._updateComposerStylesAtCaret (cyclomatic 22) · ×1
  • UpdateComposerTextStylesReaction._updateComposerStylesAtCaret (cyclomatic 22) super_editor/lib/src/default_editor/composer/composer_reactions.dart:86 — UpdateComposerTextStylesReaction._updateComposerStylesAtCaret has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · _ImeFocusPolicyState._onFocusChange (cyclomatic 22) · ×1
  • _ImeFocusPolicyState._onFocusChange (cyclomatic 22) super_editor/lib/src/default_editor/document_ime/document_ime_interaction_policies.dart:108 — _ImeFocusPolicyState._onFocusChange has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · TagUserReaction._commitCompletedComposingTag (cyclomatic 22) · ×1
  • TagUserReaction._commitCompletedComposingTag (cyclomatic 22) super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:784 — TagUserReaction._commitCompletedComposingTag has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SuperEditorImageSyntax._parseInlineBracketedLink (cyclomatic 22) · ×1
  • SuperEditorImageSyntax._parseInlineBracketedLink (cyclomatic 22) super_editor/lib/src/infrastructure/serialization/markdown/image_syntax.dart:310 — SuperEditorImageSyntax._parseInlineBracketedLink has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DeleteAttachmentFromListCommand.execute (cyclomatic 19) · ×1
  • DeleteAttachmentFromListCommand.execute (cyclomatic 19) super_editor/lib/src/chat/attachments/attachment_list_editing.dart:233 — DeleteAttachmentFromListCommand.execute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SingleColumnLayoutPresenter._notifyListenersOfChanges (cyclomatic 19) · ×1
  • SingleColumnLayoutPresenter._notifyListenersOfChanges (cyclomatic 19) super_editor/lib/src/default_editor/layout_single_column/_presenter.dart:205 — SingleColumnLayoutPresenter._notifyListenersOfChanges has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SingleColumnLayoutSelectionStyler._applySelection (cyclomatic 19) · ×1
  • SingleColumnLayoutSelectionStyler._applySelection (cyclomatic 19) super_editor/lib/src/default_editor/layout_single_column/_styler_user_selection.dart:84 — SingleColumnLayoutSelectionStyler._applySelection has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ParagraphNodeSerializer.doSerialization (cyclomatic 19) · ×1
  • ParagraphNodeSerializer.doSerialization (cyclomatic 19) super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:281 — ParagraphNodeSerializer.doSerialization 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.
D1 · Cyclomatic Complexity · AttributedSpans.collapseSpans (cyclomatic 18) · ×1
  • AttributedSpans.collapseSpans (cyclomatic 18) attributed_text/lib/src/attributed_spans.dart:1017 — AttributedSpans.collapseSpans has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CommonEditorOperations.getDocumentPositionAfterExpandedDeletion (cyclomatic 18) · ×1
  • CommonEditorOperations.getDocumentPositionAfterExpandedDeletion (cyclomatic 18) super_editor/lib/src/default_editor/common_editor_operations.dart:1440 — CommonEditorOperations.getDocumentPositionAfterExpandedDeletion has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SuperEditorState.didUpdateWidget (cyclomatic 17) · ×1
  • SuperEditorState.didUpdateWidget (cyclomatic 17) super_editor/lib/src/default_editor/super_editor.dart:495 — SuperEditorState.didUpdateWidget has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HeaderNodeSerializer.doSerialization (cyclomatic 17) · ×1
  • HeaderNodeSerializer.doSerialization (cyclomatic 17) super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:585 — HeaderNodeSerializer.doSerialization has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SpellingAndGrammarReaction.react (cyclomatic 17) · ×1
  • SpellingAndGrammarReaction.react (cyclomatic 17) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:401 — SpellingAndGrammarReaction.react has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DeleteSelectionCommand.execute (cyclomatic 16) · ×1
  • DeleteSelectionCommand.execute (cyclomatic 16) super_editor/lib/src/default_editor/multi_node_editing.dart:1416 — DeleteSelectionCommand.execute has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ScrollbarPainter.shouldRepaint (cyclomatic 16) · ×1
  • ScrollbarPainter.shouldRepaint (cyclomatic 16) super_editor/lib/src/infrastructure/flutter/scrollbar.dart:1873 — ScrollbarPainter.shouldRepaint has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · TapSequenceGestureRecognizer._checkUp (cyclomatic 16) · ×1
  • TapSequenceGestureRecognizer._checkUp (cyclomatic 16) super_editor/lib/src/infrastructure/multi_tap_gesture.dart:360 — TapSequenceGestureRecognizer._checkUp 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.
D2 · Cognitive Complexity · _EditorSelectionAndFocusPolicyState._onFocusChange (cognitive 57) · ×1
  • _EditorSelectionAndFocusPolicyState._onFocusChange (cognitive 57) super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:117 — _EditorSelectionAndFocusPolicyState._onFocusChange has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (48 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · TagUserReaction._removeInvalidTags (cognitive 54) · ×1
  • TagUserReaction._removeInvalidTags (cognitive 54) super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:523 — TagUserReaction._removeInvalidTags has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (36 pts), ternaries 4 (10 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TextBlockDeltaSerializer._serializeLine (cognitive 52) · ×1
  • TextBlockDeltaSerializer._serializeLine (cognitive 52) super_editor/lib/src/infrastructure/serialization/quill/serializing/serializers.dart:184 — TextBlockDeltaSerializer._serializeLine has cognitive complexity 52 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 5 (11 pts), ternaries 5 (9 pts), boolean chains 4 (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.
D2 · Cognitive Complexity · DeleteContentCommand.execute (cognitive 51) · ×1
  • DeleteContentCommand.execute (cognitive 51) super_editor/lib/src/default_editor/multi_node_editing.dart:790 — DeleteContentCommand.execute has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (37 pts), ternaries 5 (10 pts), boolean chains 4 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _IosDocumentTouchInteractorState._onTapUp (cognitive 45) · ×1
  • _IosDocumentTouchInteractorState._onTapUp (cognitive 45) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:703 — _IosDocumentTouchInteractorState._onTapUp has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 10, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LinkifyReaction.react (cognitive 43) · ×1
  • LinkifyReaction.react (cognitive 43) super_editor/lib/src/default_editor/default_document_editor_reactions.dart:651 — LinkifyReaction.react has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (33 pts), boolean chains 9, 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.
D2 · Cognitive Complexity · LinkifyReaction._tryUpdateLinkAttribution (cognitive 43) · ×1
  • LinkifyReaction._tryUpdateLinkAttribution (cognitive 43) super_editor/lib/src/default_editor/default_document_editor_reactions.dart:797 — LinkifyReaction._tryUpdateLinkAttribution has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 13, ternaries 3 (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.
D2 · Cognitive Complexity · CommonEditorOperations.deleteUpstream (cognitive 42) · ×1
  • CommonEditorOperations.deleteUpstream (cognitive 42) super_editor/lib/src/default_editor/common_editor_operations.dart:1108 — CommonEditorOperations.deleteUpstream has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (38 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AttributedSpans.addAttribution (cognitive 41) · ×1
  • AttributedSpans.addAttribution (cognitive 41) attributed_text/lib/src/attributed_spans.dart:311 — AttributedSpans.addAttribution has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 3 (7 pts), boolean chains 5, ternaries 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · SuperEditorImageSyntax._parseInlineBareDestinationLink (cognitive 41) · ×1
  • SuperEditorImageSyntax._parseInlineBareDestinationLink (cognitive 41) super_editor/lib/src/infrastructure/serialization/markdown/image_syntax.dart:386 — SuperEditorImageSyntax._parseInlineBareDestinationLink has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (34 pts), boolean chains 4, match/switch 1 (2 pts), loops 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.
D2 · Cognitive Complexity · TagUserReaction._commitCompletedComposingTag (cognitive 39) · ×1
  • TagUserReaction._commitCompletedComposingTag (cognitive 39) super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:784 — TagUserReaction._commitCompletedComposingTag has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 7, loops 3 (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.
D2 · Cognitive Complexity · _KeyboardEditingToolbarState._buildToolbar (cognitive 37) · ×1
  • _KeyboardEditingToolbarState._buildToolbar (cognitive 37) super_editor/lib/src/default_editor/document_ime/mobile_toolbar.dart:174 — _KeyboardEditingToolbarState._buildToolbar has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 21, ternaries 16. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · SuperEditorImageSyntax._parseInlineBracketedLink (cognitive 36) · ×1
  • SuperEditorImageSyntax._parseInlineBracketedLink (cognitive 36) super_editor/lib/src/infrastructure/serialization/markdown/image_syntax.dart:310 — SuperEditorImageSyntax._parseInlineBracketedLink has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 7, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DragGestureRecognizer.handleEvent (cognitive 34) · ×1
  • DragGestureRecognizer.handleEvent (cognitive 34) super_editor/lib/src/infrastructure/flutter/monodrag.dart:542 — DragGestureRecognizer.handleEvent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 5 (11 pts), boolean chains 7, match/switch 2 (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.
D2 · Cognitive Complexity · CommonEditorOperations.getDocumentPositionAfterExpandedDeletion (cognitive 30) · ×1
  • CommonEditorOperations.getDocumentPositionAfterExpandedDeletion (cognitive 30) super_editor/lib/src/default_editor/common_editor_operations.dart:1440 — CommonEditorOperations.getDocumentPositionAfterExpandedDeletion has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 5 (11 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.
D2 · Cognitive Complexity · _MarkdownToDocument.visitElementBefore (cognitive 30) · ×1
  • _MarkdownToDocument.visitElementBefore (cognitive 30) super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart:169 — _MarkdownToDocument.visitElementBefore has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultSuperTextFieldKeyboardHandlers.moveUpDownLeftAndRightWithArrowKeys (cognitive 30) · ×1
  • DefaultSuperTextFieldKeyboardHandlers.moveUpDownLeftAndRightWithArrowKeys (cognitive 30) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:2352 — DefaultSuperTextFieldKeyboardHandlers.moveUpDownLeftAndRightWithArrowKeys has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 13 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · DeleteAttachmentFromListCommand.execute (cognitive 29) · ×1
  • DeleteAttachmentFromListCommand.execute (cognitive 29) super_editor/lib/src/chat/attachments/attachment_list_editing.dart:233 — DeleteAttachmentFromListCommand.execute has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 6, ternaries 2 (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.
D2 · Cognitive Complexity · SingleColumnLayoutComposingRegionStyler._computeNodeSelection (cognitive 27) · ×1
  • SingleColumnLayoutComposingRegionStyler._computeNodeSelection (cognitive 27) super_editor/lib/src/default_editor/layout_single_column/_styler_composing_region.dart:106 — SingleColumnLayoutComposingRegionStyler._computeNodeSelection has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 8 (11 pts), error handling 1 (2 pts), loops 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.
D2 · Cognitive Complexity · SingleColumnLayoutSelectionStyler._applySelection (cognitive 27) · ×1
  • SingleColumnLayoutSelectionStyler._applySelection (cognitive 27) super_editor/lib/src/default_editor/layout_single_column/_styler_user_selection.dart:84 — SingleColumnLayoutSelectionStyler._applySelection has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (9 pts), boolean chains 7, error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SingleColumnLayoutSelectionStyler._computeNodeSelection (cognitive 27) · ×1
  • SingleColumnLayoutSelectionStyler._computeNodeSelection (cognitive 27) super_editor/lib/src/default_editor/layout_single_column/_styler_user_selection.dart:170 — SingleColumnLayoutSelectionStyler._computeNodeSelection has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 8 (11 pts), error handling 1 (2 pts), loops 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.
D2 · Cognitive Complexity · SuperEditorState.didUpdateWidget (cognitive 27) · ×1
  • SuperEditorState.didUpdateWidget (cognitive 27) super_editor/lib/src/default_editor/super_editor.dart:495 — SuperEditorState.didUpdateWidget has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ToggleTextAttributionsCommand.execute (cognitive 27) · ×1
  • ToggleTextAttributionsCommand.execute (cognitive 27) super_editor/lib/src/default_editor/text.dart:1853 — ToggleTextAttributionsCommand.execute has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (4 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AttributedSpans.collapseSpans (cognitive 26) · ×1
  • AttributedSpans.collapseSpans (cognitive 26) attributed_text/lib/src/attributed_spans.dart:1017 — AttributedSpans.collapseSpans has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (9 pts), boolean chains 5, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CommonEditorOperations.deleteDownstream (cognitive 25) · ×1
  • CommonEditorOperations.deleteDownstream (cognitive 25) super_editor/lib/src/default_editor/common_editor_operations.dart:907 — CommonEditorOperations.deleteDownstream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (24 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.
D2 · Cognitive Complexity · TextBlockDeltaSerializer.getInlineAttributesFor (cognitive 25) · ×1
  • TextBlockDeltaSerializer.getInlineAttributesFor (cognitive 25) super_editor/lib/src/infrastructure/serialization/quill/serializing/serializers.dart:334 — TextBlockDeltaSerializer.getInlineAttributesFor has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (24 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.
D2 · Cognitive Complexity · UpdateComposerTextStylesReaction._updateComposerStylesAtCaret (cognitive 24) · ×1
  • UpdateComposerTextStylesReaction._updateComposerStylesAtCaret (cognitive 24) super_editor/lib/src/default_editor/composer/composer_reactions.dart:86 — UpdateComposerTextStylesReaction._updateComposerStylesAtCaret has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DeleteSelectionCommand.execute (cognitive 24) · ×1
  • DeleteSelectionCommand.execute (cognitive 24) super_editor/lib/src/default_editor/multi_node_editing.dart:1416 — DeleteSelectionCommand.execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SpellingAndGrammarReaction.react (cognitive 24) · ×1
  • SpellingAndGrammarReaction.react (cognitive 24) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:401 — SpellingAndGrammarReaction.react has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3, boolean chains 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.
D2 · Cognitive Complexity · _IosDocumentTouchInteractorState._onDoubleTapUp (cognitive 23) · ×1
  • _IosDocumentTouchInteractorState._onDoubleTapUp (cognitive 23) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:860 — _IosDocumentTouchInteractorState._onDoubleTapUp has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _SingleColumnDocumentLayoutState.getDocumentSelectionInRegion (cognitive 23) · ×1
  • _SingleColumnDocumentLayoutState.getDocumentSelectionInRegion (cognitive 23) super_editor/lib/src/default_editor/layout_single_column/_layout.dart:390 — _SingleColumnDocumentLayoutState.getDocumentSelectionInRegion has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 4 (8 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.
D2 · Cognitive Complexity · TapSequenceGestureRecognizer._onTapTimeout (cognitive 23) · ×1
  • TapSequenceGestureRecognizer._onTapTimeout (cognitive 23) super_editor/lib/src/infrastructure/multi_tap_gesture.dart:244 — TapSequenceGestureRecognizer._onTapTimeout has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (23 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AttributedSpans.getAttributionSpansInRange (cognitive 22) · ×1
  • AttributedSpans.getAttributionSpansInRange (cognitive 22) attributed_text/lib/src/attributed_spans.dart:201 — AttributedSpans.getAttributionSpansInRange has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 2 (8 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.
D2 · Cognitive Complexity · _ImeFocusPolicyState._onFocusChange (cognitive 22) · ×1
  • _ImeFocusPolicyState._onFocusChange (cognitive 22) super_editor/lib/src/default_editor/document_ime/document_ime_interaction_policies.dart:108 — _ImeFocusPolicyState._onFocusChange has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 9 (10 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · _DocumentSelectionOpenAndCloseImePolicyState._onSelectionChange (cognitive 22) · ×1
  • _DocumentSelectionOpenAndCloseImePolicyState._onSelectionChange (cognitive 22) super_editor/lib/src/default_editor/document_ime/document_ime_interaction_policies.dart:353 — _DocumentSelectionOpenAndCloseImePolicyState._onSelectionChange has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SingleColumnLayoutPresenter._notifyListenersOfChanges (cognitive 22) · ×1
  • SingleColumnLayoutPresenter._notifyListenersOfChanges (cognitive 22) super_editor/lib/src/default_editor/layout_single_column/_presenter.dart:205 — SingleColumnLayoutPresenter._notifyListenersOfChanges has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4, boolean chains 3, 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.
D2 · Cognitive Complexity · TextComponentViewModel.textViewModelEquals (cognitive 22) · ×1
  • TextComponentViewModel.textViewModelEquals (cognitive 22) super_editor/lib/src/default_editor/text.dart:655 — TextComponentViewModel.textViewModelEquals has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 22. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · ParagraphNodeSerializer.doSerialization (cognitive 22) · ×1
  • ParagraphNodeSerializer.doSerialization (cognitive 22) super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:281 — ParagraphNodeSerializer.doSerialization has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 4, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · TapSequenceGestureRecognizer._checkUp (cognitive 21) · ×1
  • TapSequenceGestureRecognizer._checkUp (cognitive 21) super_editor/lib/src/infrastructure/multi_tap_gesture.dart:360 — TapSequenceGestureRecognizer._checkUp has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EquivalentQuillDocumentMatcher._calculateMismatchReason (cognitive 21) · ×1
  • EquivalentQuillDocumentMatcher._calculateMismatchReason (cognitive 21) super_editor/lib/src/infrastructure/serialization/quill/testing/quill_delta_comparison.dart:41 — EquivalentQuillDocumentMatcher._calculateMismatchReason 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.
D2 · Cognitive Complexity · _SuperMessageIosTouchInteractorState._onDoubleTapUp (cognitive 20) · ×1
  • _SuperMessageIosTouchInteractorState._onDoubleTapUp (cognitive 20) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:434 — _SuperMessageIosTouchInteractorState._onDoubleTapUp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _SuperReaderIosDocumentTouchInteractorState._onDoubleTapUp (cognitive 20) · ×1
  • _SuperReaderIosDocumentTouchInteractorState._onDoubleTapUp (cognitive 20) super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:539 — _SuperReaderIosDocumentTouchInteractorState._onDoubleTapUp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultAndroidSuperMessageToolbar._textInSelection (cognitive 19) · ×1
  • DefaultAndroidSuperMessageToolbar._textInSelection (cognitive 19) super_editor/lib/src/chat/super_message_android_overlays.dart:901 — DefaultAndroidSuperMessageToolbar._textInSelection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (9 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultIOSSuperMessageToolbar._textInSelection (cognitive 19) · ×1
  • DefaultIOSSuperMessageToolbar._textInSelection (cognitive 19) super_editor/lib/src/chat/super_message_ios_overlays.dart:364 — DefaultIOSSuperMessageToolbar._textInSelection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (9 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CommonEditorOperations._textInSelection (cognitive 19) · ×1
  • CommonEditorOperations._textInSelection (cognitive 19) super_editor/lib/src/default_editor/common_editor_operations.dart:2312 — CommonEditorOperations._textInSelection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (9 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _DocumentMouseInteractorState._onDoubleTapDown (cognitive 19) · ×1
  • _DocumentMouseInteractorState._onDoubleTapDown (cognitive 19) super_editor/lib/src/default_editor/document_gestures_mouse.dart:336 — _DocumentMouseInteractorState._onDoubleTapDown has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _DocumentMouseInteractorState._selectRegion (cognitive 19) · ×1
  • _DocumentMouseInteractorState._selectRegion (cognitive 19) super_editor/lib/src/default_editor/document_gestures_mouse.dart:652 — _DocumentMouseInteractorState._selectRegion has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 5 (9 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.
D2 · Cognitive Complexity · _AndroidDocumentTouchInteractorState._onTapUp (cognitive 19) · ×1
  • _AndroidDocumentTouchInteractorState._onTapUp (cognitive 19) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:781 — _AndroidDocumentTouchInteractorState._onTapUp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, loops 1 (2 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.
D2 · Cognitive Complexity · _KeyboardScaffoldSafeAreaState._chooseBottomInsets (cognitive 19) · ×1
  • _KeyboardScaffoldSafeAreaState._chooseBottomInsets (cognitive 19) super_editor/lib/src/infrastructure/keyboard_panel_scaffold.dart:1232 — _KeyboardScaffoldSafeAreaState._chooseBottomInsets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 1 (2 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.
D2 · Cognitive Complexity · SuperEditorImageSyntax._parseTitle (cognitive 19) · ×1
  • SuperEditorImageSyntax._parseTitle (cognitive 19) super_editor/lib/src/infrastructure/serialization/markdown/image_syntax.dart:181 — SuperEditorImageSyntax._parseTitle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _SuperTextFieldImeInteractorState._updateSelectionAndImeConnectionOnFocusChange (cognitive 19) · ×1
  • _SuperTextFieldImeInteractorState._updateSelectionAndImeConnectionOnFocusChange (cognitive 19) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1568 — _SuperTextFieldImeInteractorState._updateSelectionAndImeConnectionOnFocusChange has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (8 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.
D2 · Cognitive Complexity · TapSequenceGestureRecognizer.addAllowedPointer (cognitive 18) · ×1
  • TapSequenceGestureRecognizer.addAllowedPointer (cognitive 18) super_editor/lib/src/infrastructure/multi_tap_gesture.dart:88 — TapSequenceGestureRecognizer.addAllowedPointer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ItemSelectionListState._onKeyEvent (cognitive 18) · ×1
  • ItemSelectionListState._onKeyEvent (cognitive 18) super_editor/lib/src/infrastructure/selectable_list.dart:163 — ItemSelectionListState._onKeyEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · _ReadOnlyAndroidDocumentTouchInteractorState._onDoubleTapDown (cognitive 18) · ×1
  • _ReadOnlyAndroidDocumentTouchInteractorState._onDoubleTapDown (cognitive 18) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:576 — _ReadOnlyAndroidDocumentTouchInteractorState._onDoubleTapDown has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (18 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SpellingAndGrammarReaction._findSpellingAndGrammarErrors (cognitive 18) · ×1
  • SpellingAndGrammarReaction._findSpellingAndGrammarErrors (cognitive 18) super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart:668 — SpellingAndGrammarReaction._findSpellingAndGrammarErrors has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _RenderAboveKeyboardPageScaffold.performLayout (cognitive 17) · ×1
  • _RenderAboveKeyboardPageScaffold.performLayout (cognitive 17) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1602 — _RenderAboveKeyboardPageScaffold.performLayout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), match/switch 3 (6 pts), ternaries 1 (2 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.
D2 · Cognitive Complexity · _IosDocumentTouchInteractorState._onTripleTapUp (cognitive 17) · ×1
  • _IosDocumentTouchInteractorState._onTripleTapUp (cognitive 17) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:957 — _IosDocumentTouchInteractorState._onTripleTapUp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _SingleColumnDocumentLayoutState._binarySearchComponentIndexAtOffset (cognitive 17) · ×1
  • _SingleColumnDocumentLayoutState._binarySearchComponentIndexAtOffset (cognitive 17) super_editor/lib/src/default_editor/layout_single_column/_layout.dart:835 — _SingleColumnDocumentLayoutState._binarySearchComponentIndexAtOffset has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 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.
D2 · Cognitive Complexity · DragGestureRecognizer._getMaxSumDeltaPointer (cognitive 17) · ×1
  • DragGestureRecognizer._getMaxSumDeltaPointer (cognitive 17) super_editor/lib/src/infrastructure/flutter/monodrag.dart:412 — DragGestureRecognizer._getMaxSumDeltaPointer 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.
D2 · Cognitive Complexity · RawScrollbarWithCustomPhysicsState._handleScrollNotification (cognitive 17) · ×1
  • RawScrollbarWithCustomPhysicsState._handleScrollNotification (cognitive 17) super_editor/lib/src/infrastructure/flutter/scrollbar.dart:860 — RawScrollbarWithCustomPhysicsState._handleScrollNotification has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 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.
D2 · Cognitive Complexity · HeaderNodeSerializer.doSerialization (cognitive 17) · ×1
  • HeaderNodeSerializer.doSerialization (cognitive 17) super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:585 — HeaderNodeSerializer.doSerialization has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · AttributedTextEditingController._moveCaretDownstream (cognitive 17) · ×1
  • AttributedTextEditingController._moveCaretDownstream (cognitive 17) super_editor/lib/src/super_textfield/infrastructure/attributed_text_editing_controller.dart:798 — AttributedTextEditingController._moveCaretDownstream has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (7 pts), boolean chains 4, if/else 4, loops 1 (2 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.
D2 · Cognitive Complexity · SuperKeyboardPlugin.onApplyWindowInsets (cognitive 17) · ×1
  • SuperKeyboardPlugin.onApplyWindowInsets (cognitive 17) super_keyboard/android/src/main/kotlin/com/flutterbountyhunters/superkeyboard/super_keyboard/SuperKeyboardPlugin.kt:235 — SuperKeyboardPlugin.onApplyWindowInsets has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 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.
D2 · Cognitive Complexity · AttributedSpans.getMatchingAttributionsWithin (cognitive 16) · ×1
  • AttributedSpans.getMatchingAttributionsWithin (cognitive 16) attributed_text/lib/src/attributed_spans.dart:87 — AttributedSpans.getMatchingAttributionsWithin has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RenderMessagePageScaffold.performLayout (cognitive 16) · ×1
  • RenderMessagePageScaffold.performLayout (cognitive 16) super_editor/lib/src/chat/message_page_scaffold.dart:1041 — RenderMessagePageScaffold.performLayout has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), match/switch 3 (6 pts), ternaries 1 (2 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.
D2 · Cognitive Complexity · _SuperMessageMouseInteractorState._onDoubleTapDown (cognitive 16) · ×1
  • _SuperMessageMouseInteractorState._onDoubleTapDown (cognitive 16) super_editor/lib/src/chat/super_message_mouse_interactor.dart:229 — _SuperMessageMouseInteractorState._onDoubleTapDown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _AndroidDocumentTouchInteractorState._onDoubleTapDown (cognitive 16) · ×1
  • _AndroidDocumentTouchInteractorState._onDoubleTapDown (cognitive 16) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:859 — _AndroidDocumentTouchInteractorState._onDoubleTapDown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TextDeltasDocumentEditor.applyDeltas (cognitive 16) · ×1
  • TextDeltasDocumentEditor.applyDeltas (cognitive 16) super_editor/lib/src/default_editor/document_ime/document_delta_editing.dart:50 — TextDeltasDocumentEditor.applyDeltas has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3, loops 2 (3 pts), ternaries 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.
D2 · Cognitive Complexity · _SingleColumnDocumentLayoutState.getRectForSelection (cognitive 16) · ×1
  • _SingleColumnDocumentLayoutState.getRectForSelection (cognitive 16) super_editor/lib/src/default_editor/layout_single_column/_layout.dart:283 — _SingleColumnDocumentLayoutState.getRectForSelection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (4 pts), loops 2 (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.
D2 · Cognitive Complexity · RemoveTextAttributionsCommand.execute (cognitive 16) · ×1
  • RemoveTextAttributionsCommand.execute (cognitive 16) super_editor/lib/src/default_editor/text.dart:1712 — RemoveTextAttributionsCommand.execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 3 (4 pts), ternaries 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.
D2 · Cognitive Complexity · TableBlockNodeSerializer.doSerialization (cognitive 16) · ×1
  • TableBlockNodeSerializer.doSerialization (cognitive 16) super_editor/lib/src/infrastructure/serialization/markdown/document_to_markdown_serializer.dart:650 — TableBlockNodeSerializer.doSerialization has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 4 (7 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _ReadOnlyDocumentMouseInteractorState._onDoubleTapDown (cognitive 16) · ×1
  • _ReadOnlyDocumentMouseInteractorState._onDoubleTapDown (cognitive 16) super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:277 — _ReadOnlyDocumentMouseInteractorState._onDoubleTapDown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ImeAttributedTextEditingController.updateEditingValueWithDeltas (cognitive 16) · ×1
  • ImeAttributedTextEditingController.updateEditingValueWithDeltas (cognitive 16) super_editor/lib/src/super_textfield/input_method_engine/_ime_text_editing_controller.dart:309 — ImeAttributedTextEditingController.updateEditingValueWithDeltas has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 2 (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.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (5 members, 40 shared lines) · ×1
  • Near-duplicate member family (5 members, 40 shared lines) super_clones/google_docs/lib/toolbar.dart:1147 — super_clones/google_docs/lib/toolbar.dart:1147-1199 | super_clones/quill/lib/editor/toolbar.dart:492-544 | super_clones/quill/lib/editor/toolbar.dart:562-614 | super_editor/example/lib/demos/example_editor/_toolbar.dart:691-744 | website/lib/homepage/editor_toolbar.dart:652-705 — These 5 members are variants of one another: a block of 40 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 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.
D4 · Code Duplication · Near-duplicate member pair (93 shared lines) · ×1
  • Near-duplicate member pair (93 shared lines) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1602 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1602-1785 | super_editor/lib/src/chat/message_page_scaffold.dart:1041-1193 — These two members are variants of one another: 93 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 · Near-duplicate member pair (56 shared lines) · ×1
  • Near-duplicate member pair (56 shared lines) super_editor/lib/src/chat/super_message_android_overlays.dart:316 — super_editor/lib/src/chat/super_message_android_overlays.dart:316-432 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1897-2006 — These two members are variants of one another: 56 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 (6 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (6 members, 50+ identical tokens) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:858 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:858-917 | super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:761-828 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1314-1370 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1504-1581 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1034-1090 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:945-1020 — 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.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (5 members, 50+ identical tokens) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:405 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:405-429 | super_clones/slack/lib/mobile_message_editor.dart:198-225 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:198-225 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:316-343 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:196-223 — 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.
D4 · Code Duplication · Edited copies of one member (3 members, 105+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 105+ corresponding lines) super_editor/lib/src/default_editor/text.dart:1582 — super_editor/lib/src/default_editor/text.dart:1582-1686 | super_editor/lib/src/default_editor/text.dart:1712-1820 | super_editor/lib/src/default_editor/text.dart:1853-1997 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 105 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (66 corresponding lines) · ×1
  • Edited copy of a member (66 corresponding lines) super_keyboard/lib/src/super_keyboard_android.dart:99 — super_keyboard/lib/src/super_keyboard_android.dart:99-177 | super_keyboard/lib/src/super_keyboard_ios.dart:102-167 — These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 59+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 59+ corresponding lines) super_clones/quill/lib/editor/toolbar.dart:722 — super_clones/quill/lib/editor/toolbar.dart:722-781 | super_clones/quill/lib/editor/toolbar.dart:849-910 | super_clones/quill/lib/editor/toolbar.dart:1080-1138 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 59 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 61+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 61+ corresponding lines) super_clones/google_docs/lib/infrastructure/selectable_grid.dart:158 — super_clones/google_docs/lib/infrastructure/selectable_grid.dart:158-236 | super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart:158-236 | super_editor/lib/src/infrastructure/selectable_list.dart:163-223 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 61 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (56 corresponding lines) · ×1
  • Edited copy of a member (56 corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart:172 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:172-227 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:220-275 — These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 57+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 57+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:434 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:434-497 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:576-632 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:539-602 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 57 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (70 corresponding lines) · ×1
  • Edited copy of a member (70 corresponding lines) super_editor/lib/src/default_editor/document_gestures_mouse.dart:336 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:336-407 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:860-929 — These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (46 corresponding lines) · ×1
  • Edited copy of a member (46 corresponding lines) super_clones/quill/lib/editor/editor.dart:319 — super_clones/quill/lib/editor/editor.dart:319-365 | super_clones/quill/lib/editor/editor.dart:480-525 — These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (59 corresponding lines) · ×1
  • Edited copy of a member (59 corresponding lines) super_editor/lib/src/default_editor/multi_node_editing.dart:1207 — super_editor/lib/src/default_editor/multi_node_editing.dart:1207-1265 | super_editor/lib/src/default_editor/multi_node_editing.dart:1267-1341 — These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 45+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 45+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:499 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:499-543 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:957-1019 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:604-649 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 45 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (40 corresponding lines) · ×1
  • Edited copy of a member (40 corresponding lines) super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:389 — super_editor/lib/src/default_editor/text_tokenizing/action_tags.dart:389-428 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:441-480 — These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 33+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 33+ corresponding lines) super_editor/lib/src/default_editor/blockquote.dart:88 — super_editor/lib/src/default_editor/blockquote.dart:88-123 | super_editor/lib/src/default_editor/list_items.dart:244-276 | super_editor/lib/src/default_editor/paragraph.dart:190-228 | super_editor/lib/src/default_editor/tasks.dart:211-246 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 48+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 48+ corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:472 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:472-525 | super_editor/lib/src/chat/super_message_android_touch_interactor.dart:553-600 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:458-513 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:859-918 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:946-1003 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 48 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 38+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 38+ corresponding lines) super_clones/quill/lib/editor/code_component.dart:7 — super_clones/quill/lib/editor/code_component.dart:7-45 | super_editor/lib/src/default_editor/blockquote.dart:22-62 | super_editor/lib/src/default_editor/paragraph.dart:126-163 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (39 corresponding lines) · ×1
  • Edited copy of a member (39 corresponding lines) super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:894 — super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:894-932 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:828-867 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (25 corresponding lines) · ×1
  • Edited copy of a member (25 corresponding lines) super_clones/quill/lib/editor/toolbar.dart:245 — super_clones/quill/lib/editor/toolbar.dart:245-269 | super_clones/quill/lib/editor/toolbar.dart:271-295 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (36 corresponding lines) · ×1
  • Edited copy of a member (36 corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart:544 — super_editor/lib/src/chat/attachments/attachment_list_component.dart:544-579 | super_editor/lib/src/chat/attachments/attachment_list_component.dart:581-616 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 32+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 32+ corresponding lines) super_clones/slack/lib/main.dart:126 — super_clones/slack/lib/main.dart:126-157 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:24-60 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:59-96 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:23-59 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 24+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 24+ corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:325 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:325-349 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:575-601 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:459-482 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 23+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 23+ corresponding lines) super_editor/lib/src/chat/super_message_android_overlays.dart:587 — super_editor/lib/src/chat/super_message_android_overlays.dart:587-609 | super_editor/lib/src/chat/super_message_ios_overlays.dart:203-229 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:399-421 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1223-1245 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 22+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 22+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:830 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:830-851 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1583-1604 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1022-1043 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 26+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 26+ corresponding lines) super_editor/lib/src/chat/super_message_mouse_interactor.dart:354 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:354-379 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:553-580 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:402-429 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 25+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 25+ corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:51 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:51-75 | super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:50-74 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:69-93 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:67-91 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:59-83 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (6 members, 14+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 14+ corresponding lines) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:584 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:584-597 | super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:599-612 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1103-1116 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1118-1131 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:692-705 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:707-720 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 23+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 23+ corresponding lines) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:399 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:399-421 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:756-779 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:479-503 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 18+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 18+ corresponding lines) super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:742 — super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:742-759 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:807-824 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:876-894 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:910-928 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:930-949 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 21+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 21+ corresponding lines) super_editor/lib/src/default_editor/paragraph.dart:1411 — super_editor/lib/src/default_editor/paragraph.dart:1411-1435 | super_editor/lib/src/default_editor/paragraph.dart:1449-1470 | super_editor/lib/src/default_editor/paragraph.dart:1527-1554 | super_editor/lib/src/default_editor/tasks.dart:1089-1109 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 10+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 10+ corresponding lines) super_editor_spellcheck/macos/Classes/SuperEditorSpellcheckPlugin.swift:84 — super_editor_spellcheck/macos/Classes/SuperEditorSpellcheckPlugin.swift:84-93 | super_editor_spellcheck/macos/Classes/SuperEditorSpellcheckPlugin.swift:102-111 | super_editor_spellcheck/macos/Classes/SuperEditorSpellcheckPlugin.swift:223-232 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 15+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 15+ corresponding lines) super_editor/lib/src/chat/super_message.dart:672 — super_editor/lib/src/chat/super_message.dart:672-686 | super_editor/lib/src/chat/super_message_android_overlays.dart:554-569 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:366-381 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:2098-2112 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 17+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 17+ corresponding lines) super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:238 — super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:238-254 | super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:260-276 | super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:282-298 | super_editor/lib/src/infrastructure/serialization/quill/parsing/block_formats.dart:304-320 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 13+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 13+ corresponding lines) super_editor/lib/src/default_editor/multi_node_editing.dart:407 — super_editor/lib/src/default_editor/multi_node_editing.dart:407-419 | super_editor/lib/src/default_editor/multi_node_editing.dart:441-453 | super_editor/lib/src/default_editor/multi_node_editing.dart:677-691 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 11+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 11+ corresponding lines) super_editor/lib/src/chat/attachments/attachment_list_component.dart:97 — super_editor/lib/src/chat/attachments/attachment_list_component.dart:97-109 | super_editor/lib/src/default_editor/horizontal_rule.dart:136-147 | super_editor/lib/src/default_editor/image.dart:178-188 | super_editor/lib/src/default_editor/image.dart:379-389 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 11+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 11+ corresponding lines) super_editor/lib/src/default_editor/list_items.dart:85 — super_editor/lib/src/default_editor/list_items.dart:85-96 | super_editor/lib/src/default_editor/paragraph.dart:65-77 | super_editor/lib/src/default_editor/text.dart:171-181 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 9+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 9+ corresponding lines) super_clones/quill/lib/deltas/deltas_display.dart:32 — super_clones/quill/lib/deltas/deltas_display.dart:32-40 | super_editor/example/lib/main_super_editor.dart:132-140 | super_editor/lib/src/chat/bottom_floating/default/default_editor_sheet.dart:58-66 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 8+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 8+ corresponding lines) super_clones/google_docs/lib/app.dart:11 — super_clones/google_docs/lib/app.dart:11-22 | super_clones/ios_messenger/lib/app.dart:7-14 | super_clones/medium/lib/main.dart:11-36 | super_clones/obsidian/lib/main.dart:31-44 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (5 corresponding lines) · ×1
  • Edited copy of a member (5 corresponding lines) super_editor/lib/src/core/document_layout.dart:386 — super_editor/lib/src/core/document_layout.dart:386-390 | super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart:1219-1223 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (55 lines × 4) · ×1
  • Duplicated block (55 lines × 4) super_editor/example/lib/demos/super_reader/demo_super_reader.dart:57 — super_editor/example/lib/demos/super_reader/demo_super_reader.dart:57-111 | super_editor/lib/src/chat/super_message_android_overlays.dart:901-955 | super_editor/lib/src/chat/super_message_ios_overlays.dart:364-418 | super_editor/lib/src/default_editor/common_editor_operations.dart:2312-2366 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/chat/super_message_ios_overlays.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 121 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (53 lines × 2) · ×1
  • Duplicated block (53 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1504 — super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1504-1556 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:945-997 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 185 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1504` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (51 lines × 2) · ×1
  • Duplicated block (51 lines × 2) super_editor/lib/src/chat/super_message_mouse_interactor.dart:236 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:236-286 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:284-334 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 278 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_mouse_interactor.dart:236` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (49–50 lines × 2) · ×1
  • Duplicated block (49–50 lines × 2) super_editor/lib/src/chat/super_message_mouse_interactor.dart:556 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:556-604 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:620-669 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 278 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_mouse_interactor.dart:556` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (47 lines × 2) · ×1
  • Duplicated block (47 lines × 2) super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:181 — super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:181-227 | super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:296-342 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text_tokenizing/stable_tags.dart:181` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (41 lines × 2) · ×1
  • Duplicated block (41 lines × 2) super_editor/lib/src/chat/super_message_mouse_interactor.dart:300 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:300-340 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:348-388 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 278 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_mouse_interactor.dart:300` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (37 lines × 3) · ×1
  • Duplicated block (37 lines × 3) super_editor/lib/src/chat/super_message_mouse_interactor.dart:498 — super_editor/lib/src/chat/super_message_mouse_interactor.dart:498-534 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:832-868 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:561-597 — before extracting anything, compare `super_editor/lib/src/chat/super_message_mouse_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_mouse.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 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.
D4 · Code Duplication · Duplicated block (34 lines × 2) · ×1
  • Duplicated block (34 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:665 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:665-698 | super_editor/lib/src/chat/message_page_scaffold.dart:457-490 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:665` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (31–34 lines × 2) · ×1
  • Duplicated block (31–34 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:963 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:963-996 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:975-1005 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 285 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:963` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (33 lines × 2) · ×1
  • Duplicated block (33 lines × 2) super_clones/google_docs/lib/infrastructure/color_selector.dart:99 — super_clones/google_docs/lib/infrastructure/color_selector.dart:99-131 | super_clones/quill/lib/infrastructure/popovers/color_selector.dart:99-131 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/color_selector.dart` and `super_clones/quill/lib/infrastructure/popovers/color_selector.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 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.
D4 · Code Duplication · Duplicated block (25–29 lines × 2) · ×1
  • Duplicated block (25–29 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1314 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1314-1342 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:1034-1058 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` and `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1314` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (28 lines × 5) · ×1
  • Duplicated block (28 lines × 5) super_clones/google_docs/lib/toolbar.dart:1162 — super_clones/google_docs/lib/toolbar.dart:1162-1189 | super_clones/quill/lib/editor/toolbar.dart:507-534 | super_clones/quill/lib/editor/toolbar.dart:577-604 | super_editor/example/lib/demos/example_editor/_toolbar.dart:706-733 | website/lib/homepage/editor_toolbar.dart:667-694 — before extracting anything, compare `super_clones/quill/lib/editor/toolbar.dart` and `super_editor/example/lib/demos/example_editor/_toolbar.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/google_docs/lib/toolbar.dart:1162` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (22–27 lines × 3) · ×1
  • Duplicated block (22–27 lines × 3) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:506 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:506-527 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:641-667 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:612-633 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:506` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind `details` to `TapUpDetails` in one and `TapDownDetails` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (24–27 lines × 2) · ×1
  • Duplicated block (24–27 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1718 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1718-1744 | super_editor/lib/src/chat/message_page_scaffold.dart:1149-1172 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1718` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (26 lines × 3) · ×1
  • Duplicated block (26 lines × 3) super_clones/quill/lib/editor/toolbar.dart:744 — super_clones/quill/lib/editor/toolbar.dart:744-769 | super_clones/quill/lib/editor/toolbar.dart:874-899 | super_clones/quill/lib/editor/toolbar.dart:1102-1127 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/quill/lib/editor/toolbar.dart:744` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (22–25 lines × 6) · ×1
  • Duplicated block (22–25 lines × 6) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:448 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:448-469 | super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:506-527 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:583-607 | super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:641-664 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:553-574 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:612-633 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:448` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `details` to `TapUpDetails` in one and `TapDownDetails` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:471` calls `_clearSelection` and `super_editor/lib/src/super_reader/read_only_document_android_touch_interactor.dart:609` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (21–25 lines × 5) · ×1
  • Duplicated block (21–25 lines × 5) super_editor/lib/src/default_editor/document_gestures_mouse.dart:344 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:344-364 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:466-486 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:867-891 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:954-977 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:966-986 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_mouse.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/document_gestures_mouse.dart:344` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `details` to `TapDownDetails` in one and `TapUpDetails` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (25 lines × 3) · ×1
  • Duplicated block (25 lines × 3) super_clones/google_docs/lib/infrastructure/selectable_grid.dart:170 — super_clones/google_docs/lib/infrastructure/selectable_grid.dart:170-194 | super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart:170-194 | super_editor/lib/src/infrastructure/selectable_list.dart:173-197 — before extracting anything, compare `super_clones/google_docs/lib/infrastructure/selectable_grid.dart` and `super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 129 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/google_docs/lib/infrastructure/selectable_grid.dart:170` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×1
  • Duplicated block (24 lines × 2) super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:503 — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:503-526 | super_editor/lib/src/chat/message_page_scaffold.dart:402-425 — before extracting anything, compare `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart` and `super_editor/lib/src/chat/message_page_scaffold.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 279 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:503` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (22–24 lines × 2) · ×1
  • Duplicated block (22–24 lines × 2) super_editor/lib/src/default_editor/common_editor_operations.dart:2696 — super_editor/lib/src/default_editor/common_editor_operations.dart:2696-2719 | super_editor/lib/src/default_editor/common_editor_operations.dart:2804-2825 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/common_editor_operations.dart:2696` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×1
  • Duplicated block (23 lines × 2) super_editor/lib/src/chat/super_message_android_overlays.dart:518 — super_editor/lib/src/chat/super_message_android_overlays.dart:518-540 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:2091-2113 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 231 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (20–21 lines × 3) · ×1
  • Duplicated block (20–21 lines × 3) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:325 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:325-344 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:575-594 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:459-479 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:325` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:595` calls `_ensureSelectionExtentIsVisible` and `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:345` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18–20 lines × 5) · ×1
  • Duplicated block (18–20 lines × 5) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:405 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:405-422 | super_clones/slack/lib/mobile_message_editor.dart:198-217 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:198-217 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:316-335 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:196-215 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_clones/slack/lib/mobile_message_editor.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/ios_messenger/lib/conversation/conversation_screen.dart:405` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_clones/ios_messenger/lib/conversation/conversation_screen.dart:403` calls `GlobalKey` and `super_clones/slack/lib/mobile_message_editor.dart:196` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (20 lines × 4) · ×1
  • Duplicated block (20 lines × 4) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:527 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:527-546 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:428-447 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:920-939 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:931-950 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_mouse.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:527` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:547` calls `ClearComposingRegionRequest` and `super_editor/lib/src/default_editor/document_gestures_mouse.dart:448` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18–19 lines × 3) · ×1
  • Duplicated block (18–19 lines × 3) super_editor/lib/src/default_editor/text.dart:2407 — super_editor/lib/src/default_editor/text.dart:2407-2424 | super_editor/lib/src/default_editor/text.dart:2539-2556 | super_editor/lib/src/default_editor/text.dart:2563-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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/text.dart:2407` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (16–19 lines × 2) · ×1
  • Duplicated block (16–19 lines × 2) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:495 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:495-513 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:891-906 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 135 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:495` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:907` calls `selectContentUnitAt` and `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:516` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (17–18 lines × 3) · ×1
  • Duplicated block (17–18 lines × 3) super_editor/lib/src/chat/attachments/attachment_list_editing.dart:107 — super_editor/lib/src/chat/attachments/attachment_list_editing.dart:107-123 | super_editor/lib/src/chat/attachments/attachment_list_editing.dart:130-146 | super_editor/lib/src/chat/attachments/attachment_list_editing.dart:193-210 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/attachments/attachment_list_editing.dart:107` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (14–18 lines × 3) · ×1
  • Duplicated block (14–18 lines × 3) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:492 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:492-509 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:881-898 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:889-902 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:492` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `super_editor/lib/src/default_editor/document_gestures_touch_android.dart:899` calls `selectContentUnitAt` and `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:510` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×1
  • Duplicated block (18 lines × 3) super_editor/lib/src/default_editor/document_gestures_mouse.dart:339 — super_editor/lib/src/default_editor/document_gestures_mouse.dart:339-356 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:862-879 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:863-880 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_mouse.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `details` to `TapDownDetails` in one and `TapUpDetails` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (16 lines × 4) · ×1
  • Duplicated block (16 lines × 4) super_editor/lib/src/chat/super_message_android_overlays.dart:479 — super_editor/lib/src/chat/super_message_android_overlays.dart:479-494 | super_editor/lib/src/chat/super_message_ios_overlays.dart:156-171 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:2052-2067 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1756-1771 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_overlays.dart` and `super_editor/lib/src/chat/super_message_ios_overlays.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 121 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×1
  • Duplicated block (15–16 lines × 2) super_clones/slack/lib/chat_thread.dart:340 — super_clones/slack/lib/chat_thread.dart:340-355 | super_editor/example/lib/demos/in_the_lab/feature_stable_tags.dart:116-130 — 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. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (14–15 lines × 4) · ×1
  • Duplicated block (14–15 lines × 4) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:362 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:362-375 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:160-174 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:270-284 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:153-167 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/ios_messenger/lib/conversation/conversation_screen.dart:362` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12–15 lines × 3) · ×1
  • Duplicated block (12–15 lines × 3) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:573 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:573-587 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:968-982 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:980-991 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_android_touch_interactor.dart:573` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14 lines × 4) · ×1
  • Duplicated block (14 lines × 4) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:473 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:473-486 | super_editor/lib/src/chat/super_message_mouse_interactor.dart:263-276 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:578-591 | super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart:311-324 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/chat/super_message_mouse_interactor.dart` 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.
D4 · Code Duplication · Duplicated block (12–14 lines × 3) · ×1
  • Duplicated block (12–14 lines × 3) super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:794 — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:794-805 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1545-1558 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:986-998 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:794` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12–14 lines × 2) · ×1
  • Duplicated block (12–14 lines × 2) super_editor/lib/src/default_editor/image.dart:245 — super_editor/lib/src/default_editor/image.dart:245-258 | super_editor/lib/src/default_editor/image.dart:436-447 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/image.dart:245` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12 lines × 5) · ×1
  • Duplicated block (12 lines × 5) super_clones/google_docs/lib/toolbar.dart:1148 — super_clones/google_docs/lib/toolbar.dart:1148-1159 | super_clones/quill/lib/editor/toolbar.dart:493-504 | super_clones/quill/lib/editor/toolbar.dart:563-574 | super_editor/example/lib/demos/example_editor/_toolbar.dart:692-703 | website/lib/homepage/editor_toolbar.dart:653-664 — before extracting anything, compare `super_clones/quill/lib/editor/toolbar.dart` and `super_editor/example/lib/demos/example_editor/_toolbar.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/google_docs/lib/toolbar.dart:1148` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (12 lines × 4) · ×1
  • Duplicated block (12 lines × 4) super_editor/lib/src/default_editor/common_editor_operations.dart:2633 — super_editor/lib/src/default_editor/common_editor_operations.dart:2633-2644 | super_editor/lib/src/default_editor/common_editor_operations.dart:2743-2754 | super_editor/lib/src/default_editor/common_editor_operations.dart:2858-2869 | super_editor/lib/src/default_editor/common_editor_operations.dart:2915-2926 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/lib/src/default_editor/common_editor_operations.dart:2633` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10–11 lines × 4) · ×1
  • Duplicated block (10–11 lines × 4) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:637 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:637-646 | super_editor/example_chat/lib/keyboard_panel_scaffold/keyboard_panel_scaffold_demo.dart:274-283 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:681-690 | super_editor/lib/src/chat/chat_editor.dart:500-510 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 127 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_clones/ios_messenger/lib/conversation/conversation_screen.dart:637` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×1
  • Duplicated block (7–8 lines × 2) super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1139 — super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1139-1146 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:730-736 — before extracting anything, compare `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` and `super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7 lines × 5) · ×1
  • Duplicated block (7 lines × 5) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:327 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:327-333 | super_clones/slack/lib/mobile_message_editor.dart:109-115 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:125-131 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:235-241 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:118-124 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_clones/slack/lib/mobile_message_editor.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 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.
D4 · Code Duplication · Duplicated block (6 lines × 5) · ×1
  • Duplicated block (6 lines × 5) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:349 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:349-354 | super_clones/slack/lib/mobile_message_editor.dart:131-136 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:147-152 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:257-262 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:140-145 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_clones/slack/lib/mobile_message_editor.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (5 lines × 5) · ×1
  • Duplicated block (5 lines × 5) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:356 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:356-360 | super_clones/slack/lib/mobile_message_editor.dart:138-142 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:154-158 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:264-268 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:147-151 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_clones/slack/lib/mobile_message_editor.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (9 lines × 5) · ×1
  • Duplicated block (9 lines × 5) super_clones/ios_messenger/lib/conversation/conversation_screen.dart:471 — super_clones/ios_messenger/lib/conversation/conversation_screen.dart:471-479 | super_clones/slack/lib/mobile_message_editor.dart:321-329 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:282-290 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:391-399 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:270-278 — before extracting anything, compare `super_clones/ios_messenger/lib/conversation/conversation_screen.dart` and `super_clones/slack/lib/mobile_message_editor.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `super_clones/ios_messenger/lib/conversation/conversation_screen.dart:468` calls `addListener` and `super_clones/slack/lib/mobile_message_editor.dart:318` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (13 lines × 4) · ×1
  • Duplicated block (13 lines × 4) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:825 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:825-837 | super_editor/lib/src/default_editor/document_gestures_mouse.dart:539-551 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1281-1293 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1439-1451 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_mouse.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×1
  • Duplicated block (10 lines × 3) super_editor/lib/src/chat/super_message_android_touch_interactor.dart:839 — super_editor/lib/src/chat/super_message_android_touch_interactor.dart:839-848 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1295-1304 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1384-1393 — before extracting anything, compare `super_editor/lib/src/chat/super_message_android_touch_interactor.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 245 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.
D4 · Code Duplication · Duplicated block (12 lines × 6) · ×1
  • Duplicated block (12 lines × 6) super_editor/lib/src/chat/super_message_ios_overlays.dart:55 — super_editor/lib/src/chat/super_message_ios_overlays.dart:55-67 | super_editor/lib/src/chat/super_message_ios_overlays.dart:121-133 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1652-1664 | super_editor/lib/src/default_editor/document_gestures_touch_ios.dart:1721-1732 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1075-1087 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1141-1153 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_ios.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 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.
D4 · Code Duplication · Duplicated block (13 lines × 5) · ×1
  • Duplicated block (13 lines × 5) super_editor/lib/src/chat/super_message_ios_overlays.dart:69 — super_editor/lib/src/chat/super_message_ios_overlays.dart:69-81 | super_editor/lib/src/chat/super_message_ios_overlays.dart:135-147 | super_editor/lib/src/default_editor/document_gestures_touch_android.dart:1786-1798 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1089-1101 | super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart:1155-1167 — before extracting anything, compare `super_editor/lib/src/chat/super_message_ios_overlays.dart` and `super_editor/lib/src/default_editor/document_gestures_touch_android.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (7 lines × 9) · ×1
  • Duplicated block (7 lines × 9) super_clones/bear/macos/Runner/AppDelegate.swift:6 — super_clones/bear/macos/Runner/AppDelegate.swift:6-12 | super_clones/google_docs/macos/Runner/AppDelegate.swift:6-12 | super_clones/obsidian/macos/Runner/AppDelegate.swift:6-12 | super_clones/quill/macos/Runner/AppDelegate.swift:6-12 | super_clones/slack/macos/Runner/AppDelegate.swift:6-12 | super_editor/example/macos/Runner/AppDelegate.swift:6-12 | super_editor/example_chat/macos/Runner/AppDelegate.swift:6-12 | super_editor_spellcheck/example/macos/Runner/AppDelegate.swift:6-12 | super_text_layout/example/macos/Runner/AppDelegate.swift:6-12 — before extracting anything, compare `super_clones/bear/macos/Runner/AppDelegate.swift` and `super_clones/google_docs/macos/Runner/AppDelegate.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
D4 · Code Duplication · Duplicated block (7 lines × 8) · ×1
  • Duplicated block (7 lines × 8) super_clones/google_docs/ios/Runner/AppDelegate.swift:6 — super_clones/google_docs/ios/Runner/AppDelegate.swift:6-12 | super_clones/ios_messenger/ios/Runner/AppDelegate.swift:6-12 | super_clones/quill/ios/Runner/AppDelegate.swift:6-12 | super_clones/slack/ios/Runner/AppDelegate.swift:6-12 | super_editor/example_chat/ios/Runner/AppDelegate.swift:6-12 | super_editor/example_perf/ios/Runner/AppDelegate.swift:6-12 | super_editor_spellcheck/example/ios/Runner/AppDelegate.swift:6-12 | super_keyboard/example/ios/Runner/AppDelegate.swift:6-12 — before extracting anything, compare `super_clones/google_docs/ios/Runner/AppDelegate.swift` and `super_editor/example_perf/ios/Runner/AppDelegate.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
D4 · Code Duplication · Near-duplicate member family (4 members, 55 shared lines) · ×1
  • Near-duplicate member family (4 members, 55 shared lines) super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:77 — super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:77-139 | super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart:64-121 | super_editor/example/lib/demos/supertextfield/_single_line_demo.dart:59-121 | super_editor/example/lib/demos/supertextfield/_static_multi_line_demo.dart:63-120 — These 4 members are variants of one another: a block of 55 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 · Edited copy of a member (64 corresponding lines) · ×1
  • Edited copy of a member (64 corresponding lines) super_editor/example/lib/demos/demo_animated_task_height.dart:123 — super_editor/example/lib/demos/demo_animated_task_height.dart:123-186 | super_editor/example_perf/lib/demos/rebuild_demo.dart:127-192 — These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (52 corresponding lines) · ×1
  • Edited copy of a member (52 corresponding lines) super_editor/example/lib/demos/supertextfield/textfield_inside_single_child_scroll_view_demo.dart:14 — super_editor/example/lib/demos/supertextfield/textfield_inside_single_child_scroll_view_demo.dart:14-65 | super_editor/example/lib/demos/supertextfield/textfield_inside_slivers_demo.dart:14-69 — These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (27 corresponding lines) · ×1
  • Edited copy of a member (27 corresponding lines) super_text_layout/example/lib/typing_robot.dart:176 — super_text_layout/example/lib/typing_robot.dart:176-202 | super_text_layout/example/lib/typing_robot.dart:204-231 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (34 corresponding lines) · ×1
  • Edited copy of a member (34 corresponding lines) super_editor/example/lib/demos/editor_configs/demo_mobile_editing_android.dart:98 — super_editor/example/lib/demos/editor_configs/demo_mobile_editing_android.dart:98-134 | super_editor/example/lib/demos/editor_configs/demo_mobile_editing_ios.dart:89-122 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 19+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 19+ corresponding lines) super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:25 — super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:25-47 | super_editor/example/lib/demos/in_the_lab/feature_pattern_tags.dart:21-39 | super_editor/example/lib/demos/in_the_lab/feature_stable_tags.dart:25-46 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 12+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 12+ corresponding lines) super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:49 — super_editor/example/lib/demos/in_the_lab/feature_action_tags.dart:49-60 | super_editor/example/lib/demos/in_the_lab/feature_ai_fade_in.dart:43-54 | super_editor/example/lib/demos/in_the_lab/feature_stable_tags.dart:48-61 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (46 lines × 2) · ×1
  • Duplicated block (46 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:238 — super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart:238-283 | super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart:277-322 — before extracting anything, compare `super_editor/example/lib/demos/flutter_features/textinputclient/barebones_ios_text_input_client.dart` and `super_editor/example/lib/demos/flutter_features/textinputclient/basic_text_input_client.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (38 lines × 2) · ×1
  • Duplicated block (38 lines × 2) super_editor/example/lib/main.dart:618 — super_editor/example/lib/main.dart:618-655 | super_editor/example_perf/lib/main.dart:238-275 — before extracting anything, compare `super_editor/example/lib/main.dart` and `super_editor/example_perf/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 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.
D4 · Code Duplication · Duplicated block (36 lines × 2) · ×1
  • Duplicated block (36 lines × 2) super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:92 — super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:92-127 | super_editor/example/lib/demos/supertextfield/_single_line_demo.dart:74-109 — before extracting anything, compare `super_editor/example/lib/demos/supertextfield/_emojis_demo.dart` and `super_editor/example/lib/demos/supertextfield/_single_line_demo.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 127 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.
D4 · Code Duplication · Duplicated block (31 lines × 3) · ×1
  • Duplicated block (31 lines × 3) super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:24 — super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:24-54 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart:59-89 | super_editor/example_chat/lib/message_page_scaffold_demo/demo_textfield_message_page.dart:23-53 — before extracting anything, compare `super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart` and `super_editor/example_chat/lib/message_page_scaffold_demo/demo_super_editor_message_page.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 109 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example_chat/lib/message_page_scaffold_demo/demo_chaos_monkey_message_page.dart:24` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (30 lines × 2) · ×1
  • Duplicated block (30 lines × 2) super_editor/example/lib/main.dart:132 — super_editor/example/lib/main.dart:132-161 | super_editor/example_perf/lib/main.dart:77-106 — before extracting anything, compare `super_editor/example/lib/main.dart` and `super_editor/example_perf/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (29 lines × 4) · ×1
  • Duplicated block (29 lines × 4) super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:111 — super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:111-139 | super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart:93-121 | super_editor/example/lib/demos/supertextfield/_single_line_demo.dart:93-121 | super_editor/example/lib/demos/supertextfield/_static_multi_line_demo.dart:92-120 — before extracting anything, compare `super_editor/example/lib/demos/supertextfield/_emojis_demo.dart` and `super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:111` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (26 lines × 4) · ×1
  • Duplicated block (26 lines × 4) super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:77 — super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:77-102 | super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart:64-89 | super_editor/example/lib/demos/supertextfield/_single_line_demo.dart:59-84 | super_editor/example/lib/demos/supertextfield/_static_multi_line_demo.dart:63-88 — before extracting anything, compare `super_editor/example/lib/demos/supertextfield/_emojis_demo.dart` and `super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:77` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (22–23 lines × 2) · ×1
  • Duplicated block (22–23 lines × 2) super_editor/example/lib/demos/supertextfield/textfield_inside_single_child_scroll_view_demo.dart:30 — super_editor/example/lib/demos/supertextfield/textfield_inside_single_child_scroll_view_demo.dart:30-52 | super_editor/example/lib/demos/supertextfield/textfield_inside_slivers_demo.dart:33-54 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/supertextfield/textfield_inside_slivers_demo.dart:33` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (21 lines × 3) · ×1
  • Duplicated block (21 lines × 3) super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:102 — super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:102-122 | super_editor/example/lib/demos/supertextfield/_interactive_demo.dart:93-113 | super_editor/example/lib/demos/supertextfield/_single_line_demo.dart:84-104 — before extracting anything, compare `super_editor/example/lib/demos/supertextfield/_emojis_demo.dart` and `super_editor/example/lib/demos/supertextfield/_single_line_demo.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 127 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.
D4 · Code Duplication · Duplicated block (9–12 lines × 4) · ×1
  • Duplicated block (9–12 lines × 4) super_editor/example/lib/demos/styles/demo_doc_styles.dart:41 — super_editor/example/lib/demos/styles/demo_doc_styles.dart:41-52 | super_editor/example/lib/demos/styles/demo_doc_styles.dart:54-65 | super_editor/example/lib/demos/styles/demo_doc_styles.dart:67-78 | super_editor/example/lib/demos/styles/demo_doc_styles.dart:79-87 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/styles/demo_doc_styles.dart:41` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×1
  • Duplicated block (11–12 lines × 2) super_editor/example/lib/demos/flutter_features/textinputclient/textfield.dart:61 — super_editor/example/lib/demos/flutter_features/textinputclient/textfield.dart:61-72 | super_editor/example/lib/demos/supertextfield/_mobile_textfield_demo.dart:154-164 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `super_editor/example/lib/demos/flutter_features/textinputclient/textfield.dart:61` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) super_editor/example/lib/demos/components/demo_text_with_hint.dart:26 — super_editor/example/lib/demos/components/demo_text_with_hint.dart:26-32 | super_editor/example/lib/demos/components/demo_unselectable_hr.dart:17-23 | super_editor/example/lib/demos/demo_animated_task_height.dart:15-21 | super_editor/example_perf/lib/demos/rebuild_demo.dart:18-24 — before extracting anything, compare `super_editor/example/lib/demos/demo_animated_task_height.dart` and `super_editor/example_perf/lib/demos/rebuild_demo.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 95 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.
D4 · Code Duplication · Duplicated block (15 lines × 4) · ×1
  • Duplicated block (15 lines × 4) super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:27 — super_editor/example/lib/demos/supertextfield/_emojis_demo.dart:27-41 | super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart:23-37 | super_editor/example/lib/demos/supertextfield/_single_line_demo.dart:22-36 | super_editor/example/lib/demos/supertextfield/_static_multi_line_demo.dart:22-36 — before extracting anything, compare `super_editor/example/lib/demos/supertextfield/_emojis_demo.dart` and `super_editor/example/lib/demos/supertextfield/_expanding_multi_line_demo.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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.
S1 · Web-Security Posture · Third-party script without Subresource Integrity · ×1
  • Third-party script without Subresource Integrity doc/website/source/_includes/components/highlightJs.jinja:4 — `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. 10 such include(s) across the repository's markup.
SC1 · Supply-chain hygiene · JavaScript dependencies are not locked · ×1
  • JavaScript dependencies are not locked .github/scripts/package.json:3 — .github/scripts/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
Minor — 104 finding(s)
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:86 — `!CurrentPlatform.isApple && !HardwareKeyboard.instance.isControlPressed` appears character-identically in 3 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor/lib/src/default_editor/paragraph.dart, super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart. 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 super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:806 — `!WidgetsBinding.instance.locked || !_didActivateSinceLastBuild || !_didDeactivateSinceLastBuild` appears character-identically in 2 files — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart, super_editor/lib/src/chat/message_page_scaffold.dart. 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 super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart:1651 — `!_isExpandingOrCollapsing && _desiredDragHeight != null` appears character-identically in 2 files — super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart, super_editor/lib/src/chat/message_page_scaffold.dart. 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 super_editor/lib/src/super_textfield/android/android_textfield.dart:397 — `!_textEditingController.selection.isValid || !_textEditingController.selection.isCollapsed` appears character-identically in 2 files — super_editor/lib/src/super_textfield/android/android_textfield.dart, super_editor/lib/src/super_textfield/ios/ios_textfield.dart. 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 super_editor/lib/src/default_editor/document_gestures_mouse.dart:505 — `!didSelectParagraph && !didSelectComponent` appears character-identically in 3 files — super_editor/lib/src/default_editor/document_gestures_mouse.dart, super_editor/lib/src/default_editor/document_gestures_touch_android.dart, super_editor/lib/src/default_editor/document_gestures_touch_ios.dart. 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 super_editor/lib/src/default_editor/document_gestures_mouse.dart:498 — `!didSelectParagraph && selectComponentAt( widget.editor, documentPosition: docPosition, documentLayout: _docLayout, )` appears character-identically in 3 files — super_editor/lib/src/default_editor/document_gestures_mouse.dart, super_editor/lib/src/default_editor/document_gestures_touch_android.dart, super_editor/lib/src/default_editor/document_gestures_touch_ios.dart. 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 super_editor/lib/src/default_editor/common_editor_operations.dart:881 — `!foundSelectableNode && selectableNode != null` appears character-identically in 2 files — super_editor/lib/src/default_editor/common_editor_operations.dart, super_editor/lib/src/document_operations/selection_operations.dart. 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 super_editor/lib/src/infrastructure/document_context.dart:97 — `!isShiftPressed && HardwareKeyboard.instance.isShiftPressed` appears character-identically in 2 files — super_editor/lib/src/infrastructure/document_context.dart, super_editor/lib/src/super_reader/read_only_document_keyboard_interactor.dart. 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 super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:824 — `!keyEvent.isPrimaryShortcutKeyPressed || keyEvent.logicalKey != LogicalKeyboardKey.backspace` appears character-identically in 2 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart. 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 super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:281 — `!keyEvent.isPrimaryShortcutKeyPressed || keyEvent.logicalKey != LogicalKeyboardKey.keyC` appears character-identically in 2 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor_clipboard/lib/src/super_editor_copy.dart. 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 super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:245 — `!keyEvent.isPrimaryShortcutKeyPressed || keyEvent.logicalKey != LogicalKeyboardKey.keyV` appears character-identically in 2 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor/lib/src/infrastructure/serialization/markdown/super_editor_paste_markdown.dart. 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 super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart:228 — `!widget.focusNode.hasFocus && widget.clearSelectionWhenEditorLosesFocus` appears character-identically in 2 files — super_editor/lib/src/default_editor/document_focus_and_selection_policies.dart, super_editor/lib/src/default_editor/document_ime/document_ime_interaction_policies.dart. 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 super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:584 — `(defaultTargetPlatform == TargetPlatform.windows || defaultTargetPlatform == TargetPlatform.linux) && HardwareKeyboard.instance.isControlPre…` appears character-identically in 3 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor/lib/src/super_reader/read_only_document_keyboard_interactor.dart, super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart. 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 super_editor/lib/src/infrastructure/document_context.dart:78 — `(keyEvent is KeyDownEvent || keyEvent is KeyRepeatEvent) && !onKeyDown` appears character-identically in 2 files — super_editor/lib/src/infrastructure/document_context.dart, super_editor/lib/src/super_reader/read_only_document_keyboard_interactor.dart. 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 super_editor/lib/src/infrastructure/document_context.dart:105 — `(keyPressedOrReleased == LogicalKeyboardKey.shift || keyPressedOrReleased == LogicalKeyboardKey.shiftLeft || keyPressedOrReleased == Logical…` appears character-identically in 2 files — super_editor/lib/src/infrastructure/document_context.dart, super_editor/lib/src/super_reader/read_only_document_keyboard_interactor.dart. 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 super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:82 — `CurrentPlatform.isApple && !HardwareKeyboard.instance.isMetaPressed` appears character-identically in 3 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor/lib/src/default_editor/paragraph.dart, super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart. 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 super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:526 — `CurrentPlatform.isApple && HardwareKeyboard.instance.isAltPressed` appears character-identically in 2 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor/lib/src/super_reader/read_only_document_keyboard_interactor.dart. 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 super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:531 — `CurrentPlatform.isApple && HardwareKeyboard.instance.isMetaPressed` appears character-identically in 2 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor/lib/src/super_reader/read_only_document_keyboard_interactor.dart. 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 super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart:377 — `HardwareKeyboard.instance.isControlPressed || HardwareKeyboard.instance.isMetaPressed` appears character-identically in 3 files — super_editor/lib/src/default_editor/document_hardware_keyboard/document_keyboard_actions.dart, super_editor/lib/src/default_editor/paragraph.dart, super_editor/lib/src/default_editor/text.dart. 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 super_editor/lib/src/chat/super_message_mouse_interactor.dart:137 — `HardwareKeyboard.instance.logicalKeysPressed.contains(LogicalKeyboardKey.shiftLeft) || HardwareKeyboard.instance.logicalKeysPressed.contains…` appears character-identically in 3 files — super_editor/lib/src/chat/super_message_mouse_interactor.dart, super_editor/lib/src/super_reader/read_only_document_mouse_interactor.dart, super_editor/lib/src/super_textfield/desktop/desktop_textfield.dart. 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 super_editor/lib/src/default_editor/paragraph.dart:1197 — `LogicalKeyboardKey.isControlCharacter(keyEvent.character!) || keyEvent.isArrowKeyPressed` appears character-identically in 2 files — super_editor/lib/src/default_editor/paragraph.dart, super_editor/lib/src/default_editor/text.dart. 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 super_clones/google_docs/lib/infrastructure/selectable_grid.dart:206 — `_activeIndex == null || _activeIndex! <= 0` appears character-identically in 3 files — super_clones/google_docs/lib/infrastructure/selectable_grid.dart, super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart, super_editor/lib/src/infrastructure/selectable_list.dart. 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 super_clones/google_docs/lib/infrastructure/selectable_grid.dart:196 — `_activeIndex == null || _activeIndex! >= widget.items.length - 1` appears character-identically in 3 files — super_clones/google_docs/lib/infrastructure/selectable_grid.dart, super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart, super_editor/lib/src/infrastructure/selectable_list.dart. 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 super_editor/lib/src/infrastructure/platforms/android/android_document_controls.dart:259 — `_caretBlinkController.opacity == 1.0 && isCaretDisplayed` appears character-identically in 2 files — super_editor/lib/src/infrastructure/platforms/android/android_document_controls.dart, super_editor/lib/src/infrastructure/platforms/ios/ios_document_controls.dart. 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 super_editor/lib/src/chat/super_message_ios_touch_interactor.dart:728 — `_dragHandleType != null && selection != null` appears character-identically in 3 files — super_editor/lib/src/chat/super_message_ios_touch_interactor.dart, super_editor/lib/src/default_editor/document_gestures_touch_ios.dart, super_editor/lib/src/super_reader/read_only_document_ios_touch_interactor.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • + 15 more in this group — see findings.md.
D34 · Knowledge Freshness · Orphaned file · ×30
  • Orphaned file super_clones/slack/lib/mobile_message_editor.dart: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 super_editor/lib/src/infrastructure/flutter/material_scrollbar.dart: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 super_editor_spellcheck/macos/Classes/SuperEditorSpellcheckPlugin.swift: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 super_clones/slack/lib/chat_thread.dart: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 super_clones/google_docs/lib/infrastructure/color_selector.dart: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 super_editor/lib/src/infrastructure/platforms/android/drag_handle_selection.dart: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 super_editor/lib/src/infrastructure/selectable_list.dart: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 super_editor_spellcheck/pigeon/messages.dart: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 super_clones/slack/lib/main.dart: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 super_clones/quill/lib/infrastructure/popovers/selectable_grid.dart: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 super_editor/lib/src/super_textfield/android/drag_handle_selection.dart: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 super_clones/google_docs/lib/infrastructure/text_item_selector.dart: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 super_editor/example_perf/lib/main.dart: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 super_editor/lib/src/infrastructure/actions.dart: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 super_editor/lib/src/infrastructure/flutter/cupertino_scrollbar.dart: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 super_editor_spellcheck/lib/src/platform/spell_checker_mac.dart: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 super_editor/lib/src/infrastructure/sliver_hybrid_stack.dart: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 super_editor/example_perf/lib/demos/rebuild_demo.dart: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 super_editor/lib/src/default_editor/tap_handlers/tap_handlers.dart: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 super_editor_spellcheck/lib/src/super_editor/spell_checker_popover_controller.dart: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 super_clones/google_docs/lib/infrastructure/icon_selector.dart: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 super_editor/lib/src/default_editor/tables/table_block.dart: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 super_clones/google_docs/lib/infrastructure/increment_decrement_field.dart: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 super_editor/lib/src/infrastructure/serialization/html/html_table.dart: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 super_editor/lib/src/infrastructure/platforms/mac/mac_ime.dart: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.
  • + 5 more in this group — see findings.md.
IC1 · Incompleteness & stubs · Disabled test · ×9
  • Disabled test super_editor/test/infrastructure/serialization/quill/parsing/parsing_test.dart:454 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test super_editor/test/super_textfield/ios/super_textfield_ios_selection_test.dart:20 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test super_editor/test/super_textfield/ios/super_textfield_ios_selection_test.dart:27 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test super_editor/test/super_textfield/super_desktop_textfield_keyboard_test.dart:220 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test super_editor/test/super_textfield/super_desktop_textfield_keyboard_test.dart:1127 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test super_editor/test_goldens/editor/supereditor_caret_test.dart:52 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test super_editor/test_goldens/editor/supereditor_caret_test.dart:96 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test super_editor/test_goldens/editor/supereditor_caret_test.dart:199 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
  • Disabled test super_editor/test_goldens/editor/supereditor_caret_test.dart:245 — A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
D19 · Documentation Quality · Documentation · ×8
  • Documentation: no build, run or usage example super_clones/google_docs/README.md:1 — `google_docs` is a Flutter application (`lib/main.dart`) and neither `super_clones/google_docs/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example super_clones/ios_messenger/README.md:1 — `ios_messenger` is a Flutter application (`lib/main.dart`) and neither `super_clones/ios_messenger/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example super_clones/medium/README.md:1 — `medium` is a Flutter application (`lib/main.dart`) and neither `super_clones/medium/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example super_clones/quill/README.md:1 — `quill` is a Flutter application (`lib/main.dart`) and neither `super_clones/quill/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example super_clones/slack/README.md:1 — `slack` is a Flutter application (`lib/main.dart`) and neither `super_clones/slack/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example super_editor_clipboard/README.md:1 — `super_editor_clipboard` is a published pub package (`pubspec.yaml` without `publish_to: none`) and neither `super_editor_clipboard/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example super_editor_spellcheck/README.md:1 — `super_editor_spellcheck` is a published pub package (`pubspec.yaml` without `publish_to: none`) and neither `super_editor_spellcheck/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
  • Documentation: no build, run or usage example website/README.md:1 — `website` is a Flutter application (`lib/main.dart`) and neither `website/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
AX6 · Interface segregation · Fat interface · ×7
  • Fat interface: SpellCheckMac (16 requirements) super_editor_spellcheck/macos/Classes/messages.g.swift:205 — `SpellCheckMac` declares 16 requirements: `availableLanguages`, `uniqueSpellDocumentTag`, `closeSpellDocument`, `checkSpelling`, `guesses`, `correction`, `checkGrammar`, `completions`, `countWords`, `learnWord`, `hasLearnedWord`, `unlearnWord`, `ignoreWord`, `ignoredWords`, `setIgnoredWords`, `userReplacementsDictionary`. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: SpellCheckMac (16 abstract methods) super_editor_spellcheck/pigeon/messages.dart:3 — `SpellCheckMac` declares 16 abstract methods: `availableLanguages`, `uniqueSpellDocumentTag`, `closeSpellDocument`, `checkSpelling`, `guesses`, `correction`, `checkGrammar`, `completions`, `countWords`, `learnWord`, `hasLearnedWord`, `unlearnWord`, `ignoreWord`, `ignoredWords`, `setIgnoredWords`, `userReplacementsDictionary`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: AppLocalizations (18 abstract methods) super_editor/example/lib/l10n/app_localizations.dart:13 — `AppLocalizations` declares 18 abstract methods: `labelTextBlockType`, `labelBold`, `labelItalics`, `labelStrikethrough`, `labelSuperscript`, `labelSubscript`, `labelLink`, `labelTextAlignment`, `labelMoreOptions`, `labelHeader1`, `labelHeader2`, `labelHeader3`, `labelParagraph`, `labelBlockquote`, `labelOrderedListItem`, `labelUnorderedListItem`, `labelLimitedWidth`, `labelFullWidth`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: Document (17 abstract methods) super_editor/lib/src/core/document.dart:5 — `Document` declares 17 abstract methods: `nodeCount`, `isEmpty`, `firstOrNull`, `lastOrNull`, `getNodeById`, `getNodeAt`, `getNodeIndex`, `getNodeIndexById`, `getNodeBefore`, `getNodeBeforeById`, `getNodeAfter`, `getNodeAfterById`, `getNode`, `getNodesInside`, `hasEquivalentContent`, `addListener`, `removeListener`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: DocumentComponent (19 abstract methods) super_editor/lib/src/core/document_layout.dart:117 — `DocumentComponent` declares 19 abstract methods: `getPositionAtOffset`, `getOffsetForPosition`, `getCaretForPosition`, `getEdgeForPosition`, `getRectForPosition`, `getRectForSelection`, `getBeginningPosition`, `getBeginningPositionNearX`, `movePositionLeft`, `movePositionRight`, `movePositionUp`, `movePositionDown`, `getEndPosition`, `getEndPositionNearX`, `getSelectionInRange`, `getCollapsedSelectionAt`, `getSelectionBetween`, `getSelectionOfEverything`, `getDesiredCursorAtOffset`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: TextScrollControllerDelegate (16 abstract methods) super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart:955 — `TextScrollControllerDelegate` declares 16 abstract methods: `viewportWidth`, `viewportHeight`, `textLayoutOffsetInViewport`, `isMultiline`, `startScrollOffset`, `endScrollOffset`, `isTextPositionVisible`, `isInAutoScrollToStartRegion`, `calculateDistanceBeyondStartingAutoScrollBoundary`, `isInAutoScrollToEndRegion`, `calculateDistanceBeyondEndingAutoScrollBoundary`, `getHorizontalOffsetForStartOfCharacterLeftOfViewport`, `getHorizontalOffsetForEndOfCharacterRightOfViewport`, `getVerticalOffsetForTopOfLineAboveViewport`, `getVerticalOffsetForBottomOfLineBelowViewport`, `getViewportCharacterRectAtPosition`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: TextLayout (19 abstract methods) super_text_layout/lib/src/text_layout.dart:6 — `TextLayout` declares 19 abstract methods: `isTextAtOffset`, `getPositionAtOffset`, `getLineHeightAtPosition`, `estimatedLineHeight`, `getLineCount`, `getPositionNearestToOffset`, `getOffsetAtPosition`, `getOffsetForCaret`, `getHeightForCaret`, `getBoxesForSelection`, `getCharacterBox`, `getPositionOneLineUp`, `getPositionOneLineDown`, `getPositionAtStartOfLine`, `getPositionAtEndOfLine`, `getPositionInFirstLineAtX`, `getPositionInLastLineAtX`, `getSelectionInRect`, `expandSelection`. Counted over its public methods with no body, once per name; concrete methods and `_`-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 21 significant file(s) lose their only recent owner: super_editor/lib/src/chat/message_page_scaffold.dart, super_editor/lib/src/chat/bottom_floating/ui_kit/floating_editor_page_scaffold.dart, super_editor/lib/src/infrastructure/keyboard_panel_scaffold.dart, super_editor/lib/src/core/editor.dart, super_editor/lib/src/default_editor/default_document_editor_reactions.dart, super_editor_spellcheck/lib/src/super_editor/spelling_and_grammar_plugin.dart, super_editor_spellcheck/lib/src/super_editor/spelling_error_suggestion_overlay.dart, super_editor/lib/src/infrastructure/serialization/markdown/markdown_to_document_parsing.dart (+13 more). Pair on, review, or document these before any departure.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found super_clones/slack/macos/Runner.xcodeproj/project.pbxproj:1 — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`. ADRs are expected here because `super_clones/slack/macos/Runner.xcodeproj/project.pbxproj` makes this repository a deployable product (line 1).
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion super_editor/pubspec.yaml:1 — `super_editor` (83616 LoC, 689 module-visible types across 37 directories) overshoots its size bounds. 1 of 30 build unit(s) (Gradle, Xcode, pub) overshoot their size bounds, lowering Project Cohesion to 9.3/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D34 · Knowledge Freshness · Further orphaned files (smaller) · ×1
  • Further orphaned files (smaller) — 30 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: super_clones/slack/lib/mobile_message_editor.dart, super_editor_spellcheck/macos/Classes/SuperEditorSpellcheckPlugin.swift, super_clones/slack/lib/chat_thread.dart, super_editor_spellcheck/pigeon/messages.dart, super_clones/slack/lib/main.dart, super_editor/lib/src/super_textfield/android/drag_handle_selection.dart, super_editor/lib/src/infrastructure/flutter/material_scrollbar.dart, super_editor/example_perf/lib/main.dart (and 22 more) (36 orphaned of 241 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; 241 of the 394 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 5/30 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `doc/website`, `super_clones/bear`, `super_clones/bear/macos`, `super_clones/google_docs`, `super_clones/google_docs/ios` and 20 more.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST REDACTED:4 — No static application security testing detected. For this repository's stack, add the Dart analyzer's security lints plus `semgrep --config=auto` as a CI step. What was searched, so you can tell an absence from a miss: the 5 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.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation .github/scripts/package.json:3 — `.github/scripts/package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
X5 · Nullable reference types · Null assertions (`!`) override null safety · ×1
  • Null assertions (`!`) override null safety — ~21.9 `!` null assertions per 1k Dart product lines — 2639 across the 120528 line(s) of the 335 Dart file(s) read (generated, test and example code not counted; a file opted out with a `// @dart=` comment below 2.12 counts once). Densest: super_editor/lib/src/default_editor/common_editor_operations.dart (142), super_editor/lib/src/default_editor/document_gestures_touch_ios.dart (123), super_editor/lib/src/default_editor/document_gestures_touch_android.dart (119). Each one tells the analyzer to trust the author about null and becomes a `Null check operator used on a null value` the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.

Appendix B — Reproduction & audit trail

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

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

Run 01a1eab5-dec4-7c61-951a-6a90a4cab153 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

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

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