dart-lang / path
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
  • 4% duplication:
    • 1,130 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 52 duplicated lines
  • 4 duplicates
system4% (52 lines)
Duplication per Extension
dart4% (52 lines)
Duplication per Component (primary)
lib/src3% (27 lines)
lib17% (13 lines)
lib/src/style5% (12 lines)
example0% (0 lines)
ROOT0% (0 lines)
benchmark0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
7 x 2 lib
lib/src
path.dart
context.dart
257:263 (9%)
224:230 (1%)
view
7 x 2 lib/src
lib/src
path_map.dart
path_set.dart
30:36 (43%)
33:39 (13%)
view
6 x 2 lib
lib/src
path.dart
context.dart
119:124 (8%)
77:82 (1%)
view
6 x 2 lib/src/style
lib/src/style
posix.dart
url.dart
13:21 (13%)
13:21 (11%)
view