dart-lang / test
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
  • 55% duplication:
    • 90 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 50 duplicated lines
  • 2 duplicates
system55% (50 lines)
Duplication per Extension
yaml55% (50 lines)
Duplication per Component (primary)
integration_tests/nnbd_opted_out89% (25 lines)
integration_tests/nnbd_opted_in89% (25 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G integration_tests/nnbd_opted_in integration_tests/nnbd_opted_in integration_tests/nnbd_opted_out integration_tests/nnbd_opted_out integration_tests/nnbd_opted_in--integration_tests/nnbd_opted_out 50

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
15 x 2 integration_tests/nnbd_opted_in
integration_tests/nnbd_opted_out
mono_pkg.yaml
mono_pkg.yaml
1:16 (100%)
1:16 (100%)
view
10 x 2 integration_tests/nnbd_opted_in
integration_tests/nnbd_opted_out
pubspec.yaml
pubspec.yaml
4:13 (76%)
4:13 (76%)
view