microsoft / powerbi-visuals-utils-chartutils
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
  • 1% duplication:
    • 3,962 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 66 duplicated lines
  • 4 duplicates
system1% (66 lines)
Duplication per Extension
ts1% (66 lines)
Duplication per Component (primary)
src/label5% (44 lines)
src/legend1% (14 lines)
src/dataLabel<1% (8 lines)
ROOT0% (0 lines)
src/axis0% (0 lines)
src/dataLabel/styles0% (0 lines)
src0% (0 lines)
src/legend/behavior0% (0 lines)
src/legend/styles0% (0 lines)
src/styles0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/label
src/label
labelLayout.ts
labelLayout.ts
208:240 (3%)
260:292 (3%)
view
8 x 2 src/dataLabel
src/label
dataLabelInterfaces.ts
labelUtils.ts
263:273 (6%)
65:76 (9%)
view
7 x 2 src/legend
src/legend
svgLegend.ts
svgLegend.ts
767:774 (1%)
781:788 (1%)
view
7 x 2 src/label
src/label
labelLayout.ts
labelLayout.ts
347:363 (2%)
392:408 (2%)
view