dart-lang / pana
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:
    • 5,386 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 150 duplicated lines
  • 5 duplicates
system2% (150 lines)
Duplication per Extension
dart2% (150 lines)
Duplication per Component (primary)
lib/src/batch41% (138 lines)
lib/src/report1% (12 lines)
lib0% (0 lines)
lib/src0% (0 lines)
lib/src/tag0% (0 lines)
lib/src/license_detection0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
45 x 2 lib/src/batch
lib/src/batch
batch_compare_command.dart
batch_run_command.dart
93:155 (39%)
72:134 (46%)
view
9 x 2 lib/src/batch
lib/src/batch
batch_compare_command.dart
batch_run_command.dart
5:16 (7%)
5:16 (9%)
view
8 x 2 lib/src/batch
lib/src/batch
batch_compare_command.dart
batch_run_command.dart
40:49 (7%)
36:45 (8%)
view
7 x 2 lib/src/batch
lib/src/batch
batch_compare_command.dart
batch_run_command.dart
27:33 (6%)
27:33 (7%)
view
6 x 2 lib/src/report
lib/src/report
multi_platform.dart
null_safety.dart
5:13 (6%)
5:13 (8%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
21 x 2 lib/src/batch
lib/src/batch
batch_compare_command.dart
batch_run_command.dart
134:156 
113:135 
view
13 x 2 lib/src/batch
lib/src/batch
batch_compare_command.dart
batch_run_command.dart
109:122 
88:101 
view
8 x 2 lib/src/batch
lib/src/batch
batch_compare_command.dart
batch_run_command.dart
124:132 
103:111 
view