dart-lang / http2
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
  • 2% duplication:
    • 3,163 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 84 duplicated lines
  • 6 duplicates
system2% (84 lines)
Duplication per Extension
dart2% (84 lines)
Duplication per Component (primary)
lib/src/frames6% (46 lines)
lib/src/streams2% (14 lines)
lib/src2% (12 lines)
lib/src/flowcontrol2% (12 lines)
lib0% (0 lines)
lib/src/hpack0% (0 lines)
lib/src/async_utils0% (0 lines)
lib/src/ping0% (0 lines)
lib/src/settings0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
10 x 2 lib/src/frames
lib/src/frames
frame_types.dart
frame_types.dart
115:127 (4%)
236:248 (4%)
view
7 x 2 lib/src/streams
lib/src/streams
stream_handler.dart
stream_handler.dart
174:180 (1%)
185:191 (1%)
view
7 x 2 lib/src/frames
lib/src/frames
frame_defragmenter.dart
frame_defragmenter.dart
44:51 (14%)
64:71 (14%)
view
6 x 2 lib/src
lib/src
connection.dart
connection.dart
216:221 (2%)
224:229 (2%)
view
6 x 2 lib/src/flowcontrol
lib/src/flowcontrol
connection_queues.dart
stream_queues.dart
68:75 (3%)
86:93 (3%)
view
6 x 2 lib/src/frames
lib/src/frames
frame_writer.dart
frame_writer.dart
87:95 (3%)
103:111 (3%)
view