microsoft / powerbi-visuals-gantt
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:
    • 2,800 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 54 duplicated lines
  • 4 duplicates
system1% (54 lines)
Duplication per Extension
ts1% (54 lines)
Duplication per Component (primary)
src2% (54 lines)
ROOT0% (0 lines)
style0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
8 x 2 src
src
gantt.ts
gantt.ts
907:917 (<1%)
935:945 (<1%)
view
7 x 2 src
src
gantt.ts
gantt.ts
1970:1978 (<1%)
2029:2037 (<1%)
view
6 x 2 src
src
durationHelper.ts
gantt.ts
32:37 (5%)
163:168 (<1%)
view
6 x 2 src
src
drawButtons.ts
drawButtons.ts
45:51 (10%)
57:63 (10%)
view