freertos / Lab-Project-FreeRTOS-POSIX
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
  • 2% duplication:
    • 1,536 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 41 duplicated lines
  • 3 duplicates
system2% (41 lines)
Duplication per Extension
c1% (21 lines)
h5% (20 lines)
Duplication per Component (primary)
FreeRTOS-Plus-POSIX/source1% (21 lines)
include/private31% (20 lines)
FreeRTOS-Plus-POSIX/include0% (0 lines)
FreeRTOS-Plus-POSIX/include/portable/microchip0% (0 lines)
FreeRTOS-Plus-POSIX/include/portable/espressif0% (0 lines)
FreeRTOS-Plus-POSIX/include/portable/pc0% (0 lines)
FreeRTOS-Plus-POSIX/include/portable/nxp0% (0 lines)
FreeRTOS-Plus-POSIX/include/portable0% (0 lines)
FreeRTOS-Plus-POSIX/include/portable/ti0% (0 lines)
FreeRTOS-Plus-POSIX/include/portable/st0% (0 lines)
include/FreeRTOS_POSIX0% (0 lines)
include/FreeRTOS_POSIX/sys0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
10 x 2 include/private
include/private
iot_doubly_linked_list.h
iot_doubly_linked_list.h
137:146 (15%)
177:186 (15%)
view
7 x 2 FreeRTOS-Plus-POSIX/source
FreeRTOS-Plus-POSIX/source
FreeRTOS_POSIX_pthread_mutex.c
FreeRTOS_POSIX_semaphore.c
194:210 (5%)
148:164 (10%)
view
6 x 2 FreeRTOS-Plus-POSIX/source
FreeRTOS-Plus-POSIX/source
FreeRTOS_POSIX_pthread_cond.c
FreeRTOS_POSIX_pthread_mutex.c
228:239 (7%)
192:203 (4%)
view