aws / amazon-ecs-ami
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:
    • 471 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 165 duplicated lines
  • 13 duplicates
system35% (165 lines)
Duplication per Extension
hcl35% (165 lines)
Duplication per Component (primary)
ROOT35% (165 lines)
files/al10% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ROOT
ROOT
hcl
al2.pkr.hcl
al2gpu.pkr.hcl
9:27 (11%)
9:27 (63%)
view
19 x 2 ROOT
ROOT
hcl
al2.pkr.hcl
al2inf.pkr.hcl
9:27 (11%)
9:27 (63%)
view
19 x 2 ROOT
ROOT
hcl
al2gpu.pkr.hcl
al2inf.pkr.hcl
9:27 (63%)
9:27 (63%)
view
15 x 2 ROOT
ROOT
hcl
al1.pkr.hcl
al2.pkr.hcl
74:91 (12%)
77:94 (9%)
view
14 x 2 ROOT
ROOT
hcl
al1.pkr.hcl
al2.pkr.hcl
93:109 (11%)
131:147 (8%)
view
9 x 2 ROOT
ROOT
hcl
al2arm.pkr.hcl
al2inf.pkr.hcl
19:27 (30%)
19:27 (30%)
view
9 x 2 ROOT
ROOT
hcl
al2arm.pkr.hcl
al2inf.pkr.hcl
9:17 (30%)
9:17 (30%)
view
9 x 2 ROOT
ROOT
hcl
al2.pkr.hcl
al2arm.pkr.hcl
19:27 (5%)
19:27 (30%)
view
9 x 2 ROOT
ROOT
hcl
al2.pkr.hcl
al2arm.pkr.hcl
9:17 (5%)
9:17 (30%)
view
9 x 2 ROOT
ROOT
hcl
al1.pkr.hcl
al2.pkr.hcl
130:140 (7%)
173:183 (5%)
view
9 x 2 ROOT
ROOT
hcl
al2arm.pkr.hcl
al2gpu.pkr.hcl
19:27 (30%)
19:27 (30%)
view
9 x 2 ROOT
ROOT
hcl
al2arm.pkr.hcl
al2gpu.pkr.hcl
9:17 (30%)
9:17 (30%)
view
8 x 2 ROOT
ROOT
hcl
al1.pkr.hcl
al2.pkr.hcl
123:132 (6%)
162:171 (5%)
view