microsoft / bobsql
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
  • 15% duplication:
    • 741 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 116 duplicated lines
  • 6 duplicates
system15% (116 lines)
Duplication per Extension
yaml28% (84 lines)
js27% (32 lines)
Duplication per Component (primary)
sql2019book/ch8_sql_on_k8s25% (84 lines)
sqllinuxbook/ch427% (32 lines)
ROOT0% (0 lines)
azuresqlbook0% (0 lines)
azuresqlbook/ch7_performance0% (0 lines)
azuresqlbook/ch8_availability0% (0 lines)
sql2019book0% (0 lines)
sql2019book/ch2_intelligent_performance0% (0 lines)
sql2019book/ch3_new_security_capabilities0% (0 lines)
sql2019book/ch4_mission_critical_availability0% (0 lines)
sql2019book/ch5_modern_development_platform0% (0 lines)
sql2019book/ch7_inside_sql_containers0% (0 lines)
sql2019book/ch9_data_virtualization0% (0 lines)
sqllinuxbook/ch30% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
17 x 2 sql2019book/ch8_sql_on_k8s/deploy
sql2019book/ch8_sql_on_k8s/update
sql2019deployment.yaml
sql2017deployment.yaml
23:39 (43%)
21:37 (45%)
view
17 x 2 sql2019book/ch8_sql_on_k8s/deploy
sql2019book/ch8_sql_on_k8s/update
sql2019deployment.yaml
sql2017deployment.yaml
1:17 (43%)
1:17 (45%)
view
12 x 2 sqllinuxbook/ch4
sqllinuxbook/ch4
customerappconnect.js
execinsertcustomer.js
1:19 (66%)
1:18 (46%)
view
8 x 2 sqllinuxbook/ch4
sqllinuxbook/ch4
customerappinssel.js
execinsertcustomer.js
7:17 (10%)
6:16 (30%)
view
8 x 2 sql2019book/ch8_sql_on_k8s/mychart/templates
sql2019book/ch8_sql_on_k8s/mychart/templates
deployment.yaml
service.yaml
3:10 (15%)
3:10 (42%)
view
8 x 2 sqllinuxbook/ch4
sqllinuxbook/ch4
customerappconnect.js
customerappinssel.js
6:16 (44%)
7:17 (10%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 sqllinuxbook/ch4
sqllinuxbook/ch4
customerappinssel.js
customerappinssel.js
29:37 
52:60 
view