aws-quickstart / quickstart-microsoft-sql
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
  • 58% duplication:
    • 7,256 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,231 duplicated lines
  • 1,952 duplicates
system58% (4,231 lines)
Duplication per Extension
yaml62% (2,524 lines)
yml81% (1,087 lines)
ps133% (620 lines)
Duplication per Component (primary)
templates66% (3,611 lines)
scripts33% (620 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 1,952 duplicates...
Size#FoldersFilesLinesCode
73 x 2 scripts
scripts
AdditionalNodeCreateAG.ps1
CreateAGNode1.ps1
37:119 (61%)
109:191 (34%)
view
63 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
39:101 (5%)
807:869 (2%)
view
49 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
1047:1101 (4%)
2254:2308 (1%)
view
47 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
543:591 (4%)
1630:1678 (1%)
view
44 x 2 templates
templates
sql-main.template.yaml
sql-main.template.yaml
884:927 (4%)
977:1020 (4%)
view
42 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
771:812 (3%)
1918:1959 (1%)
view
36 x 2 templates
templates
sql-main.template.yaml
sql.template.yaml
421:456 (3%)
323:358 (1%)
view
36 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
951:988 (3%)
2138:2175 (1%)
view
36 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
490:527 (3%)
1567:1604 (1%)
view
31 x 2 templates
templates
sql-main.template.yaml
sql.template.yaml
473:503 (3%)
358:388 (1%)
view
30 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
722:751 (2%)
1849:1878 (<1%)
view
25 x 2 scripts
scripts
CreateAGNode1.ps1
OUPermissions.ps1
45:73 (11%)
50:78 (23%)
view
25 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
15:39 (2%)
779:803 (<1%)
view
25 x 2 templates
templates
sql.template.yaml
sql.template.yaml
704:728 (<1%)
2332:2356 (<1%)
view
25 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
623:649 (2%)
1730:1756 (<1%)
view
24 x 2 templates
templates
AWSQuickstart-MSSQL.yml
sql.template.yaml
1005:1030 (2%)
2202:2227 (<1%)
view
24 x 2 templates
templates
sql.template.yaml
sql.template.yaml
1976:2001 (<1%)
2078:2103 (<1%)
view
24 x 2 templates
templates
AWSQuickstart-MSSQL.yml
AWSQuickstart-MSSQL.yml
819:844 (2%)
860:885 (2%)
view
24 x 2 templates
templates
AWSQuickstart-MSSQL.yml
AWSQuickstart-MSSQL.yml
819:844 (2%)
901:926 (2%)
view
24 x 2 templates
templates
sql.template.yaml
sql.template.yaml
1976:2001 (<1%)
2027:2052 (<1%)
view