aws-samples / cycle-store-core-mvc-app
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
  • 17% duplication:
    • 2,143 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 376 duplicated lines
  • 12 duplicates
system17% (376 lines)
Duplication per Extension
yaml85% (248 lines)
css8% (128 lines)
Duplication per Component (primary)
ROOT85% (248 lines)
AdventureWorksMVCCore.Web/wwwroot/css8% (128 lines)
AdventureWorksMVCCore.Web/Service/Interface0% (0 lines)
AdventureWorksMVCCore.Web/Service/Implementation0% (0 lines)
AdventureWorksMVCCore.Web/Views0% (0 lines)
AdventureWorksMVCCore.Web/Views/Shared0% (0 lines)
AdventureWorksMVCCore.Web/Views/Home0% (0 lines)
AdventureWorksMVCCore.Web0% (0 lines)
AdventureWorksMVCCore.Web/Controllers0% (0 lines)
AdventureWorksMVCCore.Web/Models0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
68 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSWithUidPwd.yaml
73:140 (43%)
55:122 (50%)
view
56 x 2 AdventureWorksMVCCore.Web/wwwroot/css
AdventureWorksMVCCore.Web/wwwroot/css
StyleSheet.css
StyleSheet.css
2:75 (3%)
86:156 (3%)
view
28 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSWithUidPwd.yaml
17:44 (17%)
17:44 (20%)
view
15 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSWithUidPwd.yaml
1:15 (9%)
1:15 (11%)
view
9 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSWithUidPwd.yaml
143:151 (5%)
125:133 (6%)
view
8 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSWithUidPwd.yaml
46:53 (5%)
60:67 (5%)
view
8 x 2 AdventureWorksMVCCore.Web/wwwroot/css
AdventureWorksMVCCore.Web/wwwroot/css
StyleSheet.css
StyleSheet.css
1093:1100 (<1%)
1109:1116 (<1%)
view
8 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSFixedUidPwd.yaml
46:53 (5%)
78:85 (5%)
view
6 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSFixedUidPwd.yaml
26:31 (3%)
36:41 (3%)
view
6 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSWithUidPwd.yaml
26:31 (3%)
36:41 (4%)
view
6 x 2 ROOT
ROOT
SqlServerRDSWithUidPwd.yaml
SqlServerRDSWithUidPwd.yaml
26:31 (4%)
36:41 (4%)
view
6 x 2 ROOT
ROOT
SqlServerRDSFixedUidPwd.yaml
SqlServerRDSWithUidPwd.yaml
36:41 (3%)
26:31 (4%)
view