flutter / web_installers
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 10% duplication:
    • 563 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 58 duplicated lines
  • 3 duplicates
system10% (58 lines)
Duplication per Extension
dart11% (58 lines)
Duplication per Component (primary)
web_drivers/lib14% (58 lines)
web_drivers/lib/src0% (0 lines)
web_drivers0% (0 lines)
simulators/lib0% (0 lines)
simulators0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
11 x 2 packages/web_drivers/lib
packages/web_drivers/lib
chrome_driver_installer.dart
firefox_driver_installer.dart
46:67 (8%)
50:71 (10%)
view
11 x 2 packages/web_drivers/lib
packages/web_drivers/lib
chrome_driver_command.dart
firefox_driver_command.dart
19:29 (25%)
19:29 (24%)
view
7 x 2 packages/web_drivers/lib
packages/web_drivers/lib
chrome_driver_installer.dart
firefox_driver_installer.dart
175:182 (5%)
114:121 (6%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 packages/web_drivers/lib
packages/web_drivers/lib
firefox_driver_installer.dart
chrome_driver_installer.dart
113:126 
174:187 
view
7 x 2 packages/web_drivers/lib
packages/web_drivers/lib
firefox_driver_installer.dart
chrome_driver_installer.dart
62:69 
58:65 
view