GerritCodeReview / plugins_download-commands
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
  • 12% duplication:
    • 489 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 62 duplicated lines
  • 4 duplicates
system12% (62 lines)
Duplication per Extension
java12% (62 lines)
Duplication per Component (primary)
download/scheme22% (50 lines)
download/command4% (12 lines)
download0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
10 x 2 src/main/java/com/google...plugins/download/scheme
src/main/java/com/google...plugins/download/scheme
AnonymousHttpScheme.java
GitScheme.java
67:81 (26%)
49:63 (38%)
view
10 x 2 src/main/java/com/google...plugins/download/scheme
src/main/java/com/google...plugins/download/scheme
HttpScheme.java
SshScheme.java
94:108 (17%)
114:128 (14%)
view
7 x 2 src/main/java/com/google...plugins/download/scheme
src/main/java/com/google...plugins/download/scheme
AnonymousHttpScheme.java
HttpScheme.java
58:68 (18%)
85:95 (12%)
view
6 x 2 src/main/java/com/google...lugins/download/command
src/main/java/com/google...lugins/download/command
BranchCommand.java
FormatPatchCommand.java
34:39 (25%)
34:39 (42%)
view