aws-samples / tgw-attachment-tagger
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
  • 62% duplication:
    • 1,009 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 635 duplicated lines
  • 65 duplicates
system62% (635 lines)
Duplication per Extension
yaml54% (428 lines)
py92% (207 lines)
Duplication per Component (primary)
ROOT54% (428 lines)
src92% (207 lines)

Duplication Between Components (50+ lines)

G src src ROOT ROOT src--ROOT 378

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 65 duplicates...
Size#FoldersFilesLinesCode
38 x 2 src
ROOT
tgw-attachment-query-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
50:92 (60%)
322:364 (5%)
view
22 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
443:483 (2%)
627:667 (2%)
view
22 x 2 src
ROOT
tgw-rtb-query-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
40:62 (29%)
487:509 (2%)
view
22 x 2 src
ROOT
tgw-rtb-query-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
76:99 (29%)
523:546 (2%)
view
18 x 2 src
ROOT
tgw-attachment-tagger-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
40:60 (45%)
671:691 (2%)
view
16 x 2 src
ROOT
aws-organizations-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
56:72 (34%)
170:186 (2%)
view
14 x 2 src
ROOT
aws-organizations-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
38:54 (30%)
152:168 (1%)
view
12 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
269:297 (1%)
444:472 (1%)
view
12 x 2 src
ROOT
tgw-attachment-tagger-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
66:80 (30%)
697:711 (1%)
view
12 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
269:297 (1%)
628:656 (1%)
view
11 x 2 src
ROOT
tgw-rtb-query-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
105:116 (14%)
552:563 (1%)
view
11 x 2 src
ROOT
tgw-attachment-query-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
24:38 (17%)
296:310 (1%)
view
10 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
111:136 (1%)
444:469 (1%)
view
10 x 2 src
ROOT
tgw-rtb-query-lambda-src.py
tgw-attachment-tagger-main-stack.yaml
64:74 (13%)
511:521 (1%)
view
10 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
111:136 (1%)
269:294 (1%)
view
10 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
111:136 (1%)
628:653 (1%)
view
9 x 2 src
src
tgw-attachment-tagger-lambda-src.py
tgw-rtb-query-lambda-src.py
24:36 (22%)
24:36 (12%)
view
9 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
411:419 (1%)
597:605 (1%)
view
9 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
67:75 (1%)
222:230 (1%)
view
9 x 2 ROOT
ROOT
tgw-attachment-tagger-main-stack.yaml
tgw-attachment-tagger-main-stack.yaml
222:230 (1%)
587:595 (1%)
view