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

wuba/Fair

Measured 13 November 2026, 04:38 UTC, at code version 0a6a999

Bus factor is not measured: No living knowledge left to concentrate.

CAI score 37out of 100 At risk Up 3 since the last survey

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

A large codebase: 162,144 lines of product code in 32 projects, tests not counted · Estimated rebuild effort: about 1.0 person-years · Weakest lens: Security and Compliance, 27

Findings by how serious they are

74 critical 1144 serious 341 minor

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

This survey was produced by

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

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

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

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

72of 72 dimensions measured by tools.
1548of 1559 findings point to an exact file and line, so you can open each one in the code. The other 11 concern the repository as a whole, such as missing documentation.
72dimensions across 7 lenses, read from 162,144 lines of product code in 32 projects.
Chapters

Executive summary

wuba/Fair is rated At risk because critical security findings are open, most of them in the packages it uses. Its score is held back because we found no access checks on the code's endpoints or handlers and it has places where the code runs text as code or as a command. It scores 37 out of 100, which the At risk rating leaves unchanged.

Security and Compliance, at 27, is the weakest lens and counts most in the score. The best first step is adding access checks, worth about 8 points. Restricting the build's access tokens comes next, worth about 2 points. Raising Security and Compliance to 70 would lift the score to about 45.

Fifty-two known security holes in the packages the code depends on can be used by attackers. Eleven places in the code run text as code, which an attacker could use. Updating the vulnerable packages and replacing text run as code with direct calls would close both risks. Pinning each tool to an exact version would fix the ten pipeline tools referenced by a changeable name, and the unsafe setting in infrastructure or container files needs changing to safe values.

The product code is 162,144 lines, about €140,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.
Security and Compliance 27 · counts for 46%Production Readiness 30 · counts for 25%Code Health 53 · counts for 14%Maturity 59 · counts for 8%Accessibility 60 · counts for 4%Performance 60 · counts for 2%Architecture 94 · counts for 1%

If Security and Compliance rose from 27 to 70, the lowest score rated Strong, the score would rise from 37 to about 45.

Code composition: what the lines of code are
Product code 98%Tests 2%
New since the last survey: 154 findings

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

  • Code Duplication · Near-duplicate member pair (161 shared lines) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart
  • Code Duplication · Edited copy of a member (83 corresponding lines) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart
  • Code Duplication · Edited copy of a member (53 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (92 corresponding lines) fair_online/fair_online/lib/editor/component/editor_panel_widget.dart
  • Code Duplication · Edited copy of a member (69 corresponding lines) fair_online/fair_online/lib/views/api_call_page/popup_list.dart
  • Code Duplication · Edited copy of a member (56 corresponding lines) fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart
  • Code Duplication · Edited copy of a member (54 corresponding lines) fair_online/fair_online/lib/views/page/create/page_template_item.dart
  • Code Duplication · Edited copy of a member (38 corresponding lines) fair/lib/src/internal/bind_data.dart
  • Code Duplication · Edited copy of a member (55 corresponding lines) fair/lib/src/render/domain.dart
  • Code Duplication · Edited copy of a member (52 corresponding lines) fair_online/fair_online/lib/views/page/create/page_template_item.dart
  • Code Duplication · Edited copy of a member (37 corresponding lines) fair/lib/src/render/builder.dart
  • Code Duplication · Edited copy of a member (26 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (50 corresponding lines) fair_online/fair_online/lib/base/components/styled_dialogs.dart
  • Code Duplication · Edited copy of a member (39 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (23 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (41 corresponding lines) fair/lib/src/render/builder.dart
  • Code Duplication · Edited copy of a member (34 corresponding lines) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart
  • Code Duplication · Edited copy of a member (34 corresponding lines) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart
  • Code Duplication · Edited copy of a member (17 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (25 corresponding lines) fair_online/fair_online/lib/models/custom_code_model.dart
  • Code Duplication · Edited copy of a member (27 corresponding lines) fair_online/fair_online_service/lib/src/project/fair_project.dart
  • Code Duplication · Edited copy of a member (23 corresponding lines) fair_online/fair_online/lib/base/components/styled_dialogs.dart
  • Code Duplication · Edited copy of a member (21 corresponding lines) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Edited copy of a member (29 corresponding lines) fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_code_editor.dart
  • Code Duplication · Edited copy of a member (33 corresponding lines) fair_online/fair_online/lib/views/api_call_page/popup_list.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (24 corresponding lines) fair_online/fair_online_service/lib/src/analysis_server.dart
  • Code Duplication · Edited copy of a member (24 corresponding lines) fair_online/fair_online/lib/models/fair_dsl_model.dart
  • Code Duplication · Edited copies of one member (3 members, 20+ corresponding lines) fair_online/fair_online_service/lib/src/server_cache.dart
  • Code Duplication · Edited copy of a member (22 corresponding lines) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart
  • Code Duplication · Edited copies of one member (4 members, 23+ corresponding lines) example/lib/home_page.dart
  • Code Duplication · Edited copy of a member (16 corresponding lines) fair_online/fair_online/lib/views/project/project_item.dart
  • Code Duplication · Edited copy of a member (12 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (18 corresponding lines) fair/lib/src/internal/bundle_provider.dart
  • Code Duplication · Edited copies of one member (3 members, 16+ corresponding lines) fair/lib/src/render/expression.dart
  • Code Duplication · Edited copy of a member (16 corresponding lines) fair_online/fair_online/lib/base/components/seperated_flexibles.dart
  • Code Duplication · Edited copy of a member (19 corresponding lines) fair_online/fair_online/lib/models/page_model.dart
  • Code Duplication · Edited copy of a member (16 corresponding lines) fair/lib/src/internal/flexbuffer/builder.dart
  • Code Duplication · Edited copies of one member (3 members, 10+ corresponding lines) fair/lib/src/render/expression.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) dart2dsl/lib/fairdsl/fair_ast_node.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) fair/lib/src/internal/flexbuffer/reference.dart
  • Code Duplication · Edited copies of one member (7 members, 20+ corresponding lines) fair/lib/src/render/builder.dart
  • Code Duplication · Edited copy of a member (15 corresponding lines) fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart
  • Code Duplication · Edited copy of a member (17 corresponding lines) fair_online/fair_online/lib/models/dependency_file_model.dart
  • Code Duplication · Edited copy of a member (22 corresponding lines) fair_online/fair_online/lib/views/api_call_page/api_call_add_page_view.dart
  • Code Duplication · Edited copies of one member (4 members, 9+ corresponding lines) fair_online/fair_online/lib/base/page_routes.dart
  • Code Duplication · Edited copies of one member (3 members, 11+ corresponding lines) dart2dsl/lib/fairdsl/fair_ast_node.dart
  • Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Edited copy of a member (9 corresponding lines) fair/lib/src/runtime/fair_runtime_impl.dart
  • Code Duplication · Edited copies of one member (3 members, 17+ corresponding lines) fair_online/fair_online/lib/models/page_model.dart
  • Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) fair/lib/src/render/expression.dart
  • Code Duplication · Edited copies of one member (3 members, 11+ corresponding lines) fair_online/fair_online_service/lib/src/utils/change_dependency_util.dart
  • Code Duplication · Edited copy of a member (14 corresponding lines) fair/lib/src/render/builder.dart
  • Code Duplication · Edited copy of a member (9 corresponding lines) fair_online/fair_online/lib/base/components/scrolling/styled_scrollbar.dart
  • Code Duplication · Edited copy of a member (15 corresponding lines) fair_extension/lib/navigator/fair_navigator_plugin.dart
  • Code Duplication · Edited copy of a member (14 corresponding lines) fair_online/fair_online/lib/views/dependency/dependency_page.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart
  • Code Duplication · Edited copy of a member (7 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (9 corresponding lines) fair/lib/src/runtime/fair_runtime_impl.dart
  • Code Duplication · Edited copy of a member (11 corresponding lines) fair_online/fair_online/lib/base/components/styled_text_input.dart
  • Code Duplication · Edited copies of one member (5 members, 15+ corresponding lines) fair_online/fair_online/lib/models/custom_code_model.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copies of one member (6 members, 7+ corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart
  • Code Duplication · Edited copy of a member (7 corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart
  • Code Duplication · Edited copy of a member (7 corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart
  • Code Duplication · Edited copy of a member (7 corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart
  • Code Duplication · Edited copies of one member (3 members, 7+ corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart
  • Code Duplication · Edited copies of one member (3 members, 8+ corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart
  • Code Duplication · Edited copy of a member (12 corresponding lines) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) fair_online/fair_online/lib/models/project_model.dart
  • Code Duplication · Edited copy of a member (6 corresponding lines) fair/lib/src/internal/flexbuffer/reference.dart
  • Code Duplication · Edited copy of a member (9 corresponding lines) fair_provider/lib/src/fair_provider_core.dart
  • Code Duplication · Edited copy of a member (15 corresponding lines) fair_online/fair_online_service/lib/services_cloud_run.dart
  • Code Duplication · Edited copies of one member (3 members, 6+ corresponding lines) fair/lib/src/render/expression.dart
  • Code Duplication · Edited copy of a member (9 corresponding lines) dart2dsl/lib/fairdsl/fair_ast_node.dart
  • Code Duplication · Edited copy of a member (9 corresponding lines) dart2dsl/lib/fairdsl/fair_ast_gen.dart
  • Code Duplication · Edited copy of a member (9 corresponding lines) dart2dsl/lib/fairdsl/fair_ast_node.dart
  • Code Duplication · Edited copies of one member (6 members, 8+ corresponding lines) dart2dsl/lib/fairdsl/fair_ast_node.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) fair_extension/lib/url_launcher/fair_url_launcher_plugin.dart
  • Code Duplication · Edited copy of a member (6 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (13 corresponding lines) fair_extension/lib/log/log.dart
  • Code Duplication · Edited copy of a member (4 corresponding lines) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart
  • Code Duplication · Edited copy of a member (8 corresponding lines) fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart
  • Code Duplication · Edited copy of a member (4 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (8 corresponding lines) fair_online/fair_online_service/lib/services_cloud_run.dart
  • Code Duplication · Edited copy of a member (3 corresponding lines) dart2js/lib/src/convertor.dart
  • Code Duplication · Edited copy of a member (6 corresponding lines) fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_code_editor.dart
  • Code Duplication · Duplicated block (26 lines × 2) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart
  • Code Duplication · Duplicated block (22–23 lines × 2) fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart
  • Code Duplication · Duplicated block (17–18 lines × 6) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (19 lines × 2) fair/lib/src/internal/bind_data.dart
  • Code Duplication · Duplicated block (15 lines × 3) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart
  • Code Duplication · Duplicated block (13 lines × 4) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart
  • Code Duplication · Duplicated block (11–13 lines × 2) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart
  • Code Duplication · Duplicated block (13 lines × 2) fair_online/fair_online_service/lib/src/analysis_server.dart
  • Code Duplication · Duplicated block (12 lines × 2) fair_online/fair_online/lib/views/use_code/use_action_item_view.dart
  • Code Duplication · Duplicated block (11 lines × 5) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (11 lines × 3) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (11 lines × 3) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (10 lines × 9) fair_online/fair_online_service/lib/src/common_server_impl.dart

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: 84 findings

These 84 critical or serious findings were in the previous survey, on 23 October 2026, and are gone from this one.

  • Cognitive Complexity · fair_jsbase.DateTime.parse (cognitive 20) REDACTED
  • Cognitive Complexity · fair_jsbase.DateTime.parse (cognitive 20) REDACTED
  • Code Duplication · Near-duplicate member pair (161 shared lines) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart
  • Code Duplication · Duplicated block (26 lines × 2) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart
  • Code Duplication · Duplicated block (22–23 lines × 2) fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart
  • Code Duplication · Duplicated block (17–18 lines × 6) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (15 lines × 3) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart
  • Code Duplication · Duplicated block (13 lines × 4) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart
  • Code Duplication · Duplicated block (11–13 lines × 2) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart
  • Code Duplication · Duplicated block (13 lines × 2) fair_online/fair_online_service/lib/src/analysis_server.dart
  • Code Duplication · Duplicated block (12 lines × 2) fair/lib/src/internal/bind_data.dart
  • Code Duplication · Duplicated block (12 lines × 2) fair_online/fair_online/lib/views/use_code/use_action_item_view.dart
  • Code Duplication · Duplicated block (11 lines × 5) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (11 lines × 3) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (11 lines × 3) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (10 lines × 9) fair_online/fair_online_service/lib/src/common_server_impl.dart
  • Code Duplication · Duplicated block (10 lines × 2) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart
  • Code Duplication · Duplicated block (9 lines × 3) fair_online/fair_online/lib/views/custom_code_page/dialog/code_compile_dialog_widget.dart
  • Code Duplication · Duplicated block (9 lines × 3) fair_online/fair_online_service/lib/src/analysis_server.dart
  • Code Duplication · Duplicated block (8 lines × 2) fair/lib/src/render/builder.dart
  • Code Duplication · Duplicated block (6 lines × 2) dart2js/lib/src/convertor.dart
  • Code Duplication · Duplicated block (6 lines × 2) dart2js/lib/src/convertor.dart
  • Code Duplication · Duplicated block (5 lines × 2) dart2js/lib/src/convertor.dart
  • Code Duplication · Duplicated block (5 lines × 2) dart2js/lib/src/convertor.dart
  • Code Duplication · Duplicated block (10 lines × 4) fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart
  • Code Duplication · Duplicated block (5 lines × 2) dart2js/lib/src/convertor.dart
  • Code Duplication · Duplicated block (27 lines × 2) fair/android/src/main/java/com/wuba/fair/utils/FairFileUtil.java
  • Code Duplication · Duplicated block (7 lines × 23) example/ios/Runner/AppDelegate.swift
  • Code Duplication · Near-duplicate member family (3 members, 83 shared lines) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart
  • Code Duplication · Near-duplicate member pair (79 shared lines) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart
  • Code Duplication · Edited copy of a member (36 corresponding lines) example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart
  • Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart
  • Code Duplication · Duplicated block (137 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart
  • Code Duplication · Duplicated block (129 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart
  • Code Duplication · Duplicated block (105 lines × 2) example/lib/best_flutter_ui/design_course/category_list_view.dart
  • Code Duplication · Duplicated block (76 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart
  • Code Duplication · Duplicated block (61 lines × 2) example/lib/best_flutter_ui/design_course/popular_course_list_view.dart
  • Code Duplication · Duplicated block (53 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart
  • Code Duplication · Duplicated block (44 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart
  • Code Duplication · Duplicated block (43 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart
  • Code Duplication · Duplicated block (41 lines × 2) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart
  • Code Duplication · Duplicated block (40 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart
  • Code Duplication · Duplicated block (38 lines × 2) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart
  • Code Duplication · Duplicated block (36 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart
  • Code Duplication · Duplicated block (32 lines × 5) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart
  • Code Duplication · Duplicated block (30 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart
  • Code Duplication · Duplicated block (27 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart
  • Code Duplication · Duplicated block (26 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart
  • Code Duplication · Duplicated block (26 lines × 2) test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart
  • Code Duplication · Duplicated block (25 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart
  • Code Duplication · Duplicated block (21 lines × 4) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart
  • Code Duplication · Duplicated block (21 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart
  • Code Duplication · Duplicated block (21 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart
  • Code Duplication · Duplicated block (20 lines × 2) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart
  • Code Duplication · Duplicated block (20 lines × 2) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart
  • Code Duplication · Duplicated block (19 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart
  • Code Duplication · Duplicated block (18 lines × 15) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart
  • Code Duplication · Duplicated block (18 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart
  • Code Duplication · Duplicated block (18 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart
  • Code Duplication · Duplicated block (18 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart
  • Code Duplication · Duplicated block (17 lines × 2) example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart
  • Code Duplication · Duplicated block (17 lines × 2) test_case/adobe_xd/lib/Gear.dart
  • Code Duplication · Duplicated block (16 lines × 4) test_case/adobe_xd/lib/Gear.dart
  • Code Duplication · Duplicated block (15 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart
  • Code Duplication · Duplicated block (15 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart
  • Code Duplication · Duplicated block (15 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart
  • Code Duplication · Duplicated block (15 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart
  • Code Duplication · Duplicated block (15 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart
  • Code Duplication · Duplicated block (14 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart
  • Code Duplication · Duplicated block (12 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart
  • Code Duplication · Duplicated block (10 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart
  • Code Duplication · Duplicated block (9 lines × 7) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart
  • Code Duplication · Duplicated block (6 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_app_theme.dart
  • Secrets (history) · High secret: WD-SECRET-0005 fair_provider/example/assets/fair/lib_ui_counter_page_provider.fair.js
  • Secrets (history) · High secret: WD-SECRET-0005 fair_provider/example/lib/ui/counter_page_provider.dart
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High vulnerability: REDACTED REDACTED
  • Dependency Vulnerabilities · High vulnerability: REDACTED REDACTED
  • Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
  • Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
  • Access Controls · No authorization doc_server/bin/server.dart
  • A11y enforcement · Accessibility enforcement below the top rung
Rebuild cost: about €140,000 · Estimate
Cost to rebuild€47,000 to €230,000, for 777 to 2,467 hours of work, about 1.0 person-years for 1 to 2 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 37. 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: 162,144 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
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
Raises the score by about 8 points · Medium effort · Access Controls
2
Resolve the 5 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED.
Raises the score by about 2 points · Low effort · Supply-chain Provenance & Signing
3
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.
Raises the score by about 3 points · Medium effort · Security & performance tooling

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 €140,000 to build again, about 1.0 person-years of work. Its weakest lens is Security and Compliance, at 27 (Weak). Security and Compliance is about how well the product is protected, and how it handles personal data. Because the weakest lens counts most in the score, work on Security and Compliance also moves the score most.
Based on: the rebuild estimate · the Security and Compliance grade · how much each lens counts
What to do: Start with the Security and Compliance actions in Top priorities.
If you do one thing first · First action
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do. Of all the actions in this report, it raises the score most for the work it takes: about 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 7.5 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 2% to 5% on every change.
How this is estimated: It rests on an assumption 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. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4)
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 doc_server doc_server empty_project empty_project fair (Gradle) fair (Gradle) fair (pub) fair (pub) fair_annotation fair_annotation fair_compiler fair_compiler fair_dart2dsl fair_dart2dsl fair_dart2js fair_dart2js fair_document fair_document fair_extension (Gradle) fair_extension (Gradle) fair_extension (pub) fair_extension (pub) fair_online fair_online fair_online_service fair_online_service fair_provider fair_provider fair_version (flutter_version/flutter_1_12_13) flutter_1_12_13) fair_version (flutter_version/flutter_1_17_3) flutter_1_17_3) fair_version (flutter_version/flutter_1_20_4) flutter_1_20_4) fair_version (flutter_version/flutter_1_22_4) flutter_1_22_4) fair_version (flutter_version/flutter_1_22_6) flutter_1_22_6) fair_version (flutter_version/flutter_2_0_6) flutter_2_0_6) __more__ +9 more projects

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.

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

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

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 com.wuba.fair.callback2 com.wuba.fair.constant3 com.wuba.fair.fair_extension4 com.wuba.fair.logger5 com.wuba.fair.online.fair_online6 com.wuba.fair.register7 com.wuba.fair.thread8 com.wuba.fair.utils9 dart2dsl.lib.dartjs.core-types10 dart2js.core-types11 fair.assets.fair_core12 fair.assets.fair_core.fair_core13 fair_extension.assets.plugin14 fair_extension.assets.plugin.fair_log_plugin15 fair_extension.assets.plugin.fair_navigator_plugin16 fair_extension.assets.plugin.fair_toast_plugin17 repository.app18 repository.data19 repository.fairdsl20 com.wuba.fair.channel21 com.wuba.fair.core.base22 com.wuba.fair.jsexecutor23 repository.src24 com.wuba.fair.core25 repository26 repository.base27 repository.code28 repository.editor29 repository.image_picker30 repository.log31 repository.navigator32 repository.net33 repository.page34 repository.permission35 repository.plugins36 repository.toast37 repository.url_launcher38 com.wuba.fair39 repository.models40 repository.views
1 com.wuba.fair.callback
2 com.wuba.fair.constant
3 com.wuba.fair.fair_extension
4 com.wuba.fair.logger
5 com.wuba.fair.online.fair_online
6 com.wuba.fair.register
7 com.wuba.fair.thread
8 com.wuba.fair.utils
9 dart2dsl.lib.dartjs.core-types
10 dart2js.core-types
11 fair.assets.fair_core
12 fair.assets.fair_core.fair_core
13 fair_extension.assets.plugin
14 fair_extension.assets.plugin.fair_log_plugin
15 fair_extension.assets.plugin.fair_navigator_plugin
16 fair_extension.assets.plugin.fair_toast_plugin
17 repository.app
18 repository.data
19 repository.fairdsl
20 com.wuba.fair.channel1
21 com.wuba.fair.core.base12
22 com.wuba.fair.jsexecutor1
23 repository.src17
24 com.wuba.fair.core2422
25 repository9
26 repository.base11
27 repository.code2
28 repository.editor2
29 repository.image_picker1
30 repository.log1
31 repository.navigator1
32 repository.net1
33 repository.page13
34 repository.permission1
35 repository.plugins1
36 repository.toast1
37 repository.url_launcher1
38 com.wuba.fair11111
39 repository.models122
40 repository.views3722156
Uses a module listed above itPart of a loopThe module itself
1 com.wuba.fair.callback2 com.wuba.fair.constant3 com.wuba.fair.fair_extension4 com.wuba.fair.logger5 com.wuba.fair.online.fair_online6 com.wuba.fair.register7 com.wuba.fair.thread8 com.wuba.fair.utils9 dart2dsl.lib.dartjs.core-types10 dart2js.core-types11 fair.assets.fair_core12 fair.assets.fair_core.fair_core13 fair_extension.assets.plugin14 fair_extension.assets.plugin.fair_log_plugin15 fair_extension.assets.plugin.fair_navigator_plugin16 fair_extension.assets.plugin.fair_toast_plugin17 repository.app18 repository.data19 repository.fairdsl20 com.wuba.fair.channel21 com.wuba.fair.core.base22 com.wuba.fair.jsexecutor23 repository.src24 com.wuba.fair.core25 repository26 repository.base27 repository.code28 repository.editor29 repository.image_picker30 repository.log31 repository.navigator32 repository.net33 repository.page34 repository.permission35 repository.plugins36 repository.toast37 repository.url_launcher38 com.wuba.fair39 repository.models40 repository.viewscom.wuba.fair.callback1com.wuba.fair.constant2com.wuba.fair.fair_extension3com.wuba.fair.logger4com.wuba.fair.online.fair_online5com.wuba.fair.register6com.wuba.fair.thread7com.wuba.fair.utils8dart2dsl.lib.dartjs.core-types9dart2js.core-types10fair.assets.fair_core11fair.assets.fair_core.fair_core12fair_extension.assets.plugin13fair_extension.assets.plugin.fair_log_plugin14fair_extension.assets.plugin.fair_navigator_plugin15fair_extension.assets.plugin.fair_toast_plugin16repository.app17repository.data18repository.fairdsl19com.wuba.fair.channel20com.wuba.fair.core.base21com.wuba.fair.jsexecutor22repository.src23com.wuba.fair.core24repository25repository.base26repository.code27repository.editor28repository.image_picker29repository.log30repository.navigator31repository.net32repository.page33repository.permission34repository.plugins35repository.toast36repository.url_launcher37com.wuba.fair38repository.models39repository.views401121172422911221111131111111111223722156+17 more modules (most-connected shown)

At a glance — Code Health · 53% · Adequate · gated by R1 ·

At a glance — Architecture · 94% · Exemplary ·

At a glance — Maturity · 59% · Adequate · gated by D34, M2 ·

At a glance — Readiness · 30% · Weak · gated by R4, R6, P3, P7 ·

At a glance — Security · 27% · Weak · gated by D29, D36, C2 ·

At a glance — Accessibility · 60% · Adequate · gated by AC6 ·

At a glance — Performance · 60% · Adequate ·

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A05:2025 — Injection196High / Critical
A03:2025 — Software Supply Chain Failures91High / Critical
A02:2025 — Security Misconfiguration3High / Critical

Roadmap

Top priorities: Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do; Resolve the 172 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (108), REDACTED (36), REDACTED (28); 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
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.+8.2 ptsMediumAccess Controls
Resolve the 5 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED.+2.0 ptsLowSupply-chain Provenance & Signing
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.+2.8 ptsMediumSecurity & performance tooling
Add a test runner (vitest / jest / playwright) and eslint and type checking (adopt TypeScript, or type-check the existing JavaScript with `checkJs`) as package.json scripts and run them in CI.+2.8 ptsMediumTooling
Resolve the 2 High vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED (2).+1.2 ptsLowDependency Vulnerabilities
Resolve the 1 High IaC finding(s) in IaC & Container Security — start with REDACTED.+1.2 ptsLowIaC & Container Security
Resolve the 38 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (38).+2.1 ptsMediumDependency Vulnerabilities
Resolve the 172 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (108), REDACTED (36), REDACTED (28).+3.8 ptsHighStatic Analysis (SAST)

File quality

Per-file score 0–10 — a quality signature. Of 250 files carrying findings, judged against the Production bar: 2% slop · 59% mixed · 39% near-clean.

FileScoreBandWorst signal
REDACTED0.0SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED2.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.3MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.3MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.3MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.4MixedIaC & Container Security: High IaC: REDACTED
fair_provider/lib/src/fair_provider_core.dart5.5MixedCode Duplication: Edited copy of a member (9 corresponding lines)
example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart5.5MixedCode Duplication: Members sharing a duplicated core (4 members, 50+ identical tokens)
fair_online/fair_online_service/lib/src/project/fair_project.dart5.5MixedCognitive Complexity: FairProject.copyProjectPage (cognitive 29)
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED

How the grades work

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

Critical — 74

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

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

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

Could not be resolved — 13

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 72 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 — 72 dimensions across the health lenses
D1D2D3D4D5D6D13D15D17D19D20D24D26D28D29D30D31D34D35D36D43D44AC2AC6AX1AX10AX3AX4AX8AX9C2GD1IC1M1M2M3M4P1P10P2P3P4P6P7PF3R1R10R2R3R4R5R6R7R8R9X1X12X13X16X17X18X2X20X21X23X25X27X28X29X3X30X5

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, 1548 of 1559 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 01a1d332-d111-7eef-bcc1-49b1925c1973.

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, .js) 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, .js) 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 — 51 Maven/Gradle manifest(s) were read, stating a version for 0 dependency(ies) and leaving 23 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 — 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 — this repository's 51 Maven/Gradle manifest(s) were read and none of the dependency coordinates they declare carries a version resolvable from the manifest itself: every one is inherited from a parent POM, a <dependencyManagement> block, an imported BOM or a Gradle version reference the catalogue does not define. Licences are resolved from the POMs Maven Central publishes, which requires a version to ask about, and grading whichever release happens to be newest today would be a verdict about a dependency graph this repository has not pinned. NOT a finding that this repository's licences are compliant: this dimension asserts nothing about its licensing in either direction.
  • D16 Bus Factor — 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. All 276 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains — nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness). Counted over 248 of the 846 production source files in this repository: 570 are under the ~2,400-byte size floor this dimension measures over, and the remaining 28 have no attributable history left to measure.
  • 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. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
  • D19 Documentation Quality — measured, with a gap in what it reached — 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 deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
  • D22 Internal API Consistency — not measured this run — 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 (package.json), 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 — 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. D24 compares a comment's words with the identifiers, literals and constructs of the code it annotates, using English function-word and rationale lexicons. Comments in another script or language were left unread rather than counted as clean.
  • D24 Comment Value — 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. Each source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
  • 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.
  • AX6 Interface segregation — 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 most of the languages this repository's product is written in. What it read is kept, but it is too small a share to grade the product by. That is a gap in this analyzer's language reach — not a finding about this repository.
  • 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. User interface: 8 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. Boot: crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:32768: page.goto: net::ERR_CONNECTION_REFUSED at http://127.0.0.1:32768/ Call log: - navigating to "http://127.0.0.1:32768/", waiting until "load" .
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P1 CI/CD gates — 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. A CI pipeline exists and the word "test" appears, but no explicit test-runner invocation (your stack's test command, or a test job) was matched — so either the gate runs tests through a step this pass could not recognise, or "test" is incidental here (a path, "latest", a reporter). Which of the two it is cannot be settled from this dimension's evidence; the coverage dimensions report whether a suite exists at all. You can widen what we reach: name the test runner explicitly in the pipeline step (your stack's test command, or a job named for the suite) so the gate is unambiguous to a reader and to this pass.
  • 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.
  • S1 Web-Security Posture — 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. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
  • 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. 7 further occurrence(s) are not listed individually; the score already reflects all 47.
  • 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's reader does not cover most of the languages this repository's product is written in. What it read is kept, but it is too small a share to grade the product by. That is a gap in this analyzer's language reach — not a finding about this repository.
  • X26 Unsynchronised callback handoff — 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 most of the languages this repository's product is written in. What it read is kept, but it is too small a share to grade the product by. That is a gap in this analyzer's language reach — not a finding about this repository.

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").
  • 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.
  • 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.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • 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.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity6.6 / 10Adequate✓ 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 6.6 / 10 · rule-coverage 100% · ceiling Prevented

19 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was jsbeautify.js_beautify at 90.

ClassDeclarationVisitor.visitClassDeclaration (cyclomatic 30) · ×2dart2js/lib/src/convertor.dart:296
WidgetStateGenerator.visitClassDeclaration (cyclomatic 16) · ×2dart2js/lib/src/convertor.dart:502
jsbeautify.js_beautify (cyclomatic 90)fair_online/fair_online/web/scripts/jsbeautify.js:2
jsbeautify.js_beautify::get_next_token (cyclomatic 54)fair_online/fair_online/web/scripts/jsbeautify.js:77
SimpleFunctionGenerator.visitNode (cyclomatic 53)dart2js/lib/src/convertor.dart:1301

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

What to do

  1. Bring the 1 body over 60 down to 60 or less in Cyclomatic Complexity — start with jsbeautify.js_beautify (cyclomatic 90). — Refactoring it lifts Cyclomatic Complexity from 6.6 to about 7.0/10.

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

D2 · Cognitive Complexity5.5 / 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 5.5 / 10 · rule-coverage 100% · ceiling Prevented

52 method(s) exceeded the cognitive complexity threshold of 15; the worst was jsbeautify.js_beautify at 167.

ClassDeclarationVisitor.visitClassDeclaration (cognitive 52) · ×2dart2js/lib/src/convertor.dart:296
WidgetStateGenerator.visitClassDeclaration (cognitive 32) · ×2dart2js/lib/src/convertor.dart:502
core.DateTime.parse (cognitive 20) · ×2REDACTED:532
date.DateTime.parse (cognitive 20) · ×2REDACTED:257
fair_jsbase.DateTime.parse (cognitive 20) · ×2REDACTED:688

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

What to do

  1. Bring the 3 bodies over 60 down to 60 or less in Cognitive Complexity — start with jsbeautify.js_beautify (cognitive 167), SimpleFunctionGenerator.visitNode (cognitive 95), jsbeautify.js_beautify::get_next_token (cognitive 90). — 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 3 together lifts Cognitive Complexity from 5.5 to about 6.5/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.

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

D3 · God Classes9.1 / 10Stronggated by 39 serious findings✓ 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 9.1 / 10 · rule-coverage 100% · ceiling Prevented

39 god class(es) detected.

FileTooLong: widgets/$$m.dart · ×16flutter_version/flutter_1_22_4/lib/src/widgets/$$m.dart
TooManyMethods: CustomAstVisitor · ×10dart2dsl/lib/fairdsl/fair_ast_gen.dart:26
MethodTooLong: TopPanelView.build · ×8fair_online/fair_online/lib/views/top_panel/top_panel_view.dart:19
ClassTooLong: DynamicWidgetBuilder · ×4fair/lib/src/render/builder.dart:43
FunctionTooLong: jsbeautify.js_beautifyfair_online/fair_online/web/scripts/jsbeautify.js:2

What to do

  1. Resolve the 16 FileTooLong finding(s) in God Classes — start with $$m.dart (5), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (16 warning-level).
  2. Resolve the 10 TooManyMethods finding(s) in God Classes — start with fair_ast_gen.dart, common_server_impl.dart, dartservices.dart. — One of this dimension's main actionable groups (10 warning-level).
  3. Resolve the 8 MethodTooLong finding(s) in God Classes — start with top_panel_view.dart, upload_plugin_dialog.dart, create_custom_component_dialog_view.dart. — One of this dimension's main actionable groups (8 warning-level).

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

D4 · Code Duplication8.7 / 10Strong✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

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

431 duplicated block group(s) detected. A further 153 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 325 of the 584 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 (11 lines × 2) · ×14dart2js/lib/src/convertor.dart:1182
Duplicated block (9 lines × 2) · ×12fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart:18
Duplicated block (12 lines × 2) · ×11fair_online/fair_online/lib/views/api_call_page/popup_list.dart:83
Duplicated block (6 lines × 2) · ×11dart2js/lib/src/convertor.dart:602
Duplicated block (14 lines × 2) · ×10fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:44

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

What to do

  1. Resolve the 14 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with custom_calendar.dart (4), convertor.dart (2), builder.dart. — One of this dimension's main actionable groups (14 warning-level).
  2. Resolve the 12 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with convertor.dart (3), custom_code_page.dart (2), custom_action_item_widget.dart. — One of this dimension's main actionable groups (12 warning-level).
  3. Resolve the 11 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with Gear.dart (2), popup_list.dart, custom_code_page_view.dart. — One of this dimension's main actionable groups (11 warning-level).

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

D5 · Coupling10.0 / 10Exemplary✓ 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 10.0 / 10 · rule-coverage 100% · ceiling Prevented

29 production modules (Gradle+npm+pub+CMake), 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; 0 module(s) off the main sequence, with abstractness counted on 26 of the 29 (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).

✓ On the Gold path — maintain.

Detailed fixes: d5_recommendation.md.

D6 · Cohesion (LCOM4)9.1 / 10Stronggated by 28 serious findings✓ 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.1 / 10 · rule-coverage 100% · ceiling Verified

28 of 360 classes have LCOM4 above 3.

Low cohesion: FairProject (LCOM4 19) · ×28fair_online/fair_online_service/lib/src/project/fair_project.dart:24

What to do

  1. Resolve the 28 Low cohesion finding(s) in Cohesion (LCOM4) — start with editor_codemirror.dart (2), hotel_home_screen.dart (2), fair_provider_core.dart (2). — One of this dimension's main actionable groups (28 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.

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.

D17 · Explicit Debt10.0 / 10Stronggated by 39 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 10.0 / 10 · rule-coverage 100% · ceiling Prevented

39 deducted task-comment markers across 162144 LoC (0.0/KLoC) → score 10.0. 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 · ×39test_case/flutter_libs_app/lib/sign_in_with_app/sign_in_with_apple_delegate.dart:19

What to do

  1. Resolve the 39 TodoComment finding(s) in Explicit Debt — start with analysis_server.dart (5), completion.dart (3), sign_in_with_apple_delegate.dart (2). — One of this dimension's main actionable groups (39 warning-level).

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

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

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

1 of 1 documentation facets pass in full. 102 document(s) read across 1 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

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

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

Method: 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 foundtest_case/sugar_demo_tabbar/lib/main.dart:8

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality — start with main.dart. — 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.

D24 · Comment Value10.0 2.8 / 10Weak○ Nothing flagged

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

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

Maturity: Documented → Verified → Prevented · effective 2.8 / 10 · rule-coverage 28% · ceiling Documented

0 of 66 judged comments only repeat the code they sit on (0.0 %). 380 comment(s) in another language or script were not judged.

Detailed fixes: d24_recommendation.md.

D26 · Project Cohesion8.3 / 10Strong✓ 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 8.3 / 10 · rule-coverage 100% · ceiling Documented

3 of 32 build units (Gradle, Xcode, npm, pub) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion

What to do

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

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

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

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

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

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

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

196 finding(s): 0 critical, 21 high, 175 medium, 0 low. 10 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 6 file(s) — `example/assets/fair/lib_best_flutter_ui_component_hotel_listview_content.fair.js` (line 1), `example/assets/fair/lib_main.fair.js` (line 1), `test_case/adobe_xd/assets/bundle/lib_Gear.fair.js` (line 1), `test_case/adobe_xd/assets/bundle/lib_Home.fair.js` (line 1), `test_case/best_flutter_ui_templates/assets/bundle/lib_component_hotel_listview_content.fair.js` (line 1), … (+1 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

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

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

D30 · Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

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

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

82 finding(s): 12 critical, 40 high, 23 medium, 7 low.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

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

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

D31 · IaC & Container Security9.5 / 10Adequategated by 1 critical finding✓ Tool-verified

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

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

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

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

REDACTED
REDACTED
REDACTED

What to do

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

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

D34 · Knowledge Freshness0.0 / 10Critical✓ 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 0.0 / 10 · rule-coverage 100% · ceiling Documented

276 of 276 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is test_case/flutter_libs_app/lib/google_fonts/fair_google_fonts.dart. Counted over 276 of the 846 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×273flutter_version/flutter_1_17_3/lib/src/widgets/$$m.dart:1
Most significant orphaned file · ×3test_case/flutter_libs_app/lib/google_fonts/fair_google_fonts.dart:1
Dormant codebase

What to do

  1. Resolve the 273 Orphaned file finding(s) in Knowledge Freshness — start with $$w.dart (5), $$c.dart (5), version.dart (5). — One of this dimension's main actionable groups (273 recommendation-level).
  2. Resolve the 3 Most significant orphaned file finding(s) in Knowledge Freshness — start with $$m.dart (2), fair_google_fonts.dart. — One of this dimension's main actionable groups (3 recommendation-level).
  3. Resolve the 1 Dormant codebase 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 Coupling10.0 / 10Stronggated by 1 serious finding✓ Tool-verified

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

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

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

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

Strongest change-coupling: flow.dart↔builder.dart 57%

Change coupling: flow.dart ↔ builder.dartfair/lib/src/bloc/flow.dart:1

What to do

  1. Resolve the 1 Change coupling finding(s) in Change Coupling — start with flow.dart. — One of this dimension's main actionable groups (1 warning-level).

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

D36 · Supply-chain Provenance & Signing2.5 / 10Weak✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

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

1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 5 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (5 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

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

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

AC2 · Forms & labels10.0 / 10Exemplary○ Nothing flagged

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.

AC6 · Visual & motion safety2.9 / 10Weak✓ 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.

  • The inline foreground/background colours fall below the 4.5:1 WCAG AA minimum for normal text. Darken/lighten one of them. — doc/.vuepress/theme/layouts/Layout.vue:3
  • `li.CodeMirror-hint-active` sets color: white on background-color: #08f — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. (×2) — fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:469, fair_online/fair_online/web/scripts/codemirror/addon/hint/show-hint.css:33
  • `.tabnav-tab:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — fair_online/fair_online/web/styles/embed/styles.scss:47
  • `.CodeMirror-scroll` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:172
  • `.CodeMirror-vscrollbar` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:188
  • `.CodeMirror-code` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:286
  • `.CodeMirror-dialog input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:498

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.
AX1 · Captive dependencies10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.

Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.

AX10 · Code composition8.4 / 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.

AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

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

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

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.

C2 · Access Controls0.0 / 10Critical✓ Tool-verified

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

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

  • This repository serves requests — a shelf server (shelf_io.serve) (fair_online/fair_online_service/lib/services_cloud_run.dart:60) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected. — fair_online/fair_online_service/lib/services_cloud_run.dart:60

What to do

  • Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary✓ Tool-verified

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.

  • `createState` is a shipped member whose whole body still throws UnimplementedError — generated scaffolding that was never completed. Implement it or remove the dead surface. — fair_online/fair_online/lib/base/components/styled_dialogs.dart:194

What to do

  • Finish or delete the methods that still throw UnimplementedError, and replace placeholder text before shipping.
IC1 · Incompleteness & stubs8.2 / 10Strong✓ Tool-verified

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.

  • `didUpdateWidget` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — fair/lib/src/widget.dart:307
  • `createState` is a shipped member whose whole body throws UnimplementedError — scaffolding that was never completed. Implement it or remove the dead surface. — fair_online/fair_online/lib/base/components/styled_dialogs.dart:194
  • `printObject` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — fair_provider/lib/src/fair_provider_core.dart:20
  • `setJsLoadListener` has an empty body — confirm it's an intentional no-op and not an unfinished method. — fair/lib/src/runtime/fair_runtime_impl.dart:47
  • `initState` has an empty body — confirm it's an intentional no-op and not an unfinished method. — fair/lib/src/widget.dart:300
  • `updateComponentConfig` has an empty body — confirm it's an intentional no-op and not an unfinished method. — fair_online/fair_online_service/lib/src/customcode/custom_code.dart:104

What to do

  • Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
  • Clear the softer debt: re-enable or delete 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.8 / 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 / 10Critical✓ Tool-verified

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

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

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

What to do

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

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

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

M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

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

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

P1 · CI/CD gates8.5 / 10Strong✓ Tool-verified

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.

What to do

  • Run the test suite in CI via an explicit runner step (`flutter test` for the toolchain this pipeline already uses) and gate merges on it.
P10 · Library API & versioning9.7 / 10Exemplary✓ Tool-verified

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.

  • 25 public types in `repository.src` are marked as implementation by their own namespace, folder or name: `BindingData` (fair/lib/src/internal/bind_data.dart:17, `internal`), `RuntimeError` (fair/lib/src/internal/bind_data.dart:166, `internal`), `FairBundle` (fair/lib/src/internal/bundle_provider.dart:20, `internal`), `FairBundlePathCheck` (fair/lib/src/internal/bundle_provider.dart:29, `internal`), `FairBundleProvider` (fair/lib/src/internal/bundle_provider.dart:44, `internal`), `WarningWidget` (fair/lib/src/internal/error_tips.dart:12, `internal`), `WidgetData` (fair/lib/src/internal/fair_bundle_generated.dart:8, `internal`), `WidgetDataBuilder` (fair/lib/src/internal/fair_bundle_generated.dart:40, `internal`), and 17 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers. — fair/lib/src/internal/bind_data.dart:17

What to do

  • Hide `repository.src` (`BindingData`, `RuntimeError`, `FairBundle`, `FairBundlePathCheck`, `FairBundleProvider`, `WarningWidget`, `WidgetData`, `WidgetDataBuilder`, and 17 more) (Dart: a `_` name, or keep it under `lib/src/` unexported; Java: package-private (no modifier), or leave its package out of `module-info` exports; Kotlin: `internal`; Swift: leave it `internal` (the default) instead of `public`): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
P2 · Observability5.0 / 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 4/12 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `dart2dsl`, `dart2js`, `doc_server`, `fair_online/fair_online/ios`, `fair_online/fair_online_service/fairDir/empty/project/empty_project` and 3 more.

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
  • Add a health-check endpoint (a /health route on your shelf router) so orchestrators and load balancers can probe liveness/readiness.
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:6
  • `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`. — package.json:14

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 & Rollback5.0 / 10Adequate✓ 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.

What to do

  • Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
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.

  • `fair_provider/pubspec.yaml` publishes `fair_provider` 0.0.1+1 to a pub registry, and `fair_provider/pubspec.lock` is committed beside it. pub's guidance splits on exactly this: an application commits `pubspec.lock` because the resolution it records is the one that runs, and a package does not, because no consumer ever uses it — they resolve your declared version ranges against their own dependency set. The cost is not tidiness: the committed lockfile is what your own CI resolves against, so the ranges you publish are never exercised, and the first consumer to resolve a newer compatible version is the one who discovers whether the range was right. Remove it with `git rm --cached pubspec.lock` and add `pubspec.lock` to `.gitignore`. — fair_provider/pubspec.lock:1

What to do

  • Stop committing the lockfile of a package you publish — `git rm --cached pubspec.lock` and add it to `.gitignore`, so your own CI resolves the version ranges you declare instead of a pin no consumer shares.
P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

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

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

  • `Dio(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — fair_online/fair_online_service/lib/src/apicall/dio_sample.dart:14

What to do

  • Bound every outbound call: `.timeout(const Duration(seconds: 10))` on the request future for `package:http` and `dart:io`'s `HttpClient` (neither has a default), `receiveTimeout` on dio's `BaseOptions`, and a `RetryClient` (package:http/retry.dart) or `package:retry` around dependencies that fail.
PF3 · Async & latency hygiene6.0 / 10Adequate✓ Tool-verified

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

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

  • `generateForAnnotatedElement` is async and calls writeAsBytesSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/generator.dart:31
  • `generateForAnnotatedElement` is async and calls createSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/generator.dart:88
  • `_transitSource` is async and calls writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/generator.dart:192
  • `build` is async and calls readAsLinesSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/generator.dart:252
  • `compile` is async and calls runSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/helper.dart:22
  • `_syncFbs` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/helper.dart:63
  • `build` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/post_builder.dart:21
  • `dart2JS` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/post_builder.dart:55
  • `compileBundle` is async and calls writeAsBytesSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — compiler/lib/src/post_builder.dart:85
  • `warmup` is async and calls createSync, listSync, readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/analysis_server.dart:300
  • `getAllApiCall` is async and calls listSync, readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/apicall/api_call.dart:15
  • `addApiCall` is async and calls createSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/apicall/api_call.dart:45
  • `deleteApiCall` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/apicall/api_call.dart:89
  • `compileDDC` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/compiler.dart:39
  • `saveConfig` is async and calls writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/customcode/custom_code.dart:21
  • `createCustomComponent` is async and calls createSync, writeAsStringSync, writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/customcode/custom_code.dart:51
  • `createCustomAction` is async and calls createSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/customcode/custom_code.dart:106
  • `getCustomComponents` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — fair_online/fair_online_service/lib/src/customcode/custom_code.dart:140, fair_online/fair_online_service/lib/src/project/fair_project.dart:468
  • `getCustomActions` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — fair_online/fair_online_service/lib/src/customcode/custom_code.dart:190, fair_online/fair_online_service/lib/src/project/fair_project.dart:502
  • `deleteCustomCodeItem` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — fair_online/fair_online_service/lib/src/customcode/custom_code.dart:224, fair_online/fair_online_service/lib/src/project/fair_project.dart:527
  • `compile` is async and calls createSync, listSync, copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/fair_compiler.dart:25
  • `getProjects` is async and calls createSync, listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:56
  • `getTemplateProjects` is async and calls createSync, listSync, readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:81
  • `createProject` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:123
  • `getProjectsPages` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:338
  • `copyProjectPage` is async and calls copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:376
  • `deleteProjectPage` is async and calls deleteSync, listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:436
  • `getDependencyFilePath` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:541
  • `getTemplatePages` is async and calls createSync, readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:586
  • `createProjectPage` is async and calls createSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:628
  • `createTemplatePage` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:652
  • `getFairDslList` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/project/fair_project.dart:743
  • `editDependency` is async and calls readAsLinesSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/utils/change_dependency_util.dart:5
  • `addDependency` is async and calls readAsLinesSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/utils/change_dependency_util.dart:19
  • `deleteDependency` is async and calls readAsLinesSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — fair_online/fair_online_service/lib/src/utils/change_dependency_util.dart:31

What to do

  • Dart: await the async dart:io API (readAsString, writeAsString, Process.run, Future.delayed) instead of the *Sync variant or sleep(), or move heavy synchronous work to another isolate with Isolate.run.
R1 · Type Safety0.0 / 10Critical✓ Tool-verified

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

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

  • 0 typed · 78 plain JS — the untyped files are dart2dsl/lib/dartjs/core-types/bigInt.js, dart2dsl/lib/dartjs/core-types/bigInt.test.js, REDACTED, REDACTED, dart2dsl/lib/dartjs/core-types/date.test.js, dart2dsl/lib/dartjs/core-types/duration.js (+72 more).

What to do

  • Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
R10 · Code Duplication9.0 / 10Strong✓ Tool-verified

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

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

  • 20 of the duplicated blocks reported below have copies in at least two of the sibling directories dart2dsl, dart2js, fair, fair_extension, fair_online, fair_provider under the repository root. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — REDACTED:6
  • REDACTED:6 · REDACTED:6 · REDACTED:6 · REDACTED:6 · +1 more site(s) not listed — these 5 files are line-for-line copies of one another — 1021 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — REDACTED:6
  • REDACTED:615 · REDACTED:798 · REDACTED:792 · REDACTED:789 · +2 more site(s) not listed — the 6 copies are spread across 6 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 6 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — REDACTED:615
  • REDACTED:2 · REDACTED:7 — these 2 files are line-for-line copies of one another — 218 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — REDACTED:2
  • REDACTED:867 · dart2dsl/lib/dartjs/core-types/map.js:8 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:867
  • REDACTED:413 · REDACTED:14 · REDACTED:407 · REDACTED:404 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:413
  • REDACTED:284 · REDACTED:9 · REDACTED:413 · REDACTED:14 · +4 more site(s) not listed — the 8 copies are spread across 8 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:284
  • dart2dsl/lib/dartjs/core-types/list.js:7 · dart2js/core-types/list.js:13 — these 2 files are line-for-line copies of one another — 136 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — dart2dsl/lib/dartjs/core-types/list.js:7
  • dart2dsl/lib/dartjs/core-types/map.js:1 · dart2js/core-types/map.js:7 — these 2 files are line-for-line copies of one another — 133 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — dart2dsl/lib/dartjs/core-types/map.js:1
  • dart2dsl/lib/dartjs/core-types/regex.js:1 · dart2js/core-types/regex.js:7 — these 2 files are line-for-line copies of one another — 128 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — dart2dsl/lib/dartjs/core-types/regex.js:1
  • REDACTED:144 · dart2dsl/lib/dartjs/core-types/iterable.js:1 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — REDACTED:144
  • REDACTED:5 · REDACTED:5 · REDACTED:5 · REDACTED:5 — these 4 files are line-for-line copies of one another — 123 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — REDACTED:5
  • REDACTED:1200 · dart2js/core-types/number.js:7 — the two spans are one implementation copied and then locally edited — 525 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — REDACTED:1200
  • dart2dsl/lib/dartjs/core-types/number.js:3 · dart2js/core-types/number.js:7 — the two spans are one implementation copied and then locally edited — 525 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — dart2dsl/lib/dartjs/core-types/number.js:3
  • REDACTED:1542 · dart2dsl/lib/dartjs/core-types/string.js:2 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — REDACTED:1542
  • dart2dsl/lib/dartjs/core-types/iterable.js:1 · dart2js/core-types/iterable.js:7 — these 2 files are line-for-line copies of one another — 76 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — dart2dsl/lib/dartjs/core-types/iterable.js:1
  • dart2js/core-types/string.js:7 · REDACTED:1752 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — dart2js/core-types/string.js:7
  • REDACTED:6 · dart2js/core-types/global.js:7 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — REDACTED:6
  • REDACTED:9 · dart2dsl/lib/dartjs/core-types/duration.js:8 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:9
  • dart2dsl/lib/dartjs/core-types/set.js:3 · dart2js/core-types/set.js:9 — these 2 files are line-for-line copies of one another — 67 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — dart2dsl/lib/dartjs/core-types/set.js:3
  • REDACTED:196 · dart2js/core-types/duration.js:113 · REDACTED:190 · REDACTED:187 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:196
  • REDACTED:80 · dart2dsl/lib/dartjs/core-types/duration.js:79 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — REDACTED:80
  • fair_extension/assets/plugin/fair_image_picker.js:7 · fair_extension/assets/plugin/fair_permission.js:7 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — fair_extension/assets/plugin/fair_image_picker.js:7
  • fair_online/fair_online_service/fairDir/empty/project/empty_project/assets/plugin/fair_net_plugin.js:6 · fair_online/fair_online_service/fairDir/empty/project/empty_project/web/plugin/fair_net_plugin.js:6 · fair_online/fair_online_service/fairDir/template/project/fair_samples/assets/plugin/fair_net_plugin.js:6 · fair_online/fair_online_service/fairDir/template/project/fair_samples/web/plugin/fair_net_plugin.js:6 · +1 more site(s) not listed — the 5 copies are spread across 5 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — fair_online/fair_online_service/fairDir/empty/project/empty_project/assets/plugin/fair_net_plugin.js:6
  • dart2dsl/lib/dartjs/core-types/bigInt.js:2 · REDACTED:1656 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — dart2dsl/lib/dartjs/core-types/bigInt.js:2
  • dart2js/core-types/bigInt.js:6 · REDACTED:1866 · REDACTED:1860 · REDACTED:1860 · +1 more site(s) not listed — the 5 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — dart2js/core-types/bigInt.js:6
  • fair_extension/assets/plugin/fair_url_launcher_plugin.js:13 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:31 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — fair_extension/assets/plugin/fair_url_launcher_plugin.js:13
  • REDACTED:599 · REDACTED:200 · REDACTED:593 · REDACTED:590 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:599
  • fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:480 · fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:649 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:480
  • fair_extension/assets/plugin/fair_navigator_plugin.js:13 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:5 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:23 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — fair_extension/assets/plugin/fair_navigator_plugin.js:13
  • fair_extension/assets/plugin/fair_toast_plugin.js:17 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:15 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:33 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — fair_extension/assets/plugin/fair_toast_plugin.js:17
  • REDACTED:4 · REDACTED:278 · REDACTED:862 · REDACTED:1345 · +32 more site(s) not listed — the 15 copies are spread across 7 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — REDACTED:4
  • fair_extension/assets/plugin/fair_image_picker.js:11 · fair_extension/assets/plugin/fair_net_plugin.js:15 · fair_extension/assets/plugin/fair_permission.js:11 — the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — fair_extension/assets/plugin/fair_image_picker.js:11
  • fair_extension/assets/plugin/fair_url_launcher_plugin.js:41 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:52 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:63 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:74 · +1 more site(s) not listed — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — fair_extension/assets/plugin/fair_url_launcher_plugin.js:41
  • fair/assets/fair_core/fair_common_plugin.js:16 · fair_online/fair_online_service/fairDir/empty/project/empty_project/assets/plugin/fair_net_plugin.js:17 · fair_online/fair_online_service/fairDir/empty/project/empty_project/web/plugin/fair_net_plugin.js:17 · fair_online/fair_online_service/fairDir/template/project/fair_samples/assets/plugin/fair_net_plugin.js:17 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — fair/assets/fair_core/fair_common_plugin.js:16
  • fair_extension/assets/plugin/fair_log_plugin.js:3 · fair_extension/assets/plugin/fair_navigator_plugin.js:11 · fair_extension/assets/plugin/fair_navigator_plugin.js:32 · fair_extension/assets/plugin/fair_navigator_plugin.js:44 · +10 more site(s) not listed — the 5 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — fair_extension/assets/plugin/fair_log_plugin.js:3
  • fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:509 · fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:834 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:509
  • fair_online/fair_online/web/scripts/codemirror/addon/scroll/simplescrollbars.js:4 · fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:4 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — fair_online/fair_online/web/scripts/codemirror/addon/scroll/simplescrollbars.js:4
  • fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:733 · fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:739 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:733

What to do

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

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

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

  • js_beautify has cyclomatic complexity 90 and cognitive complexity 167; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/jsbeautify.js:2
  • get_next_token has cyclomatic complexity 55 and cognitive complexity 88; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/jsbeautify.js:77
  • tokenBase has cyclomatic complexity 43 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:66
  • statement has cyclomatic complexity 40 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:369
  • indent has cyclomatic complexity 36 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:896
  • findFatArrow has cyclomatic complexity 23 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:185
  • expressionInner has cyclomatic complexity 22 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:431
  • maybeoperatorNoComma has cyclomatic complexity 21 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:460
  • classBody has cyclomatic complexity 21 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:778
  • objprop has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:523
  • typeexpr has cyclomatic complexity 18 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:611
  • update has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/addon/scroll/simplescrollbars.js:105
  • _invokeMethod has cyclomatic complexity 11 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:44
  • parseJS has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:244
  • tokenStringHelper has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — fair_online/fair_online/web/scripts/codemirror/mode/dart/dart.js:100
R3 · Large Files5.7 / 10Adequate✓ Tool-verified

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

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

  • REDACTED has 1820 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • REDACTED has 1820 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • REDACTED has 1820 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • REDACTED has 1813 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • REDACTED has 1806 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • REDACTED has 1592 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1

What to do

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

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

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

  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×36) — REDACTED:1, REDACTED:1, REDACTED:1, …

What to do

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

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

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

R6 · Tooling0.0 / 10Critical✓ Tool-verified

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

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

  • test ✗ · lint ✗ · typecheck ✗ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.

What to do

  • Add a test runner (vitest / jest / playwright) and eslint and type checking (adopt TypeScript, or type-check the existing JavaScript with `checkJs`) as package.json scripts and run them in CI.
R7 · Dead Code9.9 / 10Exemplary✓ Tool-verified

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

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

  • Unreachable from the 76 application, 0 tooling and 22 test entry point(s) detected in this repo. This repository declares no build, type-check or test script, so nothing here would fail on a wrong deletion — confirm by hand that nothing loads each file (including by a path built at runtime) before removing it. An undetected custom entry would make these reachable.
  • no import path from any entry point (76 application, 0 tooling, 22 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×2) — fair_online/fair_online/web/scripts/check_localstorage.js, fair_online/fair_online/web/scripts/ga.js
  • This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it. — fair_online/fair_online/web/scripts/finger_print.js:2

What to do

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

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

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

R9 · Circular Imports10.0 / 10Exemplary✓ Tool-verified

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

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

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.

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

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

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.

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

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

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

X17 · Uncapped recursion over a caller-supplied document3.5 / 10Weak✓ Tool-verified

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

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

  • `fromAst` is public and takes `Map ? ast` from its caller, and it calls itself at line 1154 (`fromAst`) with a piece of `ast` — and nowhere in `fromAst` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. `jsonDecode` sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws `StackOverflowError` from about 20,000 levels — 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser's stack). That is an `Error`, not an `Exception`: an `on Exception catch` around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through `fromAst` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — dart2dsl/lib/fairdsl/fair_ast_node.dart:1154

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X18 · Disposal-pattern correctness6.3 / 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.

  • `_ConsolePanelState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_controller` itself (line 22, `TabController`), which makes that instance its own. Nothing in the class releases it — no `_controller.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, `TabController` 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: `_controller.dispose();` in `dispose()` before `super.dispose()`. — fair_online/fair_online/lib/views/fair_dsl_editor/console_panel.dart:22
  • `_ConsolePanelState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_scrollController` itself (line 24, `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()`. — fair_online/fair_online/lib/views/fair_dsl_editor/console_panel.dart:24
  • `_EditorPanelState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_tabController` itself (line 38, `TabController`), which makes that instance its own. Nothing in the class releases it — no `_tabController.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, `TabController` 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: `_tabController.dispose();` in `dispose()` before `super.dispose()`. — fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:38
  • `_EditorPanelState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_scrollController` itself (line 41, `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()`. — fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:41

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.
X2 · Cancellation propagation10.0 / 10Exemplary○ Nothing flagged

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

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

X20 · Mistyped argument guard3.5 / 10Weak✓ Tool-verified

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.

  • The guard on line 27 rejects `file` and line 28 reports that rejection as `NullPointerException` — but the condition's own test `TextUtils.isEmpty(file)` is true of a value that is NOT null: it is satisfied by an EMPTY `file`, and on that path `file` was already proven non-null by the very expression that decided it. So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `NullPointerException` to handle a real null handles the empty case with it, and whoever reads the stack trace later is told a failure the source disproves. Throw `IllegalArgumentException` for the empty case, or split the guard and throw each on its own condition. — fair/android/src/main/java/com/wuba/fair/utils/FairFileUtil.java:28

What to do

  • Each finding names the throw and the test in its own condition that is true of a NON-null value. Confirm from the two, then throw the exception that describes what was actually wrong: on the JVM `IllegalArgumentException` for a value that arrived empty (`Objects.requireNonNull(x)` for the null half, Kotlin's `require(x.isNotEmpty())` for the empty one), in Dart `ArgumentError.value(x, 'x', 'must not be empty')`, in F# `invalidArg (nameof x) "must not be empty"` (keeping `nullArg` for the null half). Splitting the two conditions is usually clearer than picking one exception for both: they are different failures and the caller may want to handle them differently.
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 enumerated7.0 / 10Strong✓ Tool-verified

Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. 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.

  • `completions` is enumerated directly, and line 155 calls `completions.removeWhere(…)` inside the loop body — a structural change to a `List`. Dart's collection iterators check that the collection has not changed since the loop began, so the next `moveNext()` throws `ConcurrentModificationError` (an unmodifiable or fixed-length one rejects the change itself with `UnsupportedError`): every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen. — fair_online/fair_online/lib/editor/completion.dart:153

What to do

  • Each finding names the two spans that cannot both stand — the enhanced `for` source, and the call inside the body that structurally changes that same collection. Confirm from those two, then pick one: remove through the iterator itself (`Iterator<T> it = c.iterator(); … it.remove();`) or replace the loop with `c.removeIf(…)`; iterate a copy (`for (T x : new ArrayList<>(c))`); collect what needs changing and apply it after the loop; or — where the loop was only ever meant to act on the first match — `break` immediately after the mutation, which is the one shape that is already safe. In Dart: Each finding names the two lines that cannot both stand — the `for … in` over the collection (or its `keys`/`values`/`entries` view), and the call inside the body that changes it. Confirm from those two, then pick one: replace the loop with `removeWhere`/`retainWhere`; walk a copy (`for (final x in items.toList())`, `for (final k in map.keys.toList())`); collect what needs changing and apply it after the loop; or — where only the first match was ever meant — `break` straight after the change, which is the one shape that is already safe. In Kotlin: Each finding names the two lines that cannot both stand — the loop over the collection, and the call inside its body that changes it. Confirm from those two, then pick one: change the collection in one call instead of in the loop (`list.removeAll { … }`, `list.retainAll { … }`, `map.entries.removeIf { … }`); walk a snapshot (`for (x in list.toList())`, `list.toList().forEach { … }`); build a new collection (`val kept = list.filter { … }`) instead of editing the one being walked; or — where only the first match was ever meant — leave the walk straight after the change (`break`, `return`), which is the one shape that is already safe.
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

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

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

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

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

  • `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×20) — fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:53, fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/staggered_view/staggeredview_template.dart:48, fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/scrollview/home_scrollview.dart:50, …
  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×5) — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:105, fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.dart:115, fair_online/fair_online/lib/editor/utils/http_utils.dart:90, …

What to do

  • Swallowed exception (caught, then discarded)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

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

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

X5 · Nullable reference types7.8 / 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.

  • 20/26 of this repository's Dart packages (a `pubspec.yaml` with product Dart beneath it) declare a language version of 2.12 or above in `environment: sdk:`, which is what turns sound null safety on. A pubspec with no SDK constraint, or a lower bound below 2.12, runs its code unsound: every type admits null, and a null reaching a method call throws `NoSuchMethodError` with nothing in the analyzer having said so.

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 5 of 55 WCAG 2.2 Level A/AA success criteria (9%; ≈10% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 50 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only

Not statically assessed — these 50 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.4, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.1, 2.1.2, 2.1.4, 2.2.1, 2.2.2, 2.3.1, 2.4.1, 2.4.2, 2.4.3, 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.1, 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 Health53%Adequate — gated by R1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture94%ExemplaryStrongest area.
Maturity59%Adequate — gated by D34, M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness30%Weak — gated by R4, R6, P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security27%Weak — gated by D29, D36, C2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility60%Adequate — gated by AC6Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance60%AdequateAcceptable, with room to improve.
Unscored — 1 check(s) recorded observations but carry no score

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

  • X10 Duplicated predicate — 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 — 57 check(s) not relevant to this codebase

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

  • AC1 Text alternatives — No image/media element found in the parsed markup — AC1 not applicable here.
  • AC3 Page structure — No structural check found in the parsed markup — AC3 not applicable here.
  • AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
  • AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
  • AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. 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. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX6 Interface segregation — AX6 reached only 12% of this repository's production lines — dart (150,881 lines), objectivec (663 lines), c (319 lines), swift (313 lines), kotlin (146 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — The runtime tier booted this repository's service, but crawled PUBLIC routes only — add a Playwright storageState (e.g. playwright/.auth/user.json) or a test auth-setup to crawl authenticated screens rendered 0/1 surface(s) × 2 renders render failed for http://127.0.0.1:32768: page.goto: net::ERR_CONNECTION_REFUSED at http://127.0.0.1:32768/ Call log: - navigating to "http://127.0.0.1:32768/", waiting until "load" . This repository also has a user interface (8 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates) that the booted service does not serve, and this scan has no strategy that reaches it — so no WCAG success criterion was verified in a rendered page on this run. That is a gap in OUR tooling, not a finding about your application: nothing here says the interface is inaccessible. The static accessibility checks still ran.
  • AXS1 Runtime exposed surface — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, 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.
  • 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 — ~3746 lines of test source are present (.dart, .js) 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 — 51 Maven/Gradle manifest(s) were read, stating a version for 0 dependency(ies) and leaving 23 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 — JVM licences not graded — no declared coordinate carries a version the manifest itself resolves
  • D16 Bus Factor — dormant codebase — no living knowledge left to concentrate
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D21 Naming Consistency — Naming consistency is measured on C# and TypeScript only; Dart, Java, JavaScript, Kotlin, Swift, html 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"]`.
  • 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 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (1 value object(s))
  • 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
  • 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'.
  • 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.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) 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. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • 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
  • 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
  • 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 — X24 reached only 12% of this repository's production lines — dart (150,881 lines), objectivec (663 lines), c (319 lines), swift (313 lines), kotlin (146 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • X26 Unsynchronised callback handoff — X26 reached only 0% of this repository's production lines — dart (150,881 lines), javascript (21,217 lines), objectivec (663 lines), c (319 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • 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 — 74 finding(s)
D30 · Dependency Vulnerabilities · High CVE · ×38
  • 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
  • + 13 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Critical CVE · ×11
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · High vulnerability · ×2
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Critical vulnerability · ×1
  • REDACTED
D31 · IaC & Container Security · High IaC · ×1
  • REDACTED
Serious — 1144 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
  • + 147 more in this group — see findings.md.
D17 · Explicit Debt · TodoComment · ×39
  • TodoComment test_case/flutter_libs_app/lib/sign_in_with_app/sign_in_with_apple_delegate.dart:19 — // TODO: Set the `clientId` and `redirectUri` arguments to the values you entered in the Apple Developer portal during the setup — 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 test_case/flutter_libs_app/lib/sign_in_with_app/sign_in_with_apple_delegate.dart:26 — // TODO: Remove these if you have no need for them — 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 test_case/fair_list_demo/lib/JRList.dart:52 — //TODO:方法带参数怎么办? — 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 test_case/fair_list_demo/lib/my_list.dart:7 — // TODO: implement build — 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 test_case/adobe_xd/lib/Home.dart:233 — // TODO — 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 fair_online/fair_online_service/lib/src/analysis_server.dart:156 — // TODO: Properly support Lists, Maps (this is a hack). — 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 fair_online/fair_online_service/lib/src/analysis_server.dart:595 — // TODO 增加类校验 — 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 fair_online/fair_online_service/lib/src/analysis_server.dart:630 — // TODO 增加类校验 — 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 fair_online/fair_online_service/lib/src/analysis_server.dart:596 — // TODO(lukechurch): replace this with a more reliable test based on the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment fair_online/fair_online_service/lib/src/analysis_server.dart:676 — // TODO(jcollins-g): calling dispose() sometimes prevents — 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 fair_online/fair_online_service/lib/src/common.dart:594 — // TODO set release url — 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 fair_online/fair_online/lib/app/app_initializer.dart:10 — // TODO set release url — 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 fair_online/fair_online_service/lib/src/common_server_impl.dart:747 — //todo shutdown & warmup — 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 fair_online/fair_online_service/lib/src/compiler.dart:54 — //TODO 完善检查依赖的逻辑 — 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 fair_online/fair_online_service/lib/src/server_cache.dart:221 — // TODO: This is the only use of package:quiver; consider in-lining it. — 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 fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart:266 — //todo 这里先去掉static type的校验,因为存在ast未转化完成获取不到staticType的情况。 — 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 fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:43 — //TODO action的默认代码 — 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 fair_online/fair_online/lib/views/api_call_page/api_call_page_view.dart:85 — //todo-blues 原型图没有这块的逻辑,待确认后续操作 — 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 fair_online/fair_online/lib/editor/completion.dart:65 — // TODO(redbrogdon): Find a way to properly use these linked edit — 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 fair_online/fair_online/lib/editor/completion.dart:105 — // TODO: Move to using a LabelProvider; decouple the data and rendering. — 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 fair_online/fair_online/lib/editor/completion.dart:183 — // TODO: We need to pass this completion info better. — 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 fair_online/fair_online/lib/editor/utils/http_utils.dart:87 — //TODO — 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 fair_online/fair_online/lib/editor/utils/http_utils.dart:91 — //TODO — 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 fair_online/fair_online/lib/editor/services/common.dart:27 — // TODO(srawlins): remove these 'dev' channel tasks if that channel becomes — 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 fair_online/fair_online/lib/editor/services/execution_iframe.dart:197 — // TODO: simplify this once we are firmly in a post Flutter 1.24 world. — 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.
  • + 14 more in this group — see findings.md.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×38
  • Sync-over-async blocking compiler/lib/src/generator.dart:31 — `generateForAnnotatedElement` is async and calls writeAsBytesSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking compiler/lib/src/generator.dart:88 — `generateForAnnotatedElement` is async and calls createSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking compiler/lib/src/generator.dart:192 — `_transitSource` is async and calls writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking compiler/lib/src/generator.dart:252 — `build` is async and calls readAsLinesSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking compiler/lib/src/helper.dart:22 — `compile` is async and calls runSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking compiler/lib/src/helper.dart:63 — `_syncFbs` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking compiler/lib/src/post_builder.dart:21 — `build` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking compiler/lib/src/post_builder.dart:55 — `dart2JS` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking compiler/lib/src/post_builder.dart:85 — `compileBundle` is async and calls writeAsBytesSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/analysis_server.dart:300 — `warmup` is async and calls createSync, listSync, readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/apicall/api_call.dart:15 — `getAllApiCall` is async and calls listSync, readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/apicall/api_call.dart:45 — `addApiCall` is async and calls createSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/apicall/api_call.dart:89 — `deleteApiCall` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/compiler.dart:39 — `compileDDC` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/customcode/custom_code.dart:21 — `saveConfig` is async and calls writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/customcode/custom_code.dart:51 — `createCustomComponent` is async and calls createSync, writeAsStringSync, writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/customcode/custom_code.dart:106 — `createCustomAction` is async and calls createSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/customcode/custom_code.dart:140 — `getCustomComponents` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/customcode/custom_code.dart:190 — `getCustomActions` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/customcode/custom_code.dart:224 — `deleteCustomCodeItem` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/fair_compiler.dart:25 — `compile` is async and calls createSync, listSync, copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/project/fair_project.dart:56 — `getProjects` is async and calls createSync, listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/project/fair_project.dart:81 — `getTemplateProjects` is async and calls createSync, listSync, readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/project/fair_project.dart:123 — `createProject` is async and calls createSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • Sync-over-async blocking fair_online/fair_online_service/lib/src/project/fair_project.dart:338 — `getProjectsPages` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
  • + 13 more in this group — see findings.md.
R4 · Test Coverage · No test reaches this file · ×36
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_online/fair_online/web/scripts/jsbeautify.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_online/fair_online/web/scripts/codemirror/mode/dart/dart.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_online/fair_online/web/scripts/codemirror/addon/scroll/simplescrollbars.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_online/fair_online_service/fairDir/empty/project/empty_project/assets/fair/lib_page_hotel_listview_hotel_listview_template.fair.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_extension/assets/plugin/fair_url_launcher_plugin.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file dart2js/core-types/global.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_extension/assets/plugin/fair_net_plugin.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_extension/assets/plugin/fair_toast_plugin.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_extension/assets/plugin/fair_image_picker.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_extension/assets/plugin/fair_navigator_plugin.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_extension/assets/plugin/fair_permission.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file fair_online/fair_online_service/fairDir/empty/project/empty_project/assets/plugin/fair_net_plugin.js:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • + 11 more in this group — see findings.md.
D6 · Cohesion (LCOM4) · Low cohesion · ×28
  • Low cohesion: FairProject (LCOM4 19) fair_online/fair_online_service/lib/src/project/fair_project.dart:24 — FairProject's methods fall into 19 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 19 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: ThinUnderlineBorder (LCOM4 7) fair_online/fair_online/lib/base/components/styled_text_input.dart:261 — ThinUnderlineBorder'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: CustomAstVisitor (LCOM4 7) dart2dsl/lib/fairdsl/fair_ast_gen.dart:26 — CustomAstVisitor'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: FairDslModel (LCOM4 7) fair_online/fair_online/lib/models/fair_dsl_model.dart:21 — FairDslModel'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: _UrlLauncherExampleWidgetState (LCOM4 7) test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:15 — _UrlLauncherExampleWidgetState'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: PageListPageState (LCOM4 7) fair_online/fair_online/lib/views/page/page_list_page.dart:16 — PageListPageState'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: StyledDialogRoute (LCOM4 6) fair_online/fair_online/lib/base/components/styled_dialogs.dart:200 — StyledDialogRoute'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: ProjectModel (LCOM4 6) fair_online/fair_online/lib/models/project_model.dart:8 — ProjectModel'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: UrlLauncherDelegate (LCOM4 6) test_case/flutter_libs_app/lib/url_launcher/url_launcher_delegate.dart:10 — UrlLauncherDelegate'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: CodeMirrorFactory (LCOM4 5) fair_online/fair_online/lib/editor/editing/editor_codemirror.dart:24 — CodeMirrorFactory's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: AppModel (LCOM4 5) fair_online/fair_online/lib/models/app_model.dart:10 — AppModel's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: DartEditorModel (LCOM4 5) fair_online/fair_online/lib/models/dart_editor_model.dart:7 — DartEditorModel's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: PageListModel (LCOM4 5) fair_online/fair_online/lib/models/page_model.dart:12 — PageListModel's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FairMessageChannel (LCOM4 5) fair/lib/src/runtime/fair_message_channel_web.dart:23 — FairMessageChannel's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Runtime (LCOM4 5) fair/lib/src/runtime/fair_runtime_impl.dart:13 — Runtime's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FairDelegate (LCOM4 5) fair/lib/src/widget.dart:257 — FairDelegate's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _PopupWindowRoute (LCOM4 5) fair_online/fair_online/lib/views/page/widget/popup_window.dart:47 — _PopupWindowRoute's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ContestTabHeader (LCOM4 4) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:557 — ContestTabHeader's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _FairDeviceInfoWidgetState (LCOM4 4) test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:16 — _FairDeviceInfoWidgetState's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FlutterEditorController (LCOM4 4) fair_online/fair_online/lib/editor/component/flutter_editor_controller.dart:40 — FlutterEditorController's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _CodeMirrorEditor (LCOM4 4) fair_online/fair_online/lib/editor/editing/editor_codemirror.dart:154 — _CodeMirrorEditor's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ContestTabHeader (LCOM4 4) test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:556 — ContestTabHeader's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: _FairPackageInfoWidgetState (LCOM4 4) test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart:16 — _FairPackageInfoWidgetState's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ListDelegate (LCOM4 4) fair/example/lib/src/proxy/list_proxy.dart:14 — ListDelegate's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FairConsumer (LCOM4 4) fair_provider/lib/src/fair_provider_core.dart:408 — FairConsumer's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • + 3 more in this group — see findings.md.
D30 · Dependency Vulnerabilities · Medium CVE · ×21
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×20
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:53 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/staggered_view/staggeredview_template.dart:48 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/scrollview/home_scrollview.dart:50 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/pageview/pageview_template.dart:48 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:52 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:55 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:54 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.dart:47 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/detail_page/fair_detail.dart:49 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/action/HotelDataRequest.dart:25 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/tabbar_page/tabbar_page.dart:52 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/staggered_view/staggered_view.dart:48 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/scrollview/scrollview.dart:49 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/pageview/pageview.dart:48 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/list_page/list_page.dart:52 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/list_card/list_card.dart:54 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/hotel_listview/hotel_listview.dart:54 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/gridview/gridview.dart:47 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/template/page/detail_page/detail_page.dart:49 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:54 — `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
D3 · God Classes · FileTooLong · ×16
  • FileTooLong: widgets/$$m.dart flutter_version/flutter_1_22_4/lib/src/widgets/$$m.dart — FileTooLong — 7936 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: p (35-8126). The bar is 500 significant lines; this is 7436 over it, 15.87× 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: widgets/$$m.dart flutter_version/flutter_1_22_6/lib/src/widgets/$$m.dart — FileTooLong — 7936 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: p (35-8126). The bar is 500 significant lines; this is 7436 over it, 15.87× 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: widgets/$$m.dart flutter_version/flutter_1_17_3/lib/src/widgets/$$m.dart — FileTooLong — 2932 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: p (35-3107). The bar is 500 significant lines; this is 2432 over it, 5.86× 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: widgets/$$m.dart flutter_version/flutter_1_20_4/lib/src/widgets/$$m.dart — FileTooLong — 2615 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: p (35-2759). The bar is 500 significant lines; this is 2115 over it, 5.23× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: widgets/$$m.dart flutter_version/flutter_1_12_13/lib/src/widgets/$$m.dart — FileTooLong — 2450 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: p (35-2589). The bar is 500 significant lines; this is 1950 over it, 4.90× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 1259 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 759 over it, 2.52× 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/convertor.dart dart2js/lib/src/convertor.dart — FileTooLong — 1254 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 754 over it, 2.51× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 1236 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 736 over it, 2.47× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 1083 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 583 over it, 2.17× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: REDACTED REDACTED — FileTooLong — 1062 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 562 over it, 2.12× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: fairdsl/fair_ast_node.dart dart2dsl/lib/fairdsl/fair_ast_node.dart — FileTooLong — 937 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 437 over it, 1.87× 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: render/builder.dart fair/lib/src/render/builder.dart — FileTooLong — 665 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: DynamicWidgetBuilder (43-917). The bar is 500 significant lines; this is 165 over it, 1.33× 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: project/fair_project.dart fair_online/fair_online_service/lib/src/project/fair_project.dart — FileTooLong — 594 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: FairProject (24-796). The bar is 500 significant lines; this is 94 over it, 1.19× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: src/common_server_impl.dart fair_online/fair_online_service/lib/src/common_server_impl.dart — FileTooLong — 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: CommonServerImpl (46-872). The bar is 500 significant lines; this is 81 over it, 1.16× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: src/analysis_server.dart fair_online/fair_online_service/lib/src/analysis_server.dart — FileTooLong — 573 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: FlutterAnalysisServerWrapper (33-856). The bar is 500 significant lines; this is 73 over it, 1.15× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: src/widget.dart dart2dsl/lib/src/widget.dart — FileTooLong — 536 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 36 over it, 1.07× 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.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×14
  • Duplicated block (11 lines × 2) dart2js/lib/src/convertor.dart:1182 — dart2js/lib/src/convertor.dart:1182-1192 | dart2js/lib/src/node/ListLiteralStatementNode.dart:29-39 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (11 lines × 2) fair/lib/src/render/builder.dart:393 — fair/lib/src/render/builder.dart:393-404 | fair/lib/src/render/builder.dart:437-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 `fair/lib/src/render/builder.dart:393` 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) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:96 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:96-106 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.dart:106-116 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.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. 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 (11 lines × 2) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:80 — fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:80-90 | fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:101-111 — both copies are in the same file, so extract the 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 `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:80` 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) fair_online/fair_online/lib/views/page/create/page_template_item.dart:86 — fair_online/fair_online/lib/views/page/create/page_template_item.dart:86-96 | fair_online/fair_online/lib/views/project/create/project_template_item.dart:95-105 — before extracting anything, compare `fair_online/fair_online/lib/views/page/create/page_template_item.dart` and `fair_online/fair_online/lib/views/project/create/project_template_item.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online/lib/views/page/create/page_template_item.dart:86` 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 (11 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:64 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:64-74 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:72-82 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:64` 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) dart2js/lib/src/convertor.dart:716 — dart2js/lib/src/convertor.dart:716-726 | dart2js/lib/src/node/FunctionDeclarationNode.dart:45-57 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/FunctionDeclarationNode.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 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) fair_online/fair_online/lib/views/custom_code_page/custom_action_list.dart:25 — fair_online/fair_online/lib/views/custom_code_page/custom_action_list.dart:25-35 | fair_online/fair_online/lib/views/custom_code_page/custom_component_list.dart:23-33 — 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 (11 lines × 2) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:187 — example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:187-197 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:186-196 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 354 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) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:264 — example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:264-274 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:264-274 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 301 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) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:32 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:32-42 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:32-42 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:370 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:370-380 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:370-380 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:398 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:398-408 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:398-408 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:410 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:410-420 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:410-420 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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 (9 lines × 2) · ×12
  • Duplicated block (9 lines × 2) fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart:18 — fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart:18-26 | fair_online/fair_online/lib/views/custom_code_page/item/custom_component_item_widget.dart:19-27 — 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 `fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart:18` 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) fair_online/fair_online/lib/views/page/page_list_page_view.dart:174 — fair_online/fair_online/lib/views/page/page_list_page_view.dart:174-182 | fair_online/fair_online/lib/views/page/page_list_page_view.dart:224-232 — both copies are in the same file, so extract the 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 `fair_online/fair_online/lib/views/page/page_list_page_view.dart:174` 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 (9 lines × 2) dart2js/lib/src/convertor.dart:1251 — dart2js/lib/src/convertor.dart:1251-1259 | dart2js/lib/src/convertor.dart:1264-1272 — both copies are in the same file, so extract the 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 `dart2js/lib/src/convertor.dart:1251` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `currentNode` to `MethodInvocation` in one and `InstanceCreationExpression` 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 (9 lines × 2) fair/lib/src/internal/flexbuffer/types.dart:19 — fair/lib/src/internal/flexbuffer/types.dart:19-27 | fair/lib/src/internal/flexbuffer/types.dart:30-38 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. 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 (9 lines × 2) dart2js/lib/src/convertor.dart:126 — dart2js/lib/src/convertor.dart:126-134 | dart2js/lib/src/declaration/MethodDeclarationData.dart:32-40 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/declaration/MethodDeclarationData.dart` as WHOLE FILES: 97% 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.
  • Duplicated block (9 lines × 2) dart2js/lib/src/convertor.dart:983 — dart2js/lib/src/convertor.dart:983-991 | dart2js/lib/src/node/SwitchStatementNode.dart:29-37 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/SwitchStatementNode.dart` as WHOLE FILES: 93% 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.
  • Duplicated block (9 lines × 2) fair_online/fair_online/lib/views/custom_code_page/custom_code_page.dart:23 — fair_online/fair_online/lib/views/custom_code_page/custom_code_page.dart:23-31 | fair_online/fair_online/lib/views/use_code/use_code_list_page.dart:28-36 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9 lines × 2) fair_online/fair_online/lib/views/custom_code_page/custom_code_page.dart:49 — fair_online/fair_online/lib/views/custom_code_page/custom_code_page.dart:49-57 | fair_online/fair_online/lib/views/use_code/use_code_list_page.dart:38-46 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9 lines × 2) fair_extension/example/lib/main.dart:105 — fair_extension/example/lib/main.dart:105-113 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:130-138 — before extracting anything, compare `fair_extension/example/lib/main.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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) example/lib/best_flutter_ui/src/fair/hotel_list_content_proxy.dart:28 — example/lib/best_flutter_ui/src/fair/hotel_list_content_proxy.dart:28-36 | test_case/best_flutter_ui_templates/lib/src/fair/hotel_list_content_proxy.dart:28-36 — before extracting anything, compare `example/lib/best_flutter_ui/src/fair/hotel_list_content_proxy.dart` and `test_case/best_flutter_ui_templates/lib/src/fair/hotel_list_content_proxy.dart` as WHOLE FILES: 90% 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.
  • Duplicated block (9 lines × 2) example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:182 — example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:182-190 | test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart:182-190 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 153 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 (9 lines × 2) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:24 — example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:24-32 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:23-31 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 354 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 × 2) · ×11
  • Duplicated block (12 lines × 2) fair_online/fair_online/lib/views/api_call_page/popup_list.dart:83 — fair_online/fair_online/lib/views/api_call_page/popup_list.dart:83-94 | fair_online/fair_online/lib/views/fair_dsl_editor/device_dropdown_menu.dart:80-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. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online/lib/views/api_call_page/popup_list.dart:83` 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) fair_online/fair_online/lib/views/custom_code_page/custom_code_page_view.dart:27 — fair_online/fair_online/lib/views/custom_code_page/custom_code_page_view.dart:27-38 | fair_online/fair_online/lib/views/dependency/dependency_page_view.dart:20-31 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online/lib/views/custom_code_page/custom_code_page_view.dart:27` 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, `fair_online/fair_online/lib/views/dependency/dependency_page_view.dart:33` calls `only` and `fair_online/fair_online/lib/views/custom_code_page/custom_code_page_view.dart:39` 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 (12 lines × 2) fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart:54 — fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart:54-65 | fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog.dart:69-80 — 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 `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart:67` calls `getActionCode` and `fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog.dart:82` 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 (12 lines × 2) fair_online/fair_online/lib/views/use_code/use_action_item_view.dart:16 — fair_online/fair_online/lib/views/use_code/use_action_item_view.dart:16-27 | fair_online/fair_online/lib/views/use_code/use_component_item_view.dart:19-30 — 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 `fair_online/fair_online/lib/views/use_code/use_action_item_view.dart:16` 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) fair_online/fair_online_service/lib/src/common_server_impl.dart:453 — fair_online/fair_online_service/lib/src/common_server_impl.dart:453-464 | fair_online/fair_online_service/lib/src/common_server_impl.dart:494-505 — both copies are in the same file, so extract the 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 `fair_online/fair_online_service/lib/src/common_server_impl.dart:453` 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) example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart:23 — example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart:23-34 | test_case/best_flutter_ui_templates/lib/fitness_app/fitness_app_home_screen.dart:23-34 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/fitness_app_home_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (12 lines × 2) test_case/adobe_xd/lib/Gear.dart:31 — test_case/adobe_xd/lib/Gear.dart:31-42 | test_case/adobe_xd/lib/Home.dart:44-55 — before extracting anything, compare `test_case/adobe_xd/lib/Gear.dart` and `test_case/adobe_xd/lib/Home.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 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 `test_case/adobe_xd/lib/Gear.dart:31` 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) test_case/adobe_xd/lib/Gear.dart:176 — test_case/adobe_xd/lib/Gear.dart:176-187 | test_case/adobe_xd/lib/Home.dart:563-574 — before extracting anything, compare `test_case/adobe_xd/lib/Gear.dart` and `test_case/adobe_xd/lib/Home.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 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 `test_case/adobe_xd/lib/Gear.dart:176` 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 (12 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:26 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:26-37 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:246-257 — both copies are in the same file, so extract the 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:26` 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 (12 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/trainning/running.dart:26 — test_case/best_flutter_ui_templates/lib/fair/component/trainning/running.dart:26-37 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.dart:21-32 — 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 `test_case/best_flutter_ui_templates/lib/fair/component/trainning/running.dart:26` 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 (12 lines × 2) test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:221 — test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:221-232 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:150-161 — before extracting anything, compare `test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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 `test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:221` 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 (6 lines × 2) · ×11
  • Duplicated block (6 lines × 2) dart2js/lib/src/convertor.dart:602 — dart2js/lib/src/convertor.dart:602-607 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:199-206 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/WidgetStateGenerator.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 190 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 (6 lines × 2) dart2js/lib/src/convertor.dart:709 — dart2js/lib/src/convertor.dart:709-714 | dart2js/lib/src/node/FunctionDeclarationNode.dart:34-43 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/FunctionDeclarationNode.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 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 `dart2js/lib/src/convertor.dart:709` 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, `dart2js/lib/src/node/FunctionDeclarationNode.dart:33` calls `write`, `join` and `dart2js/lib/src/convertor.dart:709` 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 (6 lines × 2) fair_online/fair_online/lib/base/components/seperated_flexibles.dart:27 — fair_online/fair_online/lib/base/components/seperated_flexibles.dart:27-32 | fair_online/fair_online/lib/base/components/seperated_flexibles.dart:67-72 — both copies are in the same file, so extract the 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 `fair_online/fair_online/lib/base/components/seperated_flexibles.dart:27` 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 (6 lines × 2) fair_online/fair_online_service/lib/src/common_server_impl.dart:383 — fair_online/fair_online_service/lib/src/common_server_impl.dart:383-388 | fair_online/fair_online_service/lib/src/common_server_impl.dart:444-449 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online_service/lib/src/common_server_impl.dart:383` 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 (6 lines × 2) dart2js/lib/src/convertor.dart:675 — dart2js/lib/src/convertor.dart:675-680 | dart2js/lib/src/visitor/PartJsCodeGenerator.dart:29-38 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) dart2js/lib/src/convertor.dart:784 — dart2js/lib/src/convertor.dart:784-789 | dart2js/lib/src/node/ArrowFunctionExpressionNode.dart:5-10 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:81 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:81-86 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:89-94 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 (6 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart:98 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart:98-103 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/plugins/net/fair_net_plugin.dart:98-103 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/plugins/net/fair_net_plugin.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 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) fair_online/fair_online/lib/views/page/page_main_page.dart:15 — fair_online/fair_online/lib/views/page/page_main_page.dart:15-20 | fair_online/fair_online/lib/views/project/project_page.dart:14-19 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) dart2js/lib/src/convertor.dart:858 — dart2js/lib/src/convertor.dart:858-863 | dart2js/lib/src/node/IndexExpressionNode.dart:11-16 — 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 (6 lines × 2) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:123 — fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:123-128 | fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:84-89 — before extracting anything, compare `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart` and `fair_online/fair_online/lib/views/project/create/project_create_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 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 `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:123` 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.
D3 · God Classes · TooManyMethods · ×10
  • TooManyMethods: CustomAstVisitor dart2dsl/lib/fairdsl/fair_ast_gen.dart:26 — TooManyMethods — 79 methods. The bar is 30 methods; this is 49 over it, 2.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: CommonServerImpl fair_online/fair_online_service/lib/src/common_server_impl.dart:46 — TooManyMethods — 47 methods. The bar is 30 methods; this is 17 over it, 1.57× 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: DartservicesApi fair_online/fair_online/lib/editor/services/dartservices.dart:10 — TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: CommonServerApi fair_online/fair_online_service/lib/src/common_server_api.dart:21 — TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: FlutterEditorController fair_online/fair_online/lib/editor/component/flutter_editor_controller.dart:40 — 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: Expression dart2dsl/lib/fairdsl/fair_ast_node.dart:1065 — 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: FairProject fair_online/fair_online_service/lib/src/project/fair_project.dart:24 — TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Reference fair/lib/src/internal/flexbuffer/reference.dart:13 — 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: Builder fair/lib/src/internal/flexbuffer/builder.dart:13 — 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: FlutterAnalysisServerWrapper fair_online/fair_online_service/lib/src/analysis_server.dart:33 — TooManyMethods — 31 methods. The bar is 30 methods; this is 1 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.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×10
  • Duplicated block (14 lines × 2) fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:44 — fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:44-57 | fair_online/fair_online/lib/views/fair_dsl_editor/console_panel.dart:27-40 — 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 `fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:44` 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) fair_online/fair_online/lib/editor/editing/editor_codemirror.dart:374 — fair_online/fair_online/lib/editor/editing/editor_codemirror.dart:374-387 | fair_online/fair_online/lib/editor/editing/editor_codemirror.dart:392-405 — both copies are in the same file, so extract the 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 `fair_online/fair_online/lib/editor/editing/editor_codemirror.dart:374` 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 (14 lines × 2) fair_online/fair_online/lib/views/api_call_page/popup_list.dart:49 — fair_online/fair_online/lib/views/api_call_page/popup_list.dart:49-62 | fair_online/fair_online/lib/views/fair_dsl_editor/device_dropdown_menu.dart:44-57 — 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 `fair_online/fair_online/lib/views/api_call_page/popup_list.dart:49` 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) fair_online/fair_online/lib/views/editor_example/example2.dart:42 — fair_online/fair_online/lib/views/editor_example/example2.dart:42-55 | fair_online/fair_online/lib/views/flutter_editor/code_editor.dart:25-38 — 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 `fair_online/fair_online/lib/views/editor_example/example2.dart:42` 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) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:193 — fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:193-206 | fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:233-246 — both copies are in the same file, so extract the 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 `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:193` 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 (14 lines × 2) fair_online/fair_online/lib/views/page/create/page_template_item.dart:42 — fair_online/fair_online/lib/views/page/create/page_template_item.dart:42-55 | fair_online/fair_online/lib/views/project/create/project_template_item.dart:43-56 — before extracting anything, compare `fair_online/fair_online/lib/views/page/create/page_template_item.dart` and `fair_online/fair_online/lib/views/project/create/project_template_item.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online/lib/views/page/create/page_template_item.dart:42` 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 (14 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/fair_preview.dart:6 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/fair_preview.dart:6-19 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/fair_preview.dart:6-19 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/fair_preview.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/fair_preview.dart` as WHOLE FILES: 96% 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. 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) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:211 — example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:211-224 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:210-223 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 354 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) test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart:118 — test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart:118-131 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.dart:98-111 — 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 `test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart:118` 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) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:192 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:192-205 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:215-228 — both copies are in the same file, so extract the 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:192` 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 · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×9
  • Members sharing a duplicated core (4 members, 50+ identical tokens) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:17 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:17-144 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:17-141 | fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:49-170 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:44-226 — 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) fair_online/fair_online_service/lib/src/analysis_server.dart:92 — fair_online/fair_online_service/lib/src/analysis_server.dart:92-162 | fair_online/fair_online_service/lib/src/analysis_server.dart:237-262 | fair_online/fair_online_service/lib/src/analysis_server.dart:432-551 | fair_online/fair_online_service/lib/src/analysis_server.dart:739-769 — 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) example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:29 — example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:29-75 | example/lib/best_flutter_ui/home_screen.dart:38-121 | test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart:29-75 | test_case/best_flutter_ui_templates/lib/home_screen.dart:38-121 — 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) example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart:57 — example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart:57-246 | example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:22-96 | test_case/best_flutter_ui_templates/lib/hotel_booking/calendar_popup_view.dart:57-246 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:22-96 — 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) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:41 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:41-114 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:116-158 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:40-113 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:115-157 — 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) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:185 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:185-293 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:361-447 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:184-292 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:360-446 — 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) example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:114 — example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:114-176 | example/lib/best_flutter_ui/hotel_booking/slider_view.dart:92-129 | test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart:114-176 | test_case/best_flutter_ui_templates/lib/hotel_booking/slider_view.dart:92-129 — 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) example/lib/json_file_explain.dart:28 — example/lib/json_file_explain.dart:28-60 | example/lib/main.dart:99-128 | example/lib/template/fab/fab_template.dart:24-60 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/fab/fab_template.dart:23-65 — 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) test_case/animated_text_kit/lib/main.dart:27 — test_case/animated_text_kit/lib/main.dart:27-43 | test_case/bottom_navy_bar/lib/main.dart:32-48 | test_case/flutter_component/lib/main.dart:32-48 | test_case/flutter_slidable/lib/main.dart:24-40 — 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 (13 corresponding lines) · ×9
  • Edited copy of a member (13 corresponding lines) dart2js/lib/src/convertor.dart:488 — dart2js/lib/src/convertor.dart:488-500 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:60-77 — 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) dart2dsl/lib/fairdsl/fair_ast_node.dart:580 — dart2dsl/lib/fairdsl/fair_ast_node.dart:580-597 | dart2dsl/lib/fairdsl/fair_ast_node.dart:871-883 — 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) fair/lib/src/internal/flexbuffer/reference.dart:291 — fair/lib/src/internal/flexbuffer/reference.dart:291-303 | fair/lib/src/internal/flexbuffer/reference.dart:305-317 — 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) fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart:128 — fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart:128-143 | fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart:145-157 — 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) dart2js/lib/src/convertor.dart:1093 — dart2js/lib/src/convertor.dart:1093-1106 | dart2js/lib/src/node/ReturnStatementNode.dart:6-18 — 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) fair_online/fair_online/lib/models/project_model.dart:17 — fair_online/fair_online/lib/models/project_model.dart:17-30 | fair_online/fair_online/lib/models/project_model.dart:32-44 — 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) fair_extension/lib/url_launcher/fair_url_launcher_plugin.dart:23 — fair_extension/lib/url_launcher/fair_url_launcher_plugin.dart:23-35 | fair_extension/lib/url_launcher/fair_url_launcher_plugin.dart:44-56 — 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) fair_extension/lib/log/log.dart:18 — fair_extension/lib/log/log.dart:18-30 | fair_extension/lib/url_launcher/fair_url_launcher_plugin.dart:149-161 — 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) test_case/fair_list_demo/lib/JRList.dart:21 — test_case/fair_list_demo/lib/JRList.dart:21-34 | test_case/fair_list_demo/lib/list_proxy.dart:40-52 — 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.
D3 · God Classes · MethodTooLong · ×8
  • MethodTooLong: TopPanelView.build fair_online/fair_online/lib/views/top_panel/top_panel_view.dart:19 — MethodTooLong — build runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: UploadPluginDialogState.build fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:44 — MethodTooLong — build runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CreateCustomComponentDialogView.build fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:18 — MethodTooLong — build runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× 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: _HotelListViewState.build fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:73 — MethodTooLong — build runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20× 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: CreateCustomActionDialogView.build fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:18 — MethodTooLong — build runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17× 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: DynamicWidgetBuilder.convert fair/lib/src/render/builder.dart:49 — MethodTooLong — convert runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08× 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: ApiCallAddPageView._getHeader fair_online/fair_online/lib/views/api_call_page/api_call_add_page_view.dart:60 — MethodTooLong — _getHeader runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: TemplatePageCreateUtil.createFeedbackTemplatePage fair_online/fair_online_service/lib/src/utils/template_page_create_util.dart:5 — MethodTooLong — createFeedbackTemplatePage runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×8
  • Edited copy of a member (9 corresponding lines) fair/lib/src/runtime/fair_runtime_impl.dart:111 — fair/lib/src/runtime/fair_runtime_impl.dart:111-120 | fair/lib/src/runtime/fair_runtime_impl.dart:122-130 — 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) fair_online/fair_online/lib/base/components/scrolling/styled_scrollbar.dart:156 — fair_online/fair_online/lib/base/components/scrolling/styled_scrollbar.dart:156-164 | fair_online/fair_online/lib/base/components/scrolling/styled_scrollbar.dart:166-174 — 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) fair/lib/src/runtime/fair_runtime_impl.dart:91 — fair/lib/src/runtime/fair_runtime_impl.dart:91-99 | fair/lib/src/runtime/fair_runtime_impl.dart:101-109 — 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) fair_provider/lib/src/fair_provider_core.dart:29 — fair_provider/lib/src/fair_provider_core.dart:29-37 | fair_provider/lib/src/fair_provider_core.dart:39-47 — 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) dart2dsl/lib/fairdsl/fair_ast_node.dart:101 — dart2dsl/lib/fairdsl/fair_ast_node.dart:101-109 | dart2dsl/lib/fairdsl/fair_ast_node.dart:284-292 — 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) dart2dsl/lib/fairdsl/fair_ast_gen.dart:508 — dart2dsl/lib/fairdsl/fair_ast_gen.dart:508-520 | dart2dsl/lib/fairdsl/fair_ast_gen.dart:541-549 — 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) dart2dsl/lib/fairdsl/fair_ast_node.dart:757 — dart2dsl/lib/fairdsl/fair_ast_node.dart:757-767 | dart2dsl/lib/fairdsl/fair_ast_node.dart:779-787 — 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) test_case/flutter_component/lib/delegate.dart:51 — test_case/flutter_component/lib/delegate.dart:51-59 | test_case/flutter_libs_app/lib/package_info/package_info_delegate.dart:33-42 — 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 (13 lines × 2) · ×8
  • Duplicated block (13 lines × 2) dart2js/lib/src/convertor.dart:1113 — dart2js/lib/src/convertor.dart:1113-1125 | dart2js/lib/src/node/CascadeOperatorStatementNode.dart:8-20 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/CascadeOperatorStatementNode.dart` as WHOLE FILES: 86% 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.
  • Duplicated block (13 lines × 2) fair_extension/lib/navigator/fair_navigator_plugin.dart:53 — fair_extension/lib/navigator/fair_navigator_plugin.dart:53-65 | fair_extension/lib/toast/fair_toast_plugin.dart:50-62 — 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) fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.dart:14 — fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.dart:14-26 | fair_online/fair_online/lib/views/flutter_editor/flutter_preview.dart:14-26 — before extracting anything, compare `fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.dart` and `fair_online/fair_online/lib/views/flutter_editor/flutter_preview.dart` as WHOLE FILES: this scan already matched 3 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. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.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.
  • Duplicated block (13 lines × 2) fair_online/fair_online_service/lib/src/analysis_server.dart:93 — fair_online/fair_online_service/lib/src/analysis_server.dart:93-105 | fair_online/fair_online_service/lib/src/analysis_server.dart:740-752 — both copies are in the same file, so extract the 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 `fair_online/fair_online_service/lib/src/analysis_server.dart:93` 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 × 2) dart2js/lib/src/convertor.dart:902 — dart2js/lib/src/convertor.dart:902-914 | dart2js/lib/src/node/WhileStatementNode.dart:7-19 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/WhileStatementNode.dart` as WHOLE FILES: 92% 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. 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) example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart:37 — example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart:37-49 | test_case/best_flutter_ui_templates/lib/hotel_booking/calendar_popup_view.dart:37-49 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/calendar_popup_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 217 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) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/pageview/pageview_template.dart:45 — fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/pageview/pageview_template.dart:45-57 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:50-62 — 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 `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/pageview/pageview_template.dart:45` 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) example/lib/best_flutter_ui/src/fair/home_list_proxy.dart:16 — example/lib/best_flutter_ui/src/fair/home_list_proxy.dart:16-28 | test_case/best_flutter_ui_templates/lib/src/fair/home_list_proxy.dart:16-28 — before extracting anything, compare `example/lib/best_flutter_ui/src/fair/home_list_proxy.dart` and `test_case/best_flutter_ui_templates/lib/src/fair/home_list_proxy.dart` as WHOLE FILES: 90% 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 (10 lines × 2) · ×7
  • Duplicated block (10 lines × 2) fair/lib/src/render/expression.dart:245 — fair/lib/src/render/expression.dart:245-254 | fair/lib/src/render/expression.dart:283-292 — both copies are in the same file, so extract the 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 `fair/lib/src/render/expression.dart:245` 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 `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 (10 lines × 2) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:181 — fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:181-190 | fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:141-152 — before extracting anything, compare `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart` and `fair_online/fair_online/lib/views/project/create/project_create_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 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 `fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:141` 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 (10 lines × 2) dart2js/lib/src/convertor.dart:664 — dart2js/lib/src/convertor.dart:664-673 | dart2js/lib/src/visitor/PartJsCodeGenerator.dart:18-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. 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) dart2js/lib/src/convertor.dart:963 — dart2js/lib/src/convertor.dart:963-972 | dart2js/lib/src/node/SwitchStatementNode.dart:9-18 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/SwitchStatementNode.dart` as WHOLE FILES: 93% 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. 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) fair_extension/example/lib/fair_widget_page.dart:19 — fair_extension/example/lib/fair_widget_page.dart:19-28 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/fair_widget_page.dart:19-28 — before extracting anything, compare `fair_extension/example/lib/fair_widget_page.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/fair_widget_page.dart` 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. 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) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:30 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:30-39 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.dart:34-43 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:217 — test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:217-226 | test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:83-92 — before extracting anything, compare `test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart` and `test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 172 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 `test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:217` 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, `test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:228` calls `forward` and `test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:94` 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 (27 lines × 2) · ×6
  • Duplicated block (27 lines × 2) dart2js/lib/src/convertor.dart:387 — dart2js/lib/src/convertor.dart:387-413 | dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:145-171 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/ClassDeclarationVisitor.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 145 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 `dart2js/lib/src/convertor.dart:387` 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 (27 lines × 2) example/lib/best_flutter_ui/best_ui_page.dart:23 — example/lib/best_flutter_ui/best_ui_page.dart:23-49 | test_case/best_flutter_ui_templates/lib/best_ui_page.dart:23-49 — before extracting anything, compare `example/lib/best_flutter_ui/best_ui_page.dart` and `test_case/best_flutter_ui_templates/lib/best_ui_page.dart` as WHOLE FILES: 92% 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. 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 (27 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_app_theme.dart:26 — example/lib/best_flutter_ui/hotel_booking/hotel_app_theme.dart:26-52 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_app_theme.dart:26-52 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_app_theme.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_app_theme.dart` as WHOLE FILES: 97% 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 `example/lib/best_flutter_ui/hotel_booking/hotel_app_theme.dart:26` 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 (27 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_list_view.dart:23 — example/lib/best_flutter_ui/hotel_booking/hotel_list_view.dart:23-49 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_list_view.dart:23-49 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_list_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_list_view.dart` as WHOLE FILES: 94% 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. 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 (27 lines × 2) example/lib/best_flutter_ui/hotel_booking/slider_view.dart:92 — example/lib/best_flutter_ui/hotel_booking/slider_view.dart:92-118 | test_case/best_flutter_ui_templates/lib/hotel_booking/slider_view.dart:92-118 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/slider_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/slider_view.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 97 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 `example/lib/best_flutter_ui/hotel_booking/slider_view.dart:92` 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 (27 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:397 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:397-423 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:464-490 — both copies are in the same file, so extract the 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:397` 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 × 2) · ×6
  • Duplicated block (17 lines × 2) dart2js/lib/src/convertor.dart:416 — dart2js/lib/src/convertor.dart:416-432 | dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:174-190 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/ClassDeclarationVisitor.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 145 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 `dart2js/lib/src/convertor.dart:416` 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) dart2js/lib/src/__test_data__/page1/page1.dart:78 — dart2js/lib/src/__test_data__/page1/page1.dart:78-94 | fair/example/lib/src/page/logic-page2page/sample_logic_page2page.dart:71-87 — before extracting anything, compare `dart2js/lib/src/__test_data__/page1/page1.dart` and `fair/example/lib/src/page/logic-page2page/sample_logic_page2page.dart` as WHOLE FILES: 91% 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 `dart2js/lib/src/__test_data__/page1/page1.dart:78` 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 × 2) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:49 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:49-65 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:49-65 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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 (17 lines × 2) test_case/adobe_xd/lib/Gear.dart:198 — test_case/adobe_xd/lib/Gear.dart:198-214 | test_case/adobe_xd/lib/Gear.dart:218-234 — both copies are in the same file, so extract the 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 `test_case/adobe_xd/lib/Gear.dart:198` 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 × 2) test_case/adobe_xd/lib/Home.dart:193 — test_case/adobe_xd/lib/Home.dart:193-209 | test_case/adobe_xd/lib/Home.dart:322-338 — both copies are in the same file, so extract the 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 `test_case/adobe_xd/lib/Home.dart:193` 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) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:19 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:19-35 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:19-35 — before extracting anything, compare `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:19` 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 (8 lines × 2) · ×6
  • Duplicated block (8 lines × 2) fair/lib/src/render/builder.dart:570 — fair/lib/src/render/builder.dart:570-577 | fair/lib/src/render/builder.dart:754-762 — both copies are in the same file, so extract the 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 `fair/lib/src/render/builder.dart:570` 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 (8 lines × 2) dart2js/lib/src/convertor.dart:1014 — dart2js/lib/src/convertor.dart:1014-1021 | dart2js/lib/src/node/ForStatementNode.dart:11-18 — 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) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/glass_view.dart:20 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/glass_view.dart:20-27 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:16-23 — 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/glass_view.dart:20` 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 (8 lines × 2) test_case/fair_list_demo/lib/JRList.dart:43 — test_case/fair_list_demo/lib/JRList.dart:43-50 | test_case/fair_list_demo/lib/list_proxy.dart:68-75 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) example/lib/best_flutter_ui/design_course/course_info_screen.dart:17 — example/lib/best_flutter_ui/design_course/course_info_screen.dart:17-24 | test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart:17-24 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/course_info_screen.dart` and `test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 361 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) example/lib/best_flutter_ui/design_course/home_design_course.dart:130 — example/lib/best_flutter_ui/design_course/home_design_course.dart:130-137 | test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart:130-137 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/home_design_course.dart` and `test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 298 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.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×5
  • Focus outline removed in CSS without a :focus replacement fair_online/fair_online/web/styles/embed/styles.scss:47 — `.tabnav-tab:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:172 — `.CodeMirror-scroll` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:188 — `.CodeMirror-vscrollbar` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:286 — `.CodeMirror-code` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:498 — `.CodeMirror-dialog input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×5
  • Members sharing a duplicated core (5 members, 50+ identical tokens) fair_online/fair_online/lib/views/editor_example/example.dart:26 — fair_online/fair_online/lib/views/editor_example/example.dart:26-98 | fair_online/fair_online/lib/views/editor_example/example1.dart:25-123 | fair_online/fair_online/lib/views/editor_example/example2.dart:26-137 | fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.dart:14-111 | fair_online/fair_online/lib/views/flutter_editor/flutter_preview.dart:14-74 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:26 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:26-57 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:25-56 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:26-57 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:24-55 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:24-55 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:59 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:59-157 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:58-114 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:59-157 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:57-113 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:57-113 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:164 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:164-181 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:121-138 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:164-181 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:120-137 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:120-137 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) example/lib/template/gridview/gridview_template.dart:50 — example/lib/template/gridview/gridview_template.dart:50-81 | example/lib/template/staggered_view/staggeredview_template.dart:54-89 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.dart:61-91 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/staggered_view/staggeredview_template.dart:62-97 | test_case/best_flutter_ui_templates/lib/fair/component/grid/gridview_template.dart:56-86 — 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 copy of a member (7 corresponding lines) · ×5
  • Edited copy of a member (7 corresponding lines) dart2js/lib/src/convertor.dart:601 — dart2js/lib/src/convertor.dart:601-607 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:198-206 — 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) fair_online/fair_online_service/lib/src/common_server_api.dart:82 — fair_online/fair_online_service/lib/src/common_server_api.dart:82-88 | fair_online/fair_online_service/lib/src/common_server_api.dart:90-96 — 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) fair_online/fair_online_service/lib/src/common_server_api.dart:98 — fair_online/fair_online_service/lib/src/common_server_api.dart:98-104 | fair_online/fair_online_service/lib/src/common_server_api.dart:106-112 — 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) fair_online/fair_online_service/lib/src/common_server_api.dart:114 — fair_online/fair_online_service/lib/src/common_server_api.dart:114-120 | fair_online/fair_online_service/lib/src/common_server_api.dart:256-262 — 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) test_case/bottom_navy_bar/lib/module.dart:13 — test_case/bottom_navy_bar/lib/module.dart:13-19 | test_case/flutter_component/lib/module.dart:26-32 — 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 (21 lines × 2) · ×5
  • Duplicated block (21 lines × 2) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:55 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:55-75 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.dart:58-78 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.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. 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 `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:55` 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 (21 lines × 2) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:165 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:165-185 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:177-197 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 191 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 `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:165` 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) fair_online/fair_online/lib/views/use_code/use_action_item_view.dart:46 — fair_online/fair_online/lib/views/use_code/use_action_item_view.dart:46-66 | fair_online/fair_online/lib/views/use_code/use_component_item_view.dart:78-98 — 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 `fair_online/fair_online/lib/views/use_code/use_action_item_view.dart:46` 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 (21 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/fair_preview.dart:21 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/fair_preview.dart:21-41 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/fair_preview.dart:21-41 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/fair_preview.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/fair_preview.dart` as WHOLE FILES: 96% 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. 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) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:449 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:449-469 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:448-468 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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) · ×5
  • Duplicated block (19 lines × 2) fair_online/fair_online/lib/views/page/page_list_page_view.dart:187 — fair_online/fair_online/lib/views/page/page_list_page_view.dart:187-205 | fair_online/fair_online/lib/views/page/page_list_page_view.dart:238-256 — both copies are in the same file, so extract the 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 `fair_online/fair_online/lib/views/page/page_list_page_view.dart:187` 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) fair/lib/src/internal/bind_data.dart:48 — fair/lib/src/internal/bind_data.dart:48-66 | fair/lib/src/internal/bind_data.dart:86-104 — both copies are in the same file, so extract the 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 `fair/lib/src/internal/bind_data.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 (19 lines × 2) dart2js/lib/src/convertor.dart:739 — dart2js/lib/src/convertor.dart:739-757 | dart2js/lib/src/node/FunctionDeclarationNode.dart:70-88 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/FunctionDeclarationNode.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 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 `dart2js/lib/src/convertor.dart:739` 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) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:172 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:172-190 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:172-190 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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) test_case/fair_template_detail/lib/main.dart:23 — test_case/fair_template_detail/lib/main.dart:23-41 | test_case/login_template/lib/main.dart:17-35 — before extracting anything, compare `test_case/fair_template_detail/lib/main.dart` and `test_case/login_template/lib/main.dart` as WHOLE FILES: 88% 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. 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 (18 lines × 2) · ×5
  • Duplicated block (18 lines × 2) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:187 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:187-204 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:199-216 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 191 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) test_case/adobe_xd/lib/Gear.dart:226 — test_case/adobe_xd/lib/Gear.dart:226-243 | test_case/adobe_xd/lib/Home.dart:489-506 — before extracting anything, compare `test_case/adobe_xd/lib/Gear.dart` and `test_case/adobe_xd/lib/Home.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 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 `test_case/adobe_xd/lib/Gear.dart:226` 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) test_case/adobe_xd/lib/Home.dart:89 — test_case/adobe_xd/lib/Home.dart:89-106 | test_case/adobe_xd/lib/Home.dart:108-125 — both copies are in the same file, so extract the 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 `test_case/adobe_xd/lib/Home.dart:89` 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) test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:84 — test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:84-101 | test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:64-81 — before extracting anything, compare `test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart` and `test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 172 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 (18 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_app_theme.dart:7 — example/lib/best_flutter_ui/hotel_booking/hotel_app_theme.dart:7-24 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_app_theme.dart:7-24 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_app_theme.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_app_theme.dart` as WHOLE FILES: 97% 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. 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 × 3) · ×5
  • Duplicated block (16 lines × 3) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:106 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:106-121 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:106-121 | test_case/list_card_demo/lib/view/list_card_item.dart:103-118 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 216 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:106` 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) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:626 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:626-641 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:626-641 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:626-641 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:626` 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) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:133 — example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:133-148 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.dart:76-91 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:133-148 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.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. 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 `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:133` 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 × 3) example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:46 — example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:46-61 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.dart:36-51 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:46-61 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.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 `example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:46` 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 × 3) example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:63 — example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:63-78 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.dart:53-68 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:63-78 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.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 `example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:63` 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 (15 lines × 3) · ×5
  • Duplicated block (15 lines × 3) example/lib/src/module.fair.dart:6 — example/lib/src/module.fair.dart:6-20 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/src/module.fair.dart:7-21 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/src/module.fair.dart:7-21 — before extracting anything, compare `example/lib/src/module.fair.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/src/module.fair.dart` 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.
  • Duplicated block (15 lines × 3) fair_extension/example/lib/main.dart:121 — fair_extension/example/lib/main.dart:121-135 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:145-159 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:235-249 — before extracting anything, compare `fair_extension/example/lib/main.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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 `fair_extension/example/lib/main.dart:121` 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 × 3) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:17 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:17-31 | fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:49-63 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:44-58 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 123 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:17` 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 × 3) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:225 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:225-239 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:206-220 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:225-239 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 96 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:225` 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 (15 lines × 3) test_case/adobe_xd/lib/Gear.dart:39 — test_case/adobe_xd/lib/Gear.dart:39-53 | test_case/adobe_xd/lib/Gear.dart:55-69 | test_case/adobe_xd/lib/Gear.dart:71-85 — 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 `test_case/adobe_xd/lib/Gear.dart:39` 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) · ×5
  • Duplicated block (24 lines × 2) dart2js/lib/src/__test_data__/page1/page1.dart:53 — dart2js/lib/src/__test_data__/page1/page1.dart:53-76 | fair/example/lib/src/page/logic-page2page/sample_logic_page2page.dart:46-69 — before extracting anything, compare `dart2js/lib/src/__test_data__/page1/page1.dart` and `fair/example/lib/src/page/logic-page2page/sample_logic_page2page.dart` as WHOLE FILES: 91% 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 `dart2js/lib/src/__test_data__/page1/page1.dart:53` 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 (24 lines × 2) example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart:42 — example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart:42-65 | test_case/best_flutter_ui_templates/lib/fitness_app/fitness_app_home_screen.dart:42-65 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/fitness_app_home_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (24 lines × 2) example/lib/template/detail_page/fair_detail.dart:211 — example/lib/template/detail_page/fair_detail.dart:211-234 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/detail_page/fair_detail.dart:225-248 — before extracting anything, compare `example/lib/template/detail_page/fair_detail.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/detail_page/fair_detail.dart` as WHOLE FILES: 94% 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. 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 (24 lines × 2) test_case/adobe_xd/lib/Home.dart:157 — test_case/adobe_xd/lib/Home.dart:157-180 | test_case/adobe_xd/lib/Home.dart:413-436 — both copies are in the same file, so extract the 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 `test_case/adobe_xd/lib/Home.dart:157` 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 (24 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:160 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:160-183 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:159-182 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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.
X3 · Exception handling · Swallowed exception (empty catch) · ×5
  • Swallowed exception (empty catch) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:105 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.dart:115 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) fair_online/fair_online/lib/editor/utils/http_utils.dart:90 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) fair_online/fair_online/lib/editor/utils/http_utils.dart:137 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) fair/android/src/main/v8/com/eclipsesource/v8/LibraryLoader.java:195 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
D3 · God Classes · ClassTooLong · ×4
  • ClassTooLong: DynamicWidgetBuilder fair/lib/src/render/builder.dart:43 — ClassTooLong — 639 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 239 over it, 1.60× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: FairProject fair_online/fair_online_service/lib/src/project/fair_project.dart:24 — ClassTooLong — 575 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 175 over it, 1.44× 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: CommonServerImpl fair_online/fair_online_service/lib/src/common_server_impl.dart:46 — ClassTooLong — 549 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 149 over it, 1.37× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: FlutterAnalysisServerWrapper fair_online/fair_online_service/lib/src/analysis_server.dart:33 — ClassTooLong — 548 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 148 over it, 1.37× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) · ×4
  • Members sharing a duplicated core (9 members, 50+ identical tokens) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:32 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:32-67 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.dart:30-55 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:32-67 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:33-68 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:32-63 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/pageview/pageview_template.dart:30-57 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/scrollview/home_scrollview.dart:33-58 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/staggered_view/staggeredview_template.dart:31-56 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:35-62 — These 9 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 9 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 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) fair_online/fair_online_service/lib/src/common_server_impl.dart:90 — fair_online/fair_online_service/lib/src/common_server_impl.dart:90-120 | fair_online/fair_online_service/lib/src/common_server_impl.dart:122-144 | fair_online/fair_online_service/lib/src/common_server_impl.dart:146-182 | fair_online/fair_online_service/lib/src/common_server_impl.dart:184-220 | fair_online/fair_online_service/lib/src/common_server_impl.dart:222-258 | fair_online/fair_online_service/lib/src/common_server_impl.dart:260-293 | fair_online/fair_online_service/lib/src/common_server_impl.dart:295-332 | fair_online/fair_online_service/lib/src/common_server_impl.dart:418-437 | fair_online/fair_online_service/lib/src/common_server_impl.dart:466-483 — These 9 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 9 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 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) fair_online/fair_online_service/lib/src/common_server_impl.dart:517 — fair_online/fair_online_service/lib/src/common_server_impl.dart:517-531 | fair_online/fair_online_service/lib/src/common_server_impl.dart:688-702 | fair_online/fair_online_service/lib/src/common_server_impl.dart:721-735 | fair_online/fair_online_service/lib/src/common_server_impl.dart:753-767 | fair_online/fair_online_service/lib/src/common_server_impl.dart:769-783 | fair_online/fair_online_service/lib/src/common_server_impl.dart:805-821 | fair_online/fair_online_service/lib/src/common_server_impl.dart:823-840 | fair_online/fair_online_service/lib/src/common_server_impl.dart:842-855 | fair_online/fair_online_service/lib/src/common_server_impl.dart:858-871 — These 9 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 9 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 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) example/lib/template/gridview/gridview_template.dart:23 — example/lib/template/gridview/gridview_template.dart:23-44 | example/lib/template/hotel_listview/hotel_listview_template.dart:25-51 | example/lib/template/list_card/moments_list.dart:25-51 | example/lib/template/list_page/list_page.dart:25-49 | example/lib/template/pageview/pageview_template.dart:23-45 | example/lib/template/scrollview/home_scrollview.dart:27-48 | example/lib/template/staggered_view/staggeredview_template.dart:26-48 | example/lib/template/tabbar_page/tabbar_page.dart:27-49 | fair_extension/example/lib/net/network_page.dart:23-42 — These 9 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 9 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 9 times.
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×4
  • Edited copy of a member (15 corresponding lines) fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart:51 — fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart:51-65 | fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog.dart:66-80 — 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) fair_extension/lib/navigator/fair_navigator_plugin.dart:36 — fair_extension/lib/navigator/fair_navigator_plugin.dart:36-50 | fair_provider/lib/src/fair_provider_plugin.dart:22-36 — 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) fair_online/fair_online_service/lib/services_cloud_run.dart:86 — fair_online/fair_online_service/lib/services_cloud_run.dart:86-107 | fair_online/fair_online_service/lib/services_dev.dart:98-112 — 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) fair/example/lib/src/page/list/cells/sample_list_with_dynamic_cell_page.dart:37 — fair/example/lib/src/page/list/cells/sample_list_with_dynamic_cell_page.dart:37-51 | fair/example/lib/src/page/plugins/net/sampe_list_view_src.dart:91-109 — 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 (6 corresponding lines) · ×4
  • Edited copy of a member (6 corresponding lines) fair/lib/src/internal/flexbuffer/reference.dart:370 — fair/lib/src/internal/flexbuffer/reference.dart:370-375 | fair/lib/src/internal/flexbuffer/reference.dart:377-382 — 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) dart2js/lib/src/convertor.dart:434 — dart2js/lib/src/convertor.dart:434-439 | dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:192-200 — 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) fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_code_editor.dart:23 — fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_code_editor.dart:23-30 | fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_editor.dart:18-23 — 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) test_case/flutter_libs_app/lib/common_delegate.dart:7 — test_case/flutter_libs_app/lib/common_delegate.dart:7-12 | test_case/flutter_libs_app/lib/package_info/package_info_delegate.dart:44-50 — 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 (33 lines × 2) · ×4
  • Duplicated block (33 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:35 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:35-67 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:35-67 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 249 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:35` 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 (33 lines × 2) example/lib/best_flutter_ui/design_course/home_design_course.dart:16 — example/lib/best_flutter_ui/design_course/home_design_course.dart:16-48 | test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart:16-48 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/home_design_course.dart` and `test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 298 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 (33 lines × 2) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:422 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:422-454 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:422-454 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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 (33 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:60 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:60-92 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:52-84 — before extracting anything, compare `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart` as WHOLE FILES: this scan already matched 3 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. 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:60` 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 (23 lines × 2) · ×4
  • Duplicated block (23 lines × 2) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:102 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:102-124 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:98-120 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:102` 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 `child` to `buildTextInput(context, '示例:^3.0.0', null, (value` in one and `buildTextInput(context, "", inputVersion, (value` 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 (23 lines × 2) fair_online/fair_online/lib/views/top_panel/top_panel_view.dart:108 — fair_online/fair_online/lib/views/top_panel/top_panel_view.dart:108-130 | fair_online/fair_online/lib/views/top_panel/top_panel_view.dart:139-161 — both copies are in the same file, so extract the 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 `fair_online/fair_online/lib/views/top_panel/top_panel_view.dart:108` 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 (23 lines × 2) example/lib/best_flutter_ui/component/home_list.dart:14 — example/lib/best_flutter_ui/component/home_list.dart:14-36 | test_case/best_flutter_ui_templates/lib/component/home_list.dart:14-36 — before extracting anything, compare `example/lib/best_flutter_ui/component/home_list.dart` and `test_case/best_flutter_ui_templates/lib/component/home_list.dart` as WHOLE FILES: 96% 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. 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 lines × 2) example/lib/best_flutter_ui/navigation_home_screen.dart:24 — example/lib/best_flutter_ui/navigation_home_screen.dart:24-46 | test_case/best_flutter_ui_templates/lib/navigation_home_screen.dart:25-47 — 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.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×4
  • Duplicated block (20 lines × 2) fair/example/lib/src/page/plugins/permission/fair_permission_plugin.dart:30 — fair/example/lib/src/page/plugins/permission/fair_permission_plugin.dart:30-49 | fair_extension/lib/permission/fair_permission_plugin.dart:27-46 — before extracting anything, compare `fair/example/lib/src/page/plugins/permission/fair_permission_plugin.dart` and `fair_extension/lib/permission/fair_permission_plugin.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 (20 lines × 2) fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart:61 — fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart:61-80 | fair_extension/lib/image_picker/fair_image_picker.dart:53-72 — before extracting anything, compare `fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart` and `fair_extension/lib/image_picker/fair_image_picker.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 `fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart:61` 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 (20 lines × 2) example/lib/template/staggered_view/staggeredview_template.dart:59 — example/lib/template/staggered_view/staggeredview_template.dart:59-78 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/staggered_view/staggeredview_template.dart:67-86 — 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 `example/lib/template/staggered_view/staggeredview_template.dart:59` 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) example/lib/template/template_page.dart:18 — example/lib/template/template_page.dart:18-37 | example/lib/template/template_page.dart:67-86 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/template_page.dart:18` 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 (18 lines × 3) · ×4
  • Duplicated block (18 lines × 3) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:86 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:86-103 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:86-103 | test_case/list_card_demo/lib/view/list_card_item.dart:83-100 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 216 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:86` 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 × 3) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:137 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:137-154 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:127-144 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:137-154 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 169 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:137` 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 × 3) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:648 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:648-665 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:648-665 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:648-665 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:648` 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 × 3) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:356 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:356-373 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:421-438 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:488-505 — 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:356` 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 (16 lines × 2) · ×4
  • Duplicated block (16 lines × 2) fair_online/fair_online/lib/views/page/page_main_page_view.dart:31 — fair_online/fair_online/lib/views/page/page_main_page_view.dart:31-46 | fair_online/fair_online/lib/views/use_code/use_code_list_page_view.dart:46-61 — 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 `fair_online/fair_online/lib/views/page/page_main_page_view.dart:31` 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 (16 lines × 2) fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart:32 — fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart:32-47 | fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog.dart:33-48 — 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 `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog.dart:32` 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) example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart:181 — example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart:181-196 | test_case/best_flutter_ui_templates/lib/custom_drawer/drawer_user_controller.dart:180-195 — before extracting anything, compare `example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart` and `test_case/best_flutter_ui_templates/lib/custom_drawer/drawer_user_controller.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 151 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 (16 lines × 2) fair_provider/example/lib/ui/example_page2.dart:34 — fair_provider/example/lib/ui/example_page2.dart:34-49 | fair_provider/example/lib/ui/second_page.dart:36-51 — 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 `fair_provider/example/lib/ui/example_page2.dart:34` 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, `fair_provider/example/lib/ui/second_page.dart:33` calls `Container` and `fair_provider/example/lib/ui/example_page2.dart:32` 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–14 lines × 2) · ×4
  • Duplicated block (13–14 lines × 2) dart2js/lib/src/convertor.dart:296 — dart2js/lib/src/convertor.dart:296-308 | dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:24-37 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/ClassDeclarationVisitor.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 145 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 `dart2js/lib/src/convertor.dart:296` 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.
  • Duplicated block (13–14 lines × 2) fair/lib/src/render/domain.dart:73 — fair/lib/src/render/domain.dart:73-85 | fair/lib/src/render/domain.dart:182-195 — both copies are in the same file, so extract the 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 `fair/lib/src/render/domain.dart:73` 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 (13–14 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:105 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:105-118 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:115-127 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:105` 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.
  • Duplicated block (13–14 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:104 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:104-117 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:132-144 — before extracting anything, compare `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart` as WHOLE FILES: this scan already matched 3 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. 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:104` 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 (11 lines × 3) · ×4
  • Duplicated block (11 lines × 3) fair_online/fair_online_service/lib/src/common_server_impl.dart:130 — fair_online/fair_online_service/lib/src/common_server_impl.dart:130-140 | fair_online/fair_online_service/lib/src/common_server_impl.dart:423-434 | fair_online/fair_online_service/lib/src/common_server_impl.dart:471-481 — 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 `fair_online/fair_online_service/lib/src/common_server_impl.dart:130` 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, `fair_online/fair_online_service/lib/src/common_server_impl.dart:127` calls `BadRequest`, `hasPageName` and `fair_online/fair_online_service/lib/src/common_server_impl.dart:422` 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 × 3) fair_online/fair_online_service/lib/src/common_server_impl.dart:806 — fair_online/fair_online_service/lib/src/common_server_impl.dart:806-816 | fair_online/fair_online_service/lib/src/common_server_impl.dart:824-834 | fair_online/fair_online_service/lib/src/common_server_impl.dart:843-853 — 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 `fair_online/fair_online_service/lib/src/common_server_impl.dart:806` 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 (11 lines × 3) example/lib/best_flutter_ui/best_ui_page.dart:21 — example/lib/best_flutter_ui/best_ui_page.dart:21-31 | test_case/best_flutter_ui_templates/lib/best_ui_page.dart:21-31 | test_case/best_flutter_ui_templates/lib/main.dart:28-38 — before extracting anything, compare `example/lib/best_flutter_ui/best_ui_page.dart` and `test_case/best_flutter_ui_templates/lib/best_ui_page.dart` as WHOLE FILES: 92% 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 `example/lib/best_flutter_ui/best_ui_page.dart:21` 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 × 3) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:583 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:583-593 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:583-593 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:583-593 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:583` 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 (7 lines × 2) · ×4
  • Duplicated block (7 lines × 2) dart2js/lib/src/convertor.dart:1154 — dart2js/lib/src/convertor.dart:1154-1160 | dart2js/lib/src/node/NewOperatorStatementNode.dart:9-15 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/NewOperatorStatementNode.dart` as WHOLE FILES: 91% 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. 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 (7 lines × 2) test_case/fair_list_demo/lib/JRList.dart:53 — test_case/fair_list_demo/lib/JRList.dart:53-59 | test_case/fair_list_demo/lib/list_proxy.dart:60-66 — 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) example/lib/best_flutter_ui/hex_color.dart:6 — example/lib/best_flutter_ui/hex_color.dart:6-12 | test_case/best_flutter_ui_templates/lib/hex_color.dart:6-12 — before extracting anything, compare `example/lib/best_flutter_ui/hex_color.dart` and `test_case/best_flutter_ui_templates/lib/hex_color.dart` 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. 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 (7 lines × 2) example/lib/best_flutter_ui/src/fair/hotel_list_content_proxy.dart:20 — example/lib/best_flutter_ui/src/fair/hotel_list_content_proxy.dart:20-26 | test_case/best_flutter_ui_templates/lib/src/fair/hotel_list_content_proxy.dart:20-26 — before extracting anything, compare `example/lib/best_flutter_ui/src/fair/hotel_list_content_proxy.dart` and `test_case/best_flutter_ui_templates/lib/src/fair/hotel_list_content_proxy.dart` as WHOLE FILES: 90% 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.
D4 · Code Duplication · Duplicated block (49 lines × 2) · ×4
  • Duplicated block (49 lines × 2) example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:66 — example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:66-114 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:65-113 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 292 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 `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:66` 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 (49 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:108 — example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:108-156 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart:107-155 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart` as WHOLE FILES: this scan already matched 7 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. 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 (49 lines × 2) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:128 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:128-176 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:128-176 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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 (49 lines × 2) example/lib/best_flutter_ui/hotel_booking/slider_view.dart:25 — example/lib/best_flutter_ui/hotel_booking/slider_view.dart:25-73 | test_case/best_flutter_ui_templates/lib/hotel_booking/slider_view.dart:25-73 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/slider_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/slider_view.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 97 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 (17 lines × 3) · ×4
  • Duplicated block (17 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:158 — example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:158-174 | test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart:68-84 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:158-174 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 89 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 `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:158` 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 × 3) example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:73 — example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:73-89 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/running.dart:65-81 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:73-89 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/trainning/running.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 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 `example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:73` 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) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:89 — example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:89-105 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.dart:34-50 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:89-105 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.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. 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 `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:89` 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 after the matched lines, `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:106` calls `WaveClipper` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.dart:51` 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 (17 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:110 — example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:110-126 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.dart:54-70 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:110-126 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.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. 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 `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:110` 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 after the matched lines, `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:127` calls `WaveClipper` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.dart:71` 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 (15 lines × 2) · ×4
  • Duplicated block (15 lines × 2) example/lib/best_flutter_ui/design_course/course_info_screen.dart:26 — example/lib/best_flutter_ui/design_course/course_info_screen.dart:26-40 | test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart:26-40 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/course_info_screen.dart` and `test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 361 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) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:382 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:382-396 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:382-396 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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) example/lib/template/appbar/appbar_template.dart:13 — example/lib/template/appbar/appbar_template.dart:13-27 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/appbar/appbar_template.dart:15-29 — before extracting anything, compare `example/lib/template/appbar/appbar_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/appbar/appbar_template.dart` as WHOLE FILES: 90% 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. 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) example/lib/best_flutter_ui/src/fair/help_proxy.dart:5 — example/lib/best_flutter_ui/src/fair/help_proxy.dart:5-19 | test_case/best_flutter_ui_templates/lib/src/fair/help_proxy.dart:5-19 — before extracting anything, compare `example/lib/best_flutter_ui/src/fair/help_proxy.dart` and `test_case/best_flutter_ui_templates/lib/src/fair/help_proxy.dart` 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.
X18 · Disposal-pattern correctness · Owned disposable field is never released · ×4
  • Owned disposable field is never released fair_online/fair_online/lib/views/fair_dsl_editor/console_panel.dart:22 — `_ConsolePanelState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_controller` itself (line 22, `TabController`), which makes that instance its own. Nothing in the class releases it — no `_controller.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, `TabController` 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: `_controller.dispose();` in `dispose()` before `super.dispose()`.
  • Owned disposable field is never released fair_online/fair_online/lib/views/fair_dsl_editor/console_panel.dart:24 — `_ConsolePanelState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_scrollController` itself (line 24, `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 fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:38 — `_EditorPanelState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_tabController` itself (line 38, `TabController`), which makes that instance its own. Nothing in the class releases it — no `_tabController.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, `TabController` 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: `_tabController.dispose();` in `dispose()` before `super.dispose()`.
  • Owned disposable field is never released fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:41 — `_EditorPanelState` carries a disposal duty — a `State`, so the framework calls its `dispose()` when it leaves the tree — and it creates `_scrollController` itself (line 41, `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()`.
D4 · Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) · ×3
  • Members sharing a duplicated core (7 members, 50+ identical tokens) example/lib/best_flutter_ui/component/hotel_listview_content.dart:31 — example/lib/best_flutter_ui/component/hotel_listview_content.dart:31-203 | example/lib/template/hotel_listview/hotel_listview_template.dart:57-235 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart:41-174 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:73-239 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/HotelListViewItem.dart:41-174 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:73-239 | test_case/best_flutter_ui_templates/lib/component/hotel_listview_content.dart:31-203 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:183 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:183-208 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:140-165 | test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:217-232 | test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:83-97 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:183-208 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:139-164 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:139-164 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:210 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:210-338 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:167-295 | test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:103-215 | test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:99-211 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:210-338 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:166-294 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:166-294 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×3
  • Edited copy of a member (16 corresponding lines) fair_online/fair_online/lib/views/project/project_item.dart:117 — fair_online/fair_online/lib/views/project/project_item.dart:117-133 | fair_online/fair_online/lib/views/top_panel/top_panel.dart:98-113 — 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) fair_online/fair_online/lib/base/components/seperated_flexibles.dart:27 — fair_online/fair_online/lib/base/components/seperated_flexibles.dart:27-42 | fair_online/fair_online/lib/base/components/seperated_flexibles.dart:67-82 — 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) fair/lib/src/internal/flexbuffer/builder.dart:486 — fair/lib/src/internal/flexbuffer/builder.dart:486-501 | fair/lib/src/internal/flexbuffer/builder.dart:503-518 — 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 · Edited copy of a member (8 corresponding lines) · ×3
  • Edited copy of a member (8 corresponding lines) fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart:82 — fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart:82-89 | fair_extension/lib/image_picker/fair_image_picker.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.
  • Edited copy of a member (8 corresponding lines) fair_online/fair_online_service/lib/services_cloud_run.dart:111 — fair_online/fair_online_service/lib/services_cloud_run.dart:111-118 | fair_online/fair_online_service/lib/services_dev.dart:114-122 — 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) example/lib/home_page.dart:60 — example/lib/home_page.dart:60-67 | example/lib/template/template_page.dart:104-111 — 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 · Duplicated block (109 lines × 2) · ×3
  • Duplicated block (109 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart:41 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart:41-149 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/HotelListViewItem.dart:41-149 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/HotelListViewItem.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 181 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart:41` 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 (109 lines × 2) example/lib/best_flutter_ui/custom_drawer/home_drawer.dart:59 — example/lib/best_flutter_ui/custom_drawer/home_drawer.dart:59-167 | test_case/best_flutter_ui_templates/lib/custom_drawer/home_drawer.dart:59-167 — before extracting anything, compare `example/lib/best_flutter_ui/custom_drawer/home_drawer.dart` and `test_case/best_flutter_ui_templates/lib/custom_drawer/home_drawer.dart` as WHOLE FILES: this scan already matched 3 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 (109 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:185 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:185-293 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:184-292 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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 (34 lines × 2) · ×3
  • Duplicated block (34 lines × 2) fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:109 — fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:109-142 | fair_online/fair_online/lib/views/fair_dsl_editor/console_panel.dart:85-118 — 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 `fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:109` 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 (34 lines × 2) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:388 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:388-421 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:388-421 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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 `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:388` 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 (34 lines × 2) fair/example/lib/src/page/sugars/map_page.dart:47 — fair/example/lib/src/page/sugars/map_page.dart:47-80 | fair/example/lib/src/page/sugars/mapeach_page.dart:48-81 — before extracting anything, compare `fair/example/lib/src/page/sugars/map_page.dart` and `fair/example/lib/src/page/sugars/mapeach_page.dart` as WHOLE FILES: 84% 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. 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 `fair/example/lib/src/page/sugars/map_page.dart:47` 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 (33 lines × 3) · ×3
  • Duplicated block (33 lines × 3) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:16 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:16-48 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:16-48 | test_case/list_card_demo/lib/view/list_card_item.dart:13-45 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 216 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:16` 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 (33 lines × 3) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:337 — example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:337-369 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/bottom_bar_view.dart:238-270 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:336-368 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 354 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 (33 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart:35 — example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart:35-67 | test_case/best_flutter_ui_templates/lib/fair/component/fair_uiview/title_view.dart:23-55 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/title_view.dart:35-67 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/fair_uiview/title_view.dart` as WHOLE FILES: 88% 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 `example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart:35` 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 (31 lines × 2) · ×3
  • Duplicated block (31 lines × 2) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:47 — fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:47-77 | fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:45-75 — before extracting anything, compare `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart` and `fair_online/fair_online/lib/views/project/create/project_create_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 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 `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:47` 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) fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:83 — fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:83-113 | fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog_view.dart:102-132 — before extracting anything, compare `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog_view.dart` as WHOLE FILES: this scan already matched 3 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. 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 `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:83` 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.
  • Duplicated block (31 lines × 2) example/lib/template/login_page/login_page_template.dart:17 — example/lib/template/login_page/login_page_template.dart:17-47 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:15-45 — before extracting anything, compare `example/lib/template/login_page/login_page_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 157 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 `example/lib/template/login_page/login_page_template.dart:17` 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 (26 lines × 2) · ×3
  • Duplicated block (26 lines × 2) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:23 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:23-48 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:24-49 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:23` 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 (26 lines × 2) fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:13 — fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:13-38 | fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog_view.dart:13-38 — before extracting anything, compare `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog_view.dart` as WHOLE FILES: this scan already matched 3 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. 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 `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:13` 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 (26 lines × 2) fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:52 — fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:52-77 | fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog_view.dart:52-77 — before extracting anything, compare `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog_view.dart` as WHOLE FILES: this scan already matched 3 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. 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 `fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:52` 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.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×3
  • Duplicated block (19 lines × 3) example/lib/template/hotel_listview/hotel_listview_template.dart:72 — example/lib/template/hotel_listview/hotel_listview_template.dart:72-90 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:88-106 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:88-106 — before extracting anything, compare `example/lib/template/hotel_listview/hotel_listview_template.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 202 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 `example/lib/template/hotel_listview/hotel_listview_template.dart:72` 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 (19 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:206 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:206-224 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:195-213 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:206-224 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 169 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:206` 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 × 3) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:245 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:245-263 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:233-251 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:245-263 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 169 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.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.
D4 · Code Duplication · Duplicated block (16 lines × 4) · ×3
  • Duplicated block (16 lines × 4) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:71 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:71-86 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:67-82 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:124-139 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:150-165 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:71` 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 `child` to `buildTextInput(context, '示例:fair', null, (value` in one and `buildTextInput( context, "请输入对应app id", null, (value` 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 (16 lines × 4) example/lib/best_flutter_ui/design_course/course_info_screen.dart:78 — example/lib/best_flutter_ui/design_course/course_info_screen.dart:78-93 | example/lib/best_flutter_ui/design_course/home_design_course.dart:52-67 | test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart:78-93 | test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart:52-67 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/course_info_screen.dart` and `test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 361 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 `example/lib/best_flutter_ui/design_course/course_info_screen.dart:78` 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 × 4) test_case/adobe_xd/lib/Gear.dart:83 — test_case/adobe_xd/lib/Gear.dart:83-98 | test_case/adobe_xd/lib/Home.dart:179-194 | test_case/adobe_xd/lib/Home.dart:308-323 | test_case/adobe_xd/lib/Home.dart:506-521 — before extracting anything, compare `test_case/adobe_xd/lib/Gear.dart` and `test_case/adobe_xd/lib/Home.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 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 `test_case/adobe_xd/lib/Gear.dart:83` 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 (14–15 lines × 4) · ×3
  • Duplicated block (14–15 lines × 4) fair_online/fair_online_service/lib/src/common_server_impl.dart:92 — fair_online/fair_online_service/lib/src/common_server_impl.dart:92-106 | fair_online/fair_online_service/lib/src/common_server_impl.dart:262-276 | fair_online/fair_online_service/lib/src/common_server_impl.dart:420-434 | fair_online/fair_online_service/lib/src/common_server_impl.dart:468-481 — 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 `fair_online/fair_online_service/lib/src/common_server_impl.dart:92` 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 first that the copies are not typed on the same thing: the declarations holding them bind `request` to `proto.SourceRequest` in one and `proto.CompileRequest` 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 × 4) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:209 — example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:209-222 | example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:108-122 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:209-222 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:108-122 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 329 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 `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:209` 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–15 lines × 4) example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:159 — example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:159-172 | example/lib/best_flutter_ui/hotel_booking/slider_view.dart:112-126 | test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart:159-172 | test_case/best_flutter_ui_templates/lib/hotel_booking/slider_view.dart:112-126 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 153 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 × 6) · ×3
  • Duplicated block (13 lines × 6) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:206 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:206-218 | fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:146-158 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:143-155 | fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:163-175 | fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:123-135 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:228-240 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 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 `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:206` 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 × 6) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:72 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:72-84 | example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:74-86 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:66-78 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:58-70 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:72-84 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:74-86 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` as WHOLE FILES: this scan already matched 4 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:72` 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 × 6) example/lib/template/template_page.dart:123 — example/lib/template/template_page.dart:123-135 | fair/example/lib/src/page/list/logic_list_home_page.dart:64-76 | fair/example/lib/src/page/logic_home_page.dart:89-101 | fair/example/lib/src/page/plugins/sample_plugin.dart:54-66 | fair/example/lib/src/page/sugars/sugars_home_page.dart:92-104 | test_case/sugar_demo_tabbar/lib/home_page.dart:61-73 — before extracting anything, compare `fair/example/lib/src/page/list/logic_list_home_page.dart` and `fair/example/lib/src/page/sugars/sugars_home_page.dart` as WHOLE FILES: this scan already matched 3 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. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/template_page.dart:123` 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 (13 lines × 4) · ×3
  • Duplicated block (13 lines × 4) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:22 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:22-34 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:23-35 | fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:54-66 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:49-61 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:22` 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 × 4) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:145 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:145-159 | example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:88-100 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:145-159 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:88-100 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 453 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:145` 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 × 4) test_case/adobe_xd/lib/Gear.dart:91 — test_case/adobe_xd/lib/Gear.dart:91-103 | test_case/adobe_xd/lib/Home.dart:187-199 | test_case/adobe_xd/lib/Home.dart:316-328 | test_case/adobe_xd/lib/Home.dart:380-392 — before extracting anything, compare `test_case/adobe_xd/lib/Gear.dart` and `test_case/adobe_xd/lib/Home.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 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 `test_case/adobe_xd/lib/Gear.dart:91` 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 × 3) · ×3
  • Duplicated block (12 lines × 3) fair_extension/lib/navigator/fair_navigator_plugin.dart:37 — fair_extension/lib/navigator/fair_navigator_plugin.dart:37-48 | fair_extension/lib/navigator/fair_navigator_plugin.dart:53-64 | fair_extension/lib/toast/fair_toast_plugin.dart:50-61 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (12 lines × 3) example/lib/template/login_page/login_page_template.dart:59 — example/lib/template/login_page/login_page_template.dart:59-70 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:56-67 | test_case/login_template/lib/login/login_page.dart:53-64 — before extracting anything, compare `example/lib/template/login_page/login_page_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 157 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 `example/lib/template/login_page/login_page_template.dart:59` 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 (12 lines × 3) test_case/adobe_xd/lib/Gear.dart:111 — test_case/adobe_xd/lib/Gear.dart:111-122 | test_case/adobe_xd/lib/Home.dart:73-84 | test_case/adobe_xd/lib/Home.dart:474-485 — before extracting anything, compare `test_case/adobe_xd/lib/Gear.dart` and `test_case/adobe_xd/lib/Home.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 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 `test_case/adobe_xd/lib/Gear.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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `test_case/adobe_xd/lib/Home.dart:472` calls `all`, `Color` and `test_case/adobe_xd/lib/Home.dart:72` 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 (10 lines × 3) · ×3
  • Duplicated block (10 lines × 3) fair_online/fair_online_service/lib/src/analysis_server.dart:98 — fair_online/fair_online_service/lib/src/analysis_server.dart:98-107 | fair_online/fair_online_service/lib/src/analysis_server.dart:247-256 | fair_online/fair_online_service/lib/src/analysis_server.dart:745-754 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `fair_online/fair_online_service/lib/src/analysis_server.dart:245` calls `AssistsResponse`, `addAll` and `fair_online/fair_online_service/lib/src/analysis_server.dart:97` 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 × 3) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:102 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:102-111 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:102-111 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:88-97 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 362 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:102` 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 (10 lines × 3) example/lib/template/detail_page/fair_detail.dart:158 — example/lib/template/detail_page/fair_detail.dart:158-167 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/detail_page/fair_detail.dart:172-181 | test_case/fair_template_detail/lib/fair_detail.dart:137-146 — before extracting anything, compare `example/lib/template/detail_page/fair_detail.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/detail_page/fair_detail.dart` as WHOLE FILES: 94% 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. 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 × 3) · ×3
  • Duplicated block (9 lines × 3) fair_online/fair_online/lib/views/custom_code_page/dialog/code_compile_dialog_widget.dart:20 — fair_online/fair_online/lib/views/custom_code_page/dialog/code_compile_dialog_widget.dart:20-28 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:26-34 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:26-34 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 191 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 `fair_online/fair_online/lib/views/custom_code_page/dialog/code_compile_dialog_widget.dart:20` 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 × 3) fair_online/fair_online_service/lib/src/analysis_server.dart:95 — fair_online/fair_online_service/lib/src/analysis_server.dart:95-103 | fair_online/fair_online_service/lib/src/analysis_server.dart:434-444 | fair_online/fair_online_service/lib/src/analysis_server.dart:742-750 — 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 `fair_online/fair_online_service/lib/src/analysis_server.dart:95` 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, `fair_online/fair_online_service/lib/src/analysis_server.dart:448` calls `File`, `writeAsString` and `fair_online/fair_online_service/lib/src/analysis_server.dart:106` 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) fair_online/fair_online_service/lib/src/common_server_impl.dart:535 — fair_online/fair_online_service/lib/src/common_server_impl.dart:535-543 | fair_online/fair_online_service/lib/src/common_server_impl.dart:556-564 | fair_online/fair_online_service/lib/src/common_server_impl.dart:571-579 — 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.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×3
  • Duplicated block (5 lines × 2) fair/lib/src/internal/flexbuffer/reference.dart:371 — fair/lib/src/internal/flexbuffer/reference.dart:371-375 | fair/lib/src/internal/flexbuffer/reference.dart:378-382 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. 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 (5 lines × 2) dart2js/lib/src/convertor.dart:1204 — dart2js/lib/src/convertor.dart:1204-1208 | dart2js/lib/src/visitor/SimpleFunctionGenerator.dart:34-38 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) fair_provider/example/lib/ui/example_page2.dart:19 — fair_provider/example/lib/ui/example_page2.dart:19-23 | fair_provider/example/lib/ui/second_page.dart:19-23 — 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 (43 lines × 2) · ×3
  • Duplicated block (43 lines × 2) example/lib/best_flutter_ui/component/composer_widget.dart:8 — example/lib/best_flutter_ui/component/composer_widget.dart:8-50 | test_case/best_flutter_ui_templates/lib/component/composer_widget.dart:7-49 — before extracting anything, compare `example/lib/best_flutter_ui/component/composer_widget.dart` and `test_case/best_flutter_ui_templates/lib/component/composer_widget.dart` as WHOLE FILES: 92% 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. 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 (43 lines × 2) example/lib/best_flutter_ui/design_course/course_info_screen.dart:292 — example/lib/best_flutter_ui/design_course/course_info_screen.dart:292-334 | test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart:292-334 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/course_info_screen.dart` and `test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 361 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 (43 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:116 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:116-158 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:115-157 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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 (36 lines × 2) · ×3
  • Duplicated block (36 lines × 2) example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart:72 — example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart:72-107 | test_case/best_flutter_ui_templates/lib/fitness_app/fitness_app_home_screen.dart:72-107 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/fitness_app_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/fitness_app_home_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 (36 lines × 2) example/lib/best_flutter_ui/navigation_home_screen.dart:48 — example/lib/best_flutter_ui/navigation_home_screen.dart:48-83 | test_case/best_flutter_ui_templates/lib/navigation_home_screen.dart:49-84 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (36 lines × 2) example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart:37 — example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart:37-72 | test_case/best_flutter_ui_templates/lib/custom_drawer/drawer_user_controller.dart:36-71 — before extracting anything, compare `example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart` and `test_case/best_flutter_ui_templates/lib/custom_drawer/drawer_user_controller.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 151 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 (35 lines × 2) · ×3
  • Duplicated block (35 lines × 2) example/lib/best_flutter_ui/custom_drawer/home_drawer.dart:23 — example/lib/best_flutter_ui/custom_drawer/home_drawer.dart:23-57 | test_case/best_flutter_ui_templates/lib/custom_drawer/home_drawer.dart:23-57 — before extracting anything, compare `example/lib/best_flutter_ui/custom_drawer/home_drawer.dart` and `test_case/best_flutter_ui_templates/lib/custom_drawer/home_drawer.dart` as WHOLE FILES: this scan already matched 3 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.
  • Duplicated block (35 lines × 2) example/lib/template/pageview/pageview_template.dart:59 — example/lib/template/pageview/pageview_template.dart:59-93 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/pageview/pageview_template.dart:71-105 — before extracting anything, compare `example/lib/template/pageview/pageview_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/pageview/pageview_template.dart` as WHOLE FILES: 82% 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.
  • Duplicated block (35 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:578 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:578-612 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:578-612 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 901 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:578` 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 (32 lines × 2) · ×3
  • Duplicated block (32 lines × 2) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:178 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:178-209 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:178-209 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:142 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:142-173 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:295-326 — before extracting anything, compare `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:142` 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 (32 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:44 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:44-75 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:140-171 — both copies are in the same file, so extract the 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:44` 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 (17 lines × 6) · ×3
  • Duplicated block (17 lines × 6) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:264 — example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:264-280 | example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:285-301 | example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:306-322 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:263-279 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:284-300 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:305-321 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 354 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 `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:264` 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 × 6) fair/example/lib/src/page/home_page.dart:34 — fair/example/lib/src/page/home_page.dart:34-50 | fair/example/lib/src/page/list/logic_list_home_page.dart:58-74 | fair/example/lib/src/page/logic_home_page.dart:83-99 | fair/example/lib/src/page/plugins/sample_plugin.dart:48-64 | fair/example/lib/src/page/sugars/sugars_home_page.dart:86-102 | test_case/sugar_demo_tabbar/lib/home_page.dart:55-71 — before extracting anything, compare `fair/example/lib/src/page/list/logic_list_home_page.dart` and `fair/example/lib/src/page/sugars/sugars_home_page.dart` as WHOLE FILES: this scan already matched 3 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. Read the line range as the matched WINDOW rather than a finished unit: at `fair/example/lib/src/page/home_page.dart:34` 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 × 6) test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart:105 — test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart:105-121 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:77-93 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:99-115 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:121-137 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:143-159 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:165-181 — `test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart` and `test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart:105` 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 (17 lines × 4) · ×3
  • Duplicated block (17 lines × 4) example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:13 — example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:13-29 | example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:13-29 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/glass_view.dart:13-29 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:13-29 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 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 `example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:13` 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 × 4) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:399 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:399-415 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:500-516 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:399-415 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:499-515 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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 `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:399` 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 × 4) test_case/animated_text_kit/lib/main.dart:27 — test_case/animated_text_kit/lib/main.dart:27-43 | test_case/bottom_navy_bar/lib/main.dart:32-48 | test_case/flutter_component/lib/main.dart:32-48 | test_case/flutter_slidable/lib/main.dart:24-40 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. 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.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (3.5 · ×2
  • Low contrast colour pair in CSS (3.5:1) fair_online/fair_online/web/scripts/codemirror/css/codemirror.css:469 — `li.CodeMirror-hint-active` sets color: white on background-color: #08f — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (3.5:1) fair_online/fair_online/web/scripts/codemirror/addon/hint/show-hint.css:33 — `li.CodeMirror-hint-active` sets color: white on background-color: #08f — 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · ClassDeclarationVisitor.visitClassDeclaration (cyclomatic 30) · ×2
  • ClassDeclarationVisitor.visitClassDeclaration (cyclomatic 30) dart2js/lib/src/convertor.dart:296 — ClassDeclarationVisitor.visitClassDeclaration has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • ClassDeclarationVisitor.visitClassDeclaration (cyclomatic 30) dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:24 — ClassDeclarationVisitor.visitClassDeclaration has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WidgetStateGenerator.visitClassDeclaration (cyclomatic 16) · ×2
  • WidgetStateGenerator.visitClassDeclaration (cyclomatic 16) dart2js/lib/src/convertor.dart:502 — WidgetStateGenerator.visitClassDeclaration 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.
  • WidgetStateGenerator.visitClassDeclaration (cyclomatic 16) dart2js/lib/src/visitor/WidgetStateGenerator.dart:79 — WidgetStateGenerator.visitClassDeclaration 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 · ClassDeclarationVisitor.visitClassDeclaration (cognitive 52) · ×2
  • ClassDeclarationVisitor.visitClassDeclaration (cognitive 52) dart2js/lib/src/convertor.dart:296 — ClassDeclarationVisitor.visitClassDeclaration has cognitive complexity 52 (threshold 15). Drivers by points: if/else 23 (36 pts), ternaries 4 (11 pts), boolean chains 5 (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.
  • ClassDeclarationVisitor.visitClassDeclaration (cognitive 52) dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:24 — ClassDeclarationVisitor.visitClassDeclaration has cognitive complexity 52 (threshold 15). Drivers by points: if/else 24 (39 pts), ternaries 3 (8 pts), boolean chains 5 (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 · WidgetStateGenerator.visitClassDeclaration (cognitive 32) · ×2
  • WidgetStateGenerator.visitClassDeclaration (cognitive 32) dart2js/lib/src/convertor.dart:502 — WidgetStateGenerator.visitClassDeclaration has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, match/switch 1 (3 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • WidgetStateGenerator.visitClassDeclaration (cognitive 32) dart2js/lib/src/visitor/WidgetStateGenerator.dart:79 — WidgetStateGenerator.visitClassDeclaration has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, match/switch 1 (3 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · core.DateTime.parse (cognitive 20) · ×2
  • core.DateTime.parse (cognitive 20) REDACTED:532 — core.DateTime.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (4 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 11 points are the body's own statements and 9 belong to 2 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • core.DateTime.parse (cognitive 20) REDACTED:694 — core.DateTime.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (4 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 11 points are the body's own statements and 9 belong to 2 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · date.DateTime.parse (cognitive 20) · ×2
  • date.DateTime.parse (cognitive 20) REDACTED:257 — date.DateTime.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (4 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 11 points are the body's own statements and 9 belong to 2 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • date.DateTime.parse (cognitive 20) REDACTED:293 — date.DateTime.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (4 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 11 points are the body's own statements and 9 belong to 2 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · fair_jsbase.DateTime.parse (cognitive 20) · ×2
  • fair_jsbase.DateTime.parse (cognitive 20) REDACTED:688 — fair_jsbase.DateTime.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (4 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 11 points are the body's own statements and 9 belong to 2 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • fair_jsbase.DateTime.parse (cognitive 20) REDACTED:685 — fair_jsbase.DateTime.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (4 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 11 points are the body's own statements and 9 belong to 2 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D30 · Dependency Vulnerabilities · Medium vulnerability · ×2
  • REDACTED
  • REDACTED
D4 · Code Duplication · Near-duplicate member pair (83 shared lines) · ×2
  • Near-duplicate member pair (83 shared lines) fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:13 — fair_online/fair_online/lib/views/use_code/dialog/use_custom_action_dialog_view.dart:13-129 | fair_online/fair_online/lib/views/use_code/dialog/use_custom_widget_dialog_view.dart:13-148 — These two members are variants of one another: 83 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
  • Near-duplicate member pair (83 shared lines) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:18 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:18-268 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:24-292 — These two members are variants of one another: 83 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) · ×2
  • Members sharing a duplicated core (6 members, 50+ identical tokens) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:206 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:206-221 | fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:146-161 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:143-158 | fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:163-178 | fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:123-138 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:228-243 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:98 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:98-126 | example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:211-239 | example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:241-269 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:98-126 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:211-239 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:241-269 — 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 · Edited copy of a member (23 corresponding lines) · ×2
  • Edited copy of a member (23 corresponding lines) dart2js/lib/src/convertor.dart:464 — dart2js/lib/src/convertor.dart:464-486 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:28-58 — 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) fair_online/fair_online/lib/base/components/styled_dialogs.dart:126 — fair_online/fair_online/lib/base/components/styled_dialogs.dart:126-154 | fair_online/fair_online/lib/base/components/styled_dialogs.dart:169-191 — 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 (34 corresponding lines) · ×2
  • Edited copy of a member (34 corresponding lines) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:55 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog.dart:55-88 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog.dart:58-94 — 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.
  • Edited copy of a member (34 corresponding lines) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:208 — fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:208-246 | fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:140-173 — 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 copy of a member (17 corresponding lines) · ×2
  • Edited copy of a member (17 corresponding lines) dart2js/lib/src/convertor.dart:698 — dart2js/lib/src/convertor.dart:698-714 | dart2js/lib/src/node/FunctionDeclarationNode.dart:19-43 — 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) fair_online/fair_online/lib/models/dependency_file_model.dart:57 — fair_online/fair_online/lib/models/dependency_file_model.dart:57-73 | fair_online/fair_online/lib/models/page_model.dart:151-171 — 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.
D4 · Code Duplication · Edited copy of a member (33 corresponding lines) · ×2
  • Edited copy of a member (33 corresponding lines) fair_online/fair_online/lib/views/api_call_page/popup_list.dart:49 — fair_online/fair_online/lib/views/api_call_page/popup_list.dart:49-81 | fair_online/fair_online/lib/views/fair_dsl_editor/device_dropdown_menu.dart:44-78 — 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) test_case/fair_provider/lib/my_home_page.dart:15 — test_case/fair_provider/lib/my_home_page.dart:15-47 | test_case/fair_template_detail/lib/main.dart:76-126 — 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 copy of a member (24 corresponding lines) · ×2
  • Edited copy of a member (24 corresponding lines) fair_online/fair_online_service/lib/src/analysis_server.dart:553 — fair_online/fair_online_service/lib/src/analysis_server.dart:553-577 | fair_online/fair_online_service/lib/src/analysis_server.dart:714-737 — 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) fair_online/fair_online/lib/models/fair_dsl_model.dart:230 — fair_online/fair_online/lib/models/fair_dsl_model.dart:230-254 | fair_online/fair_online/lib/models/fair_dsl_model.dart:256-279 — 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 (22 corresponding lines) · ×2
  • Edited copy of a member (22 corresponding lines) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:53 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:53-74 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:61-82 — 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) fair_online/fair_online/lib/views/api_call_page/api_call_add_page_view.dart:37 — fair_online/fair_online/lib/views/api_call_page/api_call_add_page_view.dart:37-58 | fair_online/fair_online/lib/views/api_call_page/api_call_page_view.dart:31-54 — 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 · Edited copy of a member (12 corresponding lines) · ×2
  • Edited copy of a member (12 corresponding lines) dart2js/lib/src/convertor.dart:1246 — dart2js/lib/src/convertor.dart:1246-1259 | dart2js/lib/src/convertor.dart:1261-1272 — 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) fair_online/fair_online_service/lib/src/common_server_impl.dart:661 — fair_online/fair_online_service/lib/src/common_server_impl.dart:661-673 | fair_online/fair_online_service/lib/src/common_server_impl.dart:675-686 — 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 · Edited copies of one member (3 members, 11+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 11+ corresponding lines) dart2dsl/lib/fairdsl/fair_ast_node.dart:342 — dart2dsl/lib/fairdsl/fair_ast_node.dart:342-353 | dart2dsl/lib/fairdsl/fair_ast_node.dart:725-738 | dart2dsl/lib/fairdsl/fair_ast_node.dart:1049-1059 — 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.
  • Edited copies of one member (3 members, 11+ corresponding lines) fair_online/fair_online_service/lib/src/utils/change_dependency_util.dart:5 — fair_online/fair_online_service/lib/src/utils/change_dependency_util.dart:5-17 | fair_online/fair_online_service/lib/src/utils/change_dependency_util.dart:19-29 | fair_online/fair_online_service/lib/src/utils/change_dependency_util.dart:31-41 — 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, 14+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 14+ corresponding lines) fair_online/fair_online_service/lib/src/common_server_impl.dart:533 — fair_online/fair_online_service/lib/src/common_server_impl.dart:533-546 | fair_online/fair_online_service/lib/src/common_server_impl.dart:554-567 | fair_online/fair_online_service/lib/src/common_server_impl.dart:569-582 — 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) fair/lib/src/render/expression.dart:224 — fair/lib/src/render/expression.dart:224-237 | fair/lib/src/render/expression.dart:260-274 | fair/lib/src/render/expression.dart:330-345 — 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 (14 corresponding lines) · ×2
  • Edited copy of a member (14 corresponding lines) fair/lib/src/render/builder.dart:780 — fair/lib/src/render/builder.dart:780-795 | fair/lib/src/render/builder.dart:797-810 — 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) fair_online/fair_online/lib/views/dependency/dependency_page.dart:55 — fair_online/fair_online/lib/views/dependency/dependency_page.dart:55-69 | fair_online/fair_online/lib/views/dependency/dependency_page.dart:79-92 — 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 (11 corresponding lines) · ×2
  • Edited copy of a member (11 corresponding lines) fair_online/fair_online/lib/base/components/styled_text_input.dart:325 — fair_online/fair_online/lib/base/components/styled_text_input.dart:325-335 | fair_online/fair_online/lib/base/components/styled_text_input.dart:337-347 — 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) test_case/fair_mobx/lib/main.dart:12 — test_case/fair_mobx/lib/main.dart:12-22 | test_case/list_card_demo/lib/main.dart:19-34 — 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 copy of a member (4 corresponding lines) · ×2
  • Edited copy of a member (4 corresponding lines) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:76 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:76-79 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:84-87 — These two members are one piece of code written twice and then edited apart: 4 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 (4 corresponding lines) dart2js/lib/src/convertor.dart:837 — dart2js/lib/src/convertor.dart:837-840 | dart2js/lib/src/node/ConditionalExpressionNode.dart:10-13 — These two members are one piece of code written twice and then edited apart: 4 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 (66 lines × 2) · ×2
  • Duplicated block (66 lines × 2) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:96 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:96-161 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:109-174 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 191 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 `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:96` 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 (66 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:489 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:489-554 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:488-553 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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 `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:489` 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 (55 lines × 2) · ×2
  • Duplicated block (55 lines × 2) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:71 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:71-125 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:71-125 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 216 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:71` 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 (55 lines × 2) example/lib/best_flutter_ui/home_screen.dart:123 — example/lib/best_flutter_ui/home_screen.dart:123-177 | test_case/best_flutter_ui_templates/lib/home_screen.dart:123-177 — before extracting anything, compare `example/lib/best_flutter_ui/home_screen.dart` and `test_case/best_flutter_ui_templates/lib/home_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 152 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 (35 lines × 3) · ×2
  • Duplicated block (35 lines × 3) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:50 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:50-84 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:50-84 | test_case/list_card_demo/lib/view/list_card_item.dart:47-81 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 216 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:50` 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 (35 lines × 3) example/lib/template/list_page/list_page.dart:78 — example/lib/template/list_page/list_page.dart:78-112 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:92-126 | test_case/list_demo/lib/list_demo_page.dart:21-55 — before extracting anything, compare `example/lib/template/list_page/list_page.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 156 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 (29 lines × 2) · ×2
  • Duplicated block (29 lines × 2) dart2js/lib/src/convertor.dart:1210 — dart2js/lib/src/convertor.dart:1210-1238 | dart2js/lib/src/visitor/SimpleFunctionGenerator.dart:40-68 — 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 (29 lines × 2) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:211 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:211-239 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:211-239 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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 (23–24 lines × 2) · ×2
  • Duplicated block (23–24 lines × 2) dart2js/lib/src/convertor.dart:246 — dart2js/lib/src/convertor.dart:246-268 | dart2js/lib/src/declaration/ClassDeclarationData.dart:53-76 — 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 `dart2js/lib/src/convertor.dart:246` 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 (23–24 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:320 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:320-343 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:385-407 — both copies are in the same file, so extract the 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:320` 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–23 lines × 2) · ×2
  • Duplicated block (22–23 lines × 2) dart2js/lib/src/convertor.dart:934 — dart2js/lib/src/convertor.dart:934-955 | dart2js/lib/src/node/IfStatementNode.dart:9-31 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/IfStatementNode.dart` as WHOLE FILES: 96% 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. 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–23 lines × 2) fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:55 — fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:55-77 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:50-71 — before extracting anything, compare `fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart` and `fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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 `fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:55` 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 (21 lines × 4) · ×2
  • Duplicated block (21 lines × 4) example/lib/template/list_card/moments_list.dart:240 — example/lib/template/list_card/moments_list.dart:240-260 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:111-131 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:111-131 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:257-277 — before extracting anything, compare `example/lib/template/list_card/moments_list.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.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. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/list_card/moments_list.dart:240` 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 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.
  • Duplicated block (21 lines × 4) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:147 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:147-167 | example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:113-133 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:147-167 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:113-133 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` as WHOLE FILES: this scan already matched 4 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:147` 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 (18–19 lines × 4) · ×2
  • Duplicated block (18–19 lines × 4) example/lib/template/list_card/moments_list.dart:200 — example/lib/template/list_card/moments_list.dart:200-218 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:73-90 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:73-90 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:217-235 — before extracting anything, compare `example/lib/template/list_card/moments_list.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.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. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/list_card/moments_list.dart:200` 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–19 lines × 4) example/lib/template/list_card/moments_list.dart:220 — example/lib/template/list_card/moments_list.dart:220-238 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:92-109 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:92-109 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:237-255 — before extracting anything, compare `example/lib/template/list_card/moments_list.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.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. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/list_card/moments_list.dart:220` 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 (18 lines × 5) · ×2
  • Duplicated block (18 lines × 5) fair_online/fair_online/lib/views/editor_example/example.dart:72 — fair_online/fair_online/lib/views/editor_example/example.dart:72-89 | fair_online/fair_online/lib/views/editor_example/example1.dart:86-103 | fair_online/fair_online/lib/views/editor_example/example2.dart:100-117 | fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.dart:71-88 | fair_online/fair_online/lib/views/flutter_editor/flutter_preview.dart:35-52 — before extracting anything, compare `fair_online/fair_online/lib/views/editor_example/example1.dart` and `fair_online/fair_online/lib/views/editor_example/example2.dart` as WHOLE FILES: 82% 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. 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 `fair_online/fair_online/lib/views/editor_example/example.dart:72` 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 × 5) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:164 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:164-181 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:121-138 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:164-181 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:120-137 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:120-137 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 (14–15 lines × 2) · ×2
  • Duplicated block (14–15 lines × 2) fair/lib/src/render/builder.dart:375 — fair/lib/src/render/builder.dart:375-389 | fair/lib/src/render/builder.dart:420-433 — both copies are in the same file, so extract the 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 `fair/lib/src/render/builder.dart:375` 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 (14–15 lines × 2) fair/example/lib/src/page/list/logic_list_home_page.dart:27 — fair/example/lib/src/page/list/logic_list_home_page.dart:27-41 | fair/example/lib/src/page/sugars/sugars_home_page.dart:36-49 — before extracting anything, compare `fair/example/lib/src/page/list/logic_list_home_page.dart` and `fair/example/lib/src/page/sugars/sugars_home_page.dart` as WHOLE FILES: this scan already matched 3 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. Read the line range as the matched WINDOW rather than a finished unit: at `fair/example/lib/src/page/list/logic_list_home_page.dart:27` 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 (11 lines × 4) · ×2
  • Duplicated block (11 lines × 4) example/lib/template/template_page.dart:115 — example/lib/template/template_page.dart:115-125 | fair_extension/example/lib/main.dart:118-128 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:142-152 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:232-242 — before extracting anything, compare `fair_extension/example/lib/main.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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 `example/lib/template/template_page.dart:115` 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 × 4) example/lib/template/list_card/moments_list.dart:133 — example/lib/template/list_card/moments_list.dart:133-144 | example/lib/template/list_page/list_page.dart:113-123 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:150-161 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:127-137 — before extracting anything, compare `example/lib/template/list_card/moments_list.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 238 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 `example/lib/template/list_card/moments_list.dart:133` 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 (5 lines × 3) · ×2
  • Duplicated block (5 lines × 3) fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:93 — fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:93-97 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart:86-90 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/plugins/net/fair_net_plugin.dart:86-90 — before extracting anything, compare `fair/example/lib/src/page/plugins/net/fair_net_plugin.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 88 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 (5 lines × 3) fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:99 — fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:99-103 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart:92-96 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/plugins/net/fair_net_plugin.dart:92-96 — before extracting anything, compare `fair/example/lib/src/page/plugins/net/fair_net_plugin.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 88 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 (10 lines × 4) · ×2
  • Duplicated block (10 lines × 4) fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart:20 — fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart:20-31 | fair_online/fair_online_service/lib/src/visitor/fair_patch_visitor.dart:9-18 | fair_online/fair_online_service/lib/src/visitor/preview_component_visitor.dart:9-18 | fair_online/fair_online_service/lib/src/visitor/preview_page_visitor.dart:9-18 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
  • Duplicated block (10 lines × 4) example/lib/best_flutter_ui/design_course/category_list_view.dart:98 — example/lib/best_flutter_ui/design_course/category_list_view.dart:98-107 | example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:94-103 | test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart:98-107 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:94-103 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/category_list_view.dart` and `test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 313 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 `example/lib/best_flutter_ui/design_course/category_list_view.dart:98` 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 · Edited copy of a member (45 corresponding lines) · ×2
  • Edited copy of a member (45 corresponding lines) test_case/flutter_component/lib/slidable_widget.dart:15 — test_case/flutter_component/lib/slidable_widget.dart:15-59 | test_case/flutter_slidable/lib/home_page.dart:21-79 — 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) fair_provider/example/lib/ui/counter_page.dart:31 — fair_provider/example/lib/ui/counter_page.dart:31-75 | fair_provider/example/lib/ui/example_page2.dart:25-70 — 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 · Duplicated block (190 lines × 2) · ×2
  • Duplicated block (190 lines × 2) example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart:57 — example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart:57-246 | test_case/best_flutter_ui_templates/lib/hotel_booking/calendar_popup_view.dart:57-246 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/calendar_popup_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 217 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 (190 lines × 2) example/lib/best_flutter_ui/design_course/category_list_view.dart:100 — example/lib/best_flutter_ui/design_course/category_list_view.dart:100-289 | test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart:100-289 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/category_list_view.dart` and `test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 313 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 (87 lines × 2) · ×2
  • Duplicated block (87 lines × 2) example/lib/best_flutter_ui/custom_drawer/home_drawer.dart:169 — example/lib/best_flutter_ui/custom_drawer/home_drawer.dart:169-255 | test_case/best_flutter_ui_templates/lib/custom_drawer/home_drawer.dart:169-255 — before extracting anything, compare `example/lib/best_flutter_ui/custom_drawer/home_drawer.dart` and `test_case/best_flutter_ui_templates/lib/custom_drawer/home_drawer.dart` as WHOLE FILES: this scan already matched 3 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 (87 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:361 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:361-447 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:360-446 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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 (65 lines × 2) · ×2
  • Duplicated block (65 lines × 2) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:271 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:271-335 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:271-335 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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 (65 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:295 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:295-359 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:294-358 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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 (53 lines × 2) · ×2
  • Duplicated block (53 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:39 — example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:39-91 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart:38-90 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart` as WHOLE FILES: this scan already matched 7 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. 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 (53 lines × 2) example/lib/template/tabbar_page/tabbar_page.dart:105 — example/lib/template/tabbar_page/tabbar_page.dart:105-157 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:118-170 — before extracting anything, compare `example/lib/template/tabbar_page/tabbar_page.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 100 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 (50 lines × 2) · ×2
  • Duplicated block (50 lines × 2) example/lib/best_flutter_ui/design_course/home_design_course.dart:50 — example/lib/best_flutter_ui/design_course/home_design_course.dart:50-99 | test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart:50-99 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/home_design_course.dart` and `test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 298 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 (50 lines × 2) example/lib/best_flutter_ui/design_course/home_design_course.dart:139 — example/lib/best_flutter_ui/design_course/home_design_course.dart:139-188 | test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart:139-188 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/home_design_course.dart` and `test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 298 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 (46 lines × 2) · ×2
  • Duplicated block (46 lines × 2) example/lib/best_flutter_ui/design_course/category_list_view.dart:36 — example/lib/best_flutter_ui/design_course/category_list_view.dart:36-81 | test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart:36-81 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/category_list_view.dart` and `test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 313 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 (46 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:22 — example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:22-67 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:22-67 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 301 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 (42 lines × 2) · ×2
  • Duplicated block (42 lines × 2) example/lib/best_flutter_ui/design_course/home_design_course.dart:262 — example/lib/best_flutter_ui/design_course/home_design_course.dart:262-303 | test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart:262-303 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/home_design_course.dart` and `test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 298 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 (42 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:41 — example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:41-82 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:41-82 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 329 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 (32 lines × 5) · ×2
  • Duplicated block (32 lines × 5) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:26 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:26-57 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:25-56 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:26-57 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:24-55 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:24-55 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 × 5) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:152 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:152-183 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:334-365 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:152-183 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:334-365 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:334-365 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:152` 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 (28 lines × 2) · ×2
  • Duplicated block (28 lines × 2) example/lib/best_flutter_ui/design_course/home_design_course.dart:101 — example/lib/best_flutter_ui/design_course/home_design_course.dart:101-128 | test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart:101-128 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/home_design_course.dart` and `test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 298 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 (28 lines × 2) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:337 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:337-364 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:337-364 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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–27 lines × 2) · ×2
  • Duplicated block (25–27 lines × 2) example/lib/json_file_explain.dart:34 — example/lib/json_file_explain.dart:34-60 | example/lib/main.dart:104-128 — 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 `example/lib/json_file_explain.dart:34` 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–27 lines × 2) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:127 — fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:127-153 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:182-206 — both copies are in the same file, so extract the 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 `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:127` 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 (15–16 lines × 2) · ×2
  • Duplicated block (15–16 lines × 2) test_case/adobe_xd/lib/Gear.dart:95 — test_case/adobe_xd/lib/Gear.dart:95-109 | test_case/adobe_xd/lib/Home.dart:216-231 — before extracting anything, compare `test_case/adobe_xd/lib/Gear.dart` and `test_case/adobe_xd/lib/Home.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 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 `test_case/adobe_xd/lib/Gear.dart:95` 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–16 lines × 2) test_case/bottom_navy_bar/lib/home_page.dart:36 — test_case/bottom_navy_bar/lib/home_page.dart:36-51 | test_case/flutter_component/lib/home_page.dart:95-109 — 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 `test_case/bottom_navy_bar/lib/home_page.dart:36` 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 (12 lines × 9) · ×2
  • Duplicated block (12 lines × 9) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:27 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:27-38 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:30-41 | example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:34-45 | example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:31-42 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:27-38 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:30-41 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:30-41 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:34-45 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:31-42 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:27` 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 (12 lines × 9) example/lib/template/gridview/gridview_template.dart:24 — example/lib/template/gridview/gridview_template.dart:24-35 | example/lib/template/hotel_listview/hotel_listview_template.dart:26-37 | example/lib/template/list_card/moments_list.dart:26-37 | example/lib/template/list_page/list_page.dart:26-37 | example/lib/template/pageview/pageview_template.dart:24-35 | example/lib/template/scrollview/home_scrollview.dart:28-39 | example/lib/template/staggered_view/staggeredview_template.dart:27-38 | example/lib/template/tabbar_page/tabbar_page.dart:28-39 | fair_extension/example/lib/net/network_page.dart:24-35 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/gridview/gridview_template.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.
D4 · Code Duplication · Duplicated block (10 lines × 6) · ×2
  • Duplicated block (10 lines × 6) example/lib/template/login_page/login_page_template.dart:47 — example/lib/template/login_page/login_page_template.dart:47-56 | example/lib/template/login_page/login_page_template.dart:63-72 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:45-54 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:60-69 | test_case/login_template/lib/login/login_page.dart:42-51 | test_case/login_template/lib/login/login_page.dart:57-66 — before extracting anything, compare `example/lib/template/login_page/login_page_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 157 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 `example/lib/template/login_page/login_page_template.dart:47` 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 (10 lines × 6) test_case/flutter_libs_app/lib/convex_bottom_bar/bottom_bar_page.dart:24 — test_case/flutter_libs_app/lib/convex_bottom_bar/bottom_bar_page.dart:24-33 | test_case/flutter_libs_app/lib/device_info/device_info_page.dart:27-36 | test_case/flutter_libs_app/lib/google_fonts/google_font_page.dart:25-34 | test_case/flutter_libs_app/lib/package_info/package_info_page.dart:27-36 | test_case/flutter_libs_app/lib/sign_in_with_app/sign_in_with_apple_page.dart:25-34 | test_case/flutter_libs_app/lib/url_launcher/url_launcher_page.dart:25-34 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. 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 × 7) · ×2
  • Duplicated block (9 lines × 7) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:80 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:80-88 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:102-111 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:124-132 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:80-88 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:102-111 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:124-132 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:88-97 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 362 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:80` 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 (9 lines × 7) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:192 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:192-200 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:149-157 | test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:219-227 | test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:85-93 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:192-200 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:148-156 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:148-156 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:192` 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, `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:201` calls `forward` and `test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:94` 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 (8 lines × 3) · ×2
  • Duplicated block (8 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:668 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:668-675 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:668-675 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:668-675 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:668` 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 (8 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:30 — example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:30-37 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.dart:20-27 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:30-37 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.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 `example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:30` 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 (7 lines × 4) · ×2
  • Duplicated block (7 lines × 4) example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:47 — example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:47-53 | example/lib/best_flutter_ui/home_screen.dart:70-76 | test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart:47-53 | test_case/best_flutter_ui_templates/lib/home_screen.dart:70-76 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/popular_course_list_view.dart` and `test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 261 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 × 4) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:27 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:27-33 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:247-253 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/running.dart:27-33 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.dart:22-28 — there are 4 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:27` 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.
IC1 · Incompleteness & stubs · Empty method body · ×2
  • Empty method body — does nothing with its inputs fair/lib/src/widget.dart:307 — `didUpdateWidget` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
  • Empty method body — does nothing with its inputs fair_provider/lib/src/fair_provider_core.dart:20 — `printObject` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
R10 · Code Duplication · Duplicated block with local edits (81 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (81 matched lines × 2 locations) REDACTED:1200 — REDACTED:1200 · dart2js/core-types/number.js:7 — the two spans are one implementation copied and then locally edited — 525 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
  • Duplicated block with local edits (81 matched lines × 2 locations) dart2dsl/lib/dartjs/core-types/number.js:3 — dart2dsl/lib/dartjs/core-types/number.js:3 · dart2js/core-types/number.js:7 — the two spans are one implementation copied and then locally edited — 525 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
AC6 · Visual & motion safety · Low contrast colour pair (4.2 · ×1
  • Low contrast colour pair (4.2:1) doc/.vuepress/theme/layouts/Layout.vue:3 — The inline foreground/background colours fall below the 4.5:1 WCAG AA minimum for normal text. Darken/lighten one of them.
C2 · Access Controls · No authorization · ×1
  • No authorization fair_online/fair_online_service/lib/services_cloud_run.dart:60 — This repository serves requests — a shelf server (shelf_io.serve) (fair_online/fair_online_service/lib/services_cloud_run.dart:60) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected.
D1 · Cyclomatic Complexity · jsbeautify.js_beautify (cyclomatic 90) · ×1
  • jsbeautify.js_beautify (cyclomatic 90) fair_online/fair_online/web/scripts/jsbeautify.js:2 — jsbeautify.js_beautify has cyclomatic complexity 90 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (jsbeautify.js_beautify::get_next_token) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cyclomatic complexity CONCENTRATES: fair_online/fair_online/web/scripts/jsbeautify.js holds 2 of the 19 methods over the threshold — including the worst — and 114 of the 257 points over it (44%), 2× the next-largest file (dart2js/lib/src/convertor.dart at 56). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · jsbeautify.js_beautify · ×1
  • jsbeautify.js_beautify::get_next_token (cyclomatic 54) fair_online/fair_online/web/scripts/jsbeautify.js:77 — jsbeautify.js_beautify::get_next_token has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (jsbeautify.js_beautify) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass's cyclomatic complexity CONCENTRATES: fair_online/fair_online/web/scripts/jsbeautify.js holds 2 of the 19 methods over the threshold — including the worst — and 114 of the 257 points over it (44%), 2× the next-largest file (dart2js/lib/src/convertor.dart at 56). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D1 · Cyclomatic Complexity · SimpleFunctionGenerator.visitNode (cyclomatic 53) · ×1
  • SimpleFunctionGenerator.visitNode (cyclomatic 53) dart2js/lib/src/convertor.dart:1301 — SimpleFunctionGenerator.visitNode has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent 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 · Expression.fromAst (cyclomatic 35) · ×1
  • Expression.fromAst (cyclomatic 35) dart2dsl/lib/fairdsl/fair_ast_node.dart:1148 — Expression.fromAst has cyclomatic complexity 35 (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 · _DragResizeWidgetState.build (cyclomatic 30) · ×1
  • _DragResizeWidgetState.build (cyclomatic 30) fair_online/fair_online/lib/base/components/drag_resize/drag_resize_widget.dart:97 — _DragResizeWidgetState.build has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DynamicWidgetBuilder.convert (cyclomatic 24) · ×1
  • DynamicWidgetBuilder.convert (cyclomatic 24) fair/lib/src/render/builder.dart:49 — DynamicWidgetBuilder.convert 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 · ScrollbarState.build (cyclomatic 21) · ×1
  • ScrollbarState.build (cyclomatic 21) fair_online/fair_online/lib/base/components/scrolling/styled_scrollbar.dart:54 — ScrollbarState.build has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DartCompleter.complete (cyclomatic 21) · ×1
  • DartCompleter.complete (cyclomatic 21) fair_online/fair_online/lib/editor/completion.dart:15 — DartCompleter.complete has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DynamicWidgetBuilder._buildSugarButtonStyle (cyclomatic 21) · ×1
  • DynamicWidgetBuilder._buildSugarButtonStyle (cyclomatic 21) fair/lib/src/render/builder.dart:579 — DynamicWidgetBuilder._buildSugarButtonStyle has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · FunctionDomain.bindValue (cyclomatic 18) · ×1
  • FunctionDomain.bindValue (cyclomatic 18) fair/lib/src/render/domain.dart:151 — FunctionDomain.bindValue 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 · ClassDeclarationData.genJsCode (cyclomatic 17) · ×1
  • ClassDeclarationData.genJsCode (cyclomatic 17) dart2js/lib/src/convertor.dart:168 — ClassDeclarationData.genJsCode 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 · SimpleFunctionGenerator.visitNode (cyclomatic 17) · ×1
  • SimpleFunctionGenerator.visitNode (cyclomatic 17) dart2js/lib/src/visitor/SimpleFunctionGenerator.dart:76 — SimpleFunctionGenerator.visitNode 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 · Builder._createVector (cyclomatic 17) · ×1
  • Builder._createVector (cyclomatic 17) fair/lib/src/internal/flexbuffer/builder.dart:310 — Builder._createVector 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 · MapEachDomain.bindValue (cyclomatic 16) · ×1
  • MapEachDomain.bindValue (cyclomatic 16) fair/lib/src/render/domain.dart:42 — MapEachDomain.bindValue 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 · FlutterAnalysisServerWrapper.dartdoc (cyclomatic 16) · ×1
  • FlutterAnalysisServerWrapper.dartdoc (cyclomatic 16) fair_online/fair_online_service/lib/src/analysis_server.dart:378 — FlutterAnalysisServerWrapper.dartdoc has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · jsbeautify.js_beautify (cognitive 167) · ×1
  • jsbeautify.js_beautify (cognitive 167) fair_online/fair_online/web/scripts/jsbeautify.js:2 — jsbeautify.js_beautify has cognitive complexity 167 (threshold 15). Drivers by points: if/else 95 (203 pts), boolean chains 44, loops 12 (23 pts), match/switch 1 (2 pts), ternaries 1 (nesting depth added 120). 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. This shape REPEATS in the file: one other method here (jsbeautify.js_beautify::get_next_token) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · SimpleFunctionGenerator.visitNode (cognitive 95) · ×1
  • SimpleFunctionGenerator.visitNode (cognitive 95) dart2js/lib/src/convertor.dart:1301 — SimpleFunctionGenerator.visitNode has cognitive complexity 95 (threshold 15). Drivers by points: if/else 55 (83 pts), ternaries 4 (11 pts), boolean chains 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · jsbeautify.js_beautify · ×1
  • jsbeautify.js_beautify::get_next_token (cognitive 90) fair_online/fair_online/web/scripts/jsbeautify.js:77 — jsbeautify.js_beautify::get_next_token has cognitive complexity 90 (threshold 15). Drivers by points: if/else 28 (59 pts), loops 7 (18 pts), boolean chains 13 (nesting depth added 42). 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. This shape REPEATS in the file: one other method here (jsbeautify.js_beautify) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · FunctionDomain.bindValue (cognitive 51) · ×1
  • FunctionDomain.bindValue (cognitive 51) fair/lib/src/render/domain.dart:151 — FunctionDomain.bindValue has cognitive complexity 51 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 5 (16 pts), ternaries 1 (6 pts), boolean chains 1 (nesting depth added 33). 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 · DartCompleter.complete (cognitive 47) · ×1
  • DartCompleter.complete (cognitive 47) fair_online/fair_online/lib/editor/completion.dart:15 — DartCompleter.complete has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 5 (12 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · fair_core._invokeMethod (cognitive 40) · ×1
  • fair_core._invokeMethod (cognitive 40) REDACTED:44 — fair_core._invokeMethod has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 2 (9 pts) (nesting depth added 28). 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 · _DragResizeWidgetState.build (cognitive 37) · ×1
  • _DragResizeWidgetState.build (cognitive 37) fair_online/fair_online/lib/base/components/drag_resize/drag_resize_widget.dart:97 — _DragResizeWidgetState.build has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 19 (23 pts), if/else 10 (12 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · MapEachDomain.bindValue (cognitive 36) · ×1
  • MapEachDomain.bindValue (cognitive 36) fair/lib/src/render/domain.dart:42 — MapEachDomain.bindValue has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 1 (5 pts), ternaries 1 (5 pts), boolean chains 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · Expression.fromAst (cognitive 34) · ×1
  • Expression.fromAst (cognitive 34) dart2dsl/lib/fairdsl/fair_ast_node.dart:1148 — Expression.fromAst has cognitive complexity 34 (threshold 15). Drivers by points: if/else 34. 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 · DynamicWidgetBuilder.convert (cognitive 32) · ×1
  • DynamicWidgetBuilder.convert (cognitive 32) fair/lib/src/render/builder.dart:49 — DynamicWidgetBuilder.convert has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (27 pts), ternaries 1 (3 pts), boolean chains 1, error handling 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 · _FairClassVisitor.visitClassDeclaration (cognitive 29) · ×1
  • _FairClassVisitor.visitClassDeclaration (cognitive 29) fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.dart:37 — _FairClassVisitor.visitClassDeclaration has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (22 pts), error handling 1 (5 pts), boolean chains 2 (nesting depth added 17). 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 · FairProject.copyProjectPage (cognitive 29) · ×1
  • FairProject.copyProjectPage (cognitive 29) fair_online/fair_online_service/lib/src/project/fair_project.dart:376 — FairProject.copyProjectPage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 2 (6 pts), error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BindingGenerator.generateForAnnotatedElement (cognitive 28) · ×1
  • BindingGenerator.generateForAnnotatedElement (cognitive 28) compiler/lib/src/generator.dart:88 — BindingGenerator.generateForAnnotatedElement has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (10 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BindingData.bindFunctionOf (cognitive 28) · ×1
  • BindingData.bindFunctionOf (cognitive 28) fair/lib/src/internal/bind_data.dart:82 — BindingData.bindFunctionOf has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 1 (5 pts), boolean chains 2 (nesting depth added 14). 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 · AstNodeMapGenerator.generateForAnnotatedElement (cognitive 26) · ×1
  • AstNodeMapGenerator.generateForAnnotatedElement (cognitive 26) dart2dsl/lib/fairdsl/fair_ast_check_gen.dart:21 — AstNodeMapGenerator.generateForAnnotatedElement has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · FairApp.initFairLibraryAdapter (cognitive 26) · ×1
  • FairApp.initFairLibraryAdapter (cognitive 26) fair/lib/src/app.dart:149 — FairApp.initFairLibraryAdapter has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 2 (nesting depth added 14). 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 · FairProject.getTemplateProjects (cognitive 25) · ×1
  • FairProject.getTemplateProjects (cognitive 25) fair_online/fair_online_service/lib/src/project/fair_project.dart:81 — FairProject.getTemplateProjects has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (17 pts), error handling 2 (6 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ClassDeclarationData.genJsCode (cognitive 24) · ×1
  • ClassDeclarationData.genJsCode (cognitive 24) dart2js/lib/src/convertor.dart:168 — ClassDeclarationData.genJsCode has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 9 (18 pts), boolean chains 5, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · BindingData.runFunctionOf (cognitive 24) · ×1
  • BindingData.runFunctionOf (cognitive 24) fair/lib/src/internal/bind_data.dart:43 — BindingData.runFunctionOf has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 1 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Builder._createVector (cognitive 24) · ×1
  • Builder._createVector (cognitive 24) fair/lib/src/internal/flexbuffer/builder.dart:310 — Builder._createVector has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ScrollbarState.build (cognitive 23) · ×1
  • ScrollbarState.build (cognitive 23) fair_online/fair_online/lib/base/components/scrolling/styled_scrollbar.dart:54 — ScrollbarState.build has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 13 (17 pts), boolean chains 3, if/else 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · FlutterAnalysisServerWrapper.getFixes (cognitive 23) · ×1
  • FlutterAnalysisServerWrapper.getFixes (cognitive 23) fair_online/fair_online_service/lib/src/analysis_server.dart:164 — FlutterAnalysisServerWrapper.getFixes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 1 (3 pts), error handling 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Runtime.loadCoreJs (cognitive 21) · ×1
  • Runtime.loadCoreJs (cognitive 21) fair/lib/src/runtime/fair_runtime_impl.dart:160 — Runtime.loadCoreJs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (5 pts), error handling 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Compiler.compileDDC (cognitive 21) · ×1
  • Compiler.compileDDC (cognitive 21) fair_online/fair_online_service/lib/src/compiler.dart:39 — Compiler.compileDDC has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FairProject.createProject (cognitive 21) · ×1
  • FairProject.createProject (cognitive 21) fair_online/fair_online_service/lib/src/project/fair_project.dart:123 — FairProject.createProject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (20 pts), error handling 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 · DynamicWidgetBuilder._buildSugarButtonStyle (cognitive 20) · ×1
  • DynamicWidgetBuilder._buildSugarButtonStyle (cognitive 20) fair/lib/src/render/builder.dart:579 — DynamicWidgetBuilder._buildSugarButtonStyle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20. 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 · Reference.json (cognitive 19) · ×1
  • Reference.json (cognitive 19) fair/lib/src/internal/flexbuffer/reference.dart:231 — Reference.json has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FairState._resolveFairRes (cognitive 19) · ×1
  • FairState._resolveFairRes (cognitive 19) fair/lib/src/widget.dart:128 — FairState._resolveFairRes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), error handling 2 (4 pts), boolean chains 1 (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 · Builder._sortKeysAndEndMap (cognitive 18) · ×1
  • Builder._sortKeysAndEndMap (cognitive 18) fair/lib/src/internal/flexbuffer/builder.dart:371 — Builder._sortKeysAndEndMap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FlutterAnalysisServerWrapper.warmup (cognitive 18) · ×1
  • FlutterAnalysisServerWrapper.warmup (cognitive 18) fair_online/fair_online_service/lib/src/analysis_server.dart:300 — FlutterAnalysisServerWrapper.warmup has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 9). 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 · SimpleFunctionGenerator.visitNode (cognitive 17) · ×1
  • SimpleFunctionGenerator.visitNode (cognitive 17) dart2js/lib/src/visitor/SimpleFunctionGenerator.dart:76 — SimpleFunctionGenerator.visitNode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17. 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 · requestData (cognitive 17) · ×1
  • requestData (cognitive 17) fair_extension/assets/plugin/fair_net_plugin.js:7 — requestData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (17 pts) (nesting depth added 4). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 46). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SimpleGrid.build (cognitive 16) · ×1
  • SimpleGrid.build (cognitive 16) fair_online/fair_online/lib/base/components/simple_grid.dart:26 — SimpleGrid.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 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 · FlutterAnalysisServerWrapper.dartdoc (cognitive 16) · ×1
  • FlutterAnalysisServerWrapper.dartdoc (cognitive 16) fair_online/fair_online_service/lib/src/analysis_server.dart:378 — FlutterAnalysisServerWrapper.dartdoc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, ternaries 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 · FairCompiler.compile (cognitive 16) · ×1
  • FairCompiler.compile (cognitive 16) fair_online/fair_online_service/lib/src/fair_compiler.dart:25 — FairCompiler.compile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D3 · God Classes · FunctionTooLong · ×1
  • FunctionTooLong: jsbeautify.js_beautify fair_online/fair_online/web/scripts/jsbeautify.js:2 — FunctionTooLong — js_beautify runs 346 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 246 over it, 3.46× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D31 · IaC & Container Security · Medium IaC · ×1
  • REDACTED
D35 · Change Coupling · Change coupling · ×1
  • Change coupling: flow.dart ↔ builder.dart fair/lib/src/bloc/flow.dart:1 — `fair/lib/src/bloc/flow.dart` and `fair/lib/src/render/builder.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 — 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 8 shared commits counted here, the most recent 3 are `caa59652` 添加NestedScrollView语法糖; `077eae2a` 添加sugar.popMenuButton语法糖; `00eee1e6` [feature] CustomScrollView 组件 Sugar — run `git show` on any of them.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (4 members, 57 shared lines) · ×1
  • Near-duplicate member family (4 members, 57 shared lines) example/lib/template/list_card/moments_list.dart:85 — example/lib/template/list_card/moments_list.dart:85-266 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/ListCard.dart:16-131 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/ListCard.dart:16-131 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:102-283 — These 4 members are variants of one another: a block of 57 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Near-duplicate member pair (161 shared lines) · ×1
  • Near-duplicate member pair (161 shared lines) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:18 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:18-185 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:18-197 — These two members are variants of one another: 161 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 (123 shared lines) · ×1
  • Near-duplicate member pair (123 shared lines) dart2js/lib/src/convertor.dart:296 — dart2js/lib/src/convertor.dart:296-432 | dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:24-190 — These two members are variants of one another: 123 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 · Edited copy of a member (44 corresponding lines) · ×1
  • Edited copy of a member (44 corresponding lines) dart2js/lib/src/convertor.dart:556 — dart2js/lib/src/convertor.dart:556-599 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:148-196 — These two members are one piece of code written twice and then edited apart: 44 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 (10 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (10 members, 50+ identical tokens) example/lib/fair_widget/plugin/fair_basic_plugin.dart:26 — example/lib/fair_widget/plugin/fair_basic_plugin.dart:26-71 | fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:23-91 | fair/example/lib/src/page/plugins/permission/fair_permission_plugin.dart:29-77 | fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart:22-80 | fair_extension/lib/image_picker/fair_image_picker.dart:25-72 | fair_extension/lib/net/fair_net_plugin.dart:29-95 | fair_extension/lib/permission/fair_permission_plugin.dart:26-74 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart:16-84 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/plugins/net/fair_net_plugin.dart:16-84 | test_case/best_flutter_ui_templates/lib/plugins/net/fair_net_plugin.dart:17-86 — These 10 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 10 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 10 times.
D4 · Code Duplication · Edited copy of a member (83 corresponding lines) · ×1
  • Edited copy of a member (83 corresponding lines) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:41 — fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:41-161 | fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:39-121 — These two members are one piece of code written twice and then edited apart: 83 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) · ×1
  • Edited copy of a member (53 corresponding lines) dart2js/lib/src/convertor.dart:502 — dart2js/lib/src/convertor.dart:502-554 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:79-146 — 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 (92 corresponding lines) · ×1
  • Edited copy of a member (92 corresponding lines) fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:44 — fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:44-142 | fair_online/fair_online/lib/views/fair_dsl_editor/console_panel.dart:27-118 — These two members are one piece of code written twice and then edited apart: 92 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 (69 corresponding lines) · ×1
  • Edited copy of a member (69 corresponding lines) fair_online/fair_online/lib/views/api_call_page/popup_list.dart:83 — fair_online/fair_online/lib/views/api_call_page/popup_list.dart:83-151 | fair_online/fair_online/lib/views/fair_dsl_editor/device_dropdown_menu.dart:80-165 — These two members are one piece of code written twice and then edited apart: 69 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 (56 corresponding lines) · ×1
  • Edited copy of a member (56 corresponding lines) fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart:18 — fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart:18-73 | fair_online/fair_online/lib/views/custom_code_page/item/custom_component_item_widget.dart:19-99 — 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 copy of a member (54 corresponding lines) · ×1
  • Edited copy of a member (54 corresponding lines) fair_online/fair_online/lib/views/page/create/page_template_item.dart:22 — fair_online/fair_online/lib/views/page/create/page_template_item.dart:22-75 | fair_online/fair_online/lib/views/project/create/project_template_item.dart:22-83 — These two members are one piece of code written twice and then edited apart: 54 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 (38 corresponding lines) · ×1
  • Edited copy of a member (38 corresponding lines) fair/lib/src/internal/bind_data.dart:43 — fair/lib/src/internal/bind_data.dart:43-80 | fair/lib/src/internal/bind_data.dart:82-122 — These two members are one piece of code written twice and then edited apart: 38 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 (55 corresponding lines) · ×1
  • Edited copy of a member (55 corresponding lines) fair/lib/src/render/domain.dart:42 — fair/lib/src/render/domain.dart:42-96 | fair/lib/src/render/domain.dart:151-206 — These two members are one piece of code written twice and then edited apart: 55 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) fair_online/fair_online/lib/views/page/create/page_template_item.dart:86 — fair_online/fair_online/lib/views/page/create/page_template_item.dart:86-137 | fair_online/fair_online/lib/views/project/create/project_template_item.dart:95-146 — 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 (37 corresponding lines) · ×1
  • Edited copy of a member (37 corresponding lines) fair/lib/src/render/builder.dart:519 — fair/lib/src/render/builder.dart:519-555 | fair/lib/src/render/builder.dart:715-762 — These two members are one piece of code written twice and then edited apart: 37 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) · ×1
  • Edited copy of a member (26 corresponding lines) dart2js/lib/src/convertor.dart:1049 — dart2js/lib/src/convertor.dart:1049-1074 | dart2js/lib/src/node/MethodInvokeStatementNode.dart:9-36 — 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 (50 corresponding lines) · ×1
  • Edited copy of a member (50 corresponding lines) fair_online/fair_online/lib/base/components/styled_dialogs.dart:51 — fair_online/fair_online/lib/base/components/styled_dialogs.dart:51-103 | fair_online/fair_online/lib/base/components/styled_dialogs.dart:284-333 — These two members are one piece of code written twice and then edited apart: 50 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 (39 corresponding lines) · ×1
  • Edited copy of a member (39 corresponding lines) dart2js/lib/src/convertor.dart:609 — dart2js/lib/src/convertor.dart:609-647 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:208-249 — 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 (41 corresponding lines) · ×1
  • Edited copy of a member (41 corresponding lines) fair/lib/src/render/builder.dart:374 — fair/lib/src/render/builder.dart:374-417 | fair/lib/src/render/builder.dart:419-459 — 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 (25 corresponding lines) · ×1
  • Edited copy of a member (25 corresponding lines) fair_online/fair_online/lib/models/custom_code_model.dart:75 — fair_online/fair_online/lib/models/custom_code_model.dart:75-103 | fair_online/fair_online/lib/models/custom_code_model.dart:106-130 — 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 (27 corresponding lines) · ×1
  • Edited copy of a member (27 corresponding lines) fair_online/fair_online_service/lib/src/project/fair_project.dart:279 — fair_online/fair_online_service/lib/src/project/fair_project.dart:279-308 | fair_online/fair_online_service/lib/src/project/fair_project.dart:310-336 — 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 (21 corresponding lines) · ×1
  • Edited copy of a member (21 corresponding lines) fair_online/fair_online_service/lib/src/common_server_impl.dart:439 — fair_online/fair_online_service/lib/src/common_server_impl.dart:439-464 | fair_online/fair_online_service/lib/src/common_server_impl.dart:485-505 — 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 (29 corresponding lines) · ×1
  • Edited copy of a member (29 corresponding lines) fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_code_editor.dart:32 — fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_code_editor.dart:32-60 | fair_online/fair_online/lib/views/flutter_editor/code_editor.dart:16-52 — 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 copies of one member (3 members, 20+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 20+ corresponding lines) fair_online/fair_online_service/lib/src/server_cache.dart:150 — fair_online/fair_online_service/lib/src/server_cache.dart:150-170 | fair_online/fair_online_service/lib/src/server_cache.dart:172-191 | fair_online/fair_online_service/lib/src/server_cache.dart:193-215 — 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 (4 members, 23+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 23+ corresponding lines) example/lib/home_page.dart:69 — example/lib/home_page.dart:69-91 | fair_extension/example/lib/main.dart:115-137 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/main.dart:140-162 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:229-251 — 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 copy of a member (18 corresponding lines) · ×1
  • Edited copy of a member (18 corresponding lines) fair/lib/src/internal/bundle_provider.dart:98 — fair/lib/src/internal/bundle_provider.dart:98-116 | fair/lib/src/internal/bundle_provider.dart:118-135 — 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 copies of one member (3 members, 16+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 16+ corresponding lines) fair/lib/src/render/expression.dart:239 — fair/lib/src/render/expression.dart:239-254 | fair/lib/src/render/expression.dart:276-292 | fair/lib/src/render/expression.dart:347-365 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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 (19 corresponding lines) · ×1
  • Edited copy of a member (19 corresponding lines) fair_online/fair_online/lib/models/page_model.dart:76 — fair_online/fair_online/lib/models/page_model.dart:76-94 | fair_online/fair_online/lib/models/page_model.dart:114-133 — 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 copies of one member (3 members, 10+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 10+ corresponding lines) fair/lib/src/render/expression.dart:72 — fair/lib/src/render/expression.dart:72-81 | fair/lib/src/render/expression.dart:90-99 | fair/lib/src/render/expression.dart:146-155 — 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 (7 members, 20+ corresponding lines) · ×1
  • Edited copies of one member (7 members, 20+ corresponding lines) fair/lib/src/render/builder.dart:825 — fair/lib/src/render/builder.dart:825-846 | fair/lib/src/render/builder.dart:848-869 | fair/lib/src/render/builder.dart:871-893 | fair/lib/src/render/builder.dart:895-916 | fair_provider/lib/src/provider_dynamic_widget_builder.dart:51-73 | fair_provider/lib/src/provider_dynamic_widget_builder.dart:75-95 | fair_provider/lib/src/provider_dynamic_widget_builder.dart:97-116 — These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 9+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 9+ corresponding lines) fair_online/fair_online/lib/base/page_routes.dart:11 — fair_online/fair_online/lib/base/page_routes.dart:11-19 | fair_online/fair_online/lib/base/page_routes.dart:21-29 | fair_online/fair_online/lib/base/page_routes.dart:31-39 | fair_online/fair_online/lib/base/page_routes.dart:41-55 — These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 17+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 17+ corresponding lines) fair_online/fair_online/lib/models/page_model.dart:96 — fair_online/fair_online/lib/models/page_model.dart:96-112 | fair_online/fair_online/lib/models/project_model.dart:68-86 | fair_online/fair_online/lib/models/project_model.dart:104-123 — 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 (5 members, 15+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 15+ corresponding lines) fair_online/fair_online/lib/models/custom_code_model.dart:41 — fair_online/fair_online/lib/models/custom_code_model.dart:41-55 | fair_online/fair_online/lib/models/custom_code_model.dart:58-72 | fair_online/fair_online/lib/models/dependency_file_model.dart:22-36 | fair_online/fair_online/lib/models/page_model.dart:60-74 | fair_online/fair_online/lib/models/page_model.dart:135-149 — These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (6 members, 7+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 7+ corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart:26 — fair_online/fair_online_service/lib/src/common_server_api.dart:26-32 | fair_online/fair_online_service/lib/src/common_server_api.dart:42-48 | fair_online/fair_online_service/lib/src/common_server_api.dart:50-56 | fair_online/fair_online_service/lib/src/common_server_api.dart:58-64 | fair_online/fair_online_service/lib/src/common_server_api.dart:66-72 | fair_online/fair_online_service/lib/src/common_server_api.dart:74-80 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 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, 7+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 7+ corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart:290 — fair_online/fair_online_service/lib/src/common_server_api.dart:290-296 | fair_online/fair_online_service/lib/src/common_server_api.dart:342-348 | fair_online/fair_online_service/lib/src/common_server_api.dart:350-356 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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, 8+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 8+ corresponding lines) fair_online/fair_online_service/lib/src/common_server_api.dart:306 — fair_online/fair_online_service/lib/src/common_server_api.dart:306-313 | fair_online/fair_online_service/lib/src/common_server_api.dart:315-322 | fair_online/fair_online_service/lib/src/common_server_api.dart:324-331 — These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 6+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 6+ corresponding lines) fair/lib/src/render/expression.dart:108 — fair/lib/src/render/expression.dart:108-117 | fair/lib/src/render/expression.dart:164-169 | fair/lib/src/render/expression.dart:178-184 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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 (6 members, 8+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 8+ corresponding lines) dart2dsl/lib/fairdsl/fair_ast_node.dart:471 — dart2dsl/lib/fairdsl/fair_ast_node.dart:471-479 | dart2dsl/lib/fairdsl/fair_ast_node.dart:518-528 | dart2dsl/lib/fairdsl/fair_ast_node.dart:664-671 | dart2dsl/lib/fairdsl/fair_ast_node.dart:685-693 | dart2dsl/lib/fairdsl/fair_ast_node.dart:945-953 | dart2dsl/lib/fairdsl/fair_ast_node.dart:965-973 — These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (3 corresponding lines) · ×1
  • Edited copy of a member (3 corresponding lines) dart2js/lib/src/convertor.dart:1200 — dart2js/lib/src/convertor.dart:1200-1202 | dart2js/lib/src/visitor/SimpleFunctionGenerator.dart:28-32 — 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 (100–111 lines × 3) · ×1
  • Duplicated block (100–111 lines × 3) example/lib/template/hotel_listview/hotel_listview_template.dart:98 — example/lib/template/hotel_listview/hotel_listview_template.dart:98-208 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:113-212 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:113-212 — before extracting anything, compare `example/lib/template/hotel_listview/hotel_listview_template.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 202 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 `example/lib/template/hotel_listview/hotel_listview_template.dart:98` 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 (62–63 lines × 5) · ×1
  • Duplicated block (62–63 lines × 5) fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:25 — fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:25-87 | fair_extension/lib/net/fair_net_plugin.dart:31-92 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart:18-80 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/plugins/net/fair_net_plugin.dart:18-80 | test_case/best_flutter_ui_templates/lib/plugins/net/fair_net_plugin.dart:20-82 — before extracting anything, compare `fair/example/lib/src/page/plugins/net/fair_net_plugin.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 88 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 `fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:25` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:88` calls `toString` and `fair_extension/lib/net/fair_net_plugin.dart:93` 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 (45–56 lines × 2) · ×1
  • Duplicated block (45–56 lines × 2) dart2js/lib/src/convertor.dart:327 — dart2js/lib/src/convertor.dart:327-371 | dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:64-119 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/ClassDeclarationVisitor.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 145 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 `dart2js/lib/src/convertor.dart:327` 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 (39–44 lines × 2) · ×1
  • Duplicated block (39–44 lines × 2) dart2js/lib/src/convertor.dart:556 — dart2js/lib/src/convertor.dart:556-594 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:148-191 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/WidgetStateGenerator.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 190 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 `dart2js/lib/src/convertor.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.
D4 · Code Duplication · Duplicated block (41 lines × 2) · ×1
  • Duplicated block (41 lines × 2) fair_online/fair_online/lib/base/components/styled_dialogs.dart:51 — fair_online/fair_online/lib/base/components/styled_dialogs.dart:51-91 | fair_online/fair_online/lib/base/components/styled_dialogs.dart:284-324 — both copies are in the same file, so extract the 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 `fair_online/fair_online/lib/base/components/styled_dialogs.dart:51` 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, `fair_online/fair_online/lib/base/components/styled_dialogs.dart:92` calls `SingleChildScrollView`, `StyledScrollPhysics` and `fair_online/fair_online/lib/base/components/styled_dialogs.dart:325` 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 (39–40 lines × 5) · ×1
  • Duplicated block (39–40 lines × 5) example/lib/template/hotel_listview/hotel_listview_template.dart:191 — example/lib/template/hotel_listview/hotel_listview_template.dart:191-230 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart:133-171 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:195-234 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/HotelListViewItem.dart:133-171 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:195-234 — before extracting anything, compare `example/lib/template/hotel_listview/hotel_listview_template.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `example/lib/template/hotel_listview/hotel_listview_template.dart:191` 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 (39 lines × 2) · ×1
  • Duplicated block (39 lines × 2) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:53 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:53-91 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:66-104 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 191 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 `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:53` 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 (38 lines × 2) · ×1
  • Duplicated block (38 lines × 2) fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:18 — fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:18-55 | fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:18-55 — before extracting anything, compare `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 191 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 `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:18` 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, `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_action_dialog_view.dart:57` calls `pop` and `fair_online/fair_online/lib/views/custom_code_page/dialog/create_custom_component_dialog_view.dart:56` 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 (34–37 lines × 2) · ×1
  • Duplicated block (34–37 lines × 2) dart2js/lib/src/convertor.dart:609 — dart2js/lib/src/convertor.dart:609-642 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:208-244 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/WidgetStateGenerator.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 190 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 `dart2js/lib/src/convertor.dart:609` 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 (36–37 lines × 2) · ×1
  • Duplicated block (36–37 lines × 2) fair_online/fair_online/lib/views/page/create/page_template_item.dart:98 — fair_online/fair_online/lib/views/page/create/page_template_item.dart:98-133 | fair_online/fair_online/lib/views/project/create/project_template_item.dart:107-143 — before extracting anything, compare `fair_online/fair_online/lib/views/page/create/page_template_item.dart` and `fair_online/fair_online/lib/views/project/create/project_template_item.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online/lib/views/project/create/project_template_item.dart:107` 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 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 (29–35 lines × 2) · ×1
  • Duplicated block (29–35 lines × 2) dart2js/lib/src/convertor.dart:526 — dart2js/lib/src/convertor.dart:526-554 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:112-146 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/WidgetStateGenerator.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 190 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 `dart2js/lib/src/convertor.dart:526` 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–28 lines × 2) · ×1
  • Duplicated block (21–28 lines × 2) dart2js/lib/src/convertor.dart:502 — dart2js/lib/src/convertor.dart:502-522 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:79-106 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/WidgetStateGenerator.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 190 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 `dart2js/lib/src/convertor.dart:502` 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 (23–24 lines × 3) · ×1
  • Duplicated block (23–24 lines × 3) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:38 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:38-60 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:39-61 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:90-113 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:38` 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 (21–22 lines × 2) · ×1
  • Duplicated block (21–22 lines × 2) fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart:37 — fair_online/fair_online/lib/views/custom_code_page/item/custom_action_item_widget.dart:37-57 | fair_online/fair_online/lib/views/custom_code_page/item/custom_component_item_widget.dart:62-83 — 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 `fair_online/fair_online/lib/views/custom_code_page/item/custom_component_item_widget.dart:62` 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 (15–21 lines × 2) · ×1
  • Duplicated block (15–21 lines × 2) dart2js/lib/src/convertor.dart:310 — dart2js/lib/src/convertor.dart:310-324 | dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:40-60 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/ClassDeclarationVisitor.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 145 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 `dart2js/lib/src/convertor.dart:310` 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 (19–21 lines × 2) · ×1
  • Duplicated block (19–21 lines × 2) dart2js/lib/src/convertor.dart:1049 — dart2js/lib/src/convertor.dart:1049-1067 | dart2js/lib/src/node/MethodInvokeStatementNode.dart:9-29 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `dart2js/lib/src/convertor.dart:1049` 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–20 lines × 7) · ×1
  • Duplicated block (14–20 lines × 7) example/lib/best_flutter_ui/component/hotel_listview_content.dart:63 — example/lib/best_flutter_ui/component/hotel_listview_content.dart:63-76 | example/lib/template/hotel_listview/hotel_listview_template.dart:92-111 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart:59-72 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:108-124 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/HotelListViewItem.dart:59-72 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:108-124 | test_case/best_flutter_ui_templates/lib/component/hotel_listview_content.dart:63-76 — before extracting anything, compare `example/lib/best_flutter_ui/component/hotel_listview_content.dart` and `test_case/best_flutter_ui_templates/lib/component/hotel_listview_content.dart` as WHOLE FILES: 97% 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 `example/lib/best_flutter_ui/component/hotel_listview_content.dart:63` 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 (17–18 lines × 6) · ×1
  • Duplicated block (17–18 lines × 6) fair_online/fair_online_service/lib/src/common_server_impl.dart:95 — fair_online/fair_online_service/lib/src/common_server_impl.dart:95-112 | fair_online/fair_online_service/lib/src/common_server_impl.dart:154-170 | fair_online/fair_online_service/lib/src/common_server_impl.dart:192-208 | fair_online/fair_online_service/lib/src/common_server_impl.dart:230-246 | fair_online/fair_online_service/lib/src/common_server_impl.dart:265-281 | fair_online/fair_online_service/lib/src/common_server_impl.dart:303-319 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online_service/lib/src/common_server_impl.dart:95` 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, `fair_online/fair_online_service/lib/src/common_server_impl.dart:151` calls `BadRequest`, `hasOffset` and `fair_online/fair_online_service/lib/src/common_server_impl.dart:94` 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 (16–18 lines × 5) · ×1
  • Duplicated block (16–18 lines × 5) example/lib/fair_widget/plugin/fair_basic_plugin.dart:30 — example/lib/fair_widget/plugin/fair_basic_plugin.dart:30-47 | fair/example/lib/src/page/plugins/permission/fair_permission_plugin.dart:31-46 | fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart:33-49 | fair_extension/lib/image_picker/fair_image_picker.dart:27-43 | fair_extension/lib/permission/fair_permission_plugin.dart:28-43 — before extracting anything, compare `fair/example/lib/src/page/plugins/permission/fair_permission_plugin.dart` and `fair_extension/lib/permission/fair_permission_plugin.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 `example/lib/fair_widget/plugin/fair_basic_plugin.dart:30` 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 (17–18 lines × 2) · ×1
  • Duplicated block (17–18 lines × 2) fair_provider/lib/src/fair_provider_core.dart:457 — fair_provider/lib/src/fair_provider_core.dart:457-473 | fair_provider/lib/src/fair_provider_core.dart:564-581 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (19–25 lines × 2) · ×1
  • Duplicated block (19–25 lines × 2) dart2js/lib/src/convertor.dart:468 — dart2js/lib/src/convertor.dart:468-486 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:34-58 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/WidgetStateGenerator.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 190 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 `dart2js/lib/src/convertor.dart:468` 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–23 lines × 2) · ×1
  • Duplicated block (21–23 lines × 2) dart2js/lib/src/convertor.dart:760 — dart2js/lib/src/convertor.dart:760-780 | dart2js/lib/src/node/FunctionDeclarationNode.dart:91-113 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/FunctionDeclarationNode.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 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 (14–15 lines × 10) · ×1
  • Duplicated block (14–15 lines × 10) example/lib/fair_widget/plugin/fair_basic_plugin.dart:29 — example/lib/fair_widget/plugin/fair_basic_plugin.dart:29-43 | fair/example/lib/src/page/plugins/net/fair_net_plugin.dart:24-37 | fair/example/lib/src/page/plugins/permission/fair_permission_plugin.dart:30-43 | fair/example/lib/src/page/plugins/pick-image/fair_take_photo.dart:32-46 | fair_extension/lib/image_picker/fair_image_picker.dart:26-40 | fair_extension/lib/net/fair_net_plugin.dart:30-43 | fair_extension/lib/permission/fair_permission_plugin.dart:27-40 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart:17-30 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/plugins/net/fair_net_plugin.dart:17-30 | test_case/best_flutter_ui_templates/lib/plugins/net/fair_net_plugin.dart:19-32 — before extracting anything, compare `fair/example/lib/src/page/plugins/net/fair_net_plugin.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/plugins/net/fair_net_plugin.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 88 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 × 5) · ×1
  • Duplicated block (15 lines × 5) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:48 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:48-62 | fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:74-88 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:101-115 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:127-141 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:153-167 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 123 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.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. 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 `child` to `buildTextInput(context, '示例:fair', null, (value` in one and `buildTextInput( context, "请输入对应app id", null, (value` 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 (14 lines × 9) · ×1
  • Duplicated block (14 lines × 9) fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:32 — fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:32-45 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.dart:30-43 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:32-45 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:33-46 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:32-45 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/pageview/pageview_template.dart:30-43 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/scrollview/home_scrollview.dart:33-46 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/staggered_view/staggeredview_template.dart:31-44 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:35-48 — before extracting anything, compare `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 249 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 `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:32` 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) fair_online/fair_online/lib/views/editor_example/example1.dart:80 — fair_online/fair_online/lib/views/editor_example/example1.dart:80-93 | fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.dart:29-42 | fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.dart:65-78 | fair_online/fair_online/lib/views/flutter_editor/flutter_preview.dart:29-42 — before extracting anything, compare `fair_online/fair_online/lib/views/fair_dsl_editor/fair_dsl_preview_view.dart` and `fair_online/fair_online/lib/views/flutter_editor/flutter_preview.dart` as WHOLE FILES: this scan already matched 3 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. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online/lib/views/editor_example/example1.dart:80` 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 (14 lines × 3) · ×1
  • Duplicated block (14 lines × 3) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:97 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:97-110 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:93-106 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:176-189 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:97` 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 `child` to `buildTextInput(context, '示例:^3.0.0', null, (value` in one and `buildTextInput(context, "", inputVersion, (value` 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 (9–14 lines × 2) · ×1
  • Duplicated block (9–14 lines × 2) dart2js/lib/src/convertor.dart:698 — dart2js/lib/src/convertor.dart:698-706 | dart2js/lib/src/node/FunctionDeclarationNode.dart:19-32 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/node/FunctionDeclarationNode.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 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 `dart2js/lib/src/convertor.dart:698` 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) fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:79 — fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:79-92 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:73-84 — before extracting anything, compare `fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart` and `fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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 `fair_online/fair_online/lib/views/top_panel/qr/qr_code_dialog.dart:79` 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–13 lines × 3) · ×1
  • Duplicated block (12–13 lines × 3) fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:112 — fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:112-124 | fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart:108-120 | fair_online/fair_online/lib/views/top_panel/upload/upload_plugin_dialog.dart:191-202 — before extracting anything, compare `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart` and `fair_online/fair_online/lib/views/dependency/dialog/edit_dependency_dialog_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 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 `fair_online/fair_online/lib/views/dependency/dialog/create_dependency_dialog_view.dart:112` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `child` to `buildTextInput(context, '示例:^3.0.0', null, (value` in one and `buildTextInput(context, "", inputVersion, (value` 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 (10–13 lines × 2) · ×1
  • Duplicated block (10–13 lines × 2) dart2js/lib/src/convertor.dart:491 — dart2js/lib/src/convertor.dart:491-500 | dart2js/lib/src/visitor/WidgetStateGenerator.dart:65-77 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/WidgetStateGenerator.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 190 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 `dart2js/lib/src/convertor.dart:491` 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 (11–13 lines × 2) · ×1
  • Duplicated block (11–13 lines × 2) fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:181 — fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:181-191 | fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:219-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. 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 (10–12 lines × 5) · ×1
  • Duplicated block (10–12 lines × 5) example/lib/template/hotel_listview/hotel_listview_template.dart:75 — example/lib/template/hotel_listview/hotel_listview_template.dart:75-86 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart:45-54 | fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/page/hotel_listview/hotel_listview_template.dart:91-102 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/code/component/HotelListViewItem.dart:45-54 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:91-102 — before extracting anything, compare `example/lib/template/hotel_listview/hotel_listview_template.dart` and `fair_online/fair_online_service/fairDir/empty/project/empty_project/lib/code/component/HotelListViewItem.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `example/lib/template/hotel_listview/hotel_listview_template.dart:75` 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 (11 lines × 5) · ×1
  • Duplicated block (11 lines × 5) fair_online/fair_online_service/lib/src/common_server_impl.dart:519 — fair_online/fair_online_service/lib/src/common_server_impl.dart:519-529 | fair_online/fair_online_service/lib/src/common_server_impl.dart:690-700 | fair_online/fair_online_service/lib/src/common_server_impl.dart:723-733 | fair_online/fair_online_service/lib/src/common_server_impl.dart:755-765 | fair_online/fair_online_service/lib/src/common_server_impl.dart:771-781 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online_service/lib/src/common_server_impl.dart:519` 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 (10 lines × 9) · ×1
  • Duplicated block (10 lines × 9) fair_online/fair_online_service/lib/src/common_server_impl.dart:519 — fair_online/fair_online_service/lib/src/common_server_impl.dart:519-529 | fair_online/fair_online_service/lib/src/common_server_impl.dart:690-700 | fair_online/fair_online_service/lib/src/common_server_impl.dart:723-733 | fair_online/fair_online_service/lib/src/common_server_impl.dart:755-765 | fair_online/fair_online_service/lib/src/common_server_impl.dart:771-781 | fair_online/fair_online_service/lib/src/common_server_impl.dart:807-816 | fair_online/fair_online_service/lib/src/common_server_impl.dart:825-834 | fair_online/fair_online_service/lib/src/common_server_impl.dart:844-853 | fair_online/fair_online_service/lib/src/common_server_impl.dart:860-869 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `fair_online/fair_online_service/lib/src/common_server_impl.dart:519` 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 (6–10 lines × 2) · ×1
  • Duplicated block (6–10 lines × 2) dart2js/lib/src/convertor.dart:377 — dart2js/lib/src/convertor.dart:377-382 | dart2js/lib/src/visitor/ClassDeclarationVisitor.dart:127-136 — before extracting anything, compare `dart2js/lib/src/convertor.dart` and `dart2js/lib/src/visitor/ClassDeclarationVisitor.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 145 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 `dart2js/lib/src/convertor.dart:377` 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 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–16 lines × 2) · ×1
  • Duplicated block (13–16 lines × 2) dart2js/lib/src/convertor.dart:1168 — dart2js/lib/src/convertor.dart:1168-1180 | dart2js/lib/src/node/ListLiteralStatementNode.dart:12-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.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×1
  • Duplicated block (7–8 lines × 2) dart2js/lib/src/convertor.dart:1081 — dart2js/lib/src/convertor.dart:1081-1087 | dart2js/lib/src/node/PropertyAccessStatementNode.dart:8-15 — 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.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×1
  • Duplicated block (7 lines × 3) fair_online/fair_online/lib/views/custom_code_page/dialog/code_compile_dialog_widget.dart:39 — fair_online/fair_online/lib/views/custom_code_page/dialog/code_compile_dialog_widget.dart:39-45 | fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:60-66 | fair_online/fair_online/lib/views/project/create/project_create_dialog.dart:58-64 — before extracting anything, compare `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart` and `fair_online/fair_online/lib/views/project/create/project_create_dialog.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 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 `fair_online/fair_online/lib/views/custom_code_page/dialog/code_compile_dialog_widget.dart:39` 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, `fair_online/fair_online/lib/views/page/create/create_page_dialog.dart:59` calls `Text`, `size` and `fair_online/fair_online/lib/views/custom_code_page/dialog/code_compile_dialog_widget.dart:38` 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 (7 lines × 5) · ×1
  • Duplicated block (7 lines × 5) flutter_version/flutter_1_12_13/lib/src/fair_utf8.dart:6 — flutter_version/flutter_1_12_13/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_1_17_3/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_1_20_4/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_1_22_4/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_1_22_6/lib/src/fair_utf8.dart:6-12 — before extracting anything, compare `flutter_version/flutter_1_12_13/lib/src/fair_utf8.dart` and `flutter_version/flutter_1_17_3/lib/src/fair_utf8.dart` 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. 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) flutter_version/flutter_2_0_6/lib/src/fair_utf8.dart:5 — flutter_version/flutter_2_0_6/lib/src/fair_utf8.dart:5-11 | flutter_version/flutter_2_10_0/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_2_5_0/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_2_8_0/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_3_0_0/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_3_10_0/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_3_13_0/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_3_3_0/lib/src/fair_utf8.dart:6-12 | flutter_version/flutter_3_7_0/lib/src/fair_utf8.dart:6-12 — before extracting anything, compare `flutter_version/flutter_2_0_6/lib/src/fair_utf8.dart` and `flutter_version/flutter_2_10_0/lib/src/fair_utf8.dart` 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. 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 × 23) · ×1
  • Duplicated block (7 lines × 23) example/ios/Runner/AppDelegate.swift:6 — example/ios/Runner/AppDelegate.swift:6-12 | fair/example/ios/Runner/AppDelegate.swift:12-18 | fair_extension/example/ios/Runner/AppDelegate.swift:6-12 | fair_online/fair_online/ios/Runner/AppDelegate.swift:6-12 | fair_online/fair_online_service/fairDir/empty/project/empty_project/ios/Runner/AppDelegate.swift:6-12 | fair_online/fair_online_service/fairDir/template/project/fair_samples/ios/Runner/AppDelegate.swift:6-12 | fair_provider/example/ios/Runner/AppDelegate.swift:6-12 | test_case/adobe_xd/ios/Runner/AppDelegate.swift:6-12 | test_case/animated_text_kit/ios/Runner/AppDelegate.swift:6-12 | test_case/best_flutter_ui_templates/ios/Runner/AppDelegate.swift:6-12 | test_case/bottom_navy_bar/ios/Runner/AppDelegate.swift:6-12 | test_case/fair_bloc/ios/Runner/AppDelegate.swift:6-12 | test_case/fair_list_demo/ios/Runner/AppDelegate.swift:6-12 | test_case/fair_mobx/ios/Runner/AppDelegate.swift:6-12 | test_case/fair_provider/ios/Runner/AppDelegate.swift:6-12 | test_case/fair_template_detail/ios/Runner/AppDelegate.swift:6-12 | test_case/flutter_component/ios/Runner/AppDelegate.swift:6-12 | test_case/flutter_libs_app/ios/Runner/AppDelegate.swift:6-12 | test_case/flutter_slidable/ios/Runner/AppDelegate.swift:6-12 | test_case/list_card_demo/ios/Runner/AppDelegate.swift:6-12 | test_case/list_demo/ios/Runner/AppDelegate.swift:6-12 | test_case/sugar_demo/ios/Runner/AppDelegate.swift:6-12 | test_case/sugar_demo_tabbar/ios/Runner/AppDelegate.swift:6-12 — before extracting anything, compare `example/ios/Runner/AppDelegate.swift` and `fair/example/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 (6 members, 44 shared lines) · ×1
  • Near-duplicate member family (6 members, 44 shared lines) example/lib/best_flutter_ui/feedback_screen.dart:15 — example/lib/best_flutter_ui/feedback_screen.dart:15-99 | example/lib/best_flutter_ui/help_screen.dart:13-93 | example/lib/best_flutter_ui/invite_friend_screen.dart:17-110 | test_case/best_flutter_ui_templates/lib/feedback_screen.dart:15-99 | test_case/best_flutter_ui_templates/lib/help_screen.dart:13-93 | test_case/best_flutter_ui_templates/lib/invite_friend_screen.dart:17-110 — These 6 members are variants of one another: a block of 44 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 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 · Near-duplicate member family (5 members, 145 shared lines) · ×1
  • Near-duplicate member family (5 members, 145 shared lines) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:11 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:11-292 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:14-569 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:11-292 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:14-569 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:14-569 — These 5 members are variants of one another: a block of 145 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 family (4 members, 61 shared lines) · ×1
  • Near-duplicate member family (4 members, 61 shared lines) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:24 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:24-292 | example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:11-292 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:24-292 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:11-292 — These 4 members are variants of one another: a block of 61 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Near-duplicate member family (4 members, 44 shared lines) · ×1
  • Near-duplicate member family (4 members, 44 shared lines) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:366 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:366-421 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:471-554 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:366-421 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:470-553 — These 4 members are variants of one another: a block of 44 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Near-duplicate member family (4 members, 43 shared lines) · ×1
  • Near-duplicate member family (4 members, 43 shared lines) example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:11 — example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:11-86 | example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:11-132 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/glass_view.dart:11-86 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:11-132 — These 4 members are variants of one another: a block of 43 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 88 shared lines) · ×1
  • Near-duplicate member family (3 members, 88 shared lines) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:94 — example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:94-262 | test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart:13-168 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:94-262 — These 3 members are variants of one another: a block of 88 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 3 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 3 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 70 shared lines) · ×1
  • Near-duplicate member family (3 members, 70 shared lines) example/lib/template/login_page/login_page_template.dart:17 — example/lib/template/login_page/login_page_template.dart:17-179 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:15-160 | test_case/login_template/lib/login/login_page.dart:13-148 — These 3 members are variants of one another: a block of 70 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 3 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 3 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 62 shared lines) · ×1
  • Near-duplicate member family (3 members, 62 shared lines) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:578 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:578-675 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:578-675 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:578-675 — These 3 members are variants of one another: a block of 62 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 3 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 3 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 50 shared lines) · ×1
  • Near-duplicate member family (3 members, 50 shared lines) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:76 — example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:76-254 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/wave_view.dart:26-175 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:76-254 — These 3 members are variants of one another: a block of 50 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 3 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 3 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 40 shared lines) · ×1
  • Near-duplicate member family (3 members, 40 shared lines) example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:12 — example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:12-141 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/your_program.dart:10-126 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:12-141 — These 3 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 3 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 3 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 35 shared lines) · ×1
  • Near-duplicate member family (3 members, 35 shared lines) example/lib/template/list_page/list_page.dart:75 — example/lib/template/list_page/list_page.dart:75-201 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:89-215 | test_case/list_demo/lib/list_demo_page.dart:14-68 — These 3 members are variants of one another: a block of 35 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 3 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 3 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 26 shared lines) · ×1
  • Near-duplicate member family (3 members, 26 shared lines) example/lib/template/tabbar_page/tabbar_page.dart:63 — example/lib/template/tabbar_page/tabbar_page.dart:63-103 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:76-116 | test_case/sugar_demo_tabbar/lib/sugar_tabbar_page.dart:26-64 — These 3 members are variants of one another: a block of 26 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 3 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 3 times.
D4 · Code Duplication · Near-duplicate member pair (143 shared lines) · ×1
  • Near-duplicate member pair (143 shared lines) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:11 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:11-275 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:11-292 — These two members are variants of one another: 143 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 (81 shared lines) · ×1
  • Near-duplicate member pair (81 shared lines) test_case/adobe_xd/lib/Gear.dart:31 — test_case/adobe_xd/lib/Gear.dart:31-247 | test_case/adobe_xd/lib/Home.dart:44-588 — These two members are variants of one another: 81 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 · Edited copy of a member (95 corresponding lines) · ×1
  • Edited copy of a member (95 corresponding lines) example/lib/template/template_page.dart:8 — example/lib/template/template_page.dart:8-102 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/main.dart:107-221 — These two members are one piece of code written twice and then edited apart: 95 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 (71 corresponding lines) · ×1
  • Edited copy of a member (71 corresponding lines) example/lib/template/scrollview/home_scrollview.dart:58 — example/lib/template/scrollview/home_scrollview.dart:58-131 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/scrollview/home_scrollview.dart:68-138 — These two members are one piece of code written twice and then edited apart: 71 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 (57 corresponding lines) · ×1
  • Edited copy of a member (57 corresponding lines) fair/example/lib/src/page/sugars/map_page.dart:39 — fair/example/lib/src/page/sugars/map_page.dart:39-95 | fair/example/lib/src/page/sugars/mapeach_page.dart:39-96 — These two members are one piece of code written twice and then edited apart: 57 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 (60 corresponding lines) · ×1
  • Edited copy of a member (60 corresponding lines) test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:44 — test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:44-103 | test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart:50-130 — These two members are one piece of code written twice and then edited apart: 60 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 (42 corresponding lines) · ×1
  • Edited copy of a member (42 corresponding lines) dart2js/lib/src/__test_data__/page1/page1.dart:53 — dart2js/lib/src/__test_data__/page1/page1.dart:53-94 | fair/example/lib/src/page/logic-page2page/sample_logic_page2page.dart:46-87 — 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 copies of one member (3 members, 35+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 35+ corresponding lines) fair/example/lib/src/page/sugars/ifequal_page.dart:47 — fair/example/lib/src/page/sugars/ifequal_page.dart:47-81 | fair/example/lib/src/page/sugars/ifequalbool_page.dart:54-88 | fair/example/lib/src/page/sugars/ifrange_page.dart:47-81 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 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, 22+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 22+ corresponding lines) fair/example/lib/src/page/home_page.dart:11 — fair/example/lib/src/page/home_page.dart:11-32 | fair/example/lib/src/page/list/logic_list_home_page.dart:12-56 | fair/example/lib/src/page/plugins/sample_plugin.dart:21-46 — 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 (5 members, 19+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 19+ corresponding lines) fair/example/lib/src/page/list/logic_list_home_page.dart:58 — fair/example/lib/src/page/list/logic_list_home_page.dart:58-76 | fair/example/lib/src/page/logic_home_page.dart:83-101 | fair/example/lib/src/page/plugins/sample_plugin.dart:48-66 | fair/example/lib/src/page/sugars/sugars_home_page.dart:86-104 | test_case/sugar_demo_tabbar/lib/home_page.dart:55-73 — These 5 members are one piece of code written 5 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 5 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) test_case/best_flutter_ui_templates/lib/plugins/net/fair_net_plugin.dart:88 — test_case/best_flutter_ui_templates/lib/plugins/net/fair_net_plugin.dart:88-92 | test_case/best_flutter_ui_templates/lib/plugins/net/fair_net_plugin.dart:94-98 — 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 · Edited copies of one member (4 members, 7+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 7+ corresponding lines) fair/example/lib/src/page/list/load-more/sample_logic_loadmore_page.dart:39 — fair/example/lib/src/page/list/load-more/sample_logic_loadmore_page.dart:39-45 | fair/example/lib/src/page/list/load-more/sample_logic_loadmore_page.dart:47-55 | test_case/fair_list_demo/lib/JRList.dart:42-50 | test_case/fair_list_demo/lib/JRList.dart:52-59 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 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, 9+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 9+ corresponding lines) fair/example/lib/src/page/hello/hello_world_proxy.dart:22 — fair/example/lib/src/page/hello/hello_world_proxy.dart:22-30 | fair/example/lib/src/proxy/list_proxy.dart:27-35 | test_case/fair_list_demo/lib/list_proxy.dart:23-37 — 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 copy of a member (10 corresponding lines) · ×1
  • Edited copy of a member (10 corresponding lines) example/lib/main.dart:48 — example/lib/main.dart:48-57 | test_case/flutter_libs_app/lib/main.dart:47-65 — 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 copies of one member (4 members, 8+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 8+ corresponding lines) fair/example/lib/src/page/hello/hello_world_proxy.dart:13 — fair/example/lib/src/page/hello/hello_world_proxy.dart:13-20 | fair/example/lib/src/proxy/list_proxy.dart:17-25 | test_case/fair_list_demo/lib/list_proxy.dart:11-21 | test_case/sugar_demo_tabbar/lib/sugar_tabbar_activeItembuilder_delegate.dart:11-18 — 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 · Duplicated block (249 lines × 2) · ×1
  • Duplicated block (249 lines × 2) example/lib/best_flutter_ui/design_course/course_info_screen.dart:42 — example/lib/best_flutter_ui/design_course/course_info_screen.dart:42-290 | test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart:42-290 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/course_info_screen.dart` and `test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 361 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 (177 lines × 2) · ×1
  • Duplicated block (177 lines × 2) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:192 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:192-368 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:192-368 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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 (173 lines × 2) · ×1
  • Duplicated block (173 lines × 2) example/lib/best_flutter_ui/component/hotel_listview_content.dart:31 — example/lib/best_flutter_ui/component/hotel_listview_content.dart:31-203 | test_case/best_flutter_ui_templates/lib/component/hotel_listview_content.dart:31-203 — before extracting anything, compare `example/lib/best_flutter_ui/component/hotel_listview_content.dart` and `test_case/best_flutter_ui_templates/lib/component/hotel_listview_content.dart` as WHOLE FILES: 97% 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. 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 (152 lines × 2) · ×1
  • Duplicated block (152 lines × 2) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:34 — example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:34-185 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:33-184 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 354 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 `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:34` 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 (167 lines × 2) · ×1
  • Duplicated block (167 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:96 — example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:96-262 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:96-262 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 329 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.
D4 · Code Duplication · Duplicated block (136 lines × 2) · ×1
  • Duplicated block (136 lines × 2) example/lib/template/list_card/moments_list.dart:131 — example/lib/template/list_card/moments_list.dart:131-266 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:148-283 — before extracting anything, compare `example/lib/template/list_card/moments_list.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 238 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 `example/lib/template/list_card/moments_list.dart:131` 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 (269 lines × 2) · ×1
  • Duplicated block (269 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:24 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:24-292 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:24-292 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 453 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.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 (122 lines × 2) · ×1
  • Duplicated block (122 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:20 — example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:20-141 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:20-141 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 234 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 `example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:20` 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 (482 lines × 3) · ×1
  • Duplicated block (482 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:38 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:38-519 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:38-519 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:38-519 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:38` 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 (106 lines × 2) · ×1
  • Duplicated block (106 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:23 — example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:23-128 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:23-128 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 202 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 `example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:23` 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 (99 lines × 2) · ×1
  • Duplicated block (99 lines × 2) example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart:81 — example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart:81-179 | test_case/best_flutter_ui_templates/lib/custom_drawer/drawer_user_controller.dart:80-178 — before extracting anything, compare `example/lib/best_flutter_ui/custom_drawer/drawer_user_controller.dart` and `test_case/best_flutter_ui_templates/lib/custom_drawer/drawer_user_controller.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 151 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 (84 lines × 2) · ×1
  • Duplicated block (84 lines × 2) example/lib/best_flutter_ui/home_screen.dart:38 — example/lib/best_flutter_ui/home_screen.dart:38-121 | test_case/best_flutter_ui_templates/lib/home_screen.dart:38-121 — before extracting anything, compare `example/lib/best_flutter_ui/home_screen.dart` and `test_case/best_flutter_ui_templates/lib/home_screen.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 152 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 (113 lines × 2) · ×1
  • Duplicated block (113 lines × 2) test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:103 — test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:103-215 | test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:99-211 — before extracting anything, compare `test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart` and `test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 172 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 (118 lines × 5) · ×1
  • Duplicated block (118 lines × 5) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:221 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:221-338 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:178-295 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:221-338 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:177-294 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:177-294 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:221` 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 (179 lines × 2) · ×1
  • Duplicated block (179 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:76 — example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:76-254 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:76-254 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 301 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 (75 lines × 2) · ×1
  • Duplicated block (75 lines × 2) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:22 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:22-96 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:22-96 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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 (70–73 lines × 2) · ×1
  • Duplicated block (70–73 lines × 2) fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:47 — fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:47-119 | test_case/login_template/lib/login/login_page.dart:44-113 — before extracting anything, compare `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart` and `test_case/login_template/lib/login/login_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 152 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 `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:47` 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 (72 lines × 2) · ×1
  • Duplicated block (72 lines × 2) example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:24 — example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:24-95 | test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart:24-95 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 153 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 (71 lines × 2) · ×1
  • Duplicated block (71 lines × 2) example/lib/best_flutter_ui/design_course/home_design_course.dart:190 — example/lib/best_flutter_ui/design_course/home_design_course.dart:190-260 | test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart:190-260 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/home_design_course.dart` and `test_case/best_flutter_ui_templates/lib/design_course/home_design_course.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 298 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 `example/lib/best_flutter_ui/design_course/home_design_course.dart:190` 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 (70 lines × 2) · ×1
  • Duplicated block (70 lines × 2) example/lib/template/list_page/list_page.dart:111 — example/lib/template/list_page/list_page.dart:111-180 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:125-194 — before extracting anything, compare `example/lib/template/list_page/list_page.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 156 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 `example/lib/template/list_page/list_page.dart:111` 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 (130 lines × 2) · ×1
  • Duplicated block (130 lines × 2) example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:88 — example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:88-217 | test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart:88-217 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/popular_course_list_view.dart` and `test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 261 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 (67 lines × 2) · ×1
  • Duplicated block (67 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart:20 — example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart:20-86 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/title_view.dart:20-86 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/title_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 110 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.
D4 · Code Duplication · Duplicated block (62 lines × 2) · ×1
  • Duplicated block (62 lines × 2) example/lib/best_flutter_ui/feedback_screen.dart:38 — example/lib/best_flutter_ui/feedback_screen.dart:38-99 | test_case/best_flutter_ui_templates/lib/feedback_screen.dart:38-99 — before extracting anything, compare `example/lib/best_flutter_ui/feedback_screen.dart` and `test_case/best_flutter_ui_templates/lib/feedback_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 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 `example/lib/best_flutter_ui/feedback_screen.dart:38` 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 (60 lines × 2) · ×1
  • Duplicated block (60 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:23 — example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:23-82 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/glass_view.dart:23-82 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/glass_view.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 111 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 `example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:23` 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 (74 lines × 2) · ×1
  • Duplicated block (74 lines × 2) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:41 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:41-114 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:40-113 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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 (51 lines × 2) · ×1
  • Duplicated block (51 lines × 2) example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:114 — example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:114-164 | test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart:114-164 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 153 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 `example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:114` 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 (47 lines × 2) · ×1
  • Duplicated block (47 lines × 2) example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:29 — example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:29-75 | test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart:29-75 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/popular_course_list_view.dart` and `test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 261 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 (46–47 lines × 2) · ×1
  • Duplicated block (46–47 lines × 2) example/lib/template/login_page/login_page_template.dart:134 — example/lib/template/login_page/login_page_template.dart:134-179 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:114-160 — before extracting anything, compare `example/lib/template/login_page/login_page_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 157 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 `example/lib/template/login_page/login_page_template.dart:134` 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, `example/lib/template/login_page/login_page_template.dart:133` calls `Container` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:114` 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 (45 lines × 2) · ×1
  • Duplicated block (45 lines × 2) example/lib/best_flutter_ui/invite_friend_screen.dart:66 — example/lib/best_flutter_ui/invite_friend_screen.dart:66-110 | test_case/best_flutter_ui_templates/lib/invite_friend_screen.dart:66-110 — before extracting anything, compare `example/lib/best_flutter_ui/invite_friend_screen.dart` and `test_case/best_flutter_ui_templates/lib/invite_friend_screen.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 `example/lib/best_flutter_ui/invite_friend_screen.dart:66` 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 (92 lines × 2) · ×1
  • Duplicated block (92 lines × 2) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:35 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:35-126 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:35-126 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 461 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:35` 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 (44 lines × 2) · ×1
  • Duplicated block (44 lines × 2) example/lib/template/drawer/drawer_template.dart:13 — example/lib/template/drawer/drawer_template.dart:13-56 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/drawer/drawer_template.dart:15-58 — before extracting anything, compare `example/lib/template/drawer/drawer_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/drawer/drawer_template.dart` as WHOLE FILES: 94% 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. 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 (104 lines × 2) · ×1
  • Duplicated block (104 lines × 2) example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:67 — example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart:67-170 | test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart:67-170 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/custom_calendar.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/custom_calendar.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 409 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 (37–43 lines × 2) · ×1
  • Duplicated block (37–43 lines × 2) example/lib/template/fab/fab_template.dart:24 — example/lib/template/fab/fab_template.dart:24-60 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/fab/fab_template.dart:23-65 — before extracting anything, compare `example/lib/template/fab/fab_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/fab/fab_template.dart` as WHOLE FILES: 90% 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. 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 (100 lines × 2) · ×1
  • Duplicated block (100 lines × 2) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:230 — example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:230-329 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:229-328 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 354 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 (38 lines × 4) · ×1
  • Duplicated block (38 lines × 4) example/lib/best_flutter_ui/help_screen.dart:33 — example/lib/best_flutter_ui/help_screen.dart:33-70 | example/lib/best_flutter_ui/invite_friend_screen.dart:39-76 | test_case/best_flutter_ui_templates/lib/help_screen.dart:33-70 | test_case/best_flutter_ui_templates/lib/invite_friend_screen.dart:39-76 — before extracting anything, compare `example/lib/best_flutter_ui/help_screen.dart` and `example/lib/best_flutter_ui/invite_friend_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 84 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 `example/lib/best_flutter_ui/help_screen.dart:33` 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 (91 lines × 2) · ×1
  • Duplicated block (91 lines × 2) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:67 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:67-157 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:67-157 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 362 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:67` 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 × 2) · ×1
  • Duplicated block (37 lines × 2) example/lib/template/scrollview/home_scrollview.dart:58 — example/lib/template/scrollview/home_scrollview.dart:58-94 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/scrollview/home_scrollview.dart:68-104 — 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 `example/lib/template/scrollview/home_scrollview.dart:58` 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 (29–36 lines × 4) · ×1
  • Duplicated block (29–36 lines × 4) example/lib/best_flutter_ui/design_course/category_list_view.dart:169 — example/lib/best_flutter_ui/design_course/category_list_view.dart:169-204 | example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:143-171 | test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart:169-204 | test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart:143-171 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/category_list_view.dart` and `example/lib/best_flutter_ui/design_course/popular_course_list_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 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 `example/lib/best_flutter_ui/design_course/category_list_view.dart:169` 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 (33–36 lines × 3) · ×1
  • Duplicated block (33–36 lines × 3) example/lib/template/login_page/login_page_template.dart:86 — example/lib/template/login_page/login_page_template.dart:86-121 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:79-114 | test_case/login_template/lib/login/login_page.dart:76-108 — before extracting anything, compare `example/lib/template/login_page/login_page_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 157 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 `example/lib/template/login_page/login_page_template.dart:86` 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–34 lines × 2) · ×1
  • Duplicated block (24–34 lines × 2) example/lib/template/scrollview/home_scrollview.dart:108 — example/lib/template/scrollview/home_scrollview.dart:108-131 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/scrollview/home_scrollview.dart:105-138 — 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 `example/lib/template/scrollview/home_scrollview.dart:108` 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 × 4) · ×1
  • Duplicated block (33 lines × 4) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:66 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:66-98 | example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:68-100 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:66-98 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:68-100 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` as WHOLE FILES: this scan already matched 4 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:66` 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 (27–31 lines × 4) · ×1
  • Duplicated block (27–31 lines × 4) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:366 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:366-396 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:471-497 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:366-396 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:470-496 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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 `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:366` 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 (23–31 lines × 3) · ×1
  • Duplicated block (23–31 lines × 3) example/lib/template/list_card/moments_list.dart:102 — example/lib/template/list_card/moments_list.dart:102-132 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart:119-149 | test_case/list_card_demo/lib/view/moments_list.dart:29-51 — before extracting anything, compare `example/lib/template/list_card/moments_list.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_card/moments_list.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 238 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 `example/lib/template/list_card/moments_list.dart:102` 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 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 (30 lines × 2) · ×1
  • Duplicated block (30 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:77 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:77-106 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:172-201 — both copies are in the same file, so extract the 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.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 (29 lines × 5) · ×1
  • Duplicated block (29 lines × 5) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:264 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:264-292 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:541-569 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:264-292 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:541-569 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:541-569 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:264` 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–28 lines × 6) · ×1
  • Duplicated block (26–28 lines × 6) example/lib/best_flutter_ui/feedback_screen.dart:27 — example/lib/best_flutter_ui/feedback_screen.dart:27-52 | example/lib/best_flutter_ui/help_screen.dart:22-47 | example/lib/best_flutter_ui/invite_friend_screen.dart:26-53 | test_case/best_flutter_ui_templates/lib/feedback_screen.dart:27-52 | test_case/best_flutter_ui_templates/lib/help_screen.dart:22-47 | test_case/best_flutter_ui_templates/lib/invite_friend_screen.dart:26-53 — before extracting anything, compare `example/lib/best_flutter_ui/feedback_screen.dart` and `test_case/best_flutter_ui_templates/lib/feedback_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 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 `example/lib/best_flutter_ui/feedback_screen.dart:27` 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 × 6) · ×1
  • Duplicated block (28 lines × 6) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:440 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:440-467 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:511-538 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:440-467 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:511-538 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:440-467 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:511-538 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:440` 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 (26–27 lines × 3) · ×1
  • Duplicated block (26–27 lines × 3) example/lib/template/tabbar_page/tabbar_page.dart:63 — example/lib/template/tabbar_page/tabbar_page.dart:63-89 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:76-102 | test_case/sugar_demo_tabbar/lib/sugar_tabbar_page.dart:26-51 — before extracting anything, compare `example/lib/template/tabbar_page/tabbar_page.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 100 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 `example/lib/template/tabbar_page/tabbar_page.dart:63` 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 (26 lines × 3) · ×1
  • Duplicated block (26 lines × 3) example/lib/template/list_page/list_page.dart:172 — example/lib/template/list_page/list_page.dart:172-197 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:186-211 | test_case/list_demo/lib/list_item.dart:62-87 — before extracting anything, compare `example/lib/template/list_page/list_page.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 156 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 `example/lib/template/list_page/list_page.dart:172` 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 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 (19–25 lines × 6) · ×1
  • Duplicated block (19–25 lines × 6) example/lib/best_flutter_ui/design_course/category_list_view.dart:183 — example/lib/best_flutter_ui/design_course/category_list_view.dart:183-207 | example/lib/best_flutter_ui/design_course/course_info_screen.dart:114-133 | example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:156-174 | test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart:183-207 | test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart:114-133 | test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart:156-174 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/category_list_view.dart` and `example/lib/best_flutter_ui/design_course/popular_course_list_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 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 `example/lib/best_flutter_ui/design_course/category_list_view.dart:183` 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 (25 lines × 5) · ×1
  • Duplicated block (25 lines × 5) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:19 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:19-43 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:22-46 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:19-43 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:22-46 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:22-46 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:19` 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 (25 lines × 3) · ×1
  • Duplicated block (25 lines × 3) test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:44 — test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:44-68 | test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart:50-74 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:42-66 — `test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart` and `test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:44` 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 (24 lines × 4) · ×1
  • Duplicated block (24 lines × 4) example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:63 — example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:63-86 | example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:109-132 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/glass_view.dart:63-86 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:109-132 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 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 `example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:63` 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 lines × 6) · ×1
  • Duplicated block (23 lines × 6) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:359 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:359-381 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:426-448 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:359-381 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:426-448 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:359-381 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:426-448 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:359` 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 (23 lines × 3) · ×1
  • Duplicated block (23 lines × 3) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:169 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:169-191 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:205-227 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:242-264 — 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:169` 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 lines × 7) · ×1
  • Duplicated block (22 lines × 7) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:291 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:291-312 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:248-269 | test_case/best_flutter_ui_templates/lib/fair/page/my_diary_page.dart:174-195 | test_case/best_flutter_ui_templates/lib/fair/page/training_page.dart:170-191 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:291-312 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:247-268 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:247-268 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:291` 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 lines × 6) · ×1
  • Duplicated block (22 lines × 6) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:128 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:128-149 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:227-248 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:128-149 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:227-248 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:128-149 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:227-248 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:128` 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 lines × 3) · ×1
  • Duplicated block (22 lines × 3) fair/example/lib/src/page/sugars/ifequal_page.dart:60 — fair/example/lib/src/page/sugars/ifequal_page.dart:60-81 | fair/example/lib/src/page/sugars/ifequalbool_page.dart:67-88 | fair/example/lib/src/page/sugars/ifrange_page.dart:60-81 — before extracting anything, compare `fair/example/lib/src/page/sugars/ifequal_page.dart` and `fair/example/lib/src/page/sugars/ifequalbool_page.dart` as WHOLE FILES: 84% 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. 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 `fair/example/lib/src/page/sugars/ifequal_page.dart:60` 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, `fair/example/lib/src/page/sugars/ifrange_page.dart:57` calls `ifRange`, `asset` and `fair/example/lib/src/page/sugars/ifequal_page.dart:56` 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 (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) example/lib/template/hotel_listview/hotel_listview_template.dart:57 — example/lib/template/hotel_listview/hotel_listview_template.dart:57-78 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart:73-94 — before extracting anything, compare `example/lib/template/hotel_listview/hotel_listview_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/hotel_listview/hotel_listview_template.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 224 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 `example/lib/template/hotel_listview/hotel_listview_template.dart:57` 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 (20–21 lines × 4) · ×1
  • Duplicated block (20–21 lines × 4) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:284 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:284-303 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:263-283 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:284-303 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:284-303 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart` as WHOLE FILES: this scan already matched 5 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. 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:284` 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 (51 lines × 3) · ×1
  • Duplicated block (51 lines × 3) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:52 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:52-102 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:44-94 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:52-102 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 169 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:52` 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 (21 lines × 3) · ×1
  • Duplicated block (21 lines × 3) example/lib/template/login_page/login_page_template.dart:34 — example/lib/template/login_page/login_page_template.dart:34-54 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart:32-52 | test_case/login_template/lib/login/login_page.dart:29-49 — before extracting anything, compare `example/lib/template/login_page/login_page_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/login_page/login_page_template.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 157 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 `example/lib/template/login_page/login_page_template.dart:34` 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 (20–21 lines × 2) · ×1
  • Duplicated block (20–21 lines × 2) test_case/adobe_xd/lib/GearItem.dart:48 — test_case/adobe_xd/lib/GearItem.dart:48-68 | test_case/adobe_xd/lib/Home.dart:49-68 — 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 `test_case/adobe_xd/lib/GearItem.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.
D4 · Code Duplication · Duplicated block (20 lines × 4) · ×1
  • Duplicated block (20 lines × 4) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:489 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:489-508 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:444-463 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:489-508 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:489-508 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart` as WHOLE FILES: this scan already matched 5 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. 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:489` 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 (18–20 lines × 3) · ×1
  • Duplicated block (18–20 lines × 3) example/lib/template/tabbar_page/tabbar_page.dart:110 — example/lib/template/tabbar_page/tabbar_page.dart:110-127 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart:123-140 | test_case/sugar_demo_tabbar/lib/sugar_tabbar_activeItembuilder_delegate.dart:24-43 — before extracting anything, compare `example/lib/template/tabbar_page/tabbar_page.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/tabbar_page/tabbar_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 100 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 `example/lib/template/tabbar_page/tabbar_page.dart:110` 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 (19–20 lines × 2) · ×1
  • Duplicated block (19–20 lines × 2) example/lib/template/gridview/gridview_template.dart:55 — example/lib/template/gridview/gridview_template.dart:55-74 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.dart:66-84 — before extracting anything, compare `example/lib/template/gridview/gridview_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.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. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/gridview/gridview_template.dart:55` 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 (18–19 lines × 2) · ×1
  • Duplicated block (18–19 lines × 2) test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:108 — test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:108-125 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:203-221 — both copies are in the same file, so extract the 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 `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:108` 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 (18 lines × 15) · ×1
  • Duplicated block (18 lines × 15) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:185 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:185-202 | example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:222-239 | example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:260-277 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:397-414 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:466-483 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:537-554 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:185-202 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:222-239 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:260-277 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:397-414 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:466-483 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:537-554 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:397-414 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:466-483 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:537-554 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:185` 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 (18 lines × 6) · ×1
  • Duplicated block (18 lines × 6) example/lib/best_flutter_ui/feedback_screen.dart:56 — example/lib/best_flutter_ui/feedback_screen.dart:56-73 | example/lib/best_flutter_ui/help_screen.dart:51-68 | example/lib/best_flutter_ui/invite_friend_screen.dart:57-74 | test_case/best_flutter_ui_templates/lib/feedback_screen.dart:56-73 | test_case/best_flutter_ui_templates/lib/help_screen.dart:51-68 | test_case/best_flutter_ui_templates/lib/invite_friend_screen.dart:57-74 — before extracting anything, compare `example/lib/best_flutter_ui/feedback_screen.dart` and `test_case/best_flutter_ui_templates/lib/feedback_screen.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 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 `example/lib/best_flutter_ui/feedback_screen.dart:56` 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 (17–18 lines × 4) · ×1
  • Duplicated block (17–18 lines × 4) example/lib/json_file_explain.dart:35 — example/lib/json_file_explain.dart:35-52 | example/lib/main.dart:105-122 | example/lib/template/fab/fab_template.dart:27-43 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/fab/fab_template.dart:26-43 — before extracting anything, compare `example/lib/template/fab/fab_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/fab/fab_template.dart` as WHOLE FILES: 90% 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 `example/lib/json_file_explain.dart:35` 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, `example/lib/json_file_explain.dart:31` calls `AppBar`, `_buildTitle` and `example/lib/template/fab/fab_template.dart:26` 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 (15–18 lines × 3) · ×1
  • Duplicated block (15–18 lines × 3) example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:142 — example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:142-159 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/bottom_bar_view.dart:98-112 | test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart:141-158 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/bottom_navigation_view/bottom_bar_view.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 354 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 `example/lib/best_flutter_ui/fitness_app/bottom_navigation_view/bottom_bar_view.dart:142` 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 (37 lines × 3) · ×1
  • Duplicated block (37 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:117 — example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:117-153 | test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart:28-64 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:117-153 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 89 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 `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:117` 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 (34–35 lines × 3) · ×1
  • Duplicated block (34–35 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:176 — example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:176-210 | test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart:86-119 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:176-210 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/meals_list/meals_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 89 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 `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:176` 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 (17 lines × 5) · ×1
  • Duplicated block (17 lines × 5) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:183 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:183-199 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:140-156 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:183-199 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:139-155 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:139-155 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:183` 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–17 lines × 4) · ×1
  • Duplicated block (16–17 lines × 4) example/lib/template/gridview/gridview_template.dart:50 — example/lib/template/gridview/gridview_template.dart:50-65 | example/lib/template/staggered_view/staggeredview_template.dart:54-70 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.dart:61-76 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/staggered_view/staggeredview_template.dart:62-78 — before extracting anything, compare `example/lib/template/gridview/gridview_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.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. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/gridview/gridview_template.dart:50` 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 (15–16 lines × 11) · ×1
  • Duplicated block (15–16 lines × 11) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:173 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:173-187 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:355-369 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:421-436 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:163-177 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:316-330 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:380-395 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:173-187 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:355-369 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:421-436 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:355-369 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:421-436 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:173` 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 (16 lines × 6) · ×1
  • Duplicated block (16 lines × 6) example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:99 — example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:99-114 | example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:212-227 | example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:242-257 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:99-114 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:212-227 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:242-257 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 390 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 `example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:99` 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 (13–15 lines × 7) · ×1
  • Duplicated block (13–15 lines × 7) test_case/adobe_xd/lib/Gear.dart:92 — test_case/adobe_xd/lib/Gear.dart:92-106 | test_case/adobe_xd/lib/GearItem.dart:57-71 | test_case/adobe_xd/lib/Home.dart:57-71 | test_case/adobe_xd/lib/Home.dart:188-202 | test_case/adobe_xd/lib/Home.dart:213-227 | test_case/adobe_xd/lib/Home.dart:317-331 | test_case/adobe_xd/lib/Home.dart:458-470 — before extracting anything, compare `test_case/adobe_xd/lib/Gear.dart` and `test_case/adobe_xd/lib/Home.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 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 `test_case/adobe_xd/lib/Gear.dart:92` 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, `test_case/adobe_xd/lib/Home.dart:472` calls `all`, `Color` and `test_case/adobe_xd/lib/Home.dart:73` 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 (15 lines × 4) · ×1
  • Duplicated block (15 lines × 4) example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:174 — example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:174-188 | example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:193-207 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:174-188 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart:193-207 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/wave_view.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 301 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 `example/lib/best_flutter_ui/fitness_app/ui_view/wave_view.dart:174` 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 (59 lines × 3) · ×1
  • Duplicated block (59 lines × 3) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:59 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:59-117 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:45-103 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:59-117 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 96 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:59` 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–15 lines × 3) · ×1
  • Duplicated block (14–15 lines × 3) example/lib/template/gridview/gridview_template.dart:67 — example/lib/template/gridview/gridview_template.dart:67-81 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.dart:78-91 | test_case/best_flutter_ui_templates/lib/fair/component/grid/gridview_template.dart:73-86 — before extracting anything, compare `example/lib/template/gridview/gridview_template.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/gridview/gridview_template.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. Read the line range as the matched WINDOW rather than a finished unit: at `example/lib/template/gridview/gridview_template.dart:67` 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 (11–15 lines × 2) · ×1
  • Duplicated block (11–15 lines × 2) fair/example/lib/src/page/logic_home_page.dart:19 — fair/example/lib/src/page/logic_home_page.dart:19-33 | fair/example/lib/src/page/sugars/sugars_home_page.dart:17-27 — before extracting anything, compare `fair/example/lib/src/page/logic_home_page.dart` and `fair/example/lib/src/page/sugars/sugars_home_page.dart` as WHOLE FILES: this scan already matched 3 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. Read the line range as the matched WINDOW rather than a finished unit: at `fair/example/lib/src/page/logic_home_page.dart:19` 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 (14 lines × 14) · ×1
  • Duplicated block (14 lines × 14) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:175 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:175-188 | example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:212-225 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:357-370 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:424-437 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:165-178 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:201-214 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:318-331 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:383-396 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:175-188 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:212-225 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:357-370 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:424-437 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:357-370 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:424-437 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.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.
D4 · Code Duplication · Duplicated block (14 lines × 7) · ×1
  • Duplicated block (14 lines × 7) test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:74 — test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:74-87 | test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart:101-114 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:73-86 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:95-108 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:117-130 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:139-152 | test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart:161-174 — `test_case/flutter_libs_app/lib/package_info/fair_package_info_widget.dart` and `test_case/flutter_libs_app/lib/url_launcher/fair_url_launcher_widget.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `test_case/flutter_libs_app/lib/device_info/fair_device_info_widget.dart:74` 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 (12–14 lines × 4) · ×1
  • Duplicated block (12–14 lines × 4) example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart:192 — example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart:192-205 | example/lib/best_flutter_ui/hotel_booking/filters_screen.dart:59-70 | test_case/best_flutter_ui_templates/lib/hotel_booking/calendar_popup_view.dart:192-205 | test_case/best_flutter_ui_templates/lib/hotel_booking/filters_screen.dart:59-70 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/calendar_popup_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/calendar_popup_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 217 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–13 lines × 9) · ×1
  • Duplicated block (12–13 lines × 9) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:371 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:371-382 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:438-450 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:509-521 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:371-382 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:438-450 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:509-521 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:371-382 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:438-450 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:509-521 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:371` 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 (13 lines × 7) · ×1
  • Duplicated block (13 lines × 7) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:13 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:13-25 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:16-28 | example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:14-26 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:13-25 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:16-28 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:16-28 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:14-26 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:13` 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 (13 lines × 3) · ×1
  • Duplicated block (13 lines × 3) example/lib/template/list_page/list_page.dart:124 — example/lib/template/list_page/list_page.dart:124-136 | fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart:138-150 | test_case/list_demo/lib/list_item.dart:15-27 — before extracting anything, compare `example/lib/template/list_page/list_page.dart` and `fair_online/fair_online_service/fairDir/template/project/fair_samples/lib/page/list_page/list_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 156 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 `example/lib/template/list_page/list_page.dart:124` 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 × 6) · ×1
  • Duplicated block (12 lines × 6) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:40 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:40-51 | example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:266-277 | example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:119-130 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:40-51 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:266-277 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart:118-129 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 453 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:40` 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 (11 lines × 6) · ×1
  • Duplicated block (11 lines × 6) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:193 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:193-203 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:249-259 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:396-406 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:192-202 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:248-258 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:395-405 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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 `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:193` 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, `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:208` calls `showDemoDialog` and `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:261` 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 (10 lines × 13) · ×1
  • Duplicated block (10 lines × 13) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:11 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:11-20 | example/lib/best_flutter_ui/fitness_app/ui_view/glass_view.dart:11-20 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:14-23 | example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:11-20 | example/lib/best_flutter_ui/fitness_app/ui_view/title_view.dart:18-27 | example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:12-21 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:11-20 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/glass_view.dart:11-20 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:14-23 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:14-23 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:11-20 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/title_view.dart:18-27 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:12-21 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:11` 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 (10 lines × 7) · ×1
  • Duplicated block (10 lines × 7) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:159 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:159-168 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:341-350 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:149-158 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.dart:302-311 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:159-168 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:341-350 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:341-350 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:159` 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 (9–10 lines × 6) · ×1
  • Duplicated block (9–10 lines × 6) example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:86 — example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:86-94 | example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:106-115 | example/lib/best_flutter_ui/hotel_booking/hotel_list_view.dart:21-30 | test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart:86-94 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart:105-114 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_list_view.dart:21-30 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/popular_course_list_view.dart` and `test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 261 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 `example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:86` 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 (10 lines × 5) · ×1
  • Duplicated block (10 lines × 5) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:59 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:59-68 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:58-67 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:59-68 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:57-66 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:57-66 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:59` 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–10 lines × 4) · ×1
  • Duplicated block (9–10 lines × 4) example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:93 — example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:93-101 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:140-149 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:92-100 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:139-148 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 564 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 `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:93` 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 (8–9 lines × 14) · ×1
  • Duplicated block (8–9 lines × 14) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:66 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:66-73 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:75-82 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:86-94 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:109-117 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:119-126 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:130-138 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:65-73 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:66-73 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:75-82 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:86-94 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:109-117 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:119-126 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:130-138 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:64-72 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:66` 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 (9 lines × 9) · ×1
  • Duplicated block (9 lines × 9) example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:25 — example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:25-33 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:28-36 | example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:32-40 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/body_measurement.dart:17-25 | test_case/best_flutter_ui_templates/lib/fair/component/trainning/running.dart:24-32 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:25-33 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:28-36 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:28-36 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:32-40 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 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 `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:25` 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 × 5) · ×1
  • Duplicated block (9 lines × 5) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:38 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:38-46 | example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:117-125 | test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart:24-32 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:38-46 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart:116-124 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `test_case/best_flutter_ui_templates/lib/fair/component/my_diary/water.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 96 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:38` 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–9 lines × 4) · ×1
  • Duplicated block (8–9 lines × 4) test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:64 — test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:64-72 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:74-81 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:83-91 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:95-103 — 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 `test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:64` 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 (8 lines × 12) · ×1
  • Duplicated block (8 lines × 12) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:62 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:62-69 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:82-89 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:105-112 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:126-133 | example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart:61-68 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:62-69 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:82-89 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:105-112 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:126-133 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:60-67 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:91-98 | test_case/best_flutter_ui_templates/lib/fitness_app/traning/training_screen.dart:60-67 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `example/lib/best_flutter_ui/fitness_app/traning/training_screen.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 243 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:62` 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 × 6) · ×1
  • Duplicated block (9 lines × 6) example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:589 — example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:589-597 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:638-646 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:589-597 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:638-646 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:589-597 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:638-646 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 866 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 `example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:589` 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 (8 lines × 5) · ×1
  • Duplicated block (8 lines × 5) example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:96 — example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:96-103 | example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:140-147 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:96-103 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart:140-147 | test_case/best_flutter_ui_templates/lib/fitness_app/training/training_screen.dart:105-112 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart` and `test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/my_diary_screen.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 362 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 `example/lib/best_flutter_ui/fitness_app/my_diary/my_diary_screen.dart:96` 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 (7 lines × 15) · ×1
  • Duplicated block (7 lines × 15) example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:41 — example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:41-47 | example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:267-273 | example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:120-126 | example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart:28-34 | example/lib/best_flutter_ui/fitness_app/ui_view/mediterranesn_diet_view.dart:31-37 | example/lib/best_flutter_ui/fitness_app/ui_view/running_view.dart:35-41 | example/lib/best_flutter_ui/fitness_app/ui_view/workout_view.dart:32-38 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:41-47 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/water_view.dart:267-273 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart:119-125 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/body_measurement.dart:28-34 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.dart:31-37 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.dart:31-37 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/running_view.dart:35-41 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/workout_view.dart:32-38 — before extracting anything, compare `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart` and `example/lib/best_flutter_ui/fitness_app/ui_view/body_measurement.dart` as WHOLE FILES: this scan already matched 4 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 `example/lib/best_flutter_ui/fitness_app/my_diary/water_view.dart:41` 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 (5 lines × 4) · ×1
  • Duplicated block (5 lines × 4) example/lib/best_flutter_ui/design_course/course_info_screen.dart:68 — example/lib/best_flutter_ui/design_course/course_info_screen.dart:68-72 | example/lib/best_flutter_ui/design_course/course_info_screen.dart:299-303 | test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart:68-72 | test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart:299-303 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/course_info_screen.dart` and `test_case/best_flutter_ui_templates/lib/design_course/course_info_screen.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 361 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 `example/lib/best_flutter_ui/design_course/course_info_screen.dart:68` 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 (5 lines × 12) · ×1
  • Duplicated block (5 lines × 12) example/lib/best_flutter_ui/design_course/category_list_view.dart:18 — example/lib/best_flutter_ui/design_course/category_list_view.dart:18-23 | example/lib/best_flutter_ui/design_course/popular_course_list_view.dart:18-22 | example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart:23-28 | example/lib/best_flutter_ui/fitness_app/ui_view/area_list_view.dart:26-31 | example/lib/best_flutter_ui/home_screen.dart:21-25 | example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:24-28 | test_case/best_flutter_ui_templates/lib/design_course/category_list_view.dart:18-23 | test_case/best_flutter_ui_templates/lib/design_course/popular_course_list_view.dart:18-22 | test_case/best_flutter_ui_templates/lib/fitness_app/my_diary/meals_list_view.dart:23-28 | test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/area_list_view.dart:25-30 | test_case/best_flutter_ui_templates/lib/home_screen.dart:21-25 | test_case/best_flutter_ui_templates/lib/hotel_booking/hotel_home_screen.dart:23-27 — before extracting anything, compare `example/lib/best_flutter_ui/design_course/category_list_view.dart` and `example/lib/best_flutter_ui/design_course/popular_course_list_view.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 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, `example/lib/best_flutter_ui/hotel_booking/hotel_home_screen.dart:19` calls `ScrollController`, `now`, `add` and `example/lib/best_flutter_ui/fitness_app/my_diary/meals_list_view.dart: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 (6 lines × 4) · ×1
  • Duplicated block (6 lines × 4) example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:102 — example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart:102-107 | example/lib/best_flutter_ui/hotel_booking/slider_view.dart:80-85 | test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart:102-107 | test_case/best_flutter_ui_templates/lib/hotel_booking/slider_view.dart:80-85 — before extracting anything, compare `example/lib/best_flutter_ui/hotel_booking/range_slider_view.dart` and `test_case/best_flutter_ui_templates/lib/hotel_booking/range_slider_view.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 153 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.
GD1 · Unfinished & placeholder code · Unfinished stub · ×1
  • Unfinished stub — throws UnimplementedError fair_online/fair_online/lib/base/components/styled_dialogs.dart:194 — `createState` is a shipped member whose whole body still throws UnimplementedError — generated scaffolding that was never completed. Implement it or remove the dead surface.
IC1 · Incompleteness & stubs · Unfinished stub · ×1
  • Unfinished stub — throws UnimplementedError fair_online/fair_online/lib/base/components/styled_dialogs.dart:194 — `createState` is a shipped member whose whole body throws UnimplementedError — scaffolding that was never completed. Implement it or remove the dead surface.
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×1
  • Outbound HTTP without resilience fair_online/fair_online_service/lib/src/apicall/dio_sample.dart:14 — `Dio(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
R1 · Type Safety · Type Safety · ×1
  • Type Safety — 0 typed · 78 plain JS — the untyped files are dart2dsl/lib/dartjs/core-types/bigInt.js, dart2dsl/lib/dartjs/core-types/bigInt.test.js, REDACTED, REDACTED, dart2dsl/lib/dartjs/core-types/date.test.js, dart2dsl/lib/dartjs/core-types/duration.js (+72 more).
R10 · Code Duplication · Duplication concentrated across 6 sibling directories (20 clone groups) · ×1
  • Duplication concentrated across 6 sibling directories (20 clone groups) REDACTED:6 — 20 of the duplicated blocks reported below have copies in at least two of the sibling directories dart2dsl, dart2js, fair, fair_extension, fair_online, fair_provider under the repository root. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Wholesale file copy (1021 identical lines × 5 files) · ×1
  • Wholesale file copy (1021 identical lines × 5 files) REDACTED:6 — REDACTED:6 · REDACTED:6 · REDACTED:6 · REDACTED:6 · +1 more site(s) not listed — these 5 files are line-for-line copies of one another — 1021 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block (233 lines × 6 locations) · ×1
  • Duplicated block (233 lines × 6 locations) REDACTED:615 — REDACTED:615 · REDACTED:798 · REDACTED:792 · REDACTED:789 · +2 more site(s) not listed — the 6 copies are spread across 6 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 6 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication · Wholesale file copy (218 identical lines × 2 files) · ×1
  • Wholesale file copy (218 identical lines × 2 files) REDACTED:2 — REDACTED:2 · REDACTED:7 — these 2 files are line-for-line copies of one another — 218 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block (188 lines × 2 locations) · ×1
  • Duplicated block (188 lines × 2 locations) REDACTED:867 — REDACTED:867 · dart2dsl/lib/dartjs/core-types/map.js:8 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (176 lines × 6 locations) · ×1
  • Duplicated block (176 lines × 6 locations) REDACTED:413 — REDACTED:413 · REDACTED:14 · REDACTED:407 · REDACTED:404 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (160 lines × 8 locations) · ×1
  • Duplicated block (160 lines × 8 locations) REDACTED:284 — REDACTED:284 · REDACTED:9 · REDACTED:413 · REDACTED:14 · +4 more site(s) not listed — the 8 copies are spread across 8 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Wholesale file copy (136 identical lines × 2 files) · ×1
  • Wholesale file copy (136 identical lines × 2 files) dart2dsl/lib/dartjs/core-types/list.js:7 — dart2dsl/lib/dartjs/core-types/list.js:7 · dart2js/core-types/list.js:13 — these 2 files are line-for-line copies of one another — 136 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Wholesale file copy (133 identical lines × 2 files) · ×1
  • Wholesale file copy (133 identical lines × 2 files) dart2dsl/lib/dartjs/core-types/map.js:1 — dart2dsl/lib/dartjs/core-types/map.js:1 · dart2js/core-types/map.js:7 — these 2 files are line-for-line copies of one another — 133 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Wholesale file copy (128 identical lines × 2 files) · ×1
  • Wholesale file copy (128 identical lines × 2 files) dart2dsl/lib/dartjs/core-types/regex.js:1 — dart2dsl/lib/dartjs/core-types/regex.js:1 · dart2js/core-types/regex.js:7 — these 2 files are line-for-line copies of one another — 128 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block (127 lines × 2 locations) · ×1
  • Duplicated block (127 lines × 2 locations) REDACTED:144 — REDACTED:144 · dart2dsl/lib/dartjs/core-types/iterable.js:1 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Wholesale file copy (123 identical lines × 4 files) · ×1
  • Wholesale file copy (123 identical lines × 4 files) REDACTED:5 — REDACTED:5 · REDACTED:5 · REDACTED:5 · REDACTED:5 — these 4 files are line-for-line copies of one another — 123 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block (78 lines × 2 locations) · ×1
  • Duplicated block (78 lines × 2 locations) REDACTED:1542 — REDACTED:1542 · dart2dsl/lib/dartjs/core-types/string.js:2 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Wholesale file copy (76 identical lines × 2 files) · ×1
  • Wholesale file copy (76 identical lines × 2 files) dart2dsl/lib/dartjs/core-types/iterable.js:1 — dart2dsl/lib/dartjs/core-types/iterable.js:1 · dart2js/core-types/iterable.js:7 — these 2 files are line-for-line copies of one another — 76 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block (75 lines × 2 locations) · ×1
  • Duplicated block (75 lines × 2 locations) dart2js/core-types/string.js:7 — dart2js/core-types/string.js:7 · REDACTED:1752 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication · Duplicated block (74 lines × 2 locations) · ×1
  • Duplicated block (74 lines × 2 locations) REDACTED:6 — REDACTED:6 · dart2js/core-types/global.js:7 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (67 lines × 2 locations) · ×1
  • Duplicated block (67 lines × 2 locations) REDACTED:9 — REDACTED:9 · dart2dsl/lib/dartjs/core-types/duration.js:8 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Wholesale file copy (67 identical lines × 2 files) · ×1
  • Wholesale file copy (67 identical lines × 2 files) dart2dsl/lib/dartjs/core-types/set.js:3 — dart2dsl/lib/dartjs/core-types/set.js:3 · dart2js/core-types/set.js:9 — these 2 files are line-for-line copies of one another — 67 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done.
R10 · Code Duplication · Duplicated block (55 lines × 6 locations) · ×1
  • Duplicated block (55 lines × 6 locations) REDACTED:196 — REDACTED:196 · dart2js/core-types/duration.js:113 · REDACTED:190 · REDACTED:187 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (50 lines × 2 locations) · ×1
  • Duplicated block (50 lines × 2 locations) REDACTED:80 — REDACTED:80 · dart2dsl/lib/dartjs/core-types/duration.js:79 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (48 lines × 2 locations) · ×1
  • Duplicated block (48 lines × 2 locations) fair_extension/assets/plugin/fair_image_picker.js:7 — fair_extension/assets/plugin/fair_image_picker.js:7 · fair_extension/assets/plugin/fair_permission.js:7 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (48 lines × 5 locations) · ×1
  • Duplicated block (48 lines × 5 locations) fair_online/fair_online_service/fairDir/empty/project/empty_project/assets/plugin/fair_net_plugin.js:6 — fair_online/fair_online_service/fairDir/empty/project/empty_project/assets/plugin/fair_net_plugin.js:6 · fair_online/fair_online_service/fairDir/empty/project/empty_project/web/plugin/fair_net_plugin.js:6 · fair_online/fair_online_service/fairDir/template/project/fair_samples/assets/plugin/fair_net_plugin.js:6 · fair_online/fair_online_service/fairDir/template/project/fair_samples/web/plugin/fair_net_plugin.js:6 · +1 more site(s) not listed — the 5 copies are spread across 5 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication · Duplicated block (23 lines × 2 locations) · ×1
  • Duplicated block (23 lines × 2 locations) dart2dsl/lib/dartjs/core-types/bigInt.js:2 — dart2dsl/lib/dartjs/core-types/bigInt.js:2 · REDACTED:1656 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (21 lines × 5 locations) · ×1
  • Duplicated block (21 lines × 5 locations) dart2js/core-types/bigInt.js:6 — dart2js/core-types/bigInt.js:6 · REDACTED:1866 · REDACTED:1860 · REDACTED:1860 · +1 more site(s) not listed — the 5 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication · Duplicated block (17 lines × 2 locations) · ×1
  • Duplicated block (17 lines × 2 locations) fair_extension/assets/plugin/fair_url_launcher_plugin.js:13 — fair_extension/assets/plugin/fair_url_launcher_plugin.js:13 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:31 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
R10 · Code Duplication · Duplicated block (16 lines × 6 locations) · ×1
  • Duplicated block (16 lines × 6 locations) REDACTED:599 — REDACTED:599 · REDACTED:200 · REDACTED:593 · REDACTED:590 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (16 lines × 2 locations) · ×1
  • Duplicated block (16 lines × 2 locations) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:480 — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:480 · fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:649 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (15 lines × 3 locations) · ×1
  • Duplicated block (15 lines × 3 locations) fair_extension/assets/plugin/fair_navigator_plugin.js:13 — fair_extension/assets/plugin/fair_navigator_plugin.js:13 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:5 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:23 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (13 lines × 3 locations) · ×1
  • Duplicated block (13 lines × 3 locations) fair_extension/assets/plugin/fair_toast_plugin.js:17 — fair_extension/assets/plugin/fair_toast_plugin.js:17 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:15 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:33 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (12 lines × 36 locations) · ×1
  • Duplicated block (12 lines × 36 locations) REDACTED:4 — REDACTED:4 · REDACTED:278 · REDACTED:862 · REDACTED:1345 · +32 more site(s) not listed — the 15 copies are spread across 7 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication · Duplicated block (12 lines × 3 locations) · ×1
  • Duplicated block (12 lines × 3 locations) fair_extension/assets/plugin/fair_image_picker.js:11 — fair_extension/assets/plugin/fair_image_picker.js:11 · fair_extension/assets/plugin/fair_net_plugin.js:15 · fair_extension/assets/plugin/fair_permission.js:11 — the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication · Duplicated block (10 lines × 5 locations) · ×1
  • Duplicated block (10 lines × 5 locations) fair_extension/assets/plugin/fair_url_launcher_plugin.js:41 — fair_extension/assets/plugin/fair_url_launcher_plugin.js:41 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:52 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:63 · fair_extension/assets/plugin/fair_url_launcher_plugin.js:74 · +1 more site(s) not listed — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
R10 · Code Duplication · Duplicated block (9 lines × 6 locations) · ×1
  • Duplicated block (9 lines × 6 locations) fair/assets/fair_core/fair_common_plugin.js:16 — fair/assets/fair_core/fair_common_plugin.js:16 · fair_online/fair_online_service/fairDir/empty/project/empty_project/assets/plugin/fair_net_plugin.js:17 · fair_online/fair_online_service/fairDir/empty/project/empty_project/web/plugin/fair_net_plugin.js:17 · fair_online/fair_online_service/fairDir/template/project/fair_samples/assets/plugin/fair_net_plugin.js:17 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (9 lines × 14 locations) · ×1
  • Duplicated block (9 lines × 14 locations) fair_extension/assets/plugin/fair_log_plugin.js:3 — fair_extension/assets/plugin/fair_log_plugin.js:3 · fair_extension/assets/plugin/fair_navigator_plugin.js:11 · fair_extension/assets/plugin/fair_navigator_plugin.js:32 · fair_extension/assets/plugin/fair_navigator_plugin.js:44 · +10 more site(s) not listed — the 5 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication · Duplicated block (9 lines × 2 locations) · ×1
  • Duplicated block (9 lines × 2 locations) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:509 — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:509 · fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:834 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (8 lines × 2 locations) · ×1
  • Duplicated block (8 lines × 2 locations) fair_online/fair_online/web/scripts/codemirror/addon/scroll/simplescrollbars.js:4 — fair_online/fair_online/web/scripts/codemirror/addon/scroll/simplescrollbars.js:4 · fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:4 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication · Duplicated block (6 lines × 2 locations) · ×1
  • Duplicated block (6 lines × 2 locations) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:733 — fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:733 · fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:739 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R2 · Cyclomatic Complexity · Complex function js_beautify (cyclomatic 90, cognitive 167) · ×1
  • Complex function js_beautify (cyclomatic 90, cognitive 167) fair_online/fair_online/web/scripts/jsbeautify.js:2 — js_beautify has cyclomatic complexity 90 and cognitive complexity 167; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function get_next_token (cyclomatic 55, cognitive 88) · ×1
  • Complex function get_next_token (cyclomatic 55, cognitive 88) fair_online/fair_online/web/scripts/jsbeautify.js:77 — get_next_token has cyclomatic complexity 55 and cognitive complexity 88; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function tokenBase (cyclomatic 43, cognitive 57) · ×1
  • Complex function tokenBase (cyclomatic 43, cognitive 57) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:66 — tokenBase has cyclomatic complexity 43 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function statement (cyclomatic 40, cognitive 46) · ×1
  • Complex function statement (cyclomatic 40, cognitive 46) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:369 — statement has cyclomatic complexity 40 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function indent (cyclomatic 36, cognitive 42) · ×1
  • Complex function indent (cyclomatic 36, cognitive 42) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:896 — indent has cyclomatic complexity 36 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function findFatArrow (cyclomatic 23, cognitive 39) · ×1
  • Complex function findFatArrow (cyclomatic 23, cognitive 39) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:185 — findFatArrow has cyclomatic complexity 23 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function expressionInner (cyclomatic 22, cognitive 25) · ×1
  • Complex function expressionInner (cyclomatic 22, cognitive 25) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:431 — expressionInner has cyclomatic complexity 22 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function maybeoperatorNoComma (cyclomatic 21, cognitive 23) · ×1
  • Complex function maybeoperatorNoComma (cyclomatic 21, cognitive 23) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:460 — maybeoperatorNoComma has cyclomatic complexity 21 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function classBody (cyclomatic 21, cognitive 17) · ×1
  • Complex function classBody (cyclomatic 21, cognitive 17) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:778 — classBody has cyclomatic complexity 21 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function objprop (cyclomatic 19, cognitive 20) · ×1
  • Complex function objprop (cyclomatic 19, cognitive 20) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:523 — objprop has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function typeexpr (cyclomatic 18, cognitive 15) · ×1
  • Complex function typeexpr (cyclomatic 18, cognitive 15) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:611 — typeexpr has cyclomatic complexity 18 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function update (cyclomatic 15, cognitive 20) · ×1
  • Complex function update (cyclomatic 15, cognitive 20) fair_online/fair_online/web/scripts/codemirror/addon/scroll/simplescrollbars.js:105 — update has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _invokeMethod (cyclomatic 11, cognitive 40) · ×1
  • Complex function _invokeMethod (cyclomatic 11, cognitive 40) REDACTED:44 — _invokeMethod has cyclomatic complexity 11 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function parseJS (cyclomatic 11, cognitive 19) · ×1
  • Complex function parseJS (cyclomatic 11, cognitive 19) fair_online/fair_online/web/scripts/codemirror/mode/javascript/javascript.js:244 — parseJS has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function tokenStringHelper (cyclomatic 11, cognitive 9) · ×1
  • Complex function tokenStringHelper (cyclomatic 11, cognitive 9) fair_online/fair_online/web/scripts/codemirror/mode/dart/dart.js:100 — tokenStringHelper has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1820 lines of code REDACTED:1 — REDACTED has 1820 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1820 lines of code REDACTED:1 — REDACTED has 1820 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1820 lines of code REDACTED:1 — REDACTED has 1820 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1813 lines of code REDACTED:1 — REDACTED has 1813 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1806 lines of code REDACTED:1 — REDACTED has 1806 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1592 lines of code REDACTED:1 — REDACTED has 1592 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R6 · Tooling · No test, lint or typecheck script · ×1
  • No test, lint or typecheck script — test ✗ · lint ✗ · typecheck ✗ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
R7 · Dead Code · Dead file (~17 LoC) · ×1
  • Dead file (~17 LoC) fair_online/fair_online/web/scripts/check_localstorage.js — no import path from any entry point (76 application, 0 tooling, 22 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~11 LoC) · ×1
  • Dead file (~11 LoC) fair_online/fair_online/web/scripts/ga.js — no import path from any entry point (76 application, 0 tooling, 22 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×1
  • Recursive walk over a caller-supplied document has no depth cap dart2dsl/lib/fairdsl/fair_ast_node.dart:1154 — `fromAst` is public and takes `Map ? ast` from its caller, and it calls itself at line 1154 (`fromAst`) with a piece of `ast` — and nowhere in `fromAst` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. `jsonDecode` sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws `StackOverflowError` from about 20,000 levels — 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser's stack). That is an `Error`, not an `Exception`: an `on Exception catch` around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through `fromAst` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
X20 · Mistyped argument guard · Argument guard throws the exception its own condition disproves · ×1
  • Argument guard throws the exception its own condition disproves fair/android/src/main/java/com/wuba/fair/utils/FairFileUtil.java:28 — The guard on line 27 rejects `file` and line 28 reports that rejection as `NullPointerException` — but the condition's own test `TextUtils.isEmpty(file)` is true of a value that is NOT null: it is satisfied by an EMPTY `file`, and on that path `file` was already proven non-null by the very expression that decided it. So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `NullPointerException` to handle a real null handles the empty case with it, and whoever reads the stack trace later is told a failure the source disproves. Throw `IllegalArgumentException` for the empty case, or split the guard and throw each on its own condition.
X27 · Collection changed while being enumerated · Collection is structurally changed while it is being enumerated · ×1
  • Collection is structurally changed while it is being enumerated fair_online/fair_online/lib/editor/completion.dart:153 — `completions` is enumerated directly, and line 155 calls `completions.removeWhere(…)` inside the loop body — a structural change to a `List`. Dart's collection iterators check that the collection has not changed since the loop began, so the next `moveNext()` throws `ConcurrentModificationError` (an unmodifiable or fixed-length one rejects the change itself with `UnsupportedError`): every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen.
Minor — 341 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×273
  • Orphaned file flutter_version/flutter_1_17_3/lib/src/widgets/$$m.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 flutter_version/flutter_1_20_4/lib/src/widgets/$$m.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 flutter_version/flutter_1_22_6/lib/src/widgets/$$w.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 flutter_version/flutter_1_20_4/lib/src/widgets/$$w.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 flutter_version/flutter_1_12_13/lib/src/widgets/$$m.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 flutter_version/flutter_1_22_4/lib/src/widgets/$$w.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 flutter_version/flutter_1_22_6/lib/src/widgets/$$c.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 flutter_version/flutter_1_22_4/lib/src/widgets/$$c.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 flutter_version/flutter_1_17_3/lib/src/widgets/$$w.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 flutter_version/flutter_1_12_13/lib/src/widgets/$$w.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 dart2js/lib/src/convertor.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 dart2dsl/lib/fairdsl/fair_ast_node.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 test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranean_diet_view.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 test_case/best_flutter_ui_templates/lib/fitness_app/ui_view/mediterranesn_diet_view.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 flutter_version/flutter_1_20_4/lib/src/widgets/$$c.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 flutter_version/flutter_1_17_3/lib/src/widgets/$$c.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 flutter_version/flutter_1_12_13/lib/src/widgets/$$c.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 fair_online/fair_online_service/lib/src/project/fair_project.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 fair_online/fair_online_service/lib/src/analysis_server.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 fair_online/fair_online_service/lib/src/common_server_impl.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 fair/lib/src/render/builder.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 dart2dsl/lib/src/widget.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 test_case/best_flutter_ui_templates/lib/fair/component/my_diary/mediterranean_diet.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 fair/lib/src/internal/flexbuffer/builder.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 test_case/adobe_xd/lib/Home.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.
  • + 248 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate dart2js/lib/src/convertor.dart:383 — `!callSuperConstructorImplicitly && !methodDeclaration.isRedirectConstructor && !methodDeclaration.isFactory` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/ClassDeclarationVisitor.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 dart2js/lib/src/convertor.dart:1585 — `!code.endsWith(';') && !code.endsWith('}')` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/covert/convertStatements.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 dart2js/lib/src/convertor.dart:189 — `!element.isStatic && element.name == constructorAlias` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/declaration/ClassDeclarationData.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 dart2js/lib/src/convertor.dart:480 — `!excludeMethods.contains(element.name.toString()) && element.returnType.toString() != 'Widget'` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/WidgetStateGenerator.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 dart2js/lib/src/convertor.dart:118 — `!val && (_isFactory || _isGenerativeConstructor)` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/declaration/MethodDeclarationData.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 dart2js/lib/src/convertor.dart:1739 — `(str[i] == '\'' || str[i] == '"' || str[i] == '`') && (i < 1 || str[i - 1] != '\\')` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/utils/uglify.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 dart2js/lib/src/convertor.dart:1743 — `(str[i] == '\'' || str[i] == '"' || str[i] == '`') && (str[i - 1] != '\\')` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/utils/uglify.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 fair_online/fair_online/lib/editor/component/editor_panel_widget.dart:111 — `_consoleMessageList != consoleMessageList && value.length > 0` appears character-identically in 2 files — fair_online/fair_online/lib/editor/component/editor_panel_widget.dart, fair_online/fair_online/lib/views/fair_dsl_editor/console_panel.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 dart2js/lib/src/convertor.dart:699 — `argumentList.isEmpty && namedArgumentList.isEmpty && optionalArgumentList.isEmpty` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/node/FunctionDeclarationNode.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 dart2js/lib/src/convertor.dart:512 — `classDeclarationData.className != null && classDeclarationData.className == tempClassDeclaration.className` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/WidgetStateGenerator.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 fair_online/fair_online_service/lib/src/compiler.dart:176 — `compiledJS != null && compiledJS!.isNotEmpty` appears character-identically in 2 files — fair_online/fair_online_service/lib/src/compiler.dart, fair_online/fair_online_service/lib/src/fair_compiler.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 dart2js/lib/src/convertor.dart:1653 — `data?.abtractedInitializer != null && data!.abtractedInitializer.isNotEmpty` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/covert/convertFunctionFromData.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 dart2js/lib/src/convertor.dart:975 — `default_ != null && default_!.isNotEmpty` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/node/SwitchStatementNode.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 dart2js/lib/src/convertor.dart:525 — `element is MethodDeclaration && element.name.toString() == 'createState'` appears character-identically in 3 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/WidgetStateGenerator.dart, fair_online/fair_online_service/lib/src/fair_plugin/fair_visitor.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 dart2js/lib/src/convertor.dart:188 — `element.isFactory == true && element.name == factoryConstructorAlias` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/declaration/ClassDeclarationData.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 dart2js/lib/src/convertor.dart:1642 — `element.isStatic && !element.isFactory && !element.isGenerativeConstructor` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/covert/convertFunctionFromData.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 dart2js/lib/src/convertor.dart:581 — `element.k3 != null && element.k3!.isNotEmpty` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/WidgetStateGenerator.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 dart2js/lib/src/convertor.dart:1578 — `end >= 0 && RegExp(r'[\s\r\n;]', multiLine: false).hasMatch(res[end])` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/covert/convertExpression.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 dart2js/lib/src/convertor.dart:312 — `isDataBean && ['fromJson', 'toJson'].contains(element.name.lexeme)` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/ClassDeclarationVisitor.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 dart2js/lib/src/convertor.dart:332 — `isDataBean && ['fromJson', 'toJson'].contains(element.name?.lexeme)` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/ClassDeclarationVisitor.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 dart2js/lib/src/convertor.dart:1540 — `lexeme.length > 3 && lexeme.substring(0, 3) == "'''"` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/handle/handleStringTemplate.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 dart2js/lib/src/convertor.dart:770 — `namedArgumentList.isNotEmpty || argumentList.isNotEmpty` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/node/FunctionDeclarationNode.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 dart2js/lib/src/convertor.dart:515 — `node.extendsClause == null || node.extendsClause!.superclass.toString() == 'Object'` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/WidgetStateGenerator.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 dart2js/lib/src/convertor.dart:1222 — `param is DefaultFormalParameter && (param.defaultValue != null)` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/visitor/SimpleFunctionGenerator.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 dart2js/lib/src/convertor.dart:1063 — `parentClassName == null || parentClassName!.isEmpty` appears character-identically in 2 files — dart2js/lib/src/convertor.dart, dart2js/lib/src/node/MethodInvokeStatementNode.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.
D30 · Dependency Vulnerabilities · Low CVE · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D34 · Knowledge Freshness · Most significant orphaned file · ×3
  • Most significant orphaned file test_case/flutter_libs_app/lib/google_fonts/fair_google_fonts.dart:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file flutter_version/flutter_1_22_4/lib/src/widgets/$$m.dart:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file flutter_version/flutter_1_22_6/lib/src/widgets/$$m.dart:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
IC1 · Incompleteness & stubs · Empty method body · ×3
  • Empty method body fair/lib/src/runtime/fair_runtime_impl.dart:47 — `setJsLoadListener` has an empty body — confirm it's an intentional no-op and not an unfinished method.
  • Empty method body fair/lib/src/widget.dart:300 — `initState` has an empty body — confirm it's an intentional no-op and not an unfinished method.
  • Empty method body fair_online/fair_online_service/lib/src/customcode/custom_code.dart:104 — `updateComponentConfig` has an empty body — confirm it's an intentional no-op and not an unfinished method.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found test_case/sugar_demo_tabbar/lib/main.dart:8 — 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 `test_case/sugar_demo_tabbar/lib/main.dart` makes this repository a deployable product (line 8).
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 3 of 32 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/10. The most over is `fair_online/fair_online` (40365 LoC, 248 module-visible types across 41 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D31 · IaC & Container Security · Low IaC · ×1
  • REDACTED
D34 · Knowledge Freshness · Dormant codebase · ×1
  • Dormant codebase — 276 of 276 significant files have no living knowledge — the codebase as a whole is dormant, not 276 separate risks. Counted over 276 of the 846 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
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.
P10 · Library API & versioning · Implementation type on the public API · ×1
  • Implementation type on the public API fair/lib/src/internal/bind_data.dart:17 — 25 public types in `repository.src` are marked as implementation by their own namespace, folder or name: `BindingData` (fair/lib/src/internal/bind_data.dart:17, `internal`), `RuntimeError` (fair/lib/src/internal/bind_data.dart:166, `internal`), `FairBundle` (fair/lib/src/internal/bundle_provider.dart:20, `internal`), `FairBundlePathCheck` (fair/lib/src/internal/bundle_provider.dart:29, `internal`), `FairBundleProvider` (fair/lib/src/internal/bundle_provider.dart:44, `internal`), `WarningWidget` (fair/lib/src/internal/error_tips.dart:12, `internal`), `WidgetData` (fair/lib/src/internal/fair_bundle_generated.dart:8, `internal`), `WidgetDataBuilder` (fair/lib/src/internal/fair_bundle_generated.dart:40, `internal`), and 17 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 4/12 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `dart2dsl`, `dart2js`, `doc_server`, `fair_online/fair_online/ios`, `fair_online/fair_online_service/fairDir/empty/project/empty_project` and 3 more.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST REDACTED:6 — 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 package.json:14 — `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`.
P6 · Release Hygiene · Published package `fair_provider` commits its lockfile · ×1
  • Published package `fair_provider` commits its lockfile fair_provider/pubspec.lock:1 — `fair_provider/pubspec.yaml` publishes `fair_provider` 0.0.1+1 to a pub registry, and `fair_provider/pubspec.lock` is committed beside it. pub's guidance splits on exactly this: an application commits `pubspec.lock` because the resolution it records is the one that runs, and a package does not, because no consumer ever uses it — they resolve your declared version ranges against their own dependency set. The cost is not tidiness: the committed lockfile is what your own CI resolves against, so the ranges you publish are never exercised, and the first consumer to resolve a newer compatible version is the one who discovers whether the range was right. Remove it with `git rm --cached pubspec.lock` and add `pubspec.lock` to `.gitignore`.
R7 · Dead Code · Unused module-local declaration 'requestFingerId' · ×1
  • Unused module-local declaration 'requestFingerId' fair_online/fair_online/web/scripts/finger_print.js:2 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
X5 · Nullable reference types · Sound null safety is not on in every Dart package · ×1
  • Sound null safety is not on in every Dart package — 20/26 of this repository's Dart packages (a `pubspec.yaml` with product Dart beneath it) declare a language version of 2.12 or above in `environment: sdk:`, which is what turns sound null safety on. A pubspec with no SDK constraint, or a lower bound below 2.12, runs its code unsound: every type admits null, and a null reaching a method call throws `NoSuchMethodError` with nothing in the analyzer having said so.

Appendix B — Reproduction & audit trail

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

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-1254bde31e3a409bbf049dbd0d11d139/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-1254bde31e3a409bbf049dbd0d11d139/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 --exclude fair_online/fair_online/lib/editor/src --exclude fair_online/fair_online_service/lib/src/protos --exclude test_case/adobe_xd/lib/src --exclude test_case/flutter_component/lib/src --exclude test_case/flutter_slidable/lib/src .196artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .82artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .3artifacts/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 01a1d332-d111-7eef-bcc1-49b1925c1973 · 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