aws-samples / amazon-sagemaker-studio-secure-sso
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:
    • 816 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 88 duplicated lines
  • 12 duplicates
system10% (88 lines)
Duplication per Extension
yaml10% (76 lines)
js16% (12 lines)
Duplication per Component (primary)
stacks13% (76 lines)
functions/saml-backend16% (12 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
10 x 2 stacks
stacks
ec2.yaml
ec2.yaml
67:76 (9%)
106:115 (9%)
view
7 x 2 stacks
stacks
vpc.yaml
vpc.yaml
35:41 (2%)
106:112 (2%)
view
6 x 2 stacks
stacks
vpc.yaml
vpc.yaml
280:285 (2%)
292:297 (2%)
view
6 x 2 stacks
stacks
vpc.yaml
vpc.yaml
280:285 (2%)
304:309 (2%)
view
6 x 2 stacks
stacks
vpc.yaml
vpc.yaml
280:285 (2%)
316:321 (2%)
view
6 x 2 stacks
stacks
ec2.yaml
ec2.yaml
53:58 (5%)
93:98 (5%)
view
6 x 2 stacks
stacks
vpc.yaml
vpc.yaml
304:309 (2%)
316:321 (2%)
view
6 x 2 stacks
stacks
vpc.yaml
vpc.yaml
35:40 (2%)
137:142 (2%)
view
6 x 2 stacks
stacks
vpc.yaml
vpc.yaml
106:111 (2%)
137:142 (2%)
view
6 x 2 stacks
stacks
vpc.yaml
vpc.yaml
292:297 (2%)
304:309 (2%)
view
6 x 2 stacks
stacks
vpc.yaml
vpc.yaml
292:297 (2%)
316:321 (2%)
view
6 x 2 functions/saml-backend
functions/saml-backend
index.js
index.js
28:33 (8%)
63:68 (8%)
view