dart-lang / string_scanner
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
  • 25% duplication:
    • 516 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 132 duplicated lines
  • 5 duplicates
system25% (132 lines)
Duplication per Extension
dart30% (132 lines)
Duplication per Component (primary)
lib/src32% (132 lines)
lib0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
25 x 2 lib/src
lib/src
eager_span_scanner.dart
line_scanner.dart
34:65 (29%)
39:70 (32%)
view
20 x 2 lib/src
lib/src
eager_span_scanner.dart
line_scanner.dart
71:99 (23%)
76:104 (26%)
view
8 x 2 lib/src
lib/src
relative_span_scanner.dart
span_scanner.dart
45:55 (11%)
27:37 (13%)
view
7 x 2 lib/src
lib/src
relative_span_scanner.dart
span_scanner.dart
112:119 (9%)
124:131 (11%)
view
6 x 2 lib/src
lib/src
relative_span_scanner.dart
span_scanner.dart
90:98 (8%)
103:111 (10%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
22 x 2 lib/src
lib/src
line_scanner.dart
eager_span_scanner.dart
49:73 
44:68 
view
7 x 2 lib/src
lib/src
line_scanner.dart
eager_span_scanner.dart
93:100 
88:95 
view
6 x 2 lib/src
lib/src
relative_span_scanner.dart
span_scanner.dart
49:56 
31:38 
view