aws-quickstart / quickstart-compliance-irap-protected
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
  • 16% duplication:
    • 9,959 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,656 duplicated lines
  • 162 duplicates
system16% (1,656 lines)
Duplication per Extension
yml58% (1,186 lines)
py5% (470 lines)
Duplication per Component (primary)
templates59% (1,186 lines)
functions/source/populate_NLB_TG_with_ALB/dns/rdtypes/ANY15% (218 lines)
functions/source/populate_NLB_TG_with_ALB/dns3% (185 lines)
functions/source/populate_NLB_TG_with_ALB/dns/rdtypes/IN8% (43 lines)
functions/source/populate_NLB_TG_with_ALB/dns/rdtypes8% (24 lines)
ci0% (0 lines)
functions/source/populate_NLB_TG_with_ALB0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/populate_NLB_TG_with_ALB/dns/rdtypes/ANY functions/source/populate_NLB_TG_with_ALB/dns/rdtypes/ANY functions/source/populate_NLB_TG_with_ALB/dns/rdtypes/IN functions/source/populate_NLB_TG_with_ALB/dns/rdtypes/IN functions/source/populate_NLB_TG_with_ALB/dns/rdtypes/ANY--functions/source/populate_NLB_TG_with_ALB/dns/rdtypes/IN 50

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 162 duplicates...
Size#FoldersFilesLinesCode
46 x 2 templates
templates
vpc.yml
vpc.yml
1625:1670 (2%)
1685:1730 (2%)
view
46 x 2 templates
templates
vpc.yml
vpc.yml
1625:1670 (2%)
1746:1791 (2%)
view
46 x 2 templates
templates
vpc.yml
vpc.yml
1685:1730 (2%)
1746:1791 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
666:710 (2%)
786:830 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1146:1190 (2%)
1266:1310 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1146:1190 (2%)
1506:1550 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1386:1430 (2%)
1506:1550 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1266:1310 (2%)
1386:1430 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
726:770 (2%)
846:890 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
666:710 (2%)
846:890 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1206:1250 (2%)
1326:1370 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1206:1250 (2%)
1566:1610 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1446:1490 (2%)
1566:1610 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1326:1370 (2%)
1446:1490 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
786:830 (2%)
846:890 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1266:1310 (2%)
1506:1550 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
1146:1190 (2%)
1386:1430 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
906:950 (2%)
1086:1130 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
906:950 (2%)
1026:1070 (2%)
view
45 x 2 templates
templates
vpc.yml
vpc.yml
906:950 (2%)
966:1010 (2%)
view