microsoft / PowerBI-visuals-tools
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
  • 11% duplication:
    • 1,594 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 186 duplicated lines
  • 11 duplicates
system11% (186 lines)
Duplication per Extension
js8% (88 lines)
ts20% (58 lines)
less39% (40 lines)
Duplication per Component (primary)
lib9% (88 lines)
templates/visuals/default72% (27 lines)
templates/visuals/slicer71% (27 lines)
templates/visuals/rhtml9% (22 lines)
templates/visuals/rvisual41% (22 lines)
spec0% (0 lines)
spec/helpers0% (0 lines)
templates0% (0 lines)
templates/visuals/table0% (0 lines)
webRoot0% (0 lines)

Duplication Between Components (50+ lines)

G templates/visuals/default templates/visuals/default templates/visuals/slicer templates/visuals/slicer templates/visuals/default--templates/visuals/slicer 54

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
15 x 2 lib
lib
CertificateTools.js
CertificateTools.js
81:97 (5%)
99:115 (5%)
view
14 x 2 lib
lib
CertificateTools.js
CertificateTools.js
100:115 (4%)
124:139 (4%)
view
14 x 2 lib
lib
CertificateTools.js
CertificateTools.js
82:97 (4%)
124:139 (4%)
view
12 x 2 templates/visuals/default/src
templates/visuals/slicer/src
visual.ts
visual.ts
47:61 (44%)
47:61 (42%)
view
12 x 2 templates/visuals/rhtml/style
templates/visuals/rvisual/style
visual.less
visual.less
1:14 (100%)
1:14 (100%)
view
10 x 2 templates/visuals/rhtml/src
templates/visuals/rvisual/src
visual.ts
visual.ts
91:102 (13%)
53:64 (26%)
view
8 x 2 lib
lib
CertificateTools.js
CertificateTools.js
316:326 (2%)
343:353 (2%)
view
8 x 2 lib
lib
CertificateTools.js
CertificateTools.js
152:160 (2%)
179:187 (2%)
view
8 x 2 templates/visuals/default/style
templates/visuals/slicer/style
visual.less
visual.less
1:9 (100%)
1:9 (100%)
view
7 x 2 templates/visuals/default/src
templates/visuals/slicer/src
visual.ts
visual.ts
26:45 (25%)
26:45 (25%)
view
6 x 2 lib
lib
CertificateTools.js
CertificateTools.js
144:150 (2%)
164:170 (2%)
view