angular / vscode-ng-language-service
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
  • 10% duplication:
    • 3,785 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 387 duplicated lines
  • 38 duplicates
system10% (387 lines)
Duplication per Extension
ts10% (387 lines)
Duplication per Component (primary)
syntaxes/src22% (215 lines)
integration/lsp16% (112 lines)
server/src2% (28 lines)
integration/pre_apf_project/app61% (16 lines)
integration/project/app57% (16 lines)
client/src0% (0 lines)
override_rename_ts_plugin0% (0 lines)
ROOT0% (0 lines)
common0% (0 lines)
integration/project/libs0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 38 duplicates...
Size#FoldersFilesLinesCode
13 x 2 syntaxes/src
syntaxes/src
expression.ts
expression.ts
552:565 (1%)
576:589 (1%)
view
13 x 2 syntaxes/src
syntaxes/src
expression.ts
expression.ts
506:518 (1%)
781:793 (1%)
view
13 x 2 syntaxes/src
syntaxes/src
expression.ts
expression.ts
51:63 (1%)
805:817 (1%)
view
11 x 2 syntaxes/src
syntaxes/src
template.ts
template.ts
43:53 (8%)
112:122 (8%)
view
11 x 2 syntaxes/src
syntaxes/src
template.ts
template.ts
43:53 (8%)
89:99 (8%)
view
11 x 2 syntaxes/src
syntaxes/src
template.ts
template.ts
89:99 (8%)
112:122 (8%)
view
11 x 2 syntaxes/src
syntaxes/src
template.ts
template.ts
66:76 (8%)
112:122 (8%)
view
11 x 2 syntaxes/src
syntaxes/src
template.ts
template.ts
43:53 (8%)
66:76 (8%)
view
11 x 2 syntaxes/src
syntaxes/src
template.ts
template.ts
66:76 (8%)
89:99 (8%)
view
11 x 2 syntaxes/src
syntaxes/src
expression.ts
expression.ts
463:473 (1%)
484:494 (1%)
view
9 x 2 syntaxes/src
syntaxes/src
expression.ts
expression.ts
61:71 (1%)
516:526 (1%)
view
9 x 2 syntaxes/src
syntaxes/src
expression.ts
expression.ts
243:253 (1%)
815:825 (1%)
view
8 x 2 integration/pre_apf_project/app
integration/project/app
app.component.ts
app.component.ts
3:10 (100%)
3:10 (100%)
view
8 x 2 integration/lsp
integration/lsp
ivy_spec.ts
ivy_spec.ts
32:43 (1%)
605:616 (1%)
view
8 x 2 integration/lsp
integration/lsp
ivy_spec.ts
ivy_spec.ts
32:43 (1%)
544:555 (1%)
view
8 x 2 integration/lsp
integration/lsp
ivy_spec.ts
ivy_spec.ts
544:555 (1%)
605:616 (1%)
view
8 x 2 integration/pre_apf_project/app
integration/project/app
app.module.ts
app.module.ts
10:17 (80%)
12:19 (72%)
view
8 x 2 server/src
server/src
session.ts
session.ts
833:843 (1%)
871:881 (1%)
view
8 x 2 integration/lsp
integration/lsp
ivy_spec.ts
ivy_spec.ts
193:200 (1%)
215:222 (1%)
view
8 x 2 integration/lsp
integration/lsp
ivy_spec.ts
ivy_spec.ts
134:141 (1%)
170:177 (1%)
view