microsoft / Windows-appsample-photo-editor
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,566 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 74 duplicated lines
  • 11 duplicates
system4% (74 lines)
Duplication per Extension
xaml10% (74 lines)
Duplication per Component (primary)
PhotoEditor4% (74 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
8 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
596:603 (1%)
616:623 (1%)
view
7 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
567:574 (1%)
641:648 (1%)
view
7 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
695:704 (1%)
727:736 (1%)
view
6 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
MainPage.xaml
27:32 (<1%)
27:32 (6%)
view
6 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
641:647 (<1%)
695:701 (<1%)
view
6 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
598:603 (<1%)
671:676 (<1%)
view
6 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
780:785 (<1%)
792:797 (<1%)
view
6 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
618:623 (<1%)
671:676 (<1%)
view
6 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
641:647 (<1%)
727:733 (<1%)
view
6 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
567:573 (<1%)
695:701 (<1%)
view
6 x 2 PhotoEditor
PhotoEditor
xaml
DetailPage.xaml
DetailPage.xaml
567:573 (<1%)
727:733 (<1%)
view