aws-quickstart / quickstart-git2s3
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:
    • 2,410 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 367 duplicated lines
  • 32 duplicates
system15% (367 lines)
Duplication per Extension
py14% (208 lines)
yaml17% (159 lines)
Duplication per Component (primary)
templates17% (159 lines)
functions/source/GitPullS311% (156 lines)
functions/source/DeleteBucketContents47% (26 lines)
functions/source/CreateSSHKey41% (26 lines)

Duplication Between Components (50+ lines)

G functions/source/CreateSSHKey functions/source/CreateSSHKey functions/source/DeleteBucketContents functions/source/DeleteBucketContents functions/source/CreateSSHKey--functions/source/DeleteBucketContents 52

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 32 duplicates...
Size#FoldersFilesLinesCode
26 x 2 functions/source/CreateSSHKey
functions/source/DeleteBucketContents
cfnresponse.py
cfnresponse.py
10:43 (100%)
10:43 (100%)
view
12 x 2 functions/source/GitPullS3
functions/source/GitPullS3
ipaddress.py
ipaddress.py
1547:1560 (1%)
2237:2250 (1%)
view
11 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
410:420 (1%)
564:574 (1%)
view
11 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
341:351 (1%)
410:420 (1%)
view
11 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
341:351 (1%)
564:574 (1%)
view
11 x 2 functions/source/GitPullS3
functions/source/GitPullS3
ipaddress.py
ipaddress.py
1529:1544 (<1%)
2219:2234 (<1%)
view
9 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
548:556 (<1%)
619:627 (<1%)
view
9 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
157:165 (<1%)
564:572 (<1%)
view
9 x 2 functions/source/GitPullS3
functions/source/GitPullS3
ipaddress.py
ipaddress.py
1400:1412 (<1%)
2027:2039 (<1%)
view
9 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
157:165 (<1%)
410:418 (<1%)
view
9 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
284:292 (<1%)
307:315 (<1%)
view
9 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
284:292 (<1%)
323:331 (<1%)
view
9 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
307:315 (<1%)
323:331 (<1%)
view
9 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
157:165 (<1%)
341:349 (<1%)
view
8 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
356:363 (<1%)
597:604 (<1%)
view
8 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
368:375 (<1%)
600:607 (<1%)
view
8 x 2 functions/source/GitPullS3
functions/source/GitPullS3
ipaddress.py
ipaddress.py
1620:1630 (<1%)
2314:2322 (<1%)
view
7 x 2 functions/source/GitPullS3
functions/source/GitPullS3
ipaddress.py
ipaddress.py
1517:1527 (<1%)
2207:2217 (<1%)
view
7 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
379:385 (<1%)
447:453 (<1%)
view
7 x 2 templates
templates
git2s3.template.yaml
git2s3.template.yaml
564:570 (<1%)
753:759 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
22 x 2 functions/source/DeleteBucketContents
functions/source/CreateSSHKey
cfnresponse.py
cfnresponse.py
0:0 
0:0 
view