dart-lang / characters
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
  • 8% duplication:
    • 1,558 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 140 duplicated lines
  • 173 duplicates
system8% (140 lines)
Duplication per Extension
dart9% (140 lines)
Duplication per Component (primary)
lib/src/grapheme_clusters22% (128 lines)
lib/src1% (12 lines)
lib0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
benchmark0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 173 duplicates...
Size#FoldersFilesLinesCode
7 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
206:212 (2%)
213:219 (2%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
251:256 (1%)
269:274 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
245:250 (1%)
310:315 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
257:262 (1%)
269:274 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
178:183 (1%)
190:195 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
178:183 (1%)
223:228 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
257:262 (1%)
263:268 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
178:183 (1%)
310:315 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
184:189 (1%)
269:274 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
190:195 (1%)
269:274 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
184:189 (1%)
275:280 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
239:244 (1%)
257:262 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
263:268 (1%)
310:315 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
269:274 (1%)
310:315 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
251:256 (1%)
275:280 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
172:177 (1%)
196:201 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
190:195 (1%)
263:268 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
223:228 (1%)
304:309 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
196:201 (1%)
223:228 (1%)
view
6 x 2 lib/src/grapheme_clusters
lib/src/grapheme_clusters
table.dart
table.dart
269:274 (1%)
304:309 (1%)
view