dart-lang / yaml
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
  • 3% duplication:
    • 2,313 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 72 duplicated lines
  • 7 duplicates
system3% (72 lines)
Duplication per Extension
dart3% (72 lines)
Duplication per Component (primary)
lib/src2% (60 lines)
lib21% (12 lines)
example0% (0 lines)
ROOT0% (0 lines)
benchmark0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
7 x 2 lib/src
lib/src
yaml_node_wrapper.dart
yaml_node_wrapper.dart
138:147 (6%)
172:181 (6%)
view
7 x 2 lib/src
lib/src
event.dart
event.dart
128:136 (7%)
145:153 (7%)
view
7 x 2 lib/src
lib/src
scanner.dart
scanner.dart
259:265 (<1%)
282:288 (<1%)
view
6 x 2 lib/src
lib/src
event.dart
event.dart
105:110 (6%)
145:150 (6%)
view
6 x 2 lib
lib
yaml.dart
yaml.dart
100:106 (10%)
122:128 (10%)
view
6 x 2 lib/src
lib/src
event.dart
event.dart
105:110 (6%)
128:133 (6%)
view
6 x 2 lib/src
lib/src
scanner.dart
scanner.dart
251:256 (<1%)
274:279 (<1%)
view