freertos / Lab-Project-FreeRTOS-SESIP
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
  • 13% duplication:
    • 24,938 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,425 duplicated lines
  • 252 duplicates
system13% (3,425 lines)
Duplication per Extension
h17% (1,815 lines)
c11% (1,586 lines)
py4% (24 lines)
Duplication per Component (primary)
lib/nxp/CMSIS31% (1,484 lines)
lib/nxp/drivers8% (429 lines)
lib/FreeRTOS/platform16% (372 lines)
lib/FreeRTOS/FreeRTOS-Plus-Trace6% (300 lines)
lib/bootloader100% (205 lines)
lib/nxp/bootloader100% (205 lines)
lib/nxp/component6% (104 lines)
lib/nxp/board28% (93 lines)
lib/nxp/device5% (67 lines)
source2% (42 lines)
lib/FreeRTOS/provision7% (32 lines)
lib/nxp/startup6% (30 lines)
lib/nxp/utilities2% (26 lines)
tools4% (24 lines)
lib/nxp/mflash4% (12 lines)
lib/nxp/freertos0% (0 lines)
lib/nxp/phy0% (0 lines)
lib/nxp/mdio0% (0 lines)
lib/FreeRTOS/Logging0% (0 lines)
source/user0% (0 lines)

Duplication Between Components (50+ lines)

G lib/bootloader lib/bootloader lib/nxp/bootloader lib/nxp/bootloader lib/bootloader--lib/nxp/bootloader 410

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 252 duplicates...
Size#FoldersFilesLinesCode
258 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang_ltm.h
cmsis_gcc.h
1365:1870 (54%)
1621:2126 (41%)
view
210 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_armclang_ltm.h
71:1289 (97%)
71:1288 (44%)
view
165 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
44:393 (100%)
44:393 (100%)
view
63 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang_ltm.h
cmsis_gcc.h
471:762 (13%)
528:819 (10%)
view
63 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_gcc.h
470:761 (29%)
528:819 (10%)
view
56 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_gcc.h
166:399 (25%)
218:451 (8%)
view
56 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang_ltm.h
cmsis_gcc.h
167:400 (11%)
218:451 (8%)
view
47 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_gcc.h
1098:1289 (21%)
1317:1508 (7%)
view
47 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang_ltm.h
cmsis_gcc.h
1097:1288 (9%)
1317:1508 (7%)
view
40 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.h
spifi_boot.h
59:113 (100%)
59:113 (100%)
view
33 x 2 lib/FreeRTOS/platform/freertos/transport/src
lib/FreeRTOS/platform/freertos/transport/src
tls_freertos.c
tls_freertos_pkcs11.c
583:633 (9%)
790:840 (7%)
view
22 x 2 lib/FreeRTOS/platform/freertos/transport/src
lib/FreeRTOS/platform/freertos/transport/src
tls_freertos.c
tls_freertos_pkcs11.c
656:697 (6%)
854:896 (5%)
view
21 x 2 lib/nxp/drivers
lib/nxp/drivers
fsl_clock.c
fsl_clock.c
2627:2659 (1%)
2680:2712 (1%)
view
21 x 2 lib/nxp/drivers
lib/nxp/drivers
fsl_clock.c
fsl_clock.c
395:415 (1%)
588:608 (1%)
view
20 x 2 lib/FreeRTOS/FreeRTOS-Plus-Trace
lib/FreeRTOS/FreeRTOS-Plus-Trace
trcStreamingRecorder.c
trcStreamingRecorder.c
1330:1372 (2%)
1428:1470 (2%)
view
19 x 2 lib/FreeRTOS/FreeRTOS-Plus-Trace/Include
lib/FreeRTOS/FreeRTOS-Plus-Trace/Include
trcExtensions.h
trcExtensions.h
365:383 (23%)
388:406 (23%)
view
19 x 2 lib/nxp/drivers
lib/nxp/drivers
fsl_clock.c
fsl_clock.c
2059:2095 (1%)
2292:2328 (1%)
view
18 x 2 lib/FreeRTOS/FreeRTOS-Pl...reamports/STM32_USB_CDC
lib/FreeRTOS/FreeRTOS-Pl...ace/streamports/USB_CDC
trcStreamingPort.c
trcStreamingPort.c
94:128 (36%)
236:268 (20%)
view
17 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
arm_math.h
cmsis_gcc.h
605:637 (<1%)
1382:1421 (2%)
view
17 x 2 lib/FreeRTOS/platform/freertos/transport/include
lib/FreeRTOS/platform/freertos/transport/include
tls_freertos.h
tls_freertos_pkcs11.h
119:161 (36%)
132:174 (34%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 27 unit duplicates...
Size#FoldersFilesLinesCode
95 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
279:394 
279:394 
view
28 x 2 lib/FreeRTOS/FreeRTOS-Pl...ace/streamports/USB_CDC
lib/FreeRTOS/FreeRTOS-Pl...reamports/STM32_USB_CDC
trcStreamingPort.c
trcStreamingPort.c
236:265 
94:123 
view
24 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
210:249 
210:249 
view
19 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
168:194 
168:194 
view
17 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
85:106 
85:106 
view
16 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
110:131 
110:131 
view
16 x 5 lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_armclang_ltm.h
cmsis_iccarm.h
arm_math.h
cmsis_gcc.h
1163:1179 
1162:1178 
797:813 
605:621 
1382:1398 
view
15 x 5 lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_armclang_ltm.h
cmsis_iccarm.h
arm_math.h
cmsis_gcc.h
1188:1203 
1187:1202 
815:830 
623:638 
1407:1422 
view
13 x 3 lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang_ltm.h
cmsis_armclang_ltm.h
cmsis_gcc.h
1749:1764 
1766:1781 
2005:2020 
view
11 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_iccarm.h
arm_math.h
525:538 
590:603 
view
10 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
252:269 
252:269 
view
10 x 3 lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_armclang_ltm.h
cmsis_gcc.h
601:612 
602:613 
659:670 
view
10 x 3 lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_armclang_ltm.h
cmsis_gcc.h
689:700 
690:701 
746:757 
view
10 x 2 lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_iccarm.h
cmsis_iccarm.h
623:634 
647:658 
view
9 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
67:81 
67:81 
view
9 x 2 lib/bootloader
lib/nxp/bootloader
spifi_boot.c
spifi_boot.c
197:207 
197:207 
view
9 x 3 lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_armclang_ltm.h
cmsis_gcc.h
624:634 
625:635 
681:691 
view
9 x 3 lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_armclang_ltm.h
cmsis_gcc.h
712:722 
713:723 
769:779 
view
8 x 2 lib/nxp/utilities
lib/nxp/utilities
fsl_str.c
fsl_str.c
240:248 
364:372 
view
8 x 3 lib/nxp/CMSIS
lib/nxp/CMSIS
lib/nxp/CMSIS
cmsis_armclang.h
cmsis_armclang_ltm.h
cmsis_gcc.h
647:656 
648:657 
704:713 
view