aws-samples / aws-vpc-traffic-mirroring-source-automation
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
  • 22% duplication:
    • 606 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 135 duplicated lines
  • 10 duplicates
system22% (135 lines)
Duplication per Extension
yaml44% (121 lines)
py4% (14 lines)
Duplication per Component (primary)
ROOT41% (99 lines)
traffic_mirroring/config62% (22 lines)
traffic_mirroring4% (14 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
21 x 2 ROOT
ROOT
template.yaml
template.yaml
128:148 (8%)
165:185 (8%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
164:179 (6%)
227:242 (6%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
128:142 (6%)
228:242 (6%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
61:68 (3%)
80:87 (3%)
view
8 x 2 traffic_mirroring/config
traffic_mirroring/config
.yaml
.yaml
31:39 (22%)
51:59 (22%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
91:98 (3%)
104:111 (3%)
view
7 x 2 traffic_mirroring
traffic_mirroring
backfill_handler.py
cloudwatch_event_handler.py
33:39 (12%)
25:31 (18%)
view
6 x 2 traffic_mirroring/config
traffic_mirroring/config
.yaml
.yaml
14:23 (17%)
51:57 (17%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
184:189 (2%)
241:246 (2%)
view
6 x 2 traffic_mirroring/config
traffic_mirroring/config
.yaml
.yaml
14:23 (17%)
31:37 (17%)
view