aws-samples / aws-gateway-load-balancer-suricata-ids-ips-nsm
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
  • 9% duplication:
    • 1,949 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 190 duplicated lines
  • 12 duplicates
system9% (190 lines)
Duplication per Extension
yaml8% (158 lines)
yml34% (32 lines)
Duplication per Component (primary)
cloudformation13% (98 lines)
cloudformation/suricata7% (48 lines)
Dockerfiles/rulesFetcher33% (16 lines)
Dockerfiles/suricata36% (16 lines)
Dockerfiles/suricata/etc/suricata2% (12 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
16 x 2 cloudformation
cloudformation
base-vpc.yaml
base-vpc.yaml
348:363 (2%)
384:399 (2%)
view
9 x 2 cloudformation
cloudformation
base-vpc.yaml
base-vpc.yaml
186:194 (1%)
529:537 (1%)
view
8 x 2 cloudformation
cloudformation/suricata
base-vpc.yaml
cluster.yaml
264:271 (1%)
695:702 (1%)
view
8 x 2 cloudformation
cloudformation/suricata
base-vpc.yaml
cluster.yaml
276:283 (1%)
709:716 (1%)
view
8 x 2 Dockerfiles/rulesFetcher
Dockerfiles/suricata
buildspec.yml
buildspec.yml
40:47 (16%)
36:43 (18%)
view
8 x 2 Dockerfiles/rulesFetcher
Dockerfiles/suricata
buildspec.yml
buildspec.yml
1:10 (16%)
1:10 (18%)
view
7 x 2 cloudformation
cloudformation
base-vpc.yaml
base-vpc.yaml
374:380 (<1%)
410:416 (<1%)
view
7 x 2 cloudformation/suricata
cloudformation/suricata
cluster.yaml
cluster.yaml
211:217 (1%)
394:400 (1%)
view
6 x 2 cloudformation
cloudformation
base-vpc.yaml
base-vpc.yaml
449:454 (<1%)
461:466 (<1%)
view
6 x 2 cloudformation
cloudformation/suricata
base-vpc.yaml
cluster.yaml
208:213 (<1%)
351:356 (<1%)
view
6 x 2 Dockerfiles/suricata/etc/suricata
Dockerfiles/suricata/etc/suricata
suricata.yaml
suricata.yaml
1234:1239 (1%)
1241:1246 (1%)
view
6 x 2 cloudformation/suricata
cloudformation/suricata
cluster.yaml
cluster.yaml
201:206 (<1%)
378:383 (<1%)
view