aws-cloudformation / aws-cloudformation-resource-providers-aps
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
  • 43% duplication:
    • 871 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 380 duplicated lines
  • 31 duplicates
system43% (380 lines)
Duplication per Extension
go41% (292 lines)
yaml62% (48 lines)
yml44% (40 lines)
Duplication per Component (primary)
aws-aps-workspace/cmd/resource39% (154 lines)
aws-aps-rulegroupsnamespace/cmd/resource64% (138 lines)
aws-aps-rulegroupsnamespace74% (44 lines)
aws-aps-workspace68% (44 lines)
ROOT0% (0 lines)
internal0% (0 lines)

Duplication Between Components (50+ lines)

G aws-aps-rulegroupsnamespace/cmd/resource aws-aps-rulegroupsnamespace/cmd/resource aws-aps-workspace/cmd/resource aws-aps-workspace/cmd/resource aws-aps-rulegroupsnamespace/cmd/resource--aws-aps-workspace/cmd/resource 144 aws-aps-rulegroupsnamespace aws-aps-rulegroupsnamespace aws-aps-workspace aws-aps-workspace aws-aps-rulegroupsnamespace--aws-aps-workspace 88

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 31 duplicates...
Size#FoldersFilesLinesCode
24 x 2 aws-aps-rulegroupsnamespace
aws-aps-workspace
resource-role.yaml
resource-role.yaml
1:25 (66%)
1:25 (58%)
view
20 x 2 aws-aps-rulegroupsnamespace
aws-aps-workspace
template.yml
template.yml
5:26 (86%)
5:26 (86%)
view
15 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
120:137 (7%)
213:230 (3%)
view
13 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
293:309 (6%)
524:540 (3%)
view
10 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
78:93 (4%)
126:142 (2%)
view
10 x 2 aws-aps-workspace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
228:240 (2%)
326:337 (2%)
view
10 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-rulegroupsnamespace/cmd/resource
resource.go
resource.go
146:157 (4%)
194:205 (4%)
view
10 x 2 aws-aps-workspace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
88:100 (2%)
276:289 (2%)
view
8 x 2 aws-aps-workspace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
90:100 (2%)
228:238 (2%)
view
8 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
249:261 (3%)
349:361 (2%)
view
8 x 2 aws-aps-workspace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
278:289 (2%)
326:335 (2%)
view
8 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-rulegroupsnamespace/cmd/resource
resource.go
resource.go
110:117 (3%)
180:187 (3%)
view
8 x 2 aws-aps-workspace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
228:238 (2%)
278:289 (2%)
view
8 x 2 aws-aps-workspace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
90:100 (2%)
326:335 (2%)
view
7 x 2 aws-aps-workspace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
77:83 (1%)
234:240 (1%)
view
7 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-rulegroupsnamespace/cmd/resource
resource.go
resource.go
55:61 (3%)
199:205 (3%)
view
7 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
175:183 (3%)
308:316 (1%)
view
7 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-rulegroupsnamespace/cmd/resource
resource.go
resource.go
55:61 (3%)
151:157 (3%)
view
7 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
48:56 (3%)
70:78 (1%)
view
7 x 2 aws-aps-workspace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
150:156 (1%)
313:319 (1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
9 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
293:302 
524:533 
view
6 x 2 aws-aps-rulegroupsnamespace/cmd/resource
aws-aps-workspace/cmd/resource
resource.go
resource.go
304:310 
535:541 
view