dart-lang / io
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
  • 9% duplication:
    • 666 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 65 duplicated lines
  • 6 duplicates
system9% (65 lines)
Duplication per Extension
dart10% (65 lines)
Duplication per Component (primary)
lib/src10% (65 lines)
lib0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
17 x 2 lib/src
lib/src
process_manager.dart
process_manager.dart
70:86 (9%)
98:114 (9%)
view
8 x 2 lib/src
lib/src
process_manager.dart
process_manager.dart
79:86 (4%)
138:145 (4%)
view
8 x 2 lib/src
lib/src
process_manager.dart
process_manager.dart
107:114 (4%)
138:145 (4%)
view
8 x 2 lib/src
lib/src
process_manager.dart
process_manager.dart
243:250 (4%)
255:262 (4%)
view
7 x 2 lib/src
lib/src
process_manager.dart
process_manager.dart
70:76 (3%)
129:135 (3%)
view
7 x 2 lib/src
lib/src
process_manager.dart
process_manager.dart
98:104 (3%)
129:135 (3%)
view