aws-samples / aws-terraform-cross-account-kinesis-example
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
  • 42% duplication:
    • 1,062 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 451 duplicated lines
  • 109 duplicates
system42% (451 lines)
Duplication per Extension
tf42% (451 lines)
Duplication per Component (primary)
ROOT42% (451 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 109 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ROOT
ROOT
lambdas.tf
lambdas.tf
83:102 (6%)
255:274 (6%)
view
19 x 2 ROOT
ROOT
storage.tf
storage.tf
44:62 (8%)
103:121 (8%)
view
15 x 2 ROOT
ROOT
lambdas.tf
lambdas.tf
35:49 (5%)
186:200 (5%)
view
13 x 2 ROOT
ROOT
processing.tf
storage.tf
373:385 (3%)
57:69 (5%)
view
12 x 2 ROOT
ROOT
lambdas.tf
lambdas.tf
153:164 (4%)
326:337 (4%)
view
10 x 2 ROOT
ROOT
processing.tf
processing.tf
176:185 (2%)
270:279 (2%)
view
9 x 2 ROOT
ROOT
processing.tf
processing.tf
358:366 (2%)
460:468 (2%)
view
9 x 2 ROOT
ROOT
storage.tf
storage.tf
142:150 (3%)
203:211 (3%)
view
9 x 2 ROOT
ROOT
processing.tf
processing.tf
41:49 (2%)
53:61 (2%)
view
9 x 2 ROOT
ROOT
ingestion.tf
processing.tf
48:56 (13%)
345:353 (2%)
view
8 x 2 ROOT
ROOT
lambdas.tf
lambdas.tf
55:63 (2%)
226:234 (2%)
view
8 x 2 ROOT
ROOT
storage.tf
storage.tf
162:169 (3%)
224:231 (3%)
view
8 x 2 ROOT
ROOT
storage.tf
storage.tf
22:29 (3%)
81:88 (3%)
view
8 x 2 ROOT
ROOT
lambdas.tf
storage.tf
12:20 (2%)
22:29 (3%)
view
8 x 2 ROOT
ROOT
lambdas.tf
lambdas.tf
12:20 (2%)
205:212 (2%)
view
8 x 2 ROOT
ROOT
ingestion.tf
processing.tf
42:49 (11%)
454:461 (1%)
view
8 x 2 ROOT
ROOT
lambdas.tf
storage.tf
12:20 (2%)
81:88 (3%)
view
8 x 2 ROOT
ROOT
lambdas.tf
storage.tf
205:212 (2%)
22:29 (3%)
view
8 x 2 ROOT
ROOT
lambdas.tf
storage.tf
205:212 (2%)
81:88 (3%)
view
7 x 2 ROOT
ROOT
lambdas.tf
lambdas.tf
14:20 (2%)
186:192 (2%)
view