microsoft / PowerBI-visuals-HeatStreams
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
  • 2% duplication:
    • 1,943 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 52 duplicated lines
  • 3 duplicates
system2% (52 lines)
Duplication per Extension
js90% (40 lines)
tsx1% (12 lines)
Duplication per Component (primary)
ROOT90% (40 lines)
packages/react-heat-streams/src/components1% (12 lines)
packages/react-heat-streams-stories/stories0% (0 lines)
packages/react-heat-streams/src/components/CategoryChart0% (0 lines)
packages/react-heat-streams/src0% (0 lines)
packages/react-heat-streams/style0% (0 lines)
pbi-heat-streams/src0% (0 lines)
pbi-heat-streams/src/chart0% (0 lines)
pbi-heat-streams/src/data0% (0 lines)
pbi-heat-streams/src/settings0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
13 x 2 ROOT
ROOT
babelrc.cjs.js
babelrc.esm.js
15:27 (61%)
15:27 (61%)
view
7 x 2 ROOT
ROOT
babelrc.cjs.js
babelrc.esm.js
5:12 (33%)
5:12 (33%)
view
6 x 2 packages/react-heat-streams/src/components
packages/react-heat-streams/src/components
Overlay.tsx
Overlay.tsx
76:82 (6%)
94:100 (6%)
view