aws-solutions / aws-crr-monitor
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
  • 29% duplication:
    • 1,378 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 408 duplicated lines
  • 17 duplicates
system29% (408 lines)
Duplication per Extension
py29% (408 lines)
Duplication per Component (primary)
CRRdeployagent37% (133 lines)
CRRMonitorTrailAlarm40% (116 lines)
CRRMonitorHousekeeping43% (100 lines)
CRRHourlyMaint25% (35 lines)
CRRMonitor6% (24 lines)
solution-helper0% (0 lines)

Duplication Between Components (50+ lines)

G CRRMonitorTrailAlarm CRRMonitorTrailAlarm CRRdeployagent CRRdeployagent CRRMonitorTrailAlarm--CRRdeployagent 166 CRRHourlyMaint CRRHourlyMaint CRRMonitorHousekeeping CRRMonitorHousekeeping CRRHourlyMaint--CRRMonitorHousekeeping 70

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
77 x 2 source/CRRMonitorTrailAlarm
source/CRRdeployagent
cfn_resource.py
cfn_resource.py
20:129 (100%)
20:129 (100%)
view
13 x 2 source/CRRHourlyMaint
source/CRRMonitorHousekeeping
CRRHourlyMaint.py
CRRMonitorHousekeeping.py
62:80 (9%)
70:83 (5%)
view
12 x 2 source/CRRMonitor
source/CRRMonitorTrailAlarm
CRRMonitor.py
CRRMonitorTrailAlarm.py
114:125 (3%)
44:55 (5%)
view
11 x 2 source/CRRMonitorHousekeeping
source/CRRMonitorHousekeeping
CRRMonitorHousekeeping.py
CRRMonitorHousekeeping.py
145:155 (4%)
171:181 (4%)
view
11 x 2 source/CRRdeployagent
source/CRRdeployagent
CRRdeployagent.py
CRRdeployagent.py
85:95 (4%)
98:108 (4%)
view
10 x 2 source/CRRHourlyMaint
source/CRRMonitorHousekeeping
CRRHourlyMaint.py
CRRMonitorHousekeeping.py
23:32 (7%)
30:39 (4%)
view
9 x 2 source/CRRMonitorHousekeeping
source/CRRMonitorHousekeeping
CRRMonitorHousekeeping.py
CRRMonitorHousekeeping.py
126:134 (3%)
153:161 (3%)
view
8 x 2 source/CRRdeployagent
source/CRRdeployagent
CRRdeployagent.py
CRRdeployagent.py
134:144 (2%)
328:337 (2%)
view
7 x 2 source/CRRMonitorTrailAlarm
source/CRRMonitorTrailAlarm
CRRMonitorTrailAlarm.py
CRRMonitorTrailAlarm.py
159:165 (3%)
214:220 (3%)
view
7 x 2 source/CRRMonitorHousekeeping
source/CRRMonitorHousekeeping
CRRMonitorHousekeeping.py
CRRMonitorHousekeeping.py
157:163 (3%)
183:189 (3%)
view
7 x 2 source/CRRMonitorHousekeeping
source/CRRMonitorTrailAlarm
CRRMonitorHousekeeping.py
CRRMonitorTrailAlarm.py
118:124 (3%)
203:209 (3%)
view
6 x 2 source/CRRMonitorHousekeeping
source/CRRMonitorHousekeeping
CRRMonitorHousekeeping.py
CRRMonitorHousekeeping.py
292:297 (2%)
312:317 (2%)
view
6 x 2 source/CRRdeployagent
source/CRRdeployagent
CRRdeployagent.py
CRRdeployagent.py
242:247 (2%)
294:299 (2%)
view
6 x 2 source/CRRMonitor
source/CRRMonitor
CRRMonitor.py
CRRMonitor.py
604:609 (1%)
633:638 (1%)
view
6 x 2 source/CRRMonitorTrailAlarm
source/CRRdeployagent
CRRMonitorTrailAlarm.py
CRRdeployagent.py
113:118 (2%)
70:75 (2%)
view
6 x 2 source/CRRHourlyMaint
source/CRRMonitorHousekeeping
CRRHourlyMaint.py
CRRMonitorHousekeeping.py
206:211 (4%)
229:234 (2%)
view
6 x 2 source/CRRHourlyMaint
source/CRRMonitorHousekeeping
CRRHourlyMaint.py
CRRMonitorHousekeeping.py
198:204 (4%)
221:227 (2%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
42 x 2 source/CRRMonitorTrailAlarm
source/CRRdeployagent
cfn_resource.py
cfn_resource.py
0:0 
0:0 
view
11 x 2 source/CRRMonitor
source/CRRMonitorTrailAlarm
CRRMonitor.py
CRRMonitorTrailAlarm.py
0:0 
0:0 
view
11 x 2 source/CRRMonitorHousekeeping
source/CRRHourlyMaint
CRRMonitorHousekeeping.py
CRRHourlyMaint.py
0:0 
0:0 
view
9 x 2 source/CRRMonitorTrailAlarm
source/CRRdeployagent
cfn_resource.py
cfn_resource.py
0:0 
0:0 
view
9 x 2 source/CRRMonitorHousekeeping
source/CRRHourlyMaint
CRRMonitorHousekeeping.py
CRRHourlyMaint.py
0:0 
0:0 
view