aws-samples / aws-network-firewall-rulegroups-with-proofpoints-emerging-threats-open-ruleset
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
  • 32% duplication:
    • 688 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 222 duplicated lines
  • 16 duplicates
system32% (222 lines)
Duplication per Extension
py34% (138 lines)
yaml30% (84 lines)
Duplication per Component (primary)
ingest_suricata_rules34% (138 lines)
ROOT29% (84 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
18 x 2 ingest_suricata_rules
ingest_suricata_rules
convert_ids_ips.py
rules_processor.py
26:45 (19%)
41:60 (9%)
view
14 x 2 ROOT
ROOT
template.yaml
template.yaml
113:126 (5%)
145:158 (5%)
view
11 x 2 ROOT
ROOT
template.yaml
template.yaml
192:202 (3%)
218:228 (3%)
view
11 x 2 ingest_suricata_rules
ingest_suricata_rules
convert_ids_ips.py
rules_processor.py
48:59 (11%)
148:159 (5%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
128:136 (3%)
160:168 (3%)
view
8 x 2 ingest_suricata_rules
ingest_suricata_rules
convert_ids_ips.py
rules_processor.py
107:114 (8%)
269:276 (4%)
view
8 x 2 ingest_suricata_rules
ingest_suricata_rules
rules_downloader.py
rules_processor.py
31:39 (9%)
174:182 (4%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
179:186 (2%)
210:217 (2%)
view
8 x 2 ingest_suricata_rules
ingest_suricata_rules
rules_processor.py
rules_processor.py
275:283 (4%)
292:299 (4%)
view
8 x 2 ingest_suricata_rules
ingest_suricata_rules
convert_ids_ips.py
rules_processor.py
121:128 (8%)
286:293 (4%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
130:136 (2%)
196:202 (2%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
162:168 (2%)
222:228 (2%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
162:168 (2%)
196:202 (2%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
130:136 (2%)
222:228 (2%)
view
6 x 2 ingest_suricata_rules
ingest_suricata_rules
convert_ids_ips.py
rules_processor.py
75:83 (6%)
203:214 (3%)
view
6 x 2 ingest_suricata_rules
ingest_suricata_rules
convert_ids_ips.py
convert_ids_ips.py
113:118 (6%)
127:132 (6%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 ingest_suricata_rules
ingest_suricata_rules
convert_ids_ips.py
rules_processor.py
0:0 
0:0 
view
10 x 2 ingest_suricata_rules
ingest_suricata_rules
convert_ids_ips.py
rules_processor.py
0:0 
0:0 
view
8 x 2 ingest_suricata_rules
ingest_suricata_rules
rules_downloader.py
rules_processor.py
0:0 
0:0 
view