aws-ia / terraform-aws-rds-aurora
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
  • 30% duplication:
    • 1,047 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 323 duplicated lines
  • 25 duplicates
system30% (323 lines)
Duplication per Extension
tf30% (323 lines)
Duplication per Component (primary)
ROOT33% (277 lines)
deploy29% (46 lines)
setup_workspace0% (0 lines)

Duplication Between Components (50+ lines)

G deploy deploy ROOT ROOT deploy--ROOT 95

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 25 duplicates...
Size#FoldersFilesLinesCode
16 x 2 ROOT
ROOT
main.tf
main.tf
298:315 (3%)
342:359 (3%)
view
16 x 2 ROOT
ROOT
main.tf
main.tf
277:294 (3%)
320:337 (3%)
view
14 x 2 deploy
ROOT
variables.tf
variables.tf
71:86 (15%)
170:185 (7%)
view
13 x 2 deploy
ROOT
variables.tf
variables.tf
57:71 (14%)
142:156 (7%)
view
11 x 2 ROOT
ROOT
main.tf
main.tf
326:337 (2%)
348:359 (2%)
view
11 x 2 ROOT
ROOT
main.tf
main.tf
283:294 (2%)
304:315 (2%)
view
11 x 2 ROOT
ROOT
main.tf
main.tf
283:294 (2%)
348:359 (2%)
view
11 x 2 ROOT
ROOT
main.tf
main.tf
304:315 (2%)
326:337 (2%)
view
9 x 2 ROOT
ROOT
main.tf
main.tf
433:441 (1%)
514:522 (1%)
view
9 x 2 ROOT
ROOT
main.tf
main.tf
376:384 (1%)
399:407 (1%)
view
9 x 2 deploy
ROOT
variables.tf
variables.tf
92:102 (10%)
44:54 (5%)
view
9 x 2 ROOT
ROOT
main.tf
main.tf
473:481 (1%)
554:562 (1%)
view
9 x 2 ROOT
ROOT
main.tf
main.tf
453:461 (1%)
534:542 (1%)
view
9 x 2 ROOT
ROOT
main.tf
main.tf
413:421 (1%)
494:502 (1%)
view
8 x 2 ROOT
ROOT
main.tf
main.tf
521:528 (1%)
541:548 (1%)
view
8 x 2 ROOT
ROOT
main.tf
main.tf
440:447 (1%)
460:467 (1%)
view
7 x 2 deploy
ROOT
variables.tf
variables.tf
26:34 (7%)
79:87 (3%)
view
7 x 2 ROOT
ROOT
main.tf
main.tf
191:197 (1%)
244:250 (1%)
view
6 x 2 ROOT
ROOT
main.tf
main.tf
117:123 (1%)
128:134 (1%)
view
6 x 2 ROOT
ROOT
main.tf
main.tf
503:508 (1%)
523:528 (1%)
view