microsoft / vscode-maven
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:
    • 4,300 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 230 duplicated lines
  • 16 duplicates
system5% (230 lines)
Duplication per Extension
ts6% (218 lines)
java1% (12 lines)
Duplication per Component (primary)
src/archetype16% (74 lines)
src/handlers10% (59 lines)
src/utils5% (43 lines)
src/completion8% (28 lines)
jdtls.ext/com.microsoft.java.maven.plugin1% (12 lines)
src/definition21% (7 lines)
src/hover24% (7 lines)
scripts0% (0 lines)
src0% (0 lines)
src/codeAction0% (0 lines)
src/explorer0% (0 lines)
src/jdtls0% (0 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/handlers
src/utils
showDependenciesHandler.ts
Utils.ts
16:26 (36%)
143:153 (5%)
view
11 x 2 src/archetype/createProject
src/archetype/createProject
SpecifyArtifactIdStep.ts
SpecifyGroupIdStep.ts
18:30 (25%)
18:30 (25%)
view
10 x 2 src/archetype/createProject
src/archetype/createProject
SpecifyArtifactIdStep.ts
SpecifyGroupIdStep.ts
40:50 (22%)
40:50 (22%)
view
10 x 2 src/archetype/createProject
src/archetype/createProject
SelectArchetypeStep.ts
SpecifyArchetypeVersionStep.ts
46:57 (8%)
42:52 (23%)
view
9 x 2 src/utils
src/utils
requestUtils.ts
requestUtils.ts
40:48 (11%)
56:64 (11%)
view
8 x 2 src/handlers
src/handlers
addDependencyHandler.ts
excludeDependencyHandler.ts
92:99 (11%)
52:59 (11%)
view
8 x 2 src/completion
src/completion
indexProvider.ts
indexProvider.ts
13:21 (12%)
37:45 (12%)
view
7 x 2 src/definition
src/hover
definitionProvider.ts
hoverProvider.ts
20:26 (21%)
18:24 (24%)
view
7 x 2 src/utils
src/utils
uiUtils.ts
uiUtils.ts
21:27 (9%)
35:41 (9%)
view
7 x 2 src/handlers
src/handlers
excludeDependencyHandler.ts
jumpToDefinitionHandler.ts
29:37 (10%)
26:34 (20%)
view
6 x 2 src/completion
src/completion
centralProvider.ts
indexProvider.ts
40:47 (12%)
55:62 (9%)
view
6 x 2 src/archetype
src/archetype
ArchetypeModule.ts
ArchetypeModule.ts
171:176 (4%)
179:184 (4%)
view
6 x 2 src/handlers
src/handlers
addDependencyHandler.ts
setDependencyVersionHandler.ts
72:79 (8%)
67:74 (4%)
view
6 x 2 src/handlers
src/handlers
excludeDependencyHandler.ts
setDependencyVersionHandler.ts
52:57 (8%)
93:98 (4%)
view
6 x 2 src/handlers
src/handlers
addDependencyHandler.ts
setDependencyVersionHandler.ts
92:97 (8%)
93:98 (4%)
view
6 x 2 jdtls.ext/com.microsoft....om/microsoft/java/maven
jdtls.ext/com.microsoft....om/microsoft/java/maven
ArtifactSearcher.java
ArtifactSearcher.java
480:487 (1%)
496:503 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 src/archetype
src/utils
ArchetypeModule.ts
mavenUtils.ts
149:155 
201:207 
view