aws-ia / terraform-aws-route53-recovery-controller
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
  • 19% duplication:
    • 1,585 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 310 duplicated lines
  • 26 duplicates
system19% (310 lines)
Duplication per Extension
tf22% (310 lines)
Duplication per Component (primary)
modules/sample_app27% (128 lines)
modules/recovery_cluster42% (69 lines)
ROOT17% (64 lines)
modules/readiness_recovery_group32% (29 lines)
modules/sample_app/modules/app6% (20 lines)
modules/sample_app/src/views0% (0 lines)
modules/sample_app/src0% (0 lines)

Duplication Between Components (50+ lines)

G modules/recovery_cluster modules/recovery_cluster ROOT ROOT modules/recovery_cluster--ROOT 110

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 26 duplicates...
Size#FoldersFilesLinesCode
23 x 2 modules/sample_app
modules/sample_app
codesuite.tf
codesuite.tf
138:164 (6%)
186:213 (6%)
view
18 x 2 modules/recovery_cluster
ROOT
variables.tf
variables.tf
23:41 (25%)
62:81 (17%)
view
13 x 2 modules/recovery_cluster
ROOT
variables.tf
variables.tf
43:56 (18%)
84:98 (12%)
view
10 x 2 modules/readiness_recovery_group
modules/recovery_cluster
versions.tf
versions.tf
1:10 (100%)
1:10 (100%)
view
10 x 2 modules/readiness_recovery_group
ROOT
versions.tf
versions.tf
1:10 (100%)
1:10 (100%)
view
10 x 2 modules/recovery_cluster
ROOT
versions.tf
versions.tf
1:10 (100%)
1:10 (100%)
view
9 x 2 modules/readiness_recovery_group
ROOT
variables.tf
variables.tf
13:21 (28%)
8:17 (8%)
view
8 x 2 modules/readiness_recovery_group
modules/recovery_cluster
variables.tf
variables.tf
1:9 (25%)
1:9 (11%)
view
8 x 2 modules/sample_app
modules/sample_app
codesuite.tf
codesuite.tf
12:19 (2%)
228:235 (2%)
view
8 x 2 modules/sample_app/modules/app
modules/sample_app
versions.tf
versions.tf
1:8 (100%)
1:8 (53%)
view
7 x 2 modules/readiness_recovery_group
modules/sample_app
versions.tf
versions.tf
4:10 (70%)
2:8 (46%)
view
7 x 2 modules/recovery_cluster
ROOT
variables.tf
variables.tf
9:16 (10%)
46:54 (6%)
view
7 x 2 modules/sample_app
modules/sample_app
codesuite.tf
codesuite.tf
390:397 (1%)
423:430 (1%)
view
7 x 2 modules/recovery_cluster
modules/sample_app
versions.tf
versions.tf
4:10 (70%)
2:8 (46%)
view
7 x 2 modules/sample_app
modules/sample_app
codesuite.tf
codesuite.tf
4:10 (1%)
220:226 (1%)
view
7 x 2 modules/recovery_cluster
modules/sample_app/modules/app
versions.tf
versions.tf
4:10 (70%)
2:8 (87%)
view
7 x 2 modules/readiness_recovery_group
modules/sample_app/modules/app
versions.tf
versions.tf
4:10 (70%)
2:8 (87%)
view
7 x 2 modules/readiness_recovery_group
modules/recovery_cluster
variables.tf
variables.tf
9:16 (21%)
69:76 (10%)
view
7 x 2 modules/recovery_cluster
ROOT
variables.tf
variables.tf
58:64 (10%)
100:107 (6%)
view
7 x 2 modules/sample_app/modules/app
ROOT
versions.tf
versions.tf
2:8 (87%)
4:10 (70%)
view