microsoft / vscode-java-test
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
  • 2% duplication:
    • 2,128 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 49 duplicated lines
  • 4 duplicates
system2% (49 lines)
Duplication per Extension
ts2% (49 lines)
Duplication per Component (primary)
src/runners/testngRunner13% (16 lines)
src/utils8% (14 lines)
src/controller2% (12 lines)
src/runners/junitRunner2% (7 lines)
ROOT0% (0 lines)
scripts0% (0 lines)
src/commands0% (0 lines)
src/commands/navigation0% (0 lines)
src0% (0 lines)
src/provider0% (0 lines)
src/runners0% (0 lines)
src/runners/baseRunner0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src/runners/junitRunner
src/runners/testngRunner
JUnitRunnerResultAnalyzer.ts
TestNGRunnerResultAnalyzer.ts
27:33 (2%)
23:29 (7%)
view
7 x 2 src/utils
src/utils
launchUtils.ts
launchUtils.ts
43:49 (7%)
68:74 (7%)
view
6 x 2 src/controller
src/controller
utils.ts
utils.ts
122:127 (3%)
150:155 (3%)
view
6 x 2 src/runners/testngRunner
src/runners/testngRunner
TestNGRunner.ts
TestNGRunnerResultAnalyzer.ts
16:22 (26%)
27:33 (6%)
view