aws-ia / terraform-aws-ecs-fargate
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
  • 35% duplication:
    • 668 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 239 duplicated lines
  • 16 duplicates
system35% (239 lines)
Duplication per Extension
tf35% (239 lines)
Duplication per Component (primary)
ROOT39% (132 lines)
deploy40% (107 lines)
setup_workspace0% (0 lines)

Duplication Between Components (50+ lines)

G deploy deploy ROOT ROOT deploy--ROOT 119

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
29 x 2 deploy
ROOT
variables.tf
variables.tf
139:173 (14%)
13:47 (39%)
view
14 x 2 ROOT
ROOT
main.tf
main.tf
292:305 (5%)
308:321 (5%)
view
13 x 2 deploy
ROOT
variables.tf
variables.tf
175:190 (6%)
49:64 (17%)
view
12 x 2 deploy
deploy
variables.tf
variables.tf
67:79 (6%)
112:124 (6%)
view
12 x 2 deploy
deploy
variables.tf
variables.tf
82:94 (6%)
112:124 (6%)
view
12 x 2 deploy
deploy
variables.tf
variables.tf
67:79 (6%)
97:109 (6%)
view
12 x 2 deploy
deploy
variables.tf
variables.tf
97:109 (6%)
112:124 (6%)
view
12 x 2 deploy
deploy
variables.tf
variables.tf
82:94 (6%)
97:109 (6%)
view
12 x 2 deploy
deploy
variables.tf
variables.tf
67:79 (6%)
82:94 (6%)
view
11 x 2 ROOT
ROOT
main.tf
main.tf
169:181 (4%)
236:247 (4%)
view
8 x 2 ROOT
ROOT
main.tf
main.tf
87:96 (3%)
169:178 (3%)
view
8 x 2 ROOT
ROOT
main.tf
main.tf
87:96 (3%)
236:244 (3%)
view
7 x 2 ROOT
ROOT
main.tf
main.tf
213:220 (2%)
278:285 (2%)
view
6 x 2 deploy
ROOT
variables.tf
variables.tf
204:210 (3%)
83:89 (8%)
view
6 x 2 deploy
ROOT
main.tf
main.tf
11:17 (9%)
3:13 (2%)
view
6 x 2 deploy
ROOT
variables.tf
variables.tf
210:216 (3%)
67:72 (8%)
view