microsoft / XmlNotepad
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
  • 7% duplication:
    • 20,800 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,648 duplicated lines
  • 414 duplicates
system7% (1,648 lines)
Duplication per Extension
htm44% (871 lines)
cs3% (687 lines)
html48% (54 lines)
xslt16% (36 lines)
Duplication per Component (primary)
src/Application16% (1,088 lines)
src/XmlNotepad4% (403 lines)
src/WpfApp12% (73 lines)
src/Model1% (64 lines)
src/Updates1% (12 lines)
src/FontBuilder24% (8 lines)
ROOT0% (0 lines)
src/BuildTaskTests0% (0 lines)
src/BuildTasks0% (0 lines)
src0% (0 lines)
src/Version0% (0 lines)
src/XmlNotepadSetup0% (0 lines)
src/XmlStats0% (0 lines)
tools0% (0 lines)

Duplication Between Components (50+ lines)

G src/Application src/Application src/WpfApp src/WpfApp src/Application--src/WpfApp 76 src/XmlNotepad src/XmlNotepad src/WpfApp--src/XmlNotepad 70

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 414 duplicates...
Size#FoldersFilesLinesCode
35 x 2 src/Application/Help/help
src/Application/Help/help
clipboard.htm
updates.htm
1:57 (51%)
1:57 (43%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
dragdrop.htm
schemas.htm
1:57 (53%)
1:57 (54%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
customeditors.htm
dragdrop.htm
1:57 (47%)
1:57 (53%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
intellisense.htm
schemas.htm
1:57 (53%)
1:57 (54%)
view
35 x 2 src/Application/Help
src/Application/Help
design.htm
install.htm
1:57 (21%)
1:57 (42%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
overview.htm
schemas.htm
1:57 (43%)
1:57 (54%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
menus.htm
schemas.htm
1:57 (31%)
1:57 (54%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
find.htm
menus.htm
1:57 (47%)
1:57 (31%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
find.htm
validation.htm
1:57 (47%)
1:57 (56%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
find.htm
overview.htm
1:57 (47%)
1:57 (43%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
intellisense.htm
overview.htm
1:57 (53%)
1:57 (43%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
dragdrop.htm
find.htm
1:57 (53%)
1:57 (47%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
clipboard.htm
options.htm
1:57 (51%)
1:57 (45%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
customeditors.htm
updates.htm
1:57 (47%)
1:57 (43%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
menus.htm
updates.htm
1:57 (31%)
1:57 (43%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
overview.htm
validation.htm
1:57 (43%)
1:57 (56%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
customeditors.htm
find.htm
1:57 (47%)
1:57 (47%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
clipboard.htm
dragdrop.htm
1:57 (51%)
1:57 (53%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
clipboard.htm
schemas.htm
1:57 (51%)
1:57 (54%)
view
35 x 2 src/Application/Help/help
src/Application/Help/help
options.htm
schemas.htm
1:57 (45%)
1:57 (54%)
view
Duplicated Units
The list of top 13 duplicated units.
See data for all 13 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/XmlNotepad
src/XmlNotepad
NodeTextView.cs
TreeView.cs
66:78 
80:92 
view
10 x 2 src/WpfApp/Utilities
src/XmlNotepad
RecentFilesComboBox.cs
RecentFilesMenu.cs
26:36 
30:40 
view
8 x 2 src/Model
src/Model
Checker.cs
Checker.cs
536:544 
546:554 
view
8 x 2 src/XmlNotepad
src/XmlNotepad
NodeTextView.cs
TreeView.cs
525:533 
433:441 
view
8 x 2 src/XmlNotepad
src/XmlNotepad
XsltControl.cs
XsltControl.cs
138:146 
192:200 
view
7 x 2 src/Application
src/Application
FormAbout.cs
FormAnalytics.cs
40:47 
16:23 
view
7 x 2 src/Application
src/XmlNotepad
FormCsvImport.Designer.cs
XsltControl.Designer.cs
14:21 
15:22 
view
7 x 2 src/Model
src/Model
Settings.cs
XmlCache.cs
298:305 
421:428 
view
7 x 2 src/WpfApp/Utilities
src/XmlNotepad
RecentFilesComboBox.cs
RecentFilesMenu.cs
110:117 
122:129 
view
7 x 2 src/XmlNotepad
src/XmlNotepad
NodeTextView.cs
TreeView.cs
460:467 
696:703 
view
7 x 2 src/XmlNotepad
src/XmlNotepad
XmlTreeView.cs
XmlTreeView.cs
385:392 
394:401 
view
6 x 2 src/WpfApp
src/WpfApp
MainWindow.xaml.cs
MainWindow.xaml.cs
109:115 
117:123 
view
6 x 2 src/XmlNotepad
src/XmlNotepad
NodeTextView.cs
TreeView.cs
452:458 
688:694 
view