microsoft / PowerBI-visuals-CardBrowser
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
  • 5% duplication:
    • 2,789 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 146 duplicated lines
  • 11 duplicates
system5% (146 lines)
Duplication per Extension
scss9% (94 lines)
handlebars18% (34 lines)
css28% (18 lines)
Duplication per Component (primary)
style13% (46 lines)
lib/@uncharted/cards/src/components/card6% (30 lines)
lib/@uncharted/cards/example28% (18 lines)
lib/@uncharted/cards/src/style18% (18 lines)
lib/@uncharted/cards/src/components/wrappedCardsView17% (18 lines)
lib/@uncharted/cards/src/components/readerContent6% (16 lines)
lib/@uncharted/cards/src/components0% (0 lines)
lib/@uncharted/cards/src/components/cards0% (0 lines)
lib/@uncharted/cards/src/components/headerImage0% (0 lines)
lib/@uncharted/cards/src/components/inlineCardsView0% (0 lines)
lib/@uncharted/cards/src/components/verticalReader0% (0 lines)
lib/@uncharted/cards/src/handlebarHelper0% (0 lines)
lib/@uncharted/cards/src0% (0 lines)
lib/@uncharted/cards/src/util0% (0 lines)
src0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
18 x 2 lib/@uncharted/cards/example
lib/@uncharted/cards/src/style
style.css
_base.scss
69:89 (28%)
9:29 (18%)
view
14 x 2 lib/@uncharted/cards/src/style
style
_base.scss
visual.scss
9:25 (14%)
17:33 (4%)
view
14 x 2 lib/@uncharted/cards/example
style
style.css
visual.scss
69:85 (22%)
17:33 (4%)
view
9 x 2 style
style
visual.scss
visual.scss
368:376 (2%)
378:386 (2%)
view
8 x 2 lib/@uncharted/cards/src/components/card
lib/@uncharted/cards/src/components/readerContent
handlebars
card.handlebars
readerContent.handlebars
59:69 (12%)
49:59 (17%)
view
8 x 2 lib/@uncharted/cards/src/components/card
lib/@uncharted/cards/src/components/readerContent
_card.scss
_readerContent.scss
234:242 (3%)
154:161 (5%)
view
7 x 2 lib/@uncharted/cards/src/components/card
style
_card.scss
visual.scss
279:285 (2%)
291:297 (2%)
view
7 x 2 lib/@uncharted/cards/src/components/card
style
_card.scss
visual.scss
286:292 (2%)
303:309 (2%)
view
6 x 2 lib/@uncharted/cards/src...onents/wrappedCardsView
lib/@uncharted/cards/src...onents/wrappedCardsView
handlebars
wrappedCardsView.handlebars
wrappedCardsView.handlebars
15:20 (22%)
21:26 (22%)
view
6 x 2 lib/@uncharted/cards/src...onents/wrappedCardsView
lib/@uncharted/cards/src...onents/wrappedCardsView
handlebars
wrappedCardsView.handlebars
wrappedCardsView.handlebars
9:14 (22%)
21:26 (22%)
view
6 x 2 lib/@uncharted/cards/src...onents/wrappedCardsView
lib/@uncharted/cards/src...onents/wrappedCardsView
handlebars
wrappedCardsView.handlebars
wrappedCardsView.handlebars
9:14 (22%)
15:20 (22%)
view