microsoft / TypeScript-Sublime-Plugin
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
  • 3% duplication:
    • 3,997 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 126 duplicated lines
  • 10 duplicates
system3% (126 lines)
Duplication per Extension
py3% (100 lines)
YAML-tmLanguage5% (26 lines)
Duplication per Component (primary)
typescript/libs4% (64 lines)
typescript/commands4% (36 lines)
ROOT3% (26 lines)
snippets0% (0 lines)
tsserver0% (0 lines)
typescript0% (0 lines)
typescript/listeners0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
14 x 2 typescript/libs
typescript/libs
service_proxy.py
service_proxy.py
282:295 (4%)
300:313 (4%)
view
9 x 2 typescript/commands
typescript/commands
go_to_definition.py
go_to_type_definition.py
11:19 (69%)
11:19 (69%)
view
7 x 2 ROOT
ROOT
YAML-tmLanguage
FindRefs.YAML-tmLanguage
FindRefs.YAML-tmLanguage
221:227 (1%)
231:237 (1%)
view
6 x 2 typescript/libs
typescript/libs
service_proxy.py
service_proxy.py
231:236 (1%)
243:248 (1%)
view
6 x 2 typescript/commands
typescript/commands
references.py
references.py
47:53 (5%)
63:69 (5%)
view
6 x 2 ROOT
ROOT
YAML-tmLanguage
FindRefs.YAML-tmLanguage
FindRefs.YAML-tmLanguage
146:151 (1%)
160:165 (1%)
view
6 x 2 typescript/commands
typescript/commands
go_to_definition.py
go_to_type.py
14:19 (46%)
15:20 (42%)
view
6 x 2 typescript/commands
typescript/commands
go_to_type.py
go_to_type_definition.py
15:20 (42%)
14:19 (46%)
view
6 x 2 typescript/libs
typescript/libs
view_helpers.py
view_helpers.py
235:240 (2%)
261:266 (2%)
view
6 x 2 typescript/libs
typescript/libs
service_proxy.py
service_proxy.py
76:81 (1%)
92:97 (1%)
view