dart-lang / stream_transform
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
  • 15% duplication:
    • 774 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 117 duplicated lines
  • 8 duplicates
system15% (117 lines)
Duplication per Extension
dart16% (117 lines)
Duplication per Component (primary)
lib/src16% (117 lines)
lib0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
18 x 2 lib/src
lib/src
combine_latest.dart
merge.dart
218:240 (13%)
80:102 (21%)
view
13 x 2 lib/src
lib/src
merge.dart
merge.dart
80:97 (15%)
160:177 (15%)
view
13 x 2 lib/src
lib/src
combine_latest.dart
merge.dart
218:235 (9%)
160:177 (15%)
view
9 x 2 lib/src
lib/src
async_map.dart
where.dart
99:108 (20%)
47:56 (39%)
view
7 x 2 lib/src
lib/src
combine_latest.dart
merge.dart
182:189 (5%)
63:70 (8%)
view
6 x 2 lib/src
lib/src
async_map.dart
where.dart
92:97 (13%)
40:45 (26%)
view
6 x 2 lib/src
lib/src
from_handlers.dart
take_until.dart
35:41 (14%)
37:43 (17%)
view
6 x 2 lib/src
lib/src
concatenate.dart
take_until.dart
74:79 (11%)
45:50 (17%)
view