aws-amplify / amplify-cli-export-construct
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
  • 8% duplication:
    • 903 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 78 duplicated lines
  • 5 duplicates
system8% (78 lines)
Duplication per Extension
ts8% (78 lines)
Duplication per Component (primary)
src/export-backend-asset-handler27% (78 lines)
integ-test0% (0 lines)
src0% (0 lines)
src/include-nested-stacks0% (0 lines)
src/include-nested-stacks/api-rest0% (0 lines)
src/include-nested-stacks/lambda-function0% (0 lines)
src/include-nested-stacks/api-graphql0% (0 lines)
src/include-nested-stacks/auth0% (0 lines)
src/types0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
17 x 2 src/export-backend-asset-handler
src/export-backend-asset-handler
index.ts
index.ts
186:206 (6%)
226:243 (6%)
view
17 x 2 src/export-backend-asset-handler
src/export-backend-asset-handler
index.ts
index.ts
232:250 (6%)
266:283 (6%)
view
11 x 2 src/export-backend-asset-handler
src/export-backend-asset-handler
index.ts
index.ts
193:206 (3%)
266:277 (3%)
view
9 x 2 src/export-backend-asset-handler
src/export-backend-asset-handler
index.ts
index.ts
209:219 (3%)
246:256 (3%)
view
6 x 2 src/export-backend-asset-handler
src/export-backend-asset-handler
index.ts
index.ts
223:228 (2%)
261:266 (2%)
view