aws-samples / aws-alexa-workshop-smarthome-ui
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
  • 10% duplication:
    • 814 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 86 duplicated lines
  • 22 duplicates
system10% (86 lines)
Duplication per Extension
css51% (44 lines)
js10% (42 lines)
Duplication per Component (primary)
src/graphql44% (42 lines)
src7% (22 lines)
app/src27% (22 lines)
amplify/backend/api/AlexaBackend0% (0 lines)
amplify/backend/auth/awsalexaui51864c6a0% (0 lines)
public0% (0 lines)
app/public0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 22 duplicates...
Size#FoldersFilesLinesCode
22 x 2 app/src
src
App.css
App.css
14:38 (66%)
9:33 (75%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
10:17 (16%)
7:14 (22%)
view
6 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
18:25 (22%)
29:36 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
24:31 (16%)
18:25 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
10:17 (16%)
18:25 (22%)
view
6 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
7:14 (18%)
18:25 (22%)
view
6 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
7:14 (22%)
29:36 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
queries.js
10:17 (16%)
7:14 (18%)
view
6 x 2 src/graphql
src/graphql
mutations.js
mutations.js
10:17 (16%)
24:31 (16%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
38:45 (16%)
18:25 (22%)
view
6 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
7:14 (18%)
7:14 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
38:45 (16%)
7:14 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
queries.js
38:45 (16%)
7:14 (18%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
10:17 (16%)
29:36 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
24:31 (16%)
29:36 (22%)
view
6 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
7:14 (18%)
29:36 (22%)
view
6 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
7:14 (22%)
18:25 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
38:45 (16%)
29:36 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
24:31 (16%)
7:14 (22%)
view
6 x 2 src/graphql
src/graphql
mutations.js
queries.js
24:31 (16%)
7:14 (18%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 3 src/graphql
src/graphql
src/graphql
mutations.js
mutations.js
queries.js
9:15 
23:29 
6:12 
view