microsoft / lisa
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:
    • 26,097 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,459 duplicated lines
  • 388 duplicates
system9% (2,459 lines)
Duplication per Extension
py9% (2,447 lines)
pyi3% (12 lines)
Duplication per Component (primary)
microsoft/testsuites22% (1,574 lines)
lisa6% (370 lines)
lisa/tools4% (179 lines)
lisa/sut_orchestrator4% (146 lines)
lisa/util3% (52 lines)
lisa/runners4% (48 lines)
lisa/transformers6% (34 lines)
lisa/features3% (18 lines)
lisa/base_tools7% (14 lines)
lisa/combinators10% (12 lines)
typings/assertpy8% (12 lines)
ROOT0% (0 lines)
lisa/notifiers0% (0 lines)
lisa/parameter_parser0% (0 lines)
microsoft/runbook0% (0 lines)
selftests0% (0 lines)
selftests/azure0% (0 lines)
selftests/combinators0% (0 lines)
selftests/runners0% (0 lines)
typings/pluggy0% (0 lines)
typings/semver0% (0 lines)

Duplication Between Components (50+ lines)

G lisa lisa lisa/sut_orchestrator lisa/sut_orchestrator lisa--lisa/sut_orchestrator 75

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 388 duplicates...
Size#FoldersFilesLinesCode
29 x 2 lisa
lisa
executable.py
executable.py
244:275 (8%)
351:379 (8%)
view
20 x 2 microsoft/testsuites/dpdk
microsoft/testsuites/dpdk
dpdksuite.py
dpdksuite.py
336:366 (3%)
459:489 (3%)
view
18 x 2 microsoft/testsuites/core
microsoft/testsuites/core
hv_module.py
hv_module.py
134:152 (9%)
246:264 (9%)
view
16 x 2 microsoft/testsuites/performance
microsoft/testsuites/performance
storageperf.py
storageperf.py
144:162 (5%)
166:184 (5%)
view
15 x 2 microsoft/testsuites/xfstests
microsoft/testsuites/xfstests
xfstesting.py
xfstesting.py
143:160 (3%)
173:190 (3%)
view
15 x 2 microsoft/testsuites/performance
microsoft/testsuites/performance
storageperf.py
storageperf.py
191:207 (4%)
211:227 (4%)
view
14 x 2 microsoft/testsuites/xfstests
microsoft/testsuites/xfstests
xfstesting.py
xfstesting.py
115:131 (3%)
204:220 (3%)
view
14 x 2 microsoft/testsuites/xfstests
microsoft/testsuites/xfstests
xfstesting.py
xfstesting.py
144:160 (3%)
204:220 (3%)
view
14 x 2 microsoft/testsuites/performance
microsoft/testsuites/performance
storageperf.py
storageperf.py
78:92 (4%)
98:112 (4%)
view
14 x 2 microsoft/testsuites/performance
microsoft/testsuites/storage
storageperf.py
storagesuite.py
42:59 (4%)
16:36 (22%)
view
14 x 2 microsoft/testsuites/xfstests
microsoft/testsuites/xfstests
xfstesting.py
xfstesting.py
115:131 (3%)
174:190 (3%)
view
14 x 2 microsoft/testsuites/xfstests
microsoft/testsuites/xfstests
xfstesting.py
xfstesting.py
115:131 (3%)
144:160 (3%)
view
14 x 2 microsoft/testsuites/xfstests
microsoft/testsuites/xfstests
xfstesting.py
xfstesting.py
174:190 (3%)
204:220 (3%)
view
13 x 2 microsoft/testsuites/performance
microsoft/testsuites/performance
storageperf.py
storageperf.py
144:159 (4%)
189:204 (4%)
view
13 x 2 lisa
lisa
operating_system.py
operating_system.py
434:449 (1%)
910:925 (1%)
view
13 x 2 microsoft/testsuites/performance
microsoft/testsuites/performance
storageperf.py
storageperf.py
166:181 (4%)
189:204 (4%)
view
12 x 2 microsoft/testsuites/network
microsoft/testsuites/network
netinterface.py
synthetic.py
12:31 (13%)
10:28 (13%)
view
12 x 2 lisa/tools
lisa/tools
iperf3.py
lagscope.py
56:68 (15%)
140:152 (5%)
view
12 x 2 microsoft/testsuites/network
microsoft/testsuites/network
synthetic.py
synthetic.py
51:70 (13%)
79:98 (13%)
view
12 x 2 microsoft/testsuites/performance
microsoft/testsuites/performance
storageperf.py
storageperf.py
146:159 (3%)
211:224 (3%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 lisa
lisa
executable.py
executable.py
0:0 
0:0 
view
12 x 2 lisa/tools
lisa/tools
lagscope.py
lagscope.py
0:0 
0:0 
view
9 x 2 lisa
lisa
executable.py
executable.py
0:0 
0:0 
view
6 x 2 lisa/tools
lisa/tools
iperf3.py
iperf3.py
0:0 
0:0 
view
6 x 3 lisa/transformers
lisa/transformers
lisa/transformers
kernel_installer.py
kernel_installer.py
kernel_source_installer.py
0:0 
0:0 
0:0 
view
6 x 2 typings/assertpy
typings/assertpy
pyi
assertpy.pyi
assertpy.pyi
0:0 
0:0 
view