microsoft / knack
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
  • 4% duplication:
    • 3,079 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 137 duplicated lines
  • 9 duplicates
system4% (137 lines)
Duplication per Extension
py4% (137 lines)
Duplication per Component (primary)
knack4% (123 lines)
knack/testsdk3% (14 lines)
ROOT0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
21 x 2 knack
knack
help.py
help.py
429:455 (3%)
543:569 (3%)
view
9 x 2 knack
knack
arguments.py
arguments.py
257:268 (2%)
308:319 (2%)
view
8 x 2 knack
knack
experimental.py
preview.py
36:60 (20%)
36:60 (20%)
view
7 x 2 knack
knack
help.py
help.py
474:480 (1%)
605:611 (1%)
view
7 x 2 knack
knack
deprecation.py
deprecation.py
75:81 (8%)
128:134 (8%)
view
7 x 2 knack/testsdk
knack/testsdk
checkers.py
checkers.py
12:19 (10%)
42:49 (10%)
view
7 x 2 knack
knack
arguments.py
deprecation.py
337:343 (2%)
75:81 (8%)
view
7 x 2 knack
knack
arguments.py
deprecation.py
337:343 (2%)
128:134 (8%)
view
6 x 2 knack
knack
arguments.py
arguments.py
380:386 (1%)
422:428 (1%)
view