microsoft / redux-dag-history
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
  • 9% duplication:
    • 4,875 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 482 duplicated lines
  • 31 duplicates
system9% (482 lines)
Duplication per Extension
tsx15% (390 lines)
ts3% (92 lines)
Duplication per Component (primary)
packages/dag-history-component/src/components13% (336 lines)
packages/dag-history-component/stories/components21% (82 lines)
packages/redux-dag-history/src/DagHistory11% (40 lines)
packages/dag-history-component/src/state6% (24 lines)
packages/dag-history-component/src0% (0 lines)
packages/dag-history-component/src/util0% (0 lines)
packages/dag-history-component/stories0% (0 lines)
packages/dag-history-component0% (0 lines)
packages/example/src0% (0 lines)
packages/example/src/components0% (0 lines)
packages/example/src/persister0% (0 lines)
packages/example/src/state0% (0 lines)
packages/example/src/util0% (0 lines)
packages/redux-dag-history/src0% (0 lines)
ROOT0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 31 duplicates...
Size#FoldersFilesLinesCode
65 x 2 packages/dag-history-com...ents/StateListContainer
packages/dag-history-com...onents/StateListManager
index.tsx
index.tsx
8:95 (53%)
9:96 (53%)
view
42 x 2 packages/dag-history-com...ents/StateListContainer
packages/dag-history-com...onents/StateListManager
index.tsx
index.tsx
119:165 (34%)
120:166 (34%)
view
13 x 2 packages/redux-dag-history/src/DagHistory
packages/redux-dag-history/src/DagHistory
jumpToState.ts
jumpToStateLogged.ts
18:31 (56%)
17:30 (56%)
view
13 x 2 packages/dag-history-com.../src/components/History
packages/dag-history-com...nents/StoryboardingView
index.tsx
index.tsx
94:106 (9%)
54:66 (19%)
view
13 x 2 packages/dag-history-com...ents/StateListContainer
packages/dag-history-com...onents/StateListManager
index.tsx
index.tsx
99:115 (10%)
100:116 (10%)
view
9 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
67:75 (8%)
92:100 (8%)
view
9 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
55:63 (8%)
79:87 (8%)
view
8 x 2 packages/dag-history-com...onents/HistoryContainer
packages/dag-history-com.../components/HistoryTabs
index.ts
styled.ts
11:19 (53%)
22:31 (17%)
view
8 x 2 packages/dag-history-com...ry/SwitchingHistoryView
packages/dag-history-com...nts/HistoryTypeDropdown
index.tsx
index.tsx
17:27 (15%)
9:19 (21%)
view
8 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
21:28 (7%)
79:86 (7%)
view
8 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
21:28 (7%)
55:62 (7%)
view
7 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
44:50 (6%)
92:98 (6%)
view
7 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
55:61 (6%)
105:111 (6%)
view
7 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
9:15 (6%)
21:27 (6%)
view
7 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
32:38 (6%)
67:73 (6%)
view
7 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
44:50 (6%)
67:73 (6%)
view
7 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
79:85 (6%)
105:111 (6%)
view
7 x 2 packages/dag-history-com...ry/SwitchingHistoryView
packages/dag-history-com...nts/HistoryTypeDropdown
index.tsx
index.tsx
45:51 (13%)
38:44 (18%)
view
7 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
21:27 (6%)
105:111 (6%)
view
7 x 2 packages/dag-history-com...tories/components/State
packages/dag-history-com...tories/components/State
index.tsx
index.tsx
9:15 (6%)
105:111 (6%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
64 x 2 packages/dag-history-com...ents/StateListContainer
packages/dag-history-com...onents/StateListManager
index.tsx
index.tsx
16:96 
17:97 
view
13 x 2 packages/dag-history-com...ents/StateListContainer
packages/dag-history-com...onents/StateListManager
index.tsx
index.tsx
56:75 
57:76 
view