aws-quickstart / cur-dashboard
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
  • 26% duplication:
    • 1,829 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 480 duplicated lines
  • 13 duplicates
system26% (480 lines)
Duplication per Extension
yaml38% (310 lines)
go14% (146 lines)
yml72% (24 lines)
Duplication per Component (primary)
templates38% (310 lines)
scripts/go/costcli26% (65 lines)
scripts/go/analyzeCUR18% (58 lines)
ci72% (24 lines)
scripts/go/curconvert7% (23 lines)
scripts/go/example/curcli0% (0 lines)

Duplication Between Components (50+ lines)

G scripts/go/analyzeCUR scripts/go/analyzeCUR scripts/go/costcli scripts/go/costcli scripts/go/analyzeCUR--scripts/go/costcli 116

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
78 x 2 templates
templates
CURdashboard-master.yaml
CURdashboard.yaml
61:148 (30%)
49:136 (14%)
view
45 x 2 scripts/go/analyzeCUR
scripts/go/costcli
analyzeCUR.go
costcli.go
213:280 (14%)
109:177 (18%)
view
18 x 2 templates
templates
CURdashboard-master.yaml
CURdashboard.yaml
190:209 (7%)
151:170 (3%)
view
16 x 2 templates
templates
CURdashboard.yaml
CURdashboard.yaml
238:253 (2%)
436:451 (2%)
view
14 x 2 templates
templates
CURdashboard-master.yaml
CURdashboard.yaml
18:31 (5%)
14:27 (2%)
view
12 x 2 ci
ci
config.yml
config.yml
5:16 (36%)
22:33 (36%)
view
12 x 2 templates
templates
CURdashboard-master.yaml
CURdashboard.yaml
35:46 (4%)
31:42 (2%)
view
9 x 2 templates
templates
CURdashboard.yaml
CURdashboard.yaml
225:233 (1%)
422:430 (1%)
view
8 x 2 scripts/go/curconvert
scripts/go/curconvert
curconvert.go
curconvert.go
209:222 (2%)
231:244 (2%)
view
8 x 2 templates
templates
CURdashboard-master.yaml
CURdashboard.yaml
1:10 (3%)
1:10 (1%)
view
7 x 2 scripts/go/analyzeCUR
scripts/go/costcli
analyzeCUR.go
costcli.go
204:212 (2%)
97:105 (2%)
view
7 x 2 scripts/go/costcli
scripts/go/curconvert
costcli.go
curconvert.go
80:88 (2%)
165:173 (2%)
view
6 x 2 scripts/go/analyzeCUR
scripts/go/costcli
analyzeCUR.go
costcli.go
164:174 (1%)
58:68 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
10 x 2 scripts/go/costcli
scripts/go/curconvert
costcli.go
curconvert.go
79:89 
164:174 
view